]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/symtab] Make find_block_in_blockvector more robust
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5fb4027f
TV
12020-10-22 Tom de Vries <tdevries@suse.de>
2
3 * block.c (find_block_in_blockvector): Make sure the returned block
4 contains pc.
5
4a636814
SM
62020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
7
8 PR gdb/26693
9 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
10 parameter.
11 (load_cu): Pass existing CU.
12 (process_imported_unit_die): Likewise.
13 (follow_die_offset): Likewise.
14
1bd57575
LM
152020-10-22 Luis Machado <luis.machado@linaro.org>
16
17 * corelow.c (core_target::xfer_partial): Also check for an empty
18 m_core_unavailable_mappings vector.
19
6b4c676c
AB
202020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
23 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
24 * f-exp.y (arglist): Allow for a series of subranges.
25 (subrange): Add cases for subranges with strides.
26 * f-lang.c (value_f90_subarray): Catch use of array strides and
27 throw an error.
28 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
29
f2d8e4c5
AB
302020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * expprint.c (print_subexp_standard): Change enum range_type to
33 range_flag and rename variables to match.
34 (dump_subexp_body_standard): Likewise.
35 * expression.h (enum range_type): Rename to...
36 (enum range_flag): ...this.
37 (range_types): Rename to...
38 (range_flags): ...this.
39 * f-lang.c (value_f90_subarray): Change enum range_type to
40 range_flag and rename variables to match.
41 * parse.c (operator_length_standard): Likewise.
42 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
43 range_type to range_flag.
44 * rust-lang.c (rust_evaluate_funcall): Likewise.
45 (rust_range): Likewise.
46 (rust_compute_range): Likewise.
47 (rust_subscript): Likewise.
48
2f1b18db
AB
492020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * expprint.c (print_subexp_standard): Update to reflect changes to
52 enum range_type.
53 (dump_subexp_body_standard): Likewise.
54 * expression.h (enum range_type): Convert to a bit field enum, and
55 make the enum unsigned.
56 * f-exp.y (subrange): Update to reflect changes to enum
57 range_type.
58 * f-lang.c (value_f90_subarray): Likewise.
59 * parse.c (operator_length_standard): Likewise.
60 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
61 * rust-lang.c (rust_range): Likewise.
62 (rust_compute_range): Likewise.
63 (rust_subscript): Likewise.
64
a46d1843
SM
652020-10-21 Simon Marchi <simon.marchi@efficios.com>
66
67 * infrun.c (displaced_step_in_progress_thread): Fix comment.
68 (displaced_step_in_progress): Fix comment.
69
c21f37a8
SM
702020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * gdbarch.sh (make_corefile_notes): Return unique pointer.
73 * gdbarch.c: Re-generate.
74 * gdbarch.h: Re-generate.
75 * gcore.c (write_gcore_file_1): Adjust.
76 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
77 constructor.
78 <note_data>: Change type to unique pointer.
79 <abort_iteration>: Change type to bool.
80 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
81 (fbsd_collect_thread_registers): Return void, adjust.
82 (struct fbsd_corefile_thread_data): Add construtor.
83 <note_data>: Change type to unique pointer.
84 (fbsd_corefile_thread): Adjust.
85 (fbsd_make_corefile_notes): Return unique pointer, adjust.
86 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
87 to unique pointer, adjust.
88 (struct linux_collect_regset_section_cb_data): Add constructor.
89 <note_data>: Change type to unique pointer.
90 <abort_iteration>: Change type to bool.
91 (linux_collect_thread_registers): Return void, adjust.
92 (struct linux_corefile_thread_data): Add constructor.
93 <note_data>: Change type to unique pointer.
94 (linux_corefile_thread): Adjust.
95 (linux_make_corefile_notes): Return unique pointer, adjust.
96
07fbbd01
SM
972020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
100 * gdbarch.c: Re-generate.
101 * gdbarch.h: Re-generate.
102 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
103 bool.
104 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
105 Likewise.
106 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
107 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
108 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
109 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
110
39535193
SM
1112020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * gdbarch.sh: Make generated predicates return bool.
114 * gdbarch.c: Re-generate.
115 * gdbarch.h: Re-generate.
116
ad523d01
TT
1172020-10-20 Tom Tromey <tom@tromey.com>
118
119 * varobj-iter.h (struct varobj_item): Remove typedef.
120
c4464ade
SM
1212020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * infrun.c (currently_stepping): Change int to bool
124 (maybe_software_singlestep): Likewise.
125 (show_stop_on_solib_events): Likewise.
126 (stepping_past_nonsteppable_watchpoint): Likewise.
127 (displaced_step_in_progress_any_inferior): Likewise.
128 (displaced_step_in_progress_thread): Likewise.
129 (keep_going_stepped_thread): Likewise.
130 (thread_still_needs_step_over): Likewise.
131 (start_step_over): Likewise.
132 (do_target_resume): Likewise.
133 (resume_1): Likewise.
134 (clear_proceed_status): Likewise.
135 (thread_still_needs_step_over_bp): Likewise.
136 (proceed): Likewise.
137 (switch_back_to_stepped_thread): Likewise.
138 (adjust_pc_after_break): Likewise.
139 (stepped_in_from): Likewise.
140 (handle_stop_requested): Likewise.
141 (handle_syscall_event): Likewise.
142 (handle_no_resumed): Likewise.
143 (handle_inferior_event): Likewise.
144 (finish_step_over): Likewise.
145 (handle_signal_stop): Likewise.
146 (process_event_stop_test): Likewise.
147
2eb20436
SM
1482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * infrun.c (get_displaced_stepping_state): Fix comment.
151
e0c45ded
AS
1522020-10-20 Andreas Schwab <schwab@linux-m68k.org>
153
154 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
155
22cc388e
TT
1562020-10-19 Tom Tromey <tromey@adacore.com>
157
158 PR tui/26719
159 * tui/tui-winsource.h (struct tui_source_window_base)
160 <refresh_window>: Rename from refresh_pad.
161 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
162 Rename from refresh_pad.
163 (tui_source_window_base::show_source_content)
164 (tui_source_window_base::do_scroll_horizontal): Update.
165
3c6eb4d4
TBA
1662020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
167
168 * thread.c (_initialize_thread): Fine-tune the help text of
169 'info threads'.
170
26703721
TBA
1712020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
172
173 * frame.c: Remove the unused 'uinteger_option_def' type alias.
174
61c26be8
MS
1752020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
176
177 * breakpoint.c (handle_jit_event): Add an argument, change how
178 `jit_event_handler` is called.
179
932539d7
TT
1802020-10-17 Tom Tromey <tom@tromey.com>
181
182 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
183 (scan_xcoff_symtab): Update.
184 * psymtab.h (class psymtab_storage) <global_psymbols,
185 static_psymbols, current_global_psymbols,
186 current_static_psymbols>: Remove.
187 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
188 (match_partial_symbol, lookup_partial_symbol): Update.
189 (print_partial_symbols): Change parameters.
190 (dump_psymtab, recursively_search_psymtabs)
191 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
192 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
193 (concat): Remove.
194 (end_psymtab_common): Simplify.
195 (append_psymbol_to_list): Change parameters.
196 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
197 (init_psymbol_list): Simplify.
198 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
199 * psympriv.h (struct partial_symtab) <empty>: New method.
200 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
201 Remove.
202 <global_psymbols, static_psymbols>: New members.
203 <add_psymbol>: New methods.
204 (add_psymbol_to_list): Don't declare.
205 (psymbol_placement): Move earlier.
206 * mdebugread.c (parse_partial_symbols): Update.
207 (handle_psymbol_enumerators): Change parameters.
208 (mdebug_expand_psymtab): Update.
209 * dwarf2/read.c (process_psymtab_comp_unit_reader)
210 (add_partial_symbol): Update.
211 * dwarf2/index-write.c (write_psymbols): Change parameters.
212 (write_one_signatured_type): Update.
213 (recursively_count_psymbols): Update.
214 (recursively_write_psymbols): Update.
215 (class debug_names) <recursively_write_psymbols>: Update.
216 <write_psymbols>: Change parameters.
217 <write_one_signatured_type>: Update.
218 * dbxread.c (read_dbx_symtab): Update.
219 (dbx_end_psymtab): Use partial_symtab::empty.
220 * ctfread.c (struct ctf_context) <pst>: New member.
221 (create_partial_symtab): Set it.
222 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
223 (scan_partial_symbols): Use the psymtab's context. Update.
224
cfabbd35
TT
2252020-10-17 Tom Tromey <tom@tromey.com>
226
227 * valprint.c (generic_value_print): Remove comment.
228 * m2-valprint.c (m2_value_print_inner): Remove comment.
229 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
230 type.
231
520596f2
TV
2322020-10-17 Tom de Vries <tdevries@suse.de>
233
234 PR symtab/26317
235 * source.c (select_source_symtab): Handling sal.symtab == NULL for
236 symbol main.
237
76547ab3
TV
2382020-10-14 Tom de Vries <tdevries@suse.de>
239
240 PR gdb/26733
241 * solib.c (solib_contains_address_p): Handle
242 'solib->sections == nullptr'.
243
d3a07122
SM
2442020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
245
246 PR gdb/26642
247 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
248 target can't do async.
249 * target.c (target_wait): Assert that we don't pass
250 TARGET_WNOHANG to a target that can't async.
251
1b71cfcf
KR
2522020-10-13 Kamil Rytarowski <n54@gmx.com>
253
254 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
255 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
256 * alpha-bsd-nat.c: Adjust include.
257 * alpha-bsd-tdep.h: Adjust comment.
258 * alpha-nbsd-tdep.c: Rename to ...
259 * alpha-netbsd-tdep.c: ... this, adjust include.
260 * amd64-nbsd-nat.c: Rename to ...
261 * amd64-netbsd-nat.c: ... this, adjust include.
262 * amd64-nbsd-tdep.c: Rename to ...
263 * amd64-netbsd-tdep.c: ... this, adjust include.
264 * amd64-tdep.h: Adjust include.
265 * arm-nbsd-nat.c: Rename to ...
266 * arm-netbsd-nat.c: ... this, adjust include.
267 * arm-nbsd-tdep.c: Rename to ...
268 * arm-netbsd-tdep.c: ... this, adjust include.
269 * arm-nbsd-tdep.h: Rename to ...
270 * arm-netbsd-tdep.h: ... this, adjust include.
271 * configure.nat: Adjust file lists.
272 * configure.tgt: Likewise.
273 * hppa-nbsd-nat.c: Rename to ...
274 * hppa-netbsd-nat.c: ... this, adjust include.
275 * hppa-nbsd-tdep.c: Rename to ...
276 * hppa-netbsd-tdep.c: ... this, adjust include.
277 * i386-nbsd-nat.c: Rename to ...
278 * i386-netbsd-nat.c: ... this, adjust include.
279 * i386-nbsd-tdep.c: Rename to ...
280 * i386-netbsd-tdep.c: ... this, adjust include.
281 * m68k-bsd-nat.c: Adjust include.
282 * mips-nbsd-nat.c: Rename to ...
283 * mips-netbsd-nat.c: ... this, adjust include.
284 * mips-nbsd-tdep.c: Rename to ...
285 * mips-netbsd-tdep.c: ... this, adjust include.
286 * mips-nbsd-tdep.h: Rename to ...
287 * mips-netbsd-tdep.h: ... this.
288 * nbsd-nat.c: Rename to ...
289 * netbsd-nat.c: ... this, adjust include.
290 * nbsd-nat.h: Rename to ...
291 * netbsd-nat.h: ... this, adjust include.
292 * nbsd-tdep.c: Rename to ...
293 * netbsd-tdep.c: ... this, adjust include.
294 * nbsd-tdep.h: Rename to ...
295 * netbsd-tdep.h: ... this.
296 * ppc-nbsd-nat.c: Rename to ...
297 * ppc-netbsd-nat.c: ... this, adjust include.
298 * ppc-nbsd-tdep.c: Rename to ...
299 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
300 * ppc-nbsd-tdep.h: Rename to ...
301 * ppc-netbsd-tdep.h: ... this.
302 * sh-nbsd-nat.c: Rename to ...
303 * sh-netbsd-nat.c: ... this, adjust include.
304 * sh-nbsd-tdep.c: Rename to ...
305 * sh-netbsd-tdep.c: ... this, adjust include.
306 * sparc-nbsd-nat.c: Rename to ...
307 * sparc-netbsd-nat.c: ... this.
308 * sparc-nbsd-tdep.c: Rename to ...
309 * sparc-netbsd-tdep.c: ... this, adjust include.
310 * sparc64-nbsd-nat.c: Rename to ...
311 * sparc64-netbsd-nat.c: ... this.
312 * sparc64-nbsd-tdep.c: Rename to ...
313 * sparc64-netbsd-tdep.c: ... this, adjust include.
314 * sparc64-tdep.h: Adjust comment.
315 * vax-bsd-nat.c: Adjust include.
316 * vax-nbsd-tdep.c: Rename to ...
317 * vax-netbsd-tdep.c: ... this, adjust include.
318
d7a78e5c
TT
3192020-10-12 Tom Tromey <tom@tromey.com>
320
321 * target.h (struct target_ops) <get_section_table>: Update.
322 (target_get_section_table): Update.
323 * target.c (target_get_section_table, target_section_by_addr)
324 (memory_xfer_partial_1): Update.
325 * target-section.h (target_section_table): Now an alias.
326 * target-delegates.c: Rebuild.
327 * target-debug.h (target_debug_print_target_section_table_p):
328 Rename from target_debug_print_struct_target_section_table_p.
329 * symfile.c (build_section_addr_info_from_section_table): Update.
330 * solib.c (solib_map_sections, solib_contains_address_p): Update.
331 * solib-svr4.c (scan_dyntag): Update.
332 * solib-dsbt.c (scan_dyntag): Update.
333 * remote.c (remote_target::remote_xfer_live_readonly_partial):
334 Update.
335 * record-full.c (record_full_core_target::xfer_partial): Update.
336 * progspace.h (struct program_space) <target_sections>: Update.
337 * exec.h (print_section_info): Update.
338 * exec.c (exec_target::close, build_section_table)
339 (add_target_sections, add_target_sections_of_objfile)
340 (remove_target_sections, exec_on_vfork)
341 (section_table_available_memory)
342 (section_table_xfer_memory_partial)
343 (exec_target::get_section_table, exec_target::xfer_partial)
344 (print_section_info, set_section_command)
345 (exec_set_section_address, exec_target::has_memory): Update.
346 * corelow.c (core_target::build_file_mappings)
347 (core_target::xfer_partial, core_target::info_proc_mappings)
348 (core_target::info_proc_mappings): Update.
349 * bfd-target.c (class target_bfd): Update
350
eda214ce
TT
3512020-10-12 Tom Tromey <tom@tromey.com>
352
353 * progspace.c (program_space::~program_space): Don't call
354 clear_section_table.
355 * exec.h (clear_section_table): Don't declare.
356 * exec.c (exec_target::close): Update.
357 (clear_section_table): Remove.
358
91840ee3
TT
3592020-10-12 Tom Tromey <tom@tromey.com>
360
361 * exec.c (add_target_sections_of_objfile): Simplify.
362
2d128614
TT
3632020-10-12 Tom Tromey <tom@tromey.com>
364
365 * solib.c (solib_map_sections): Update.
366 * record-full.c (record_full_core_open_1): Update.
367 * exec.h (build_section_table): Return a target_section_table.
368 * exec.c (exec_file_attach): Update.
369 (build_section_table): Return a target_section_table.
370 * corelow.c (core_target::core_target): Update.
371 * bfd-target.c (target_bfd::target_bfd): Update.
372
bb2a6777
TT
3732020-10-12 Tom Tromey <tom@tromey.com>
374
375 * target.c (target_section_by_addr, memory_xfer_partial_1):
376 Update.
377 * target-section.h (struct target_section_table): Use
378 std::vector.
379 * symfile.h (build_section_addr_info_from_section_table): Take a
380 target_section_table.
381 * symfile.c (build_section_addr_info_from_section_table): Take a
382 target_section_table.
383 * solist.h (struct so_list) <sections>: Change type.
384 <sections_end>: Remove.
385 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
386 (solib_contains_address_p): Update.
387 * solib-svr4.c (scan_dyntag): Update.
388 * solib-dsbt.c (scan_dyntag): Update.
389 * remote.c (remote_target::remote_xfer_live_readonly_partial):
390 Update.
391 * record-full.c (record_full_core_start, record_full_core_end):
392 Remove.
393 (record_full_core_sections): New global.
394 (record_full_core_open_1, record_full_core_target::xfer_partial):
395 Update.
396 * exec.h (build_section_table, section_table_xfer_memory_partial)
397 (add_target_sections): Take a target_section_table.
398 * exec.c (exec_file_attach, clear_section_table): Update.
399 (resize_section_table): Remove.
400 (build_section_table, add_target_sections): Take a
401 target_section_table.
402 (add_target_sections_of_objfile, remove_target_sections)
403 (exec_on_vfork): Update.
404 (section_table_available_memory): Take a target_section_table.
405 (section_table_read_available_memory): Update.
406 (section_table_xfer_memory_partial): Take a target_section_table.
407 (print_section_info, set_section_command)
408 (exec_set_section_address, exec_target::has_memory): Update.
409 * corelow.c (class core_target) <m_core_section_table,
410 m_core_file_mappings>: Remove braces.
411 <~core_target>: Remove.
412 (core_target::core_target): Update.
413 (core_target::~core_target): Remove.
414 (core_target::build_file_mappings)
415 (core_target::xfer_memory_via_mappings)
416 (core_target::xfer_partial, core_target::info_proc_mappings):
417 Update.
418 * bfd-target.c (target_bfd::xfer_partial): Update.
419 (target_bfd::target_bfd): Update.
420 (target_bfd::~target_bfd): Remove.
421
7b466b10
TT
4222020-10-12 Tom Tromey <tom@tromey.com>
423
424 * target.h (struct target_section, struct target_section_table):
425 Move to target-section.h.
426 * target-section.h: New file.
427
87a37e5e
PA
4282020-10-12 Pedro Alves <pedro@palves.net>
429
430 PR exp/26602
431 * valops.c (struct struct_field_searcher): New.
432 (update_search_result): Rename to ...
433 (struct_field_searcher::update_result): ... this. Simplify
434 prototype. Record all found fields.
435 (do_search_struct_field): Rename to ...
436 (struct_field_searcher::search): ... this. Simplify prototype.
437 Maintain stack of visited baseclass path. Call update_result for
438 fields too. Keep searching fields in baseclasses instead of
439 stopping at the first found field.
440 (search_struct_field): Use struct_field_searcher. When looking
441 for fields, report ambiguous access attempts.
442
9370fd51
AB
4432020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * frame.c (inside_main_func): Check full symbols as well as
446 minimal symbols.
447
59c8a30b
JB
4482020-10-09 Joel Brobecker <brobecker@adacore.com>
449
450 * ada-lang.c (advance_wild_match): Rewrite the function's
451 description. Change the type of target0, t0 and t1 to char.
452
7c184d33
TT
4532020-10-09 Tom Tromey <tromey@adacore.com>
454
455 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
456
5c4258f4
TT
4572020-10-09 Tom Tromey <tromey@adacore.com>
458
459 * ada-lang.h (ada_encode): Return std::string.
460 * ada-lang.c (ada_encode_1): Return std::string.
461 (ada_encode): Likewise.
462 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
463 Update.
464 * ada-exp.y (block_lookup, write_var_or_type): Update.
465
3d87245c
HD
4662020-10-09 Hannes Domani <ssbssa@yahoo.de>
467
468 PR exp/26714
469 * printcmd.c (print_formatted): Handle void results as
470 unformatted prints.
471
bbb826f5
AB
4722020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * arch/aarch32.c (aarch32_create_target_description): Release the
475 target_desc_up as late as possible.
476 * arch/aarch64.c (aarch64_create_target_description): Likewise.
477 * arch/amd64.c (amd64_create_target_description): Likewise.
478 * arch/arc.c (arc_create_target_description): Return a
479 target_desc_up, don't release it.
480 * arch/arc.h (arc_create_target_description): Update declaration.
481 (arc_lookup_target_description): Move target_desc_up into the
482 cache, and return a borrowed pointer.
483 * arch/arm.c (arm_create_target_description): Release the
484 target_desc_up as late as possible.
485 * arch/i386.c (i386_create_target_description): Likewise.
486 * arch/riscv.h (riscv_create_target_description): Update
487 declaration to match definition.
488 * arch/tic6x.c (tic6x_create_target_description): Release the
489 target_desc_up as late as possible.
490
361cb219
AB
4912020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
494 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
495
f5c4b229
JV
4962020-10-09 Jan Vrany <jan.vrany@labware.com>
497
498 * source.c (directory_command): Notify observers that "directories"
499 parameter has changed.
500
b2701685
TT
5012020-10-08 Tom Tromey <tom@tromey.com>
502
503 * cli/cli-cmds.c (print_disassembly): Style function name and
504 addresses. Add _() wrappers.
505
ada508b6
SV
5062020-10-08 Shahab Vahedi <shahab@synopsys.com>
507
508 * NEWS: Mention ARC support in GDBserver.
509
51a948fd
AB
5102020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * arch/aarch32.c (aarch32_create_target_description): Release
513 unique_ptr returned from allocate_target_description.
514 * arch/aarch64.c (aarch64_create_target_description): Likewise.
515 * arch/amd64.c (amd64_create_target_description): Likewise.
516 * arch/arc.c (arc_create_target_description): Likewise.
517 * arch/arm.c (arm_create_target_description): Likewise.
518 * arch/i386.c (i386_create_target_description): Likewise.
519 * arch/riscv.c (riscv_create_target_description): Update return
520 type. Handle allocate_target_description returning a unique_ptr.
521 (riscv_lookup_target_description): Update to handle unique_ptr.
522 * arch/tic6x.c (tic6x_create_target_description): Release
523 unique_ptr returned from allocate_target_description.
524 * features/microblaze-with-stack-protect.c: Regenerate.
525 * features/microblaze.c: Regenerate.
526 * features/mips-dsp-linux.c: Regenerate.
527 * features/mips-linux.c: Regenerate.
528 * features/mips64-dsp-linux.c: Regenerate.
529 * features/mips64-linux.c: Regenerate.
530 * features/nds32.c: Regenerate.
531 * features/nios2.c: Regenerate.
532 * features/or1k.c: Regenerate.
533 * features/rs6000/powerpc-32.c: Regenerate.
534 * features/rs6000/powerpc-32l.c: Regenerate.
535 * features/rs6000/powerpc-403.c: Regenerate.
536 * features/rs6000/powerpc-403gc.c: Regenerate.
537 * features/rs6000/powerpc-405.c: Regenerate.
538 * features/rs6000/powerpc-505.c: Regenerate.
539 * features/rs6000/powerpc-601.c: Regenerate.
540 * features/rs6000/powerpc-602.c: Regenerate.
541 * features/rs6000/powerpc-603.c: Regenerate.
542 * features/rs6000/powerpc-604.c: Regenerate.
543 * features/rs6000/powerpc-64.c: Regenerate.
544 * features/rs6000/powerpc-64l.c: Regenerate.
545 * features/rs6000/powerpc-7400.c: Regenerate.
546 * features/rs6000/powerpc-750.c: Regenerate.
547 * features/rs6000/powerpc-860.c: Regenerate.
548 * features/rs6000/powerpc-altivec32.c: Regenerate.
549 * features/rs6000/powerpc-altivec32l.c: Regenerate.
550 * features/rs6000/powerpc-altivec64.c: Regenerate.
551 * features/rs6000/powerpc-altivec64l.c: Regenerate.
552 * features/rs6000/powerpc-e500.c: Regenerate.
553 * features/rs6000/powerpc-e500l.c: Regenerate.
554 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
555 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
556 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
557 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
558 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
559 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
560 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
561 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
562 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
563 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
564 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
565 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
566 * features/rs6000/powerpc-vsx32.c: Regenerate.
567 * features/rs6000/powerpc-vsx32l.c: Regenerate.
568 * features/rs6000/powerpc-vsx64.c: Regenerate.
569 * features/rs6000/powerpc-vsx64l.c: Regenerate.
570 * features/rs6000/rs6000.c: Regenerate.
571 * features/rx.c: Regenerate.
572 * features/s390-gs-linux64.c: Regenerate.
573 * features/s390-linux32.c: Regenerate.
574 * features/s390-linux32v1.c: Regenerate.
575 * features/s390-linux32v2.c: Regenerate.
576 * features/s390-linux64.c: Regenerate.
577 * features/s390-linux64v1.c: Regenerate.
578 * features/s390-linux64v2.c: Regenerate.
579 * features/s390-te-linux64.c: Regenerate.
580 * features/s390-tevx-linux64.c: Regenerate.
581 * features/s390-vx-linux64.c: Regenerate.
582 * features/s390x-gs-linux64.c: Regenerate.
583 * features/s390x-linux64.c: Regenerate.
584 * features/s390x-linux64v1.c: Regenerate.
585 * features/s390x-linux64v2.c: Regenerate.
586 * features/s390x-te-linux64.c: Regenerate.
587 * features/s390x-tevx-linux64.c: Regenerate.
588 * features/s390x-vx-linux64.c: Regenerate.
589 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
590 from allocate_target_description.
591 * target-descriptions.c (allocate_target_description): Update
592 return type.
593 (print_c_tdesc::visit_pre): Release unique_ptr returned from
594 allocate_target_description.
595
485c47e5
TT
5962020-10-07 Tom Tromey <tromey@adacore.com>
597
598 * unittests/search-memory-selftests.c: New file.
599 * Makefile.in (SELFTESTS_SRCS): Add
600 unittests/search-memory-selftests.c.
601
3a135a91
TT
6022020-10-07 Tom Tromey <tromey@adacore.com>
603
604 PR gdb/16930:
605 * findcmd.c (_initialize_mem_search): Mention that the range is
606 inclusive.
607
4a72de73
TT
6082020-10-07 Tom Tromey <tromey@adacore.com>
609
610 * target.h (simple_search_memory): Don't declare.
611 * target.c (simple_search_memory): Move to gdbsupport.
612 (default_search_memory): Update.
613 * remote.c (remote_target::search_memory): Update.
614
a038ffd8
SM
6152020-10-07 Simon Marchi <simon.marchi@efficios.com>
616
617 * Makefile.in (COMPILE): Add CXXFLAGS.
618 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
619 (check-headers): Add CXXFLAGS.
620
cc463201
AK
6212020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
622
623 * arc-linux-tdep.h: New file.
624 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
625 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
626 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
627 arc_linux_gregset, arc_linux_v2_regset,
628 arc_linux_iterate_over_regset_sections,
629 arc_linux_core_read_description): Implement.
630 (arc_linux_init_osabi): Set iterate_over_regset_sections.
631 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
632 (arc_gdbarch_features_create): Add.
633 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
634
e4bd363f
SV
6352020-10-07 Shahab Vahedi <shahab@synopsys.com>
636
637 * arch/arc.h: Rename "arc_gdbarch_features" to
638 "arc_arch_features".
639 * arc-tdep.h: Likewise.
640 * arc-tdep.c: Likewise.
641
b68bef99
TBA
6422020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
643
644 * infcmd.c (attach_command): Remove the redundant call to
645 `clear_proceed_status`.
646
4641551a
KR
6472020-10-07 Kamil Rytarowski <n54@gmx.com>
648
649 * nat/netbsd-nat.c (write_memory, read_memory): Update.
650
91e5e8db
KR
6512020-10-07 Kamil Rytarowski <n54@gmx.com>
652
653 * nat/netbsd-nat.c (write_memory, read_memory): Add.
654 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
655 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
656
64c03bdb
SM
6572020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
660 (_initialize_break_catch_sig): Don't allocate array.
661
31a8f60f
AB
6622020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * symtab.c (find_pc_line): Return unmapped addresses when the
665 requested address is also unmapped.
666
9e6dbd8b
SM
6672020-10-05 Simon Marchi <simon.marchi@efficios.com>
668
669 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
670 tui/tui-out.h.
671
a1d217e8
SM
6722020-10-05 Simon Marchi <simon.marchi@efficios.com>
673
674 * amd64-windows-tdep.c (amd64_windows_return_value): Use
675 type::is_vector instead of TYPE_VECTOR.
676
7d144117
SM
6772020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * auto-load.c (auto_load_objfile_script_1): Don't use
680 debugfile_holder as temporary variable when stripping drive
681 letter.
682
cd096ec8
HD
6832020-10-05 Hannes Domani <ssbssa@yahoo.de>
684
685 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
686 Add TYPE_CODE_COMPLEX.
687 (amd64_windows_return_value): Fix types returned via XMM0.
688
b58e7f72
AH
6892020-10-05 Alan Hayward <alan.hayward@arm.com>
690
691 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
692 AArch64/ARM maintainers.
693
8d378f27
SM
6942020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
695
696 * NEWS: Mention set/show debug event-loop.
697
d5519913
TT
6982020-10-02 Tom Tromey <tromey@adacore.com>
699
700 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
701 REG_EXTENDED.
702
18b67edc
SM
7032020-10-02 Simon Marchi <simon.marchi@efficios.com>
704
705 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
706 * procfs.c (procfs_inferior_created): Remove.
707 (_initialize_procfs): Don't register procfs_inferior_created.
708
6b01403b
SM
7092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * async-event.c (invoke_async_signal_handlers): Add debug
712 print.
713 (check_async_event_handlers): Likewise.
714 * event-top.c (show_debug_event_loop): New function.
715 (_initialize_event_top): Register "set debug event-loop"
716 setting.
717
ba988419
SM
7182020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
721 * debug.h: Remove.
722 * infrun.c: Include gdbsupport/common-debug.h.
723 * linux-nat.c: Likewise.
724
db20ebdf
SM
7252020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
726
727 * async-event.h (create_async_signal_handler): Add name
728 parameter.
729 (create_async_event_handler): Likewise.
730 * async-event.c (struct async_signal_handler) <name>: New field.
731 (struct async_event_handler) <name>: New field.
732 (create_async_signal_handler): Assign name.
733 (create_async_event_handler): Assign name.
734 * event-top.c (async_init_signals): Pass name when creating
735 handler.
736 * infrun.c (_initialize_infrun): Likewise.
737 * record-btrace.c (record_btrace_push_target): Likewise.
738 * record-full.c (record_full_open): Likewise.
739 * remote-notif.c (remote_notif_state_allocate): Likewise.
740 * remote.c (remote_target::open_1): Likewise.
741 * tui/tui-win.c (tui_initialize_win): Likewise.
742
2554f6f5
SM
7432020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * async-event.c (initialize_async_signal_handlers): Pass name to
746 add_file_handler
747 * event-top.c (ui_register_input_event_handler): Likewise.
748 * linux-nat.c (linux_nat_target::async): Likewise.
749 * run-on-main-thread.c (_initialize_run_on_main_thread):
750 Likewise
751 * ser-base.c (reschedule): Likewise.
752 (ser_base_async): Likewise.
753 * tui/tui-io.c: Likewise.
754 * top.h (struct ui) <num>: New field.
755 * top.c (highest_ui_num): New variable.
756 (ui::ui): Initialize num.
757
a7aba266
SM
7582020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * observable.h <inferior_created>: Remove parameters. Update all
761 listeners.
762 * inferior.h (post_create_inferior): Remove target parameter.
763 Update all callers.
764
048fde1e 7652020-10-02 Nitika Achra <Nitika.Achra@amd.com>
766
767 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
768 and DW_MACRO_undef_strx.
769 (dwarf_decode_macros): Likewise
770 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
771 which is the value of DW_AT_str_offsets_base.
772 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
773 str_offsets_base.
774
064280be
KR
7752020-10-01 Kamil Rytarowski <n54@gmx.com>
776
777 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
778
6ff33035
KR
7792020-10-01 Kamil Rytarowski <n54@gmx.com>
780
781 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
782 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
783
1eb6eb79
KR
7842020-10-01 Kamil Rytarowski <n54@gmx.com>
785
786 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
787
95eb9e54
TV
7882020-09-30 Tom de Vries <tdevries@suse.de>
789
790 PR symtab/26683
791 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
792
cae21f8e
TT
7932020-09-30 Tom Tromey <tromey@adacore.com>
794
795 * dwarf2/read.c (handle_variant): Use constant_value.
796
529908cb
TT
7972020-09-29 Tom Tromey <tom@tromey.com>
798
799 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
800 (read_file_scope, dwarf2_get_pc_bounds)
801 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
802 (read_structure_type, handle_struct_member_die)
803 (read_enumeration_type, read_array_type, read_set_type)
804 (read_tag_pointer_type, read_tag_reference_type)
805 (read_subroutine_type, read_base_type, read_subrange_type)
806 (read_full_die_1, partial_die_info::read)
807 (partial_die_info::read, by, new_symbol)
808 (dwarf2_const_value_data, dwarf2_const_value_attr)
809 (dump_die_shallow, dwarf2_fetch_constant_bytes)
810 (prepare_one_comp_unit): Update.
811 * dwarf2/attribute.h (DW_UNSND): Remove.
812
c45bc3f8
TT
8132020-09-29 Tom Tromey <tom@tromey.com>
814
815 * dwarf2/read.c (read_func_scope, prototyped_function_p)
816 (read_subroutine_type, partial_die_info::read)
817 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
818 (dwarf2_add_member_fn): Update.
819 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
820 * dwarf2/attribute.c (attribute::as_boolean): New method.
821
23dca5c3
TT
8222020-09-29 Tom Tromey <tom@tromey.com>
823
824 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
825 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
826 method.
827 * dwarf2/attribute.c (attribute::as_virtuality): New method.
828
52c14d11
TT
8292020-09-29 Tom Tromey <tom@tromey.com>
830
831 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
832 the attribute's form.
833
e8e5c158
TT
8342020-09-29 Tom Tromey <tom@tromey.com>
835
836 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
837 (dwarf2_add_member_fn): Update.
838 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
839 * dwarf2/attribute.c (attribute::defaulted): New method, from
840 is_valid_DW_AT_defaulted.
841
d4df075e
TT
8422020-09-29 Tom Tromey <tom@tromey.com>
843
844 * dwarf2/read.c (dw2_get_file_names_reader)
845 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
846 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
847 (dwarf2_symbol_mark_computed): Use as_unsigned.
848 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
849 method.
850 <form_is_section_offset>: Update comment.
851
bf23a268
TT
8522020-09-29 Tom Tromey <tom@tromey.com>
853
854 * dwarf2/read.c (dwarf2_access_attribute): Rename from
855 dwarf2_default_access_attribute. Look up attribute.
856 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
857 Update.
858
7a5f294d
TT
8592020-09-29 Tom Tromey <tom@tromey.com>
860
861 * dwarf2/read.c (skip_one_die): Update.
862 (read_full_die_1): Change how reprocessing is done.
863 (partial_die_info::read): Update.
864 (read_attribute_value): Remove need_reprocess parameter.
865 (read_attribute): Likewise.
866 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
867 New method.
868
36d378cf
TT
8692020-09-29 Tom Tromey <tom@tromey.com>
870
871 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
872 (dwarf2_const_value_attr, dump_die_shallow)
873 (dwarf2_fetch_constant_bytes): Update.
874 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
875 comment.
876 <set_address>: New method.
877 (DW_ADDR): Remove.
878 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
879 (attribute::as_string, attribute::as_address): Add assert.
880
fe56917a
TT
8812020-09-29 Tom Tromey <tom@tromey.com>
882
883 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
884 (read_attribute_reprocess, read_attribute_value): Update.
885 (read_attribute): Clear requires_reprocessing.
886 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
887 form_requires_reprocessing>: New methods.
888 <string_init>: Clear requires_reprocessing.
889 <set_unsigned_reprocess>: New method.
890 <name>: Shrink by one bit.
891 <requires_reprocessing>: New member.
892 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
893 method.
894
414ad644
TT
8952020-09-29 Tom Tromey <tom@tromey.com>
896
897 * dwarf2/read.c (read_attribute_value): Update.
898 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
899 set_unsigned>: New methods.
900 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
901
1bc397c5
TT
9022020-09-29 Tom Tromey <tom@tromey.com>
903
904 * dwarf2/read.c (get_alignment, read_array_order)
905 (read_attribute_value, dwarf2_const_value_attr)
906 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
907 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
908 New methods.
909 (DW_SND): Remove.
910
630ed6b9
TT
9112020-09-29 Tom Tromey <tom@tromey.com>
912
913 * dwarf2/read.c (read_attribute_value, lookup_die_type)
914 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
915 Update.
916 * dwarf2/attribute.h (struct attribute) <as_signature,
917 set_signature>: New methods.
918 (DW_SIGNATURE): Remove.
919
9d2246fc
TT
9202020-09-29 Tom Tromey <tom@tromey.com>
921
922 * dwarf2/read.c (read_call_site_scope)
923 (handle_data_member_location, dwarf2_add_member_fn)
924 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
925 (partial_die_info::read, read_attribute_value)
926 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
927 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
928 (dwarf2_symbol_mark_computed): Update.
929 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
930 methods.
931 (DW_BLOCK): Remove.
932 * dwarf2/attribute.c (attribute::form_is_block): Add
933 DW_FORM_data16.
934
c6481205
TT
9352020-09-29 Tom Tromey <tom@tromey.com>
936
937 * dwarf2/read.c (read_cutu_die_from_dwo)
938 (read_attribute_reprocess, read_attribute_value, read_attribute)
939 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
940 (dwarf2_fetch_constant_bytes): Update.
941 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
942 <set_string_noncanonical, set_string_canonical>: New methods.
943 <string_is_canonical>: Update comment.
944 <canonical_string_p>: Add assert.
945 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
946 * dwarf2/attribute.c (attribute::form_is_string): New method.
947 (attribute::string): Use it.
948
3b64bf15
TT
9492020-09-29 Tom Tromey <tom@tromey.com>
950
951 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
952 (dump_die_shallow): Use canonical_string_p.
953 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
954 method.
955
2c830f54
TT
9562020-09-29 Tom Tromey <tom@tromey.com>
957
958 * dwarf2/read.c (partial_die_info::read)
959 (dwarf2_const_value_attr, anonymous_struct_prefix, )
960 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
961 attribute::as_string.
962
6c412691
TT
9632020-09-29 Tom Tromey <tom@tromey.com>
964
965 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
966 DW_ADDR.
967 (attribute::string): Don't use DW_STRING.
968 (attribute::get_ref_die_offset): Don't use DW_UNSND.
969 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
970
95f982e5
TT
9712020-09-29 Tom Tromey <tom@tromey.com>
972
973 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
974 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
975 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
976 * dwarf2/attribute.h (struct attribute): Rename methods.
977 * dwarf2/attribute.c (attribute::as_address): Rename from
978 value_as_address.
979 (attribute::as_string): Rename from value_as_string.
980
f800b00e
TT
9812020-09-29 Tom Tromey <tom@tromey.com>
982
983 * dwarf2/read.c (partial_die_info::read) <case
984 DW_AT_linkage_name>: Use value_as_string.
985 (dwarf2_string_attr): Use value_as_string.
986 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
987 method.
988 * dwarf2/attribute.c (attribute::value_as_string): New method.
989
de38d64a
PA
9902020-09-29 Pedro Alves <pedro@palves.net>
991
992 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
993 defined before using '#pragma GCC diagnostic' instead of checking
994 __clang__.
995
9aed480c
TT
9962020-09-28 Tom Tromey <tom@tromey.com>
997
998 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
999 (handle_signal_stop): Update.
1000 * procfs.c (procfs_target::insert_watchpoint): Update.
1001 * target.h (target_have_steppable_watchpoint): Now a function.
1002
8a3ecb79
TT
10032020-09-28 Tom Tromey <tom@tromey.com>
1004
1005 * infrun.c (set_schedlock_func): Update.
1006 * target.h (target_can_lock_scheduler): Now a function.
1007
55f6301a
TT
10082020-09-28 Tom Tromey <tom@tromey.com>
1009
1010 * inferior.h (class inferior) <has_execution>: Update.
1011 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1012 * valops.c (find_function_in_inferior)
1013 (value_allocate_space_in_inferior): Update.
1014 * top.c (kill_or_detach): Update.
1015 * target.c (target_preopen, set_target_permissions): Update.
1016 (target_has_execution_current): Remove.
1017 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1018 Update.
1019 * solib.c (update_solib_list, reload_shared_libraries): Update.
1020 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1021 * solib-dsbt.c (enable_break): Update.
1022 * score-tdep.c (score7_fetch_inst): Update.
1023 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1024 Update.
1025 * remote.c (remote_target::start_remote)
1026 (remote_target::remote_check_symbols, remote_target::open_1)
1027 (remote_target::remote_detach_1, remote_target::verify_memory)
1028 (remote_target::xfer_partial, remote_target::read_description)
1029 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1030 * record-full.c (record_full_open_1): Update.
1031 * record-btrace.c (record_btrace_target_open): Update.
1032 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1033 (value_nsstring): Update.
1034 * linux-thread-db.c (add_thread_db_info)
1035 (thread_db_find_new_threads_silently, check_thread_db_callback)
1036 (try_thread_db_load_1, record_thread): Update.
1037 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1038 Update.
1039 * linux-fork.c (checkpoint_command): Update.
1040 * infrun.c (set_non_stop, set_observer_mode)
1041 (check_multi_target_resumption, for_each_just_stopped_thread)
1042 (maybe_remove_breakpoints, normal_stop)
1043 (class infcall_suspend_state): Update.
1044 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1045 (info_program_command, attach_command): Update.
1046 * infcall.c (call_function_by_hand_dummy): Update.
1047 * inf-loop.c (inferior_event_handler): Update.
1048 * gcore.c (gcore_command, derive_heap_segment): Update.
1049 * exec.c (exec_file_command): Update.
1050 * eval.c (evaluate_subexp): Update.
1051 * compile/compile.c (compile_to_object): Update.
1052 * cli/cli-dump.c (restore_command): Update.
1053 * breakpoint.c (update_watchpoint)
1054 (update_inserted_breakpoint_locations)
1055 (insert_breakpoint_locations, get_bpstat_thread): Update.
1056 * target.h (target_has_execution): Remove macro.
1057 (target_has_execution_current): Don't declare.
1058 (target_has_execution): Rename from target_has_execution_1. Add
1059 argument default.
1060
05374cfd
TT
10612020-09-28 Tom Tromey <tom@tromey.com>
1062
1063 * mi/mi-main.c (exec_reverse_continue)
1064 (mi_cmd_list_target_features): Update.
1065 * infrun.c (set_exec_direction_func): Update.
1066 * target.c (default_execution_direction): Update.
1067 * reverse.c (exec_reverse_once): Update.
1068 * target.h (target_can_execute_reverse): Now a function.
1069
9dccd06e
TT
10702020-09-28 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui-regs.c (tui_get_register)
1073 (tui_data_window::show_registers): Update.
1074 * thread.c (scoped_restore_current_thread::restore)
1075 (scoped_restore_current_thread::scoped_restore_current_thread):
1076 Update.
1077 * regcache-dump.c (regcache_print): Update.
1078 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1079 Update.
1080 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1081 * mep-tdep.c (current_me_module, current_options): Update.
1082 * linux-thread-db.c (thread_db_load): Update.
1083 * infcmd.c (registers_info, info_vector_command)
1084 (info_float_command): Update.
1085 * ia64-tdep.c (ia64_frame_prev_register)
1086 (ia64_sigtramp_frame_prev_register): Update.
1087 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1088 * gcore.c (derive_stack_segment): Update.
1089 * frame.c (get_current_frame, has_stack_frames): Update.
1090 * findvar.c (language_defn::read_var_value): Update.
1091 * arm-tdep.c (arm_pc_is_thumb): Update.
1092 * target.c (target_has_registers): Rename from
1093 target_has_registers_1.
1094 * target.h (target_has_registers): Remove macro.
1095 (target_has_registers): Rename from target_has_registers_1.
1096
841de120
TT
10972020-09-28 Tom Tromey <tom@tromey.com>
1098
1099 * windows-tdep.c (tlb_make_value): Update.
1100 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1101 * thread.c (scoped_restore_current_thread::restore)
1102 (scoped_restore_current_thread::scoped_restore_current_thread)
1103 (thread_command): Update.
1104 * stack.c (backtrace_command_1, frame_apply_level_command)
1105 (frame_apply_all_command, frame_apply_command): Update.
1106 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1107 Update.
1108 * gcore.c (derive_stack_segment): Update.
1109 * frame.c (get_current_frame, has_stack_frames): Update.
1110 * auxv.c (info_auxv_command): Update.
1111 * ada-tasks.c (ada_build_task_list): Update.
1112 * target.c (target_has_stack): Rename from target_has_stack_1.
1113 * target.h (target_has_stack): Remove macro.
1114 (target_has_stack): Rename from target_has_stack_1.
1115
a739972c
TT
11162020-09-28 Tom Tromey <tom@tromey.com>
1117
1118 * target.c (target_has_memory): Rename from target_has_memory_1.
1119 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1120 * thread.c (scoped_restore_current_thread::restore)
1121 (scoped_restore_current_thread::scoped_restore_current_thread):
1122 Update.
1123 * frame.c (get_current_frame, has_stack_frames): Update.
1124 * target.h (target_has_memory): Remove macro.
1125 (target_has_memory): Rename from target_has_memory_1.
1126
5b8a4776
TT
11272020-09-28 Tom Tromey <tom@tromey.com>
1128
1129 * target.c (target_has_all_memory_1): Remove.
1130 * target.h (target_has_all_memory): Remove define.
1131 (target_has_all_memory_1): Don't declare.
1132
bd356ec6
SM
11332020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * ser-base.c: Adjust comments formatting.
1136
2c72d5e5
TT
11372020-09-27 Tom Tromey <tom@tromey.com>
1138
1139 PR tui/25342:
1140 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1141
35a98237
TT
11422020-09-27 Tom Tromey <tom@tromey.com>
1143
1144 PR tui/25342:
1145 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1146
9e820dec
TT
11472020-09-27 Tom Tromey <tom@tromey.com>
1148
1149 * unittests/tui-selftests.c: Update.
1150 * tui/tui-winsource.h (struct tui_source_window_base)
1151 <extra_margin, show_line_number, refresh_pad>: New methods.
1152 <m_max_length, m_pad>: New members.
1153 (tui_copy_source_line): Update.
1154 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1155 first_col, line_width, ndigits parameters. Add length.
1156 (tui_source_window_base::show_source_line): Write to pad. Line
1157 number now 0-based.
1158 (tui_source_window_base::refresh_pad): New method.
1159 (tui_source_window_base::show_source_content): Write to pad. Call
1160 refresh_pad.
1161 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1162 not refill.
1163 (tui_source_window_base::update_exec_info): Call
1164 show_line_number.
1165 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1166 method.
1167 <m_digits>: New member.
1168 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1169 and m_max_length.
1170 (tui_source_window::show_line_number): New method.
1171 * tui/tui-io.h (tui_puts): Fix comment.
1172 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1173 m_max_length.
1174
c15c15c8
TT
11752020-09-27 Tom Tromey <tom@tromey.com>
1176
1177 * tui/tui-winsource.c
1178 (tui_source_window_base::set_is_exec_point_at): Don't call
1179 show_source_line.
1180
149830c1
TT
11812020-09-27 Tom Tromey <tom@tromey.com>
1182
1183 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1184 method.
1185 <erase>: Update.
1186 <cursor_x, cursor_y>: Remove.
1187 <m_inner_window>: New member.
1188 (tui_py_window::rerender): Create inner window.
1189 (tui_py_window::output): Write to inner window.
1190
8f9929bb
GR
11912020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1192
1193 PR python/26586
1194 * cli/cli-script.c (execute_control_commands): don't set
1195 instream to nullptr here as this breaks the from_tty argument
1196 to gdb.execute in Python.
1197 (execute_user_command): set instream to nullptr here instead.
1198
956bdb59
SM
11992020-09-25 Simon Marchi <simon.marchi@efficios.com>
1200
1201 * infrun.h (infrun_debug_printf): Fix formatting.
1202 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1203
3b93626b
SJ
12042020-09-25 Saagar Jha <saagar@saagarjha.com>
1205
1206 * compile/compile-object-load.h (struct munmap_list): Add
1207 explicitly-defined move constructor.
1208
b551a89f
TT
12092020-09-24 Tom Tromey <tromey@adacore.com>
1210
1211 PR tui/26638:
1212 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1213 method.
1214 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1215 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1216 (tui_prev_win): Rewrite.
1217
99bb393f
HD
12182020-09-23 Hannes Domani <ssbssa@yahoo.de>
1219
1220 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1221 in WOW64 processes as SIGINT.
1222 * nat/windows-nat.h: Make wow64_process a shared variable.
1223 * windows-nat.c: Remove static wow64_process variable.
1224
20a5fcbd
TT
12252020-09-23 Tom Tromey <tom@tromey.com>
1226
1227 PR symtab/25470:
1228 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1229 offset and bit size.
1230 * printcmd.c (print_scalar_formatted): Handle zero-length
1231 integer.
1232 (print_scalar_formatted): Use bit_size_differs_p.
1233 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1234 constant.
1235 (union type_specific): <int_stuff>: New member.
1236 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1237 methods.
1238 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1239 TYPE_SPECIFIC_FIELD.
1240 (recursive_dump_type, copy_type_recursive): Update.
1241 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1242 DW_AT_data_bit_offset.
1243
bac51ab7
TT
12442020-09-23 Tom Tromey <tom@tromey.com>
1245
1246 * utils.h (class gdb_argv): Add move operators.
1247 <append>: New methods.
1248 * compile/compile.c (build_argc_argv): Remove.
1249 (compile_args_argc): Remove.
1250 (compile_args_argv): Change type.
1251 (set_compile_args): Simplify.
1252 (append_args): Remove.
1253 (filter_args): Remove argcp parameter.
1254 (get_args): Return gdb_argv. Simplify.
1255 (compile_to_object): Update.
1256
92677124
TT
12572020-09-23 Tom Tromey <tom@tromey.com>
1258
1259 * compile/compile-object-run.c (do_module_cleanup)
1260 <~do_module_cleanup> :Remove.
1261 (do_module_cleanup): Update.
1262 * compile/compile-object-load.h (struct munmap_list): Add move
1263 assignment operator.
1264 <source_file>: Now a std::string.
1265 <munmap_list>: Rename. No longer a pointer.
1266 * compile/compile-object-load.c (struct setup_sections_data): Add
1267 constructor.
1268 <setup_one_section>: Declare.
1269 <munmap_list>: Move earlier.
1270 <m_bfd>: New member.
1271 <m_last_size, m_last_section_first, m_last_prot,
1272 m_last_max_alignment>: Rename, add initializers where needed.
1273 (setup_sections_data::setup_one_section): Rename from
1274 setup_sections. Update.
1275 (compile_object_load): Update. Don't use bfd_map_over_sections.
1276
e616f60a
TT
12772020-09-23 Tom Tromey <tom@tromey.com>
1278
1279 * compile/compile-object-run.c (struct do_module_cleanup): Add
1280 parameters to constructor. Update destructor.
1281 <source_file, scope, scope_data, out_value_type, out_value_addr,
1282 munmap_list_head, objfile_name_string>: Remove.
1283 <module>: New member.
1284 (do_module_cleanup): Update.
1285 (compile_object_run): Update.
1286
e947a848
TT
12872020-09-23 Tom Tromey <tom@tromey.com>
1288
1289 * compile/compile.c (eval_compile_command): Update.
1290 * compile/compile-object-run.h (compile_object_run): Take a
1291 compile_module_up.
1292 * compile/compile-object-run.c (compile_object_run): Take a
1293 compile_module_up.
1294 * compile/compile-object-load.h (struct compile_module): Add
1295 constructor, destructor.
1296 (compile_module_up): New typedef.
1297 (compile_object_load): Return compile_object_up.
1298 * compile/compile-object-load.c (compile_object_load): Return
1299 compile_module_up.
1300
0dbf6ee6
TT
13012020-09-23 Tom Tromey <tom@tromey.com>
1302
1303 * compile/compile-object-run.c (struct do_module_cleanup): Add
1304 constructor, destructor.
1305 <objfile_name_string>: Don't use struct hack.
1306 (do_module_cleanup): Use delete.
1307 (compile_object_run): Use new.
1308
ebe824f5
TT
13092020-09-23 Tom Tromey <tom@tromey.com>
1310
1311 * compile/compile-cplus-types.c
1312 (compile_cplus_convert_struct_or_union): Use std::vector.
1313 (compile_cplus_convert_func): Likewise.
1314 * compile/compile-c-types.c (convert_func): Use std::vector.
1315
5dd918d9
TT
13162020-09-21 Tom Tromey <tromey@adacore.com>
1317
1318 * sparc-tdep.c (sparc32_skip_prologue): Use
1319 skip_prologue_using_sal.
1320
5486c517
TT
13212020-09-19 Tom Tromey <tom@tromey.com>
1322
1323 * symfile.c (add_section_size_callback): Remove.
1324 (load_one_section): Rename from load_section_callback. Change
1325 parameters.
1326 (generic_load): Use foreach.
1327
8a6bb1d1
TT
13282020-09-19 Tom Tromey <tom@tromey.com>
1329
1330 * exec.c (add_to_section_table): Remove.
1331 (build_section_table): Use foreach.
1332
08f93a1a
TT
13332020-09-19 Tom Tromey <tom@tromey.com>
1334
1335 * elfread.c (elf_locate_sections): Change parameters.
1336 (elf_symfile_read): Use foreach.
1337
03cd72b8
TT
13382020-09-19 Tom Tromey <tom@tromey.com>
1339
1340 * cli/cli-dump.c (struct callback_data): Remove.
1341 (restore_one_section): Rename from restore_section_callback.
1342 Change parameters.
1343 (restore_binary_file): Change parameters.
1344 (restore_command): Use foreach.
1345
f4f2b85f
TT
13462020-09-19 Tom Tromey <tom@tromey.com>
1347
1348 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1349 (gcore_copy_callback): Likewise.
1350 (gcore_memory_sections): Use foreach.
1351
b35c1d1c
TT
13522020-09-19 Tom Tromey <tom@tromey.com>
1353
1354 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1355 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1356 parameters.
1357 (generic_elf_osabi_sniffer): Use foreach.
1358 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1359 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1360
5bb6e9dd
TT
13612020-09-19 Tom Tromey <tom@tromey.com>
1362
1363 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1364 (dwarf2_get_dwz_file): Use foreach.
1365 (dwarf2_locate_dwo_sections): Change parameters.
1366 (open_and_init_dwo_file): Use foreach.
1367 (dwarf2_locate_common_dwp_sections): Change parameters.
1368 (open_and_init_dwp_file): Use foreach.
1369
ad7277da
TT
13702020-09-19 Tom Tromey <tom@tromey.com>
1371
1372 * symfile.h: (find_lowest_section): Don't declare.
1373 * symfile.c (find_lowest_section): Now static. Change
1374 parameters.
1375 (struct place_section_arg): Remove.
1376 (place_section): Change parameters.
1377 (addr_info_make_relative): Use foreach.
1378 (symfile_dummy_outputs): Remove.
1379 (default_symfile_relocate): Use foreach.
1380
cb814f2e
TT
13812020-09-19 Tom Tromey <tom@tromey.com>
1382
1383 * objfiles.c (add_to_objfile_sections): Rename from
1384 add_to_objfile_sections_full.
1385 (add_to_objfile_sections): Remove.
1386 (build_objfile_section_table): Use foreach.
1387
3cabfd26
TT
13882020-09-19 Tom Tromey <tom@tromey.com>
1389
1390 * stap-probe.c (get_stap_base_address_1): Remove.
1391 (get_stap_base_address): Use foreach.
1392
1ce51eb5
TT
13932020-09-19 Tom Tromey <tom@tromey.com>
1394
1395 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1396 parameters.
1397 (gdb_bfd_close_or_warn): Use foreach.
1398
a190fabb
TT
13992020-09-19 Tom Tromey <tom@tromey.com>
1400
1401 * corelow.c (add_to_thread_list): Change parameters.
1402 (core_target_open): Use foreach.
1403
cafb0d81
TT
14042020-09-19 Tom Tromey <tom@tromey.com>
1405
1406 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1407 existing function.
1408
c8d5abea
AB
14092020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1410
1411 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1412 for arrays.
1413
6d816919
AB
14142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * eval.c: Remove 'f-lang.h' include.
1417 (value_f90_subarray): Moved to f-lang.c.
1418 (eval_call): Renamed to...
1419 (evaluate_subexp_do_call): ...this, is no longer static, header
1420 comment moved into header file.
1421 (evaluate_funcall): Update call to eval_call.
1422 (skip_undetermined_arglist): Moved to f-lang.c.
1423 (fortran_value_subarray): Likewise.
1424 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1425 moved to evaluate_subexp_f.
1426 (calc_f77_array_dims): Moved to f-lang.c
1427 * expprint.c (print_subexp_funcall): New function.
1428 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1429 moved to print_subexp_f, OP_FUNCALL uses new function.
1430 (dump_subexp_body_funcall): New function.
1431 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1432 moved to dump_subexp_f, OP_FUNCALL uses new function.
1433 * expression.h (evaluate_subexp_do_call): Declare.
1434 * f-lang.c (value_f90_subarray): Moved from eval.c.
1435 (skip_undetermined_arglist): Likewise.
1436 (calc_f77_array_dims): Likewise.
1437 (fortran_value_subarray): Likewise.
1438 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1439 (operator_length_f): Likewise.
1440 (print_subexp_f): Likewise.
1441 (dump_subexp_body_f): Likewise.
1442 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1443 declaration of this operation to here.
1444 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1445 support moved to operator_length_f.
1446 * parser-defs.h (dump_subexp_body_funcall): Declare.
1447 (print_subexp_funcall): Declare.
1448 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1449 fortran-operator.def.
1450
8c37706a
AB
14512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * eval.c (fortran_value_subarray): New function, content is taken
1454 from...
1455 (evaluate_subexp_standard): ...here, in two places. Now arrays
1456 and strings both call the new function.
1457 (calc_f77_array_dims): Add header comment, handle strings.
1458
14f9473c
VC
14592020-09-18 Victor Collod <vcollod@nvidia.com>
1460
1461 PR gdb/26635
1462 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1463 (i386_analyze_prologue): Call i386_skip_endbr.
1464
b60cea74
TT
14652020-09-18 Tom Tromey <tromey@adacore.com>
1466
1467 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1468 (windows_nat_target::wait): Update.
1469 * target/wait.h (enum target_wait_flag): New. Use
1470 DEF_ENUM_FLAGS_TYPE.
1471 * target/target.h (target_wait): Change type of options.
1472 * target.h (target_options_to_string, default_target_wait):
1473 Update.
1474 (struct target_ops) <wait>: Change type of options.
1475 * target.c (target_wait, default_target_wait, do_option): Change
1476 type of "options".
1477 (target_options_to_string): Likewise.
1478 * target-delegates.c: Rebuild.
1479 * target-debug.h (target_debug_print_target_wait_flags): Rename
1480 from target_debug_print_options.
1481 * sol-thread.c (class sol_thread_target) <wait>: Update.
1482 (sol_thread_target::wait): Update.
1483 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1484 (rs6000_nat_target::wait): Update.
1485 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1486 Update.
1487 (remote_target::wait_ns, remote_target::wait_as): Change type of
1488 "options".
1489 (remote_target::wait): Update.
1490 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1491 (gdbsim_target::wait): Update.
1492 * record-full.c (class record_full_base_target) <wait>: Update.
1493 (record_full_wait_1): Change type of "options".
1494 (record_full_base_target::wait): Update.
1495 * record-btrace.c (class record_btrace_target) <wait>: Update.
1496 (record_btrace_target::wait): Update.
1497 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1498 Update.
1499 (ravenscar_thread_target::wait): Update.
1500 * procfs.c (class procfs_target) <wait>: Update.
1501 (procfs_target::wait): Update.
1502 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1503 * obsd-nat.c (obsd_nat_target::wait): Update.
1504 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1505 (nto_procfs_target::wait): Update.
1506 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1507 * nbsd-nat.c (nbsd_wait): Change type of "options".
1508 (nbsd_nat_target::wait): Update.
1509 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1510 (thread_db_target::wait): Update.
1511 * linux-nat.h (class linux_nat_target) <wait>: Update.
1512 * linux-nat.c (linux_nat_target::wait): Update.
1513 (linux_nat_wait_1): Update.
1514 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1515 "options".
1516 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1517 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1518 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1519 (go32_nat_target::wait): Update.
1520 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1521 * gnu-nat.c (gnu_nat_target::wait): Update.
1522 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1523 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1524 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1525 * darwin-nat.c (darwin_nat_target::wait): Update.
1526 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1527 (bsd_uthread_target::wait): Update.
1528 * aix-thread.c (class aix_thread_target) <wait>: Update.
1529 (aix_thread_target::wait): Update.
1530
0295dde6
AB
15312020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1532
1533 * compile/compile-object-run.c (create_copied_type_recursive): New
1534 function.
1535 (compile_object_run): Use new function.
1536
d3483b43
JT
15372020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1538
1539 * NEWS: Mention x86_64 Cygwin core file support.
1540
e7d612ad
JT
15412020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1542
1543 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1544 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1545
aff9d387
JT
15462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1547
62a5151b
JT
1548 * windows-tdep.h: Add prototypes.
1549 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1550 (i386_windows_core_pid_to_str): Move and rename ...
1551 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1552 (windows_core_pid_to_str): ... and here.
1553 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1554
15552020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1556 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1557 (amd64_windows_init_abi_common): ... and register.
1558
7d155da3
JT
15592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1560
1561 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1562 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1563
e8ef12b9
PA
15642020-09-18 Pedro Alves <pedro@palves.net>
1565
1566 PR gdb/26631
1567 * thread.c (thread_find_command): Switch inferior before calling
1568 target methods.
1569
c1e1314d
TT
15702020-09-17 Tom Tromey <tromey@adacore.com>
1571
1572 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1573 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1574 (tdesc_arch_data_up): New typedef.
1575 (tdesc_use_registers, tdesc_data_alloc): Update.
1576 (tdesc_data_cleanup): Don't declare.
1577 * target-descriptions.c (tdesc_data_alloc): Return a
1578 tdesc_arch_data_up.
1579 (tdesc_arch_data_deleter::operator()): Rename from
1580 tdesc_data_cleanup. Change argument type.
1581 (tdesc_use_registers): Change early_data to an rvalue reference.
1582 (tdesc_use_registers): Don't use delete.
1583 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1584 * s390-tdep.c (s390_gdbarch_init): Update.
1585 * rx-tdep.c (rx_gdbarch_init): Update.
1586 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1587 * riscv-tdep.c (riscv_gdbarch_init): Update.
1588 * or1k-tdep.c (or1k_gdbarch_init): Update.
1589 * nios2-tdep.c (nios2_gdbarch_init): Update.
1590 * nds32-tdep.c (nds32_gdbarch_init): Update.
1591 * mips-tdep.c (mips_gdbarch_init): Update.
1592 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1593 * m68k-tdep.c (m68k_gdbarch_init): Update.
1594 * i386-tdep.c (i386_gdbarch_init): Update.
1595 * arm-tdep.c (arm_gdbarch_init): Update.
1596 * arc-tdep.c (arc_tdesc_init): Update.
1597 (arc_gdbarch_init): Update.
1598 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1599
0363df3d
HD
16002020-09-17 Hannes Domani <ssbssa@yahoo.de>
1601
1602 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1603 for WOW64 processes.
1604
280a9412
TT
16052020-09-17 Tom Tromey <tom@tromey.com>
1606
1607 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1608
6108fd18
TT
16092020-09-17 Tom Tromey <tom@tromey.com>
1610
1611 * value.c (preserve_values): Update.
1612 * python/py-type.c (save_objfile_types): Update.
1613 * guile/scm-type.c (save_objfile_types): Update.
1614 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1615 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1616 * compile/compile-object-run.c (compile_object_run): Update.
1617
fa9b1164
TT
16182020-09-17 Tom Tromey <tom@tromey.com>
1619
1620 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1621 Remove.
1622 <m_table>: Now htab_up.
1623 * typeprint.c (typedef_hash_table::recursively_update)
1624 (typedef_hash_table::add_template_parameters)
1625 (typedef_hash_table::typedef_hash_table): Update.
1626 (typedef_hash_table::~typedef_hash_table): Remove.
1627 (typedef_hash_table::typedef_hash_table)
1628 (typedef_hash_table::find_global_typedef)
1629 (typedef_hash_table::find_typedef): Update.
1630
eb53f105
TT
16312020-09-17 Tom Tromey <tom@tromey.com>
1632
1633 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1634
7a8a5d47
TT
16352020-09-17 Tom Tromey <tom@tromey.com>
1636
1637 * linespec.c (class decode_compound_collector)
1638 <~decode_compound_collector>: Remove.
1639 <m_unique_syms>: Now htab_up.
1640 (decode_compound_collector::operator ()): Update.
1641 (class symtab_collector) <~symtab_collector>: Remove.
1642 <m_symtab_table>: Now htab_up.
1643 (symtab_collector::operator ()): Update.
1644
99032cfc
TT
16452020-09-17 Tom Tromey <tom@tromey.com>
1646
1647 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1648 (filename_seen_cache::clear): Update.
1649 (~filename_seen_cache): Remove.
1650 (filename_seen_cache::seen): Update.
1651 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1652 htab_up.
1653 <~filename_seen_cache>: Remove.
1654 <traverse>: Update.
1655
32580f6d
TT
16562020-09-17 Tom Tromey <tom@tromey.com>
1657
1658 * completer.c (completion_tracker::discard_completions)
1659 (completion_tracker::~completion_tracker)
1660 (completion_tracker::maybe_add_completion)
1661 (completion_tracker::remove_completion)
1662 (completion_tracker::recompute_lowest_common_denominator)
1663 (completion_tracker::build_completion_result): Update.
1664 * completer.h (class completion_tracker) <have_completions>:
1665 Update.
1666 <m_entries_hash>: Now htab_up.
1667
c1fb9836
TT
16682020-09-17 Tom Tromey <tom@tromey.com>
1669
1670 * breakpoint.c (ambiguous_names_p): Use htab_up.
1671
88f07206
TT
16722020-09-17 Tom Tromey <tom@tromey.com>
1673
1674 * auto-load.c (struct auto_load_pspace_info)
1675 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1676 <loaded_script_files, loaded_script_texts>: Change type to
1677 htab_up.
1678 (~auto_load_pspace_info) Remove.
1679 (init_loaded_scripts_info, maybe_add_script_file)
1680 (maybe_add_script_text, auto_load_info_scripts): Update.
1681
9519b2ee
TT
16822020-09-17 Tom Tromey <tromey@adacore.com>
1683
1684 * c-exp.y (name_obstack): Now static.
1685
d2cd4113
CC
16862020-09-17 Chungyi Chi <demonic@csie.io>
1687
1688 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1689
b650a282
SM
16902020-09-16 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1693 (add_solib_catchpoint): Likewise.
1694 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1695 to bool.
1696 (add_solib_catchpoint): Change int parameter/variable to bool.
1697 (catch_load_or_unload): Likewise.
1698 (init_catchpoint): Likewise.
1699 (create_fork_vfork_event_catchpoint): Likewise.
1700 (catch_fork_command_1): Likewise.
1701 (catch_exec_command_1): Likewise.
1702
4d0bcfcf
SM
17032020-09-16 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1706 Change instance_flags to m_instance_flags.
1707
fe830662
TT
17082020-09-16 Tom Tromey <tromey@adacore.com>
1709
1710 PR gdb/26598:
1711 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1712
fe5ddfc3
JB
17132020-09-16 John Baldwin <jhb@FreeBSD.org>
1714
1715 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1716 PL_FLAG_EXEC.
1717 (fbsd_nat_target::insert_exec_catchpoint)
1718 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1719 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1720 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1721
e911c666
JB
17222020-09-16 John Baldwin <jhb@FreeBSD.org>
1723
1724 * configure.ac: Remove check for kinfo_getvmmap().
1725 * configure, config.in: Regenerate.
1726 * fbsd-nat.c (fbsd_read_mapping): Remove
1727 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1728 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1729 kinfo_get_vmmap() are always present.
1730
1f17d372
JB
17312020-09-16 John Baldwin <jhb@FreeBSD.org>
1732
1733 * fbsd-nat.c: Always include support for
1734 TARGET_OBJECT_SIGNAL_INFO.
1735
bcb1da7f
JB
17362020-09-16 John Baldwin <jhb@FreeBSD.org>
1737
1738 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1739 sysctl and remove procfs fallback.
1740
5515f729
JB
17412020-09-16 John Baldwin <jhb@FreeBSD.org>
1742
1743 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1744 * fbsd-nat.h: Likewise.
1745
da1df1db
TBA
17462020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1747
1748 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1749 argument.
1750
0e25e767
AB
17512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * ada-lang.c (ada_language_data): Delete.
1754 (ada_language): Remove references to ada_language_data.
1755 * c-lang.c (c_language_data): Delete.
1756 (c_language): Remove references to c_language_data.
1757 (cplus_language_data): Delete.
1758 (cplus_language): Remove references to cplus_language_data.
1759 (asm_language_data): Delete.
1760 (asm_language): Remove references to asm_language_data.
1761 (minimal_language_data): Delete.
1762 (minimal_language): Remove references to minimal_language_data.
1763 * d-lang.c (d_language_data): Delete.
1764 (d_language): Remove references to d_language_data.
1765 * f-lang.c (f_language_data): Delete.
1766 (f_language): Remove references to f_language_data.
1767 * go-lang.c (go_language_data): Delete.
1768 (go_language): Remove references to go_language_data.
1769 * language.c (unknown_language_data): Delete.
1770 (unknown_language): Remove references to unknown_language_data.
1771 (auto_language_data): Delete.
1772 (auto_language): Remove references to auto_language_data.
1773 * language.h (language_data): Delete struct.
1774 (language_defn): No longer inherit from language_data.
1775 * m2-lang.c (m2_language_data): Delete.
1776 (m2_language): Remove references to m2_language_data.
1777 * objc-lang.c (objc_language_data): Delete.
1778 (objc_language): Remove references to objc_language_data.
1779 * opencl-lang.c (opencl_language_data): Delete.
1780 (opencl_language): Remove references to opencl_language_data.
1781 * p-lang.c (pascal_language_data): Delete.
1782 (pascal_language): Remove references to pascal_language_data.
1783 * rust-lang.c (rust_language_data): Delete.
1784 (rust_language): Remove references to rust_language_data.
1785
b7c6e27d
AB
17862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1789 initializer.
1790 (ada_language::opcode_print_table): New member function.
1791 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1792 (c_language::opcode_print_table): New member function.
1793 (cplus_language_data): Remove la_op_print_tab initializer.
1794 (cplus_language::opcode_print_table): New member function.
1795 (asm_language_data): Remove la_op_print_tab initializer.
1796 (asm_language::opcode_print_table): New member function.
1797 (minimal_language_data): Remove la_op_print_tab initializer.
1798 (minimal_language::opcode_print_table): New member function.
1799 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1800 (d_language::opcode_print_table): New member function.
1801 * expprint.c (print_subexp_standard): Update call to
1802 opcode_print_table.
1803 (op_string): Likewise.
1804 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1805 (f_language::opcode_print_table): New member function.
1806 * go-lang.c (go_language_data): Remove la_op_print_tab
1807 initializer.
1808 (go_language::opcode_print_table): New member function.
1809 * language.c (unknown_language_data): Remove la_op_print_tab
1810 initializer.
1811 (unknown_language::opcode_print_table): New member function.
1812 (auto_language_data): Remove la_op_print_tab initializer.
1813 (auto_language::opcode_print_table): New member function.
1814 * language.h (language_data): Remove la_op_print_tab field.
1815 (language_defn::opcode_print_table): Declare new member function.
1816 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1817 initializer.
1818 (m2_language::opcode_print_table): New member function.
1819 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1820 initializer.
1821 (objc_language::opcode_print_table): New member function.
1822 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1823 initializer.
1824 (opencl_language::opcode_print_table): New member function.
1825 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1826 initializer.
1827 (pascal_language::opcode_print_table): New member function.
1828 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1829 initializer.
1830 (rust_language::opcode_print_table): New member function.
1831
5aba6ebe
AB
18322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1833
1834 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1835 (ada_language::expression_ops): New member function.
1836 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1837 (c_language::expression_ops): New member function.
1838 (cplus_language_data): Remove la_exp_desc initializer.
1839 (cplus_language::expression_ops): New member function.
1840 (asm_language_data): Remove la_exp_desc initializer.
1841 (asm_language::expression_ops): New member function.
1842 (minimal_language_data): Remove la_exp_desc initializer.
1843 (minimal_language::expression_ops): New member function.
1844 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1845 (d_language::expression_ops): New member function.
1846 * eval.c (evaluate_subexp): Update call to expression_ops.
1847 * expprint.c (print_subexp): Likewise.
1848 (op_name): Likewise.
1849 (dump_subexp_body): Likewise.
1850 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1851 (f_language::expression_ops): New member function.
1852 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1853 (go_language::expression_ops): New member function.
1854 * language.c (language_defn::expression_ops): New function.
1855 (unknown_language_data): Remove la_exp_desc initializer.
1856 (auto_language_data): Likewise.
1857 * language.h (language_data): Remove la_exp_desc field.
1858 (language_defn::expression_ops): Declare new member function.
1859 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1860 (m2_language::expression_ops): New member function.
1861 * objc-lang.c (objc_language_data): Remove la_exp_desc
1862 initializer.
1863 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1864 initializer.
1865 (opencl_language::expression_ops): New member function.
1866 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1867 * parse.c (operator_length): Update call to expression_ops.
1868 (exp_iterate): Likewise.
1869 * rust-lang.c (rust_language_data): Remove la_exp_desc
1870 initializer.
1871 (ruse_language::expression_ops): New member function.
1872
b63a3f3f
AB
18732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1874
1875 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1876 initializer.
1877 (ada_language::varobj_ops): New member function.
1878 * c-lang.c (c_language_data): Remove la_varobj_ops
1879 initializer.
1880 (cplus_language_data): Likewise.
1881 (cplus_language::varobj_ops): New member function.
1882 (asm_language_data): Remove la_varobj_ops initializer.
1883 (minimal_language_data): Likewise.
1884 * d-lang.c (d_language_data): Likewise.
1885 * f-lang.c (f_language_data): Likewise.
1886 * go-lang.c (go_language_data): Likewise.
1887 * language.c (language_defn::varobj_ops): New function.
1888 (unknown_language_data): Remove la_varobj_ops
1889 initializer.
1890 (auto_language_data): Likewise.
1891 * language.h (language_data): Remove la_varobj_ops field.
1892 (language_defn::varobj_ops): Declare new member function.
1893 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1894 * objc-lang.c (objc_language_data): Likewise.
1895 * opencl-lang.c (opencl_language_data): Likewise.
1896 * p-lang.c (pascal_language_data): Likewise.
1897 * rust-lang.c (rust_language_data): Likewise.
1898 * varobj.c (varobj_create): Update call to varobj_ops.
1899 * varobj.h (default_varobj_ops): Delete define.
1900
1ac14a04
AB
19012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1904 initializer.
1905 * c-lang.c (c_language_data): Likewise.
1906 (c_language::macro_expansion): New member function.
1907 (cplus_language_data): Likewise.
1908 (cplus_language::macro_expansion): New member function.
1909 (asm_language_data): Likewise.
1910 (asm_language::macro_expansion): New member function.
1911 (minimal_language_data): Likewise.
1912 (minimal_language::macro_expansion): New member function.
1913 * d-lang.c (d_language_data): Remove la_macro_expansion
1914 initializer.
1915 * f-lang.c (f_language_data): Likewise.
1916 * go-lang.c (go_language_data): Likewise.
1917 * language.c (unknown_language_data): Likewise.
1918 (auto_language_data): Likewise.
1919 * language.h (language_data): Remove la_macro_expansion field.
1920 (language_defn::macro_expansion): New member function.
1921 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1922 initializer.
1923 * objc-lang.c (objc_language_data): Likewise.
1924 (objc_language::macro_expansion): New member function.
1925 * opencl-lang.c (opencl_language_data): Likewise.
1926 (opencl_language::macro_expansion): New member function.
1927 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1928 initializer.
1929 * rust-lang.c (rust_language_data): Likewise.
1930 * symtab.c (default_collect_symbol_completion_matches_break_on):
1931 Update call to macro_expansion.
1932
3a3440fb
AB
19332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * ada-lang.c (ada_language_data): Remove la_array_ordering
1936 initializer.
1937 * c-lang.c (c_language_data): Likewise.
1938 (cplus_language_data): Likewise.
1939 (asm_language_data): Likewise.
1940 (minimal_language_data): Likewise.
1941 * d-lang.c (d_language_data): Likewise.
1942 * dwarf2/read.c (read_array_order): Update for call to
1943 array_ordering.
1944 * f-lang.c (f_language_data): Remove la_array_ordering
1945 initializer.
1946 (f_language::array_ordering): New member function.
1947 * go-lang.c (go_language_data): Remove la_array_ordering
1948 initializer.
1949 * language.c (unknown_language_data): Likewise.
1950 (auto_language_data): Likewise.
1951 * language.h (language_data): Delete la_array_ordering field.
1952 (language_defn::array_ordering): New member function.
1953 * m2-lang.c (m2_language_data): Remove la_array_ordering
1954 initializer.
1955 * objc-lang.c (objc_language_data): Likewise.
1956 * opencl-lang.c (opencl_language_data): Likewise.
1957 * p-lang.c (pascal_language_data): Likewise.
1958 * rust-lang.c (rust_language_data): Likewise.
1959
0d201fa4
AB
19602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1963 initializer.
1964 * c-lang.c (c_language_data): Likewise.
1965 (cplus_language_data): Likewise.
1966 (asm_language_data): Likewise.
1967 (minimal_language_data): Likewise.
1968 * d-lang.c (d_language_data): Likewise.
1969 * f-lang.c (f_language_data): Likewise.
1970 (f_language::case_sensitivity): New member function.
1971 * go-lang.c (go_language_data): Remove la_case_sensitivity
1972 initializer.
1973 * language.c (enum case_mode): Moved here from language.h.
1974 (case_mode): Make static.
1975 (show_case_command): Update for case_sensitivity being a method.
1976 (set_case_command): Likewise.
1977 (set_range_case): Likewise.
1978 (unknown_language_data): Remove la_case_sensitivity initializer.
1979 (auto_language_data): Likewise.
1980 * language.h (case_mode): Delete, move enum declaration to
1981 language.c.
1982 (language_data): Delete la_case_sensitivity field.
1983 (language_defn::case_sensitivity): New member function.
1984 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1985 initializer.
1986 * objc-lang.c (objc_language_data): Likewise.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_language_data): Likewise.
1989 * rust-lang.c (rust_language_data): Likewise.
1990
efdf6a73
AB
19912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * ada-lang.c (ada_language_data): Remove la_range_check
1994 initializer.
1995 * c-lang.c (c_language_data): Likewise.
1996 (cplus_language_data): Likewise.
1997 (asm_language_data): Likewise.
1998 (minimal_language_data): Likewise.
1999 * d-lang.c (d_language_data): Likewise.
2000 * f-lang.c (f_language_data): Likewise.
2001 (f_language::range_checking_on_by_default): New member function.
2002 * go-lang.c (go_language_data): Remove la_range_check initializer.
2003 * language.c (enum range_mode): Moved here from language.h.
2004 (range_mode): Made static.
2005 (show_range_command): Update to use
2006 range_checking_on_by_default.
2007 (set_range_command): Likewise.
2008 (set_range_case): Likewise.
2009 (unknown_language_data): Remove la_range_check initializer.
2010 (auto_language_data): Likewise.
2011 * language.h (range_mode): Delete. Enum definition moved to
2012 language.c.
2013 (language_data): Remove la_range_check field.
2014 (language_defn::range_checking_on_by_default): New member
2015 function.
2016 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2017 (m2_language::range_checking_on_by_default): New member function.
2018 * objc-lang.c (objc_language_data): Remove la_range_check
2019 initializer.
2020 * opencl-lang.c (opencl_language_data): Likewise.
2021 * p-lang.c (pascal_language_data): Likewise.
2022 (pascal_language::range_checking_on_by_default): New member
2023 function.
2024 * rust-lang.c (rust_language_data): Remove la_range_check
2025 initializer.
2026 (rust_language::range_checking_on_by_default): New member
2027 function.
2028
bf92aec5
AB
20292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 * dwarf2/read.c (dwarf2_physname): Remove special case for
2032 language_go.
2033 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2034 member function.
2035
d3355e4d
AB
20362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * ada-lang.c (ada_language_data): Remove
2039 la_store_sym_names_in_linkage_form_p initializer.
2040 (ada_language::store_sym_names_in_linkage_form_p): New member
2041 function.
2042 * c-lang.c (c_language_data): Remove
2043 la_store_sym_names_in_linkage_form_p initializer.
2044 (c_language::store_sym_names_in_linkage_form_p): New member
2045 function.
2046 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2047 initializer.
2048 (asm_language_data): Likewise.
2049 (asm_language::store_sym_names_in_linkage_form_p): New member
2050 function.
2051 (minimal_language_data): Remove
2052 la_store_sym_names_in_linkage_form_p initializer.
2053 (minimal_language::store_sym_names_in_linkage_form_p): New member
2054 function.
2055 * d-lang.c (d_language_data): Remove
2056 la_store_sym_names_in_linkage_form_p initializer.
2057 * dwarf2/read.c (dwarf2_physname): Update call to
2058 store_sym_names_in_linkage_form_p.
2059 * f-lang.c (f_language_data): Remove
2060 la_store_sym_names_in_linkage_form_p initializer.
2061 * go-lang.c (go_language_data): Remove
2062 la_store_sym_names_in_linkage_form_p initializer.
2063 * language.c (unknown_language_data): Remove
2064 la_store_sym_names_in_linkage_form_p initializer.
2065 (unknown_language::store_sym_names_in_linkage_form_p): New member
2066 function.
2067 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2068 initializer.
2069 (auto_language::store_sym_names_in_linkage_form_p): New member
2070 function.
2071 * language.h (language_data): Remove
2072 la_store_sym_names_in_linkage_form_p member variable.
2073 (language_defn::store_sym_names_in_linkage_form_p): New member
2074 function.
2075 * m2-lang.c (m2_language_data): Remove
2076 la_store_sym_names_in_linkage_form_p initializer.
2077 * objc-lang.c (objc_language_data): Likewise.
2078 * opencl-lang.c (opencl_language_data): Likewise.
2079 * p-lang.c (pascal_language_data): Likewise.
2080 * rust-lang.c (rust_language_data): Likewise.
2081
22c12a6c
AB
20822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * ada-lang.c (ada_language_data): Remove string_lower_bound
2085 initializer.
2086 * c-lang.c (c_language_data): Likewise.
2087 (cplus_language_data): Likewise.
2088 (asm_language_data): Likewise.
2089 (minimal_language_data): Likewise.
2090 * d-lang.c (d_language_data): Likewise.
2091 * f-lang.c (f_language_data): Likewise.
2092 * go-lang.c (go_language_data): Likewise.
2093 * language.c (unknown_language_data): Likewise.
2094 (auto_language_data): Likewise.
2095 * language.h (language_data): Remove string_lower_bound field.
2096 (language_defn::string_lower_bound): New member function.
2097 * m2-lang.c (m2_language_data): Remove string_lower_bound
2098 initializer.
2099 (m2_language::string_lower_bound): New member function.
2100 * objc-lang.c (objc_language_data): Remove string_lower_bound
2101 initializer.
2102 * opencl-lang.c (opencl_language_data): Likewise.
2103 * p-lang.c (pascal_language_data): Likewise.
2104 * rust-lang.c (rust_language_data): Likewise.
2105 * valops.c (value_cstring): Update call to string_lower_bound.
2106 (value_string): Likewise.
2107 * value.c (allocate_repeated_value): Likewise.
2108
1c236ddd
AB
21092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * valops.c (value_repeat): Fix incorrect argument name in comment.
2112
67bd3fd5
AB
21132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * ada-lang.c (ada_language_data): Remove c_style_arrays
2116 initializer.
2117 (ada_language::c_style_arrays_p): New member fuction.
2118 * c-lang.c (c_language_data): Remove c_style_arrays
2119 initializer.
2120 (cplus_language_data): Likewise.
2121 (asm_language_data): Likewise.
2122 (minimal_language_data): Likewise.
2123 * d-lang.c (d_language_data): Likewise.
2124 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2125 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2126 (f_language::c_style_arrays_p): New member function.
2127 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2128 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2129 * language.c (unknown_language_data): Remove c_style_arrays
2130 initializer.
2131 (auto_language_data): Likewise.
2132 * language.h (language_data): Remove c_style_arrays field.
2133 (language_defn::c_style_arrays_p): New member function.
2134 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2135 (m2_language::c_style_arrays_p): New member function.
2136 * objc-lang.c (objc_language_data): Remove c_style_arrays
2137 initializer.
2138 * opencl-lang.c (opencl_language_data): Likewise.
2139 * p-lang.c (pascal_language_data): Likewise.
2140 * rust-lang.c (rust_language_data): Likewise.
2141 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2142 and update local variable to a bool.
2143 * valops.c (value_cast): Update call to c_style_arrays_p.
2144 (value_array): Likewise.
2145 * value.c (coerce_array): Likewise.
2146
85967615
AB
21472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * ada-lang.c (ada_language_data): Remove la_language initializer.
2150 * c-lang.c (c_language_data): Likewise.
2151 (cplus_language_data): Likewise.
2152 (asm_language_data): Likewise.
2153 (minimal_language_data): Likewise.
2154 * d-lang.c (d_language_data): Likewise.
2155 * f-lang.c (f_language_data): Likewise.
2156 * go-lang.c (go_language_data): Likewise.
2157 * language.c (unknown_language_data): Likewise.
2158 (auto_language_data): Likewise.
2159 * language.h (language_data): Remove la_language field.
2160 (language_defn::language_defn): Initialise la_language field.
2161 (language_defn::la_language): New member variable.
2162 * m2-lang.c (m2_language_data): Remove la_language field.
2163 * objc-lang.c (objc_language_data): Likewise.
2164 * opencl-lang.c (opencl_language_data): Likewise.
2165 * p-lang.c (pascal_language_data): Likewise.
2166 * rust-lang.c (rust_language_data): Likewise.
2167
e171d6f1
AB
21682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * ada-lang.c (ada_extensions): Delete, moved into
2171 ada_language::filename_extensions.
2172 (ada_language_data): Remove la_filename_extensions initializer.
2173 (ada_language::filename_extensions): New member function.
2174 * c-lang.c (c_extensions): Delete, moved into
2175 c_language::filename_extensions.
2176 (c_language_data): Remove la_filename_extensions initializer.
2177 (c_language::filename_extensions): New member function.
2178 (cplus_extensions): Delete, moved into
2179 cplus_language::filename_extensions.
2180 (cplus_language_data): Remove la_filename_extensions initializer.
2181 (cplus_language::filename_extensions): New member function.
2182 (asm_extensions): Delete, moved into
2183 asm_language::filename_extensions.
2184 (asm_language_data): Remove la_filename_extensions initializer.
2185 (asm_language::filename_extensions): New member function.
2186 (minimal_language_data): Remove la_filename_extensions
2187 initializer.
2188 * d-lang.c (d_extensions): Delete, moved into
2189 d_language::filename_extensions.
2190 (d_language_data): Remove la_filename_extensions initializer.
2191 (d_language::filename_extensions): New member function.
2192 * f-lang.c (f_extensions): Delete, moved into
2193 f_language::filename_extensions.
2194 (f_language_data): Remove la_filename_extensions initializer.
2195 (f_language::filename_extensions): New member function.
2196 * go-lang.c (go_language_data): Remove la_filename_extensions
2197 initializer.
2198 * language.c (add_set_language_command): Update now that
2199 filename_extensions returns a vector.
2200 (unknown_language_data): Remove la_filename_extensions
2201 initializer.
2202 (auto_language_data): Likewise.
2203 * language.h (language_data): Remove la_filename_extensions field.
2204 (language_defn::filename_extensions): New member function.
2205 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2206 initializer.
2207 * objc-lang.c (objc_extensions): Delete, moved into
2208 objc_language::filename_extensions.
2209 (objc_language_data): Remove la_filename_extensions initializer.
2210 (objc_language::filename_extensions): New member function.
2211 * opencl-lang.c (opencl_language_data): Remove
2212 la_filename_extensions initializer.
2213 * p-lang.c (pascal_extensions): Delete, moved into
2214 pascal_language::filename_extensions.
2215 (pascal_language_data): Remove la_filename_extensions initializer.
2216 (pascal_language::filename_extensions): New member function.
2217 * rust-lang.c (rust_extensions): Delete, moved into
2218 rust_language::filename_extensions.
2219 (rust_language_data): Remove la_filename_extensions initializer.
2220 (rust_language::filename_extensions): New member function.
2221 * symfile.c (add_filename_language): Add new assert.
2222
6f7664a9
AB
22232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * ada-lang.c (ada_language_data): Remove la_name and
2226 la_natural_name initializers.
2227 (ada_language::name): New member function.
2228 (ada_language::natural_name): New member function.
2229 * c-lang.c (c_language_data): Remove la_name and
2230 la_natural_name initializers.
2231 (c_language::name): New member function.
2232 (c_language::natural_name): New member function.
2233 (cplus_language_data): Remove la_name and
2234 la_natural_name initializers.
2235 (cplus_language::name): New member function.
2236 (cplus_language::natural_name): New member function.
2237 (asm_language_data): Remove la_name and
2238 la_natural_name initializers.
2239 (asm_language::name): New member function.
2240 (asm_language::natural_name): New member function.
2241 (minimal_language_data): Remove la_name and
2242 la_natural_name initializers.
2243 (minimal_language::name): New member function.
2244 (minimal_language::natural_name): New member function.
2245 * compile/compile.c (compile_to_object): Update call to
2246 lanugage_defn::name.
2247 * d-lang.c (d_language_data): Remove la_name and
2248 la_natural_name initializers.
2249 (d_language::name): New member function.
2250 (d_language::natural_name): New member function.
2251 * expprint.c (print_subexp_standard): Update call to
2252 language_defn::name.
2253 (dump_raw_expression): Likewise
2254 (dump_prefix_expression): Likewise.
2255 * f-lang.c (f_language_data): Remove la_name and
2256 la_natural_name initializers.
2257 (f_language::name): New member function.
2258 (f_language::natural_name): New member function.
2259 * go-lang.c (go_language_data): Remove la_name and
2260 la_natural_name initializers.
2261 (go_language::name): New member function.
2262 (go_language::natural_name): New member function.
2263 * language.c (show_language_command): Update call to
2264 language_defn::name.
2265 (set_language_command): Likewise.
2266 (language_enum): Likewise.
2267 (language_str): Likewise.
2268 (add_set_language_command): Likewise, use
2269 language_defn::natural_name in the doc string.
2270 (unknown_language_data): Remove la_name and
2271 la_natural_name initializers.
2272 (unknown_language::name): New member function.
2273 (unknown_language::natural_name): New member function.
2274 (auto_language_data): Remove la_name and
2275 la_natural_name initializers.
2276 (auto_language::name): New member function.
2277 (auto_language::natural_name): New member function.
2278 (language_lookup_primitive_type_as_symbol): Update call to
2279 language_defn::name.
2280 * language.h (language_data): Remove la_name and la_natural_name
2281 member variables.
2282 (language_defn::name): New member function.
2283 (language_defn::natural_name): New member function.
2284 * m2-lang.c (m2_language_data): Remove la_name and
2285 la_natural_name initializers.
2286 (m2_language::name): New member function.
2287 (m2_language::natural_name): New member function.
2288 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2289 language_defn::natural_name.
2290 * objc-lang.c (objc_language_data): Remove la_name and
2291 la_natural_name initializers.
2292 (objc_language::name): New member function.
2293 (objc_language::natural_name): New member function.
2294 * opencl-lang.c (opencl_language_data): Remove la_name and
2295 la_natural_name initializers.
2296 (opencl_language::name): New member function.
2297 (opencl_language::natural_name): New member function.
2298 * p-lang.c (pascal_language_data): Remove la_name and
2299 la_natural_name initializers.
2300 (pascal_language::name): New member function.
2301 (pascal_language::natural_name): New member function.
2302 * rust-lang.c (rust_language_data): Remove la_name and
2303 la_natural_name initializers.
2304 (rust_language::name): New member function.
2305 (rust_language::natural_name): New member function.
2306 * symtab.c (lookup_language_this): Update call to
2307 language_defn::name.
2308
5bae7c4e
AB
23092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * ada-lang.c (ada_language_data): Remove la_name_of_this
2312 initializer.
2313 * ax-gdb.c (gen_expr): Update call to name_of_this.
2314 * c-exp.y (classify_name): Likewise.
2315 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2316 (cplus_language_data): Likewise.
2317 (cplus_language::name_of_this): New member function.
2318 (asm_language_data): Remove la_name_of_this initializer.
2319 (minimal_language_data): Likewise.
2320 * d-lang.c (d_language_data): Likewise.
2321 (d_language::name_of_this): New member function.
2322 * expprint.c (print_subexp_standard): Update call to name_of_this.
2323 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2324 * go-lang.c (go_language_data): Likewise.
2325 * language.c (unknown_language_data): Likewise.
2326 (unknown_language::name_of_this): New member function.
2327 (auto_language_data): Remove la_name_of_this initializer.
2328 (auto_language::name_of_this): New member function.
2329 * language.h (language_data): Delete la_name_of_this member
2330 variable.
2331 (language_defn::name_of_this): New member function.
2332 * m2-lang.c (m2_language_data): Remove la_name_of_this
2333 initializer.
2334 * objc-lang.c (objc_language_data): Likewise.
2335 (objc_language::name_of_this): New member function.
2336 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2337 initializer.
2338 * p-lang.c (pascal_language_data): Likewise.
2339 (pascal_language::name_of_this): New member function.
2340 * rust-lang.c (rust_language_data): Remove la_name_of_this
2341 initializer.
2342 * symtab.c (lookup_language_this): Update call to name_of_this.
2343 (lookup_symbol_aux): Likewise.
2344 * valops.c (value_of_this): Likewise.
2345
22e3f3ed
AB
23462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_language_data): Remove
2349 la_struct_too_deep_ellipsis initializer.
2350 (ada_language::struct_too_deep_ellipsis): New member function.
2351 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2352 initializer.
2353 (cplus_language_data): Likewise.
2354 (asm_language_data): Likewise.
2355 (minimal_language_data): Likewise.
2356 * cp-valprint.c (cp_print_value): Update call to
2357 struct_too_deep_ellipsis.
2358 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2359 initializer.
2360 * f-lang.c (f_language_data): Likewise.
2361 (f_language::struct_too_deep_ellipsis): New member function.
2362 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2363 initializer.
2364 * language.c (unknown_language_data): Likewise.
2365 (auto_language_data): Likewise.
2366 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2367 member variable.
2368 (language_defn::struct_too_deep_ellipsis): New member function.
2369 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2370 initializer.Q
2371 * objc-lang.c (objc_language_data): Likewise.
2372 * opencl-lang.c (opencl_language_data): Likewise.
2373 * p-lang.c (pascal_language_data): Likewise.
2374 * rust-lang.c (rust_language_data): Likewise.
2375 * valprint.c (val_print_check_max_depth): Update call to
2376 struct_too_deep_ellipsis.
2377
ed29e1c7
FW
23782020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2379
2380 * MAINTAINERS (Write After Approval): Add myself.
2381
12d8f940
TT
23822020-09-15 Tom Tromey <tom@tromey.com>
2383
2384 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2385 Remove.
2386
6b5a7bc7
TT
23872020-09-15 Tom Tromey <tom@tromey.com>
2388
2389 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2390 and TYPE_CODE_METHODPTR cases.
2391 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2392 (c_value_print_inner): Update.
2393 * valprint.c (generic_value_print_memberptr): New function, from
2394 c_value_print_memberptr.
2395 (generic_value_print): Use it. Call cplus_print_method_ptr.
2396
47f0e2ff
TT
23972020-09-15 Tom Tromey <tromey@adacore.com>
2398
2399 * python/python-internal.h (PyInt_FromLong): Remove define.
2400 * python/py-value.c (convert_value_from_python): Use
2401 gdb_py_object_from_longest.
2402 * python/py-type.c (typy_get_code): Use
2403 gdb_py_object_from_longest.
2404 * python/py-symtab.c (salpy_get_line): Use
2405 gdb_py_object_from_longest.
2406 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2407 gdb_py_object_from_longest.
2408 * python/py-record.c (recpy_gap_reason_code): Use
2409 gdb_py_object_from_longest.
2410 * python/py-record-btrace.c (recpy_bt_insn_size)
2411 (recpy_bt_func_level, btpy_list_count): Use
2412 gdb_py_object_from_longest.
2413 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2414 gdb_py_object_from_longest. Fix error handling.
2415 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2416 gdb_py_object_from_longest.
2417 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2418 gdb_py_object_from_longest.
2419 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2420 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2421 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2422
512116ce
TT
24232020-09-15 Tom Tromey <tromey@adacore.com>
2424
2425 * python/python.c (gdbpy_parameter_value): Use
2426 gdb_py_object_from_ulongest.
2427
4ab1029c
TT
24282020-09-15 Tom Tromey <tromey@adacore.com>
2429
2430 * python/py-infevents.c (create_register_changed_event_object):
2431 Use gdb_py_object_from_longest.
2432 * python/py-exitedevent.c (create_exited_event_object): Use
2433 gdb_py_object_from_longest.
2434
062534d4
TT
24352020-09-15 Tom Tromey <tromey@adacore.com>
2436
2437 * python/python.c (gdbpy_parameter_value): Use
2438 gdb_py_object_from_longest.
2439 * python/py-type.c (convert_field, typy_range): Use
2440 gdb_py_object_from_longest.
2441 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2442 gdb_py_object_from_longest.
2443 * python/py-lazy-string.c (stpy_get_length): Use
2444 gdb_py_object_from_longest.
2445 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2446 gdb_py_object_from_longest.
2447 * python/py-infevents.c (create_memory_changed_event_object): Use
2448 gdb_py_object_from_longest.
2449 * python/py-inferior.c (infpy_get_num): Use
2450 gdb_py_object_from_longest.
2451 (infpy_get_pid): Likewise.
2452
d1cab987
TT
24532020-09-15 Tom Tromey <tromey@adacore.com>
2454
2455 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2456 defines.
2457 * python/py-value.c (valpy_long): Use
2458 gdb_py_object_from_ulongest.
2459 * python/py-symtab.c (salpy_get_pc): Use
2460 gdb_py_object_from_ulongest.
2461 (salpy_get_last): Likewise.
2462 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2463 gdb_py_object_from_ulongest.
2464 * python/py-lazy-string.c (stpy_get_address): Use
2465 gdb_py_object_from_ulongest.
2466 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2467 * python/py-arch.c (archpy_disassemble): Use
2468 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2469 error handling.
2470
4bde49dc
TT
24712020-09-15 Tom Tromey <tromey@adacore.com>
2472
2473 * python/python-internal.h (gdb_py_long_from_longest): Remove
2474 defines.
2475 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2476 * python/py-type.c (convert_field, typy_get_sizeof): Use
2477 gdb_py_object_from_longest.
2478 * python/py-record-btrace.c (btpy_list_index): Use
2479 gdb_py_object_from_longest.
2480
37431074
TT
24812020-09-15 Tom Tromey <tromey@adacore.com>
2482
2483 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2484 * python/py-record.c (recpy_element_number): Use
2485 gdb_py_object_from_longest.
2486 (recpy_gap_number): Likewise.
2487
cbe25684
TT
24882020-09-15 Tom Tromey <tromey@adacore.com>
2489
2490 * top.c (ui::ui): Update.
2491 (highest_ui_num): Remove.
2492 * top.h (struct ui) <num>: Remove.
2493
db92ac45
TT
24942020-09-15 Tom Tromey <tromey@adacore.com>
2495
2496 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2497 * ui-style.c (ansi_regex_text): Now array.
2498 * rust-exp.y (number_regex_text): Now array.
2499 * linespec.c (linespec_quote_characters): Now array.
2500 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2501 Now arrays.
2502
d2b31b67
SM
25032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2504
2505 * debuginfod-support.c (debuginfod_client_deleter): New.
2506 (debuginfod_client_up): New.
2507 (debuginfod_init): Return debuginfod_client_up.
2508 (debuginfod_source_query): Adjust.
2509 (debuginfod_debuginfo_query): Adjust.
2510
3246bd8e
SM
25112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2512
2513 * debuginfod-support.c (debuginfod_source_query): Use
2514 make_unique_xstrdup.
2515
10242f36
SM
25162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2519 with `type::instance_flags`.
2520
e1044e6a
MM
25212020-09-14 Michael Mullin <masmullin@gmail.com>
2522
2523 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2524 Remove baton parameter.
2525
04902b09
PA
25262020-09-14 Pedro Alves <pedro@palves.net>
2527
2528 * Makefile.in (SELFTESTS_SRCS): Add
2529 unittests/enum-flags-selftests.c.
2530 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2531 btrace_function_flags instead of enum btrace_function_flag.
2532 * compile/compile-c-types.c (convert_qualified): Use
2533 enum_flags::raw.
2534 * compile/compile-cplus-symbols.c (convert_one_symbol)
2535 (convert_symbol_bmsym):
2536 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2537 (compile_cplus_convert_struct_or_union_methods)
2538 (compile_cplus_instance::convert_qualified_base):
2539 * go-exp.y (parse_string_or_char): Add cast to int.
2540 * unittests/enum-flags-selftests.c: New file.
2541 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2542 type to btrace_thread_flags from btrace_thread_flag.
2543 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2544 local's type to btrace_thread_flags from btrace_thread_flag. Add
2545 cast in DEBUG call.
2546
69896a2c
PA
25472020-09-14 Pedro Alves <pedro@palves.net>
2548
2549 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2550 * gdbtypes.c (address_space_name_to_int): Rename to ...
2551 (address_space_name_to_type_instance_flags): ... this.
2552 (address_space_int_to_name): Rename to ...
2553 (address_space_type_instance_flags_to_name): ... this.
2554 * gdbtypes.h (address_space_name_to_int): Rename to ...
2555 (address_space_name_to_type_instance_flags): ... this.
2556 (address_space_int_to_name): Rename to ...
2557 (address_space_type_instance_flags_to_name): ... this.
2558 * type-stack.c (type_stack::insert): Adjust to rename.
2559 * type-stack.h (type_stack::insert): Likewise.
2560
314ad88d
PA
25612020-09-14 Pedro Alves <pedro@palves.net>
2562 Andrew Burgess <andrew.burgess@embecosm.com>
2563
2564 * avr-tdep.c (avr_address_class_type_flags): Return
2565 type_instance_flags.
2566 (avr_address_class_type_flags_to_name): Take a
2567 type_instance_flags.
2568 (avr_address_class_name_to_type_flags): Return bool and take a
2569 type_instance_flags.
2570 * d-lang.c (build_d_types): Use type::set_instance_flags.
2571 * ft32-tdep.c (ft32_address_class_type_flags): Return
2572 type_instance_flags.
2573 (ft32_address_class_type_flags_to_name): Take a
2574 type_instance_flags.
2575 (ft32_address_class_name_to_type_flags): Return bool and take a
2576 type_instance_flags.
2577 (ft32_gdbarch_init): Use type::set_instance_flags.
2578 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2579 * gdbarch.h, gdbarch.c: Regenerate.
2580 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2581 (address_class_name_to_type_flags): Use type_instance_flags and
2582 bool.
2583 * gdbtypes.c (address_space_name_to_int)
2584 (address_space_int_to_name, make_qualified_type): Use
2585 type_instance_flags.
2586 (make_qualified_type): Use type_instance_flags and
2587 type::set_instance_flags.
2588 (make_type_with_address_space, make_cv_type, make_vector_type)
2589 (check_typedef): Use type_instance_flags.
2590 (recursive_dump_type): Cast type_instance_flags to unsigned for
2591 printing.
2592 (copy_type_recursive): Use type::set_instance_flags.
2593 (gdbtypes_post_init): Use type::set_instance_flags.
2594 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2595 <m_instance_flags>: ... this.
2596 <instance_flags, set_instance_flags>: New methods.
2597 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2598 (SET_TYPE_INSTANCE_FLAGS): New.
2599 (address_space_name_to_int, address_space_int_to_name)
2600 (make_type_with_address_space): Pass flags using
2601 type_instance_flags instead of int.
2602 * stabsread.c (cleanup_undefined_types_noname): Use
2603 type::set_instance_flags.
2604 * s390-tdep.c (s390_address_class_type_flags): Return
2605 type_instance_flags.
2606 (s390_address_class_type_flags_to_name): Take a
2607 type_instance_flags.
2608 (s390_address_class_name_to_type_flags): Return bool and take a
2609 type_instance_flags.
2610 * type-stack.c (type_stack::follow_types): Use
2611 type_instance_flags.
2612 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2613
27087b7f
TT
26142020-09-14 Tom Tromey <tromey@adacore.com>
2615
2616 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2617 * x86-tdep.c (x86_is_thunk_register_name)
2618 (x86_in_indirect_branch_thunk): Update.
2619 * sparc64-tdep.c (sparc64_fpu_register_names)
2620 (sparc64_cp0_register_names, sparc64_register_names)
2621 (sparc64_pseudo_register_names): Now const.
2622 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2623 cp0_registers_num>: Now const.
2624 * sparc-tdep.c (sparc_core_register_names)
2625 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2626 (sparc32_pseudo_register_names): Now const.
2627 (validate_tdesc_registers): Update.
2628 * rust-lang.c (rust_extensions): Now const.
2629 * p-lang.c (p_extensions): Now const.
2630 * objc-lang.c (objc_extensions): Now const.
2631 * nto-tdep.c (nto_thread_state_str): Now const.
2632 * moxie-tdep.c (moxie_register_names): Now const.
2633 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2634 Now const.
2635 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2636 (mips_linux_reg_names): Now const.
2637 (mips_gdbarch_init): Update.
2638 * microblaze-tdep.c (microblaze_register_names): Now const.
2639 * m68k-tdep.c (m68k_register_names): Now const.
2640 * m32r-tdep.c (m32r_register_names): Now const.
2641 * ia64-tdep.c (ia64_register_names): Now const.
2642 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2643 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2644 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2645 ymm_avx512_register_names, pkeys_register_names>: Now const.
2646 * i386-tdep.c (i386_register_names, i386_zmm_names)
2647 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2648 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2649 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2650 * f-lang.c (f_extensions): Now const.
2651 * d-lang.c (d_extensions): Now const.
2652 * csky-tdep.c (csky_register_names): Now const.
2653 * charset.c (default_charset_names, charset_enum): Now const.
2654 (_initialize_charset): Update.
2655 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2656 const.
2657 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2658 (bsd_uthread_solib_loaded): Update.
2659 (bsd_uthread_state): Now const.
2660 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2661 (amd64_ymm_avx512_names, amd64_ymmh_names)
2662 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2663 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2664 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2665 (amd64_dword_names): Now const.
2666 * agent.c (can_use_agent_enum): Now const.
2667 * ada-tasks.c (task_states, long_task_states): Now const.
2668 * ada-lang.c (known_runtime_file_name_patterns)
2669 (known_auxiliary_function_name_patterns, attribute_names)
2670 (standard_exc, ada_extensions): Now const.
2671
89806626
SM
26722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2673
2674 * bcache.h (struct bcache) <bcache>: Remove constructor.
2675 <m_hash_function, m_compare_function>: Remove.
2676 <~bcache>: Make virtual.
2677 <compare>: Remove static method, introduce virtual method.
2678 <default_hash>: Remove.
2679 <hash>: New virtual method.
2680 * bcache.c (bcache::expand_hash_table): Update.
2681 (bcache::insert): Update.
2682 (bcache::hash): New.
2683 (bcache::compare): Update comment and parameter names.
2684 * gdbtypes.c (types_deeply_equal): Update.
2685 * psymtab.h (struct psymbol_bcache): New struct.
2686 (class psymtab_storage) <psymtab_storage>: Make default.
2687 <psymbol_cache>: Change type to psymbol_bcache.
2688 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2689 (psymbol_hash): Change to...
2690 (psymbol_bcache::hash): ... this.
2691 (psymbol_compare): Change to...
2692 (psymbol_bcache::compare): ... this.
2693
677c92fe
SM
26942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2695
2696 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2697 checking for initial lwp.
2698
3eba3a01
TT
26992020-09-14 Tom Tromey <tromey@adacore.com>
2700
2701 * m68k-tdep.c (m68k_extract_return_value): Use
2702 pointer_result_regnum.
2703 (m68k_store_return_value): Likewise.
2704 (m68k_reg_struct_return_p): Handle vectors and arrays.
2705 (m68k_return_value): Handle arrays.
2706 (m68k_svr4_return_value): Fix single-element aggregate handling.
2707 Handle long double. Adjust for embedded ABI.
2708 (m68k_svr4_init_abi): Set pointer_result_regnum.
2709 (m68k_embedded_init_abi): New function.
2710 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2711 (m68k_osabi_sniffer): New function.
2712 (_initialize_m68k_tdep): Register osabi sniffer.
2713 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2714 member.
2715
33f4dd48
SM
27162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2719 with gdb::unique_xmalloc_ptr<char>.
2720
8400a90d
SM
27212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2722
2723 * xml-support.h (xml_fetch_another): Change type to be a
2724 function_view.
2725 (xml_process_xincludes): Remove baton parameter.
2726 (xml_fetch_content_from_file): Change baton parameter to
2727 dirname.
2728 * xml-support.c (struct xinclude_parsing_data)
2729 <xinclude_parsing_data>: Remove baton parameter.
2730 <fetcher_baton>: Remove.
2731 (xinclude_start_include): Adjust.
2732 (xml_process_xincludes): Adjust.
2733 (xml_fetch_content_from_file): Replace baton parameter with
2734 dirname.
2735 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2736 (xml_init_syscalls_info): Use a lambda.
2737 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2738 (file_read_description_xml): Use a lambda.
2739 (fetch_available_features_from_target): Change baton parameter
2740 to target_ops.
2741 (target_read_description_xml): Use a lambda.
2742 (target_fetch_description_xml): Use a lambda.
2743 (string_read_description_xml): Update.
2744
04f5bab2
SM
27452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2746
2747 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2748 uses with type::endianity_is_not_default.
2749
db558e34
SM
27502020-09-14 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * gdbtypes.h (struct type) <endianity_is_not_default,
2753 set_endianity_is_not_default>: New methods.
2754 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2755 type::endianity_is_not_default, change all write call sites to
2756 use type::set_endianity_is_not_default.
2757
22c4c60c
SM
27582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2761 uses with type::is_fixed_instance.
2762
9cdd0d12
SM
27632020-09-14 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * gdbtypes.h (struct type) <is_fixed_instance,
2766 set_is_fixed_instance>: New methods.
2767 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2768 write call sites to use type::set_is_fixed_instance.
2769
0becda7a
SM
27702020-09-14 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2773 uses with type::is_gnu_ifunc.
2774
03cc7249
SM
27752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2778 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2779 use type::set_is_gnu_ifunc.
2780
3f46044c
SM
27812020-09-14 Simon Marchi <simon.marchi@efficios.com>
2782
2783 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2784 uses with type::stub_is_supported.
2785
9baccff6
SM
27862020-09-14 Simon Marchi <simon.marchi@efficios.com>
2787
2788 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2789 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2790 use type::set_stub_is_supported.
2791
bd63c870
SM
27922020-09-14 Simon Marchi <simon.marchi@efficios.com>
2793
2794 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2795 uses with type::is_vector.
2796
2062087b
SM
27972020-09-14 Simon Marchi <simon.marchi@efficios.com>
2798
2799 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2800 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2801 use type::set_is_vector.
2802
a409645d
SM
28032020-09-14 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2806 uses with type::has_varargs.
2807
1d6286ed
SM
28082020-09-14 Simon Marchi <simon.marchi@efficios.com>
2809
2810 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2811 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2812 use type::set_has_varargs.
2813
7f9f399b
SM
28142020-09-14 Simon Marchi <simon.marchi@efficios.com>
2815
2816 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2817 uses with type::is_prototyped.
2818
27e69b7a
SM
28192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2822 New methods.
2823 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2824 call sites to use type::set_is_prototyped.
2825
d2183968
SM
28262020-09-14 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2829 uses with type::target_is_stub.
2830
8f53807e
SM
28312020-09-14 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2834 New methods.
2835 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2836 sites to use type::set_target_is_stub.
2837
e46d3488
SM
28382020-09-14 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * gdbtypes.h (TYPE_STUB): Remove, replace all
2841 uses with type::is_stub.
2842
b4b73759
SM
28432020-09-14 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2846 (TYPE_STUB): Use type::is_stub, change all write call sites to
2847 use type::set_is_stub.
2848
20ce4123
SM
28492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2852 type::has_no_signedness.
2853
15152a54
SM
28542020-09-14 Simon Marchi <simon.marchi@efficios.com>
2855
2856 * gdbtypes.h (struct type) <has_no_signedness,
2857 set_has_no_signedness>: New methods.
2858 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2859 call sites to use type::set_has_no_signedness.
2860
c6d940a9
SM
28612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2862
2863 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2864 type::is_unsigned.
2865
653223d3
SM
28662020-09-14 Simon Marchi <simon.marchi@efficios.com>
2867
2868 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2869 methods.
2870 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2871 sites to use type::set_is_unsigned.
2872
55ea94da 28732020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2874 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2875
e851246a
SM
2876 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2877 pointer and stack frame offset when unwinding.
55ea94da 2878
6791b117
PA
28792020-09-13 Pedro Alves <pedro@palves.net>
2880
2881 * NEWS: Document "-break-insert --qualified".
2882 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2883
77f2120b
PA
28842020-09-13 Pedro Alves <pedro@palves.net>
2885
2886 * linespec.c (classify_mtype, compare_msyms): Delete.
2887 (search_minsyms_for_name): Remove classification logic. Instead
2888 filter out trampoline symbols if we also found an external
2889 function of the same name.
2890
ed6a896c
JB
28912020-09-13 Joel Brobecker <brobecker@adacore.com>
2892
2893 * NEWS: Create a new section for the next release branch.
2894 Rename the section of the current branch, now that it has
2895 been cut.
2896
32aea73e
JB
28972020-09-13 Joel Brobecker <brobecker@adacore.com>
2898
2899 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2900 * version.in: Bump version to 11.0.50.DATE-git.
2901
8087c3fa
JB
29022020-09-12 Joel Brobecker <brobecker@adacore.com>
2903
2904 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2905
2a67f09d
FW
29062020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2907 Felix Willgerodt <Felix.Willgerodt@intel.com>
2908
2909 * gdbarch.sh: Added bfloat16 type.
2910 * gdbarch.c: Regenerated.
2911 * gdbarch.h: Regenerated.
2912 * gdbtypes.c (floatformats_bfloat16): New struct.
2913 (gdbtypes_post_init): Add builtin_bfloat16.
2914 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2915 (floatformats_bfloat16): New struct.
2916 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2917 (i386_ymm_type): Add field "v16_bfloat16"
2918 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2919 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2920 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2921 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2922 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2923 * features/i386/64bit-avx512.c: Regenerated.
2924 * features/i386/64bit-sse.xml: Add bfloat16 type.
2925 * features/i386/64bit-sse.c: Regenerated.
2926
1347d111
FW
29272020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2928
2929 * i386-tdep.c (i386_zmm_type): Fix field names.
2930 (i386_ymm_type): Fix field names.
2931
7a4e8e7d
TBA
29322020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2933
2934 * breakpoint.c: Fix typo in the help message of the
2935 "set breakpoint condition-evaluation" command.
2936
cf4ac4be
KR
29372020-09-10 Kamil Rytarowski <n54@gmx.com>
2938
2939 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2940 * (nbsd_nat_target::pid_to_exec_file)
2941 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2942 (nbsd_nat_target::post_startup_inferior)
2943 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2944 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2945 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2946 * (nbsd_thread_lister): Remove.
2947
f404573e
KR
29482020-09-10 Kamil Rytarowski <n54@gmx.com>
2949
2950 * fork-inferior.c (startup_inferior): Avoid double free.
2951
1ccb2c17
KR
29522020-09-10 Kamil Rytarowski <n54@gmx.com>
2953
2954 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2955 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2956
feedfcc7
KR
29572020-09-10 Kamil Rytarowski <n54@gmx.com>
2958
2959 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2960 * netbsd-nat.c: Include <sys/ptrace.h>.
2961 * (netbsd_nat::enable_proc_events): Add.
2962
c489f8c6
KR
29632020-09-10 Kamil Rytarowski <n54@gmx.com>
2964
2965 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2966 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2967 (netbsd_nat::for_each_thread): Add.
2968 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2969 "gdbsupport/common-debug.h".
2970 * (netbsd_nat::netbsd_thread_lister)
2971 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2972 (netbsd_nat::for_each_thread): Add.
2973
330662f6
KR
29742020-09-10 Kamil Rytarowski <n54@gmx.com>
2975
2976 * netbsd-nat.h: Include <unistd.h>.
2977 * (netbsd_nat::pid_to_exec_file): Add.
2978 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2979 * (netbsd_nat::pid_to_exec_file) Add.
2980
70b67307
KR
29812020-09-10 Kamil Rytarowski <n54@gmx.com>
2982
2983 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2984
99cf6da6
KR
29852020-09-10 Kamil Rytarowski <n54@gmx.com>
2986
2987 * netbsd-nat.h: New file.
2988 * netbsd-nat.c: Likewise.
2989
1b788fb6
TT
29902020-09-09 Tom Tromey <tromey@adacore.com>
2991
2992 * ada-lang.c (remove_extra_symbols): Do not increment when
2993 removing an element
2994
03b0a45f
TT
29952020-09-08 Tom Tromey <tromey@adacore.com>
2996
2997 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2998
3cae4447
TT
29992020-09-08 Tom Tromey <tromey@adacore.com>
3000
3001 PR win32/25302:
3002 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3003 (gdb_bfd_init_data): New function.
3004 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3005
7f08fd51
TBA
30062020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3007
3008 * infrun.c (fetch_inferior_event): Use
3009 `switch_to_target_no_thread` to switch the target.
3010
3e6ff933
TT
30112020-09-06 Tom Tromey <tom@tromey.com>
3012
3013 * symfile.h (dwarf2_free_objfile): Don't declare.
3014
e56798df
AKS
30152020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3016
3017 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3018 to match 16 byte real/complex type generated by Flang compiler.
3019
8f5c6526
TV
30202020-09-03 Tom de Vries <tdevries@suse.de>
3021
3022 PR breakpoint/26546
3023 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3024 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3025
c5065df0
SM
30262020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3027
3028 * maint.c (index_digits): New function.
3029 (struct maint_print_section_data): Remove.
3030 (print_bfd_section_info): Remove print_data parameter, add arg
3031 and index_digits.
3032 (print_objfile_section_info): Likewise.
3033 (print_bfd_section_info_maybe_relocated): Likewise (plus
3034 objfile).
3035 (maintenance_info_sections): Adjust calls.
3036
02c6f3f1
TT
30372020-09-02 Tom Tromey <tromey@adacore.com>
3038
3039 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3040 for null pointers.
3041 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3042
ef5e5b0b
SM
30432020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3044
3045 * bcache.h (struct bcache) <insert>: Change type of `added` to
3046 pointer to bool.
3047 * bcache.c (bcache::insert): Likewise.
3048 * gdbtypes.c (check_types_worklist): Adjust.
3049 * psymtab.c (add_psymbol_to_bcache): Adjust.
3050
973695d6
KB
30512020-08-31 Kevin Buettner <kevinb@redhat.com>
3052
3053 * corelow.c (unordered_set): Include.
3054 (class core_target): Add field 'm_core_unavailable_mappings'.
3055 (core_target::build_file_mappings): Print only one warning
3056 per inaccessible file. Add unavailable/broken mappings
3057 to m_core_unavailable_mappings.
3058 (core_target::xfer_partial): Call...
3059 (core_target::xfer_memory_via_mappings): New method.
3060
264fc0e2
SM
30612020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3064 type to bool.
3065
2de01bdb
SM
30662020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * dwarf2/read.c (struct field_info): Fix indentation.
3069
f3bd50f1
SM
30702020-08-31 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3073 ordering in comment.
3074 * frame.c (frame_id_eq): Fix indentation.
3075
22b9b4b0
SL
30762020-08-31 Scott Linder <scott@scottlinder.com>
3077 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3080 inline frame ids in outer frame.
3081
84154d16
SM
30822020-08-31 Simon Marchi <simon.marchi@efficios.com>
3083
3084 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3085 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3086 (outer_frame_id): Use FID_STACK_OUTER instead of
3087 FID_STACK_INVALID.
3088 (frame_id_p): Don't check for outer_frame_id.
3089
8efaf6b3
SM
30902020-08-31 Simon Marchi <simon.marchi@efficios.com>
3091
3092 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3093 regnum/frame in value. Call allocate_value_lazy.
3094 * frame.c (frame_unwind_register_value): Use
3095 val_print_not_saved.
3096
fe1fe7ea
SM
30972020-08-31 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3100
f7c7700d
PA
31012020-08-29 Pedro Alves <pedro@palves.net>
3102
3103 * progspace.c (print_program_space): Use all_inferiors. Switch to
3104 the inferior before calling target_pid_to_str.
3105
e0814aae
TT
31062020-08-28 Tom Tromey <tom@tromey.com>
3107
3108 * xcoffread.c (xcoff_end_psymtab): Update comment.
3109 * dbxread.c (dbx_end_psymtab): Update comment.
3110
626d2320
TV
31112020-08-28 Tom de Vries <tdevries@suse.de>
3112
3113 PR breakpoint/26544
3114 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3115 event_location.
3116 (create_breakpoint): Same.
3117 (base_breakpoint_decode_location): Same.
3118 (bkpt_create_sals_from_location): Same.
3119 (bkpt_decode_location): Same.
3120 (bkpt_probe_create_sals_from_location): Same.
3121 (bkpt_probe_decode_location): Same.
3122 (tracepoint_create_sals_from_location): Same.
3123 (tracepoint_decode_location): Same.
3124 (tracepoint_probe_decode_location): Same.
3125 (strace_marker_create_sals_from_location): Same.
3126 (strace_marker_decode_location): Same.
3127 (create_sals_from_location_default): Same.
3128 (decode_location_default): Same.
3129 * breakpoint.h (struct breakpoint_ops): Same.
3130 (create_breakpoint): Same.
3131 * linespec.h (decode_line_full): Same.
3132 * linespec.c (decode_line_full): Same. Throw error if
3133 result.size () == 0.
3134
df631783
PA
31352020-08-27 Pedro Alves <pedro@palves.net>
3136
3137 PR gdb/26524
3138 * breakpoint.c (until_break_fsm) <location_breakpoint,
3139 caller_breakpoint>: Delete fields.
3140 <breakpoints>: New field.
3141 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3142 two individual breakpoints.
3143 (until_break_fsm::should_stop): Loop over breakpoints in the
3144 breakpoint vector.
3145 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3146 vector.
3147 (until_break_command): Handle location expanding into multiple
3148 sals.
3149
b2b38aa4
PA
31502020-08-27 Pedro Alves <pedro@palves.net>
3151
3152 PR gdb/26523
3153 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3154 bp_until breakpoints user-specified locations. Update intro
3155 comment.
3156
b886559f
SM
31572020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3158
3159 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3160 gdb_bfd_sections): New.
3161 * maint.c (print_bfd_section_info): Change param type to
3162 maint_print_section_data.
3163 (print_objfile_section_info): Likewise.
3164 (print_bfd_section_info_maybe_relocated): Likewise.
3165 (maintenance_info_sections): Use gdb_bfd_sections.
3166
4c6e63bf
SV
31672020-08-25 Shahab Vahedi <shahab@synopsys.com>
3168
3169 * MAINTAINERS: Add ARC target and maintainer.
3170
8d7f0635
AK
31712020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3172
3173 * configure.tgt: ARC support for GNU/Linux.
3174 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3175 * arc-linux-tdep.c: New file.
3176 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3177 * arc-tdep.c (arc_write_pc): Use it.
3178
fdd8731b
SV
31792020-08-25 Shahab Vahedi <shahab@synopsys.com>
3180
3181 * arc-tdep.c (arc_check_for_hardware_loop): New.
3182 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3183
22459524
SV
31842020-08-25 Shahab Vahedi <shahab@synopsys.com>
3185
3186 * arc-tdep.h: Include "gdbarch.h".
3187
995d3a19
SV
31882020-08-25 Shahab Vahedi <shahab@synopsys.com>
3189
3190 * arch/arc.h
3191 (arc_gdbarch_features): New class to stir the selection of target XML.
3192 (arc_create_target_description): Use FEATURES to choose XML target.
3193 (arc_lookup_target_description): Use arc_create_target_description
3194 to create _new_ target descriptions or return the already created
3195 ones if the FEATURES is the same.
3196 * arch/arc.c: Implementation of prototypes described above.
3197 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3198 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3199 * arc-tdep.c (*_feature_name): Make feature names consistent.
3200 (arc_register_feature): A new struct to hold information about
3201 registers of a particular target/feature.
3202 (arc_check_tdesc_feature): Check if XML provides registers in
3203 compliance with ARC_REGISTER_FEATURE structs.
3204 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3205 (determine_*_reg_feature_set): Which feature name to look for.
3206 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3207 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3208 to expected ISA enums to be used in arc_gdbarch_features structs.
3209 * features/Makefile (FEATURE_XMLFILES): Add new files.
3210 * gdb/features/arc/v1-aux.c: New file.
3211 * gdb/features/arc/v1-aux.xml: Likewise.
3212 * gdb/features/arc/v1-core.c: Likewise.
3213 * gdb/features/arc/v1-core.xml: Likewise.
3214 * gdb/features/arc/v2-aux.c: Likewise.
3215 * gdb/features/arc/v2-aux.xml: Likewise.
3216 * gdb/features/arc/v2-core.c: Likewise.
3217 * gdb/features/arc/v2-core.xml: Likewise.
3218 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3219
3945d2d7
GM
32202020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3221 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 PR m2/26372
fc5d6901 3224 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3225 an assert. Remove single element array indexing pattern as the
3226 MULTI_SUBSCRIPT support will handle this case too.
3227
2677f2d3
SM
32282020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3229
3230 * value.h (valprint_check_validity): Move declaration from
3231 here...
3232 * valprint.h (valprint_check_validity): ... to here.
3233
c426fddb
SM
32342020-08-24 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * debug.h: New file.
3237 * debug.c (debug_prefixed_vprintf): New function.
3238 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3239 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3240
1eb8556f
SM
32412020-08-24 Simon Marchi <simon.marchi@efficios.com>
3242
3243 * infrun.h (infrun_debug_printf_1): New function declaration.
3244 (infrun_debug_printf): New macro.
3245 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3246 throughout.
3247 (infrun_debug_printf): New function.
3248 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3249 (handle_jit_event): Likewise.
3250
b8fff44e
MW
32512020-08-21 Mark Wielaard <mark@klomp.org>
3252
3253 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3254
d19c3068
SM
32552020-08-22 Simon Marchi <simon.marchi@efficios.com>
3256
3257 * frame.c (enum class frame_id_status): New.
3258 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3259 (fprintf_frame): Update.
3260 (compute_frame_id): Set frame id status to "computing" on entry.
3261 Set it back to "not_computed" on failure and to "computed" on
3262 success.
3263 (get_frame_id): Assert the frame id is not being computed.
3264 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3265 (create_new_frame): Likewise.
3266 (frame_cleanup_after_sniffer): Update assert.
3267
b70e516e
SM
32682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 * regcache.c (pid_ptid_regcache_map): New type.
3271 (target_ptid_regcache_map): Remove.
3272 (target_pid_ptid_regcache_map): New type.
3273 (regcaches): Change type to target_pid_ptid_regcache_map.
3274 (get_thread_arch_aspace_regcache): Update.
3275 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3276 case.
3277 (regcaches_size): Update.
3278 (regcache_count): Update.
3279 (registers_changed_ptid_target_pid_test): New.
3280 (_initialize_regcache): Register new test.
3281
cdd9148a
SM
32822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * regcache.c (regcache_count): New.
3285 (struct regcache_test_data): New.
3286 (regcache_test_data_up): New.
3287 (populate_regcaches_for_test): New.
3288 (regcaches_test): Remove.
3289 (get_thread_arch_aspace_regcache_test): New.
3290 (registers_changed_ptid_all_test): New.
3291 (registers_changed_ptid_target_test): New.
3292 (registers_changed_ptid_target_ptid_test): New.
3293 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3294 (_initialize_regcache): Register new tests.
3295
dd125343
SM
32962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3299 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3300 gdbarch and aspace parameter. Use current inferior's aspace.
3301 Validate regcache's arch value.
3302 (regcaches_test): Update.
3303
3ee93972
SM
33042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * regcache.c (regcaches_test): Call registers_changed.
3307
33bf4c5c
TBA
33082020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3309
3310 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3311
c2fd7fae
AKS
33122020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3313
3314 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3315 to find the end of prologue for flang compiled binaries.
3316 * arm-tdep.c (arm_skip_prologue): Likewise.
3317 * i386-tdep.c (i386_skip_prologue): Likewise.
3318 * producer.c (producer_is_llvm): New function.
3319 (producer_parsing_tests): Added new tests for clang/flang.
3320 * producer.h (producer_is_llvm): New declaration.
3321
9327494e
SM
33222020-08-18 Simon Marchi <simon.marchi@efficios.com>
3323
3324 * linux-nat.c (linux_nat_debug_printf): New function.
3325 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3326
d138725a
AM
33272020-08-18 Aaron Merey <amerey@redhat.com>
3328
3329 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3330 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3331 (CLIBS): Add DEBUGINFOD_LIBS.
3332
f9b11e6b
ST
33332020-08-17 Sergei Trofimovich <siarheit@google.com>
3334
3335 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3336 'gdbarch_num_regs'.
3337
3ae7ab99
TT
33382020-08-17 Tom Tromey <tromey@adacore.com>
3339
3340 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3341 ada_get_decoded_value returns NULL.
3342
b017825f
TT
33432020-08-17 Tom Tromey <tromey@adacore.com>
3344
3345 * python/py-inferior.c (infpy_search_memory): Use
3346 gdb_py_object_from_ulongest.
3347 * python/py-infevents.c (create_inferior_call_event_object)
3348 (create_memory_changed_event_object): Use
3349 gdb_py_object_from_ulongest.
3350 * python/py-linetable.c (ltpy_entry_get_pc): Use
3351 gdb_py_object_from_ulongest.
3352
7635cf79
SM
33532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3354
3355 * loc.c (class symbol_needs_eval_context): Fix indentation.
3356
f54be24b
SM
33572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3358
3359 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3360 bool.
3361
53d5a2a5
TV
33622020-08-17 Tom de Vries <tdevries@suse.de>
3363
3364 PR gdb/26393
3365 * gdbtypes.c (dump_dynamic_prop): New function.
3366 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3367
547ce8f0
TV
33682020-08-15 Tom de Vries <tdevries@suse.de>
3369
3370 PR backtrace/26390
3371 * stack.c (print_frame_args): Temporarily set the selected
3372 frame to FRAME while printing the frame's arguments.
3373
6ea815e7
PFC
33742020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3375
3376 PR breakpoints/26385
3377 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3378 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3379
6e562fa3
PFC
33802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3381
3382 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3383 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3384 and >= to check return value instead of == -1 and != -1.
3385
d369b608
SM
33862020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3387
3388 * utils.h (class gdb_argv) <as_array_view>: New method.
3389 * utils.c (gdb_argv_as_array_view_test): New.
3390 (_initialize_utils): Register selftest.
3391 * maint.c (maintenance_selftest): Use the new method.
3392
b31488a3
KR
33932020-08-13 Kamil Rytarowski <n54@gmx.com>
3394
3395 * target.h (supports_dumpcore, dumpcore): New
3396 function declarations.
3397 * target.c (supports_dumpcore, dumpcore): New
3398 functions.
3399 * target-delegates.c: Rebuild.
3400 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3401 and target_dumpcore ().
3402
002a3166
AM
34032020-08-13 Aaron Merey <amerey@redhat.com>
3404
3405 * debuginfod-support.c: Replace global variables with user_data.
3406
ece5bc8a
SM
34072020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3408
3409 * maint.c (maintenance_selftest): Split args and pass array_view
3410 to run_tests.
3411
6d8a0a5e
LM
34122020-08-12 Luis Machado <luis.machado@linaro.org>
3413
3414 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3415 type's length.
3416 Use %s and pulongest to print the length.
3417
7cf663a9
PA
34182020-08-12 Pedro Alves <palves@redhat.com>
3419
3420 * NEWS: Move "Multi-target debugging support" item to the
3421 "Changes since GDB 9" section.
3422
27c7b875
PA
34232020-08-12 Pedro Alves <palves@redhat.com>
3424
3425 PR gdb/26336
3426 * progspace.c (program_space::remove_objfile): Invalidate the
3427 frame cache.
3428
1796a2a1
TV
34292020-08-11 Tom de Vries <tdevries@suse.de>
3430
3431 * MAINTAINERS: Mark ms1 as deleted.
3432
f8e3fe0d
LM
34332020-08-10 Luis Machado <luis.machado@linaro.org>
3434
3435 PR gdb/26310
3436
3437 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3438 act accordingly.
3439 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3440 movz/str/stur/stp skipping behavior.
3441
cc308722
LM
34422020-08-10 Luis Machado <luis.machado@linaro.org>
3443
3444 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3445 struct user_sve_header instead of struct sve_context.
3446
041d9819
SM
34472020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3448
3449 * read.h (dwarf2_fetch_die_loc_sect_off,
3450 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3451 `void *` parameter with function_view.
3452 * read.c (dwarf2_fetch_die_loc_sect_off,
3453 dwarf2_fetch_die_loc_cu_off): Likewise.
3454 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3455 (per_cu_dwarf_call): Adjust.
3456 (get_frame_address_in_block_wrapper): Remove.
3457 (indirect_synthetic_pointer): Adjust.
3458 (get_ax_pc): Remove.
3459 (dwarf2_compile_expr_to_ax): Adjust.
3460
38f8aa06
TV
34612020-08-08 Tom de Vries <tdevries@suse.de>
3462
3463 PR build/26344
3464 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3465 constructor.
3466 * regcache.c (get_thread_arch_aspace_regcache): Same.
3467
a52b3ae2
TT
34682020-08-07 Tom Tromey <tromey@adacore.com>
3469
3470 * ravenscar-thread.c
3471 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3472 New method.
3473 (ravenscar_thread_target::wait): Check
3474 runtime_initialized.
3475 (ravenscar_thread_target::prepare_to_store)
3476 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3477 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3478 (ravenscar_thread_target::stopped_by_watchpoint)
3479 (ravenscar_thread_target::stopped_data_address)
3480 (ravenscar_thread_target::core_of_thread): Use
3481 scoped_restore_current_thread and
3482 set_base_thread_from_ravenscar_task.
3483
0e29517d
TT
34842020-08-07 Tom Tromey <tromey@adacore.com>
3485
3486 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3487
592f9bd7
TT
34882020-08-07 Tom Tromey <tromey@adacore.com>
3489
3490 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3491 update_inferior_ptid before update_thread_list.
3492 (temporarily_change_regcache_ptid): New class.
3493 (ravenscar_thread_target::fetch_registers)
3494 (ravenscar_thread_target::store_registers)
3495 (ravenscar_thread_target::prepare_to_store): Use base thread when
3496 forwarding operation.
3497
39e2018a
TT
34982020-08-07 Tom Tromey <tromey@adacore.com>
3499
3500 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3501 "is_pid" case.
3502
2080266b
TT
35032020-08-07 Tom Tromey <tromey@adacore.com>
3504
3505 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3506 New methods.
3507 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3508 first.
3509 (ravenscar_thread_target::add_thread): Rename from
3510 ravenscar_add_thread.
3511 (ravenscar_thread_target::update_thread_list): Use a lambda.
3512 (ravenscar_thread_target::xfer_partial): New method.
3513
78c02f21
TT
35142020-08-07 Tom Tromey <tromey@adacore.com>
3515
3516 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3517 gdb::function_view.
3518 (iterate_over_live_ada_tasks): Change type of argument.
3519 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3520 of argument.
3521
d5d833af
TT
35222020-08-07 Tom Tromey <tromey@adacore.com>
3523
3524 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3525 Remove.
3526 (ravenscar_thread_target::extra_thread_info): Remove.
3527 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3528 defer to target beneath for non-Ravenscar threads.
3529
a8ac85bb
TT
35302020-08-07 Tom Tromey <tromey@adacore.com>
3531
3532 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3533 get_base_thread_from_ravenscar_task>: Now methods.
3534 <m_cpu_map>: New member.
3535 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3536 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3537 (ravenscar_thread_target::task_is_currently_active): Update.
3538 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3539 Now a method.
3540 (ravenscar_thread_target::add_active_thread): Put initial thread
3541 into the m_cpu_map.
3542
550ab58d
TT
35432020-08-07 Tom Tromey <tromey@adacore.com>
3544
3545 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3546 event_ptid.
3547
e9546579
TT
35482020-08-07 Tom Tromey <tromey@adacore.com>
3549
3550 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3551 runtime_initialized.
3552
3d4470e5
TT
35532020-08-07 Tom Tromey <tromey@adacore.com>
3554
3555 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3556 add_active_thread.
3557 (ravenscar_thread_target::add_active_thread): Now public.
3558 (ravenscar_inferior_created): Call add_active_thread after pushing
3559 the target.
3560
888bdb2b
SM
35612020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3562
3563 * regcache.c (ptid_regcache_map): New type.
3564 (target_ptid_regcache_map): New type.
3565 (regcaches): Change type to target_ptid_regcache_map.
3566 (get_thread_arch_aspace_regcache): Update to regcaches' new
3567 type.
3568 (regcache_thread_ptid_changed): Likewise.
3569 (registers_changed_ptid): Likewise.
3570 (regcaches_size): Likewise.
3571 (regcaches_test): Update.
3572 (regcache_thread_ptid_changed): Update.
3573 * regcache.h (regcache_up): New type.
3574 * gdbsupport/ptid.h (hash_ptid): New struct.
3575
b161a60d
SM
35762020-08-07 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * observable.h (thread_ptid_changed): Add parameter
3579 `process_stratum_target *`.
3580 * infrun.c (infrun_thread_ptid_changed): Add parameter
3581 `process_stratum_target *` and use it.
3582 (selftests): New namespace.
3583 (infrun_thread_ptid_changed): New function.
3584 (_initialize_infrun): Register selftest.
3585 * regcache.c (regcache_thread_ptid_changed): Add parameter
3586 `process_stratum_target *` and use it.
3587 (regcache_thread_ptid_changed): New function.
3588 (_initialize_regcache): Register selftest.
3589 * thread.c (thread_change_ptid): Pass target to
3590 thread_ptid_changed observable.
3591
d2854d8d
CT
35922020-08-06 Caroline Tice <cmtice@google.com>
3593
fe4c3d43
SM
3594 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3595 (struct dwp_sections): Update field comments. Add loclists and
3596 rnglists fields.
3597 (struct virtual_v2_dwo_sections): Rename struct to
3598 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3599 size & offset fields for loclists and rnglists.
3600 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3601 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3602 skipping dummy type units.
3603 (create_dwp_hash_table): Update the large comment above the function to
3604 discuss Version 5 DWP files as well, with references. Update all the
3605 version checks in the function to check for version 5 as well. Add new
3606 section at the end to create dwp hash table for version 5.
3607 (create_dwp_v2_section): Rename function to
3608 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3609 Add V5 to error message text.
3610 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3611 into calls to create_dwp_v2_or_v5_section.
3612 (create_dwo_unit_in_dwp_v5): New function.
3613 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3614 check for version2; add else clause to handle version 5.
3615 (open_and_init_dwo_file): Add code to check dwarf version & only call
3616 create_debug_types_hash_table (with sections.types) if version is not 5;
3617 else call create_debug_type_hash_table, with sections.info.
3618 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3619 version 5.
3620 (dwarf2_locate_v5_dwp_sections): New function.
3621 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3622 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3623
159ed7d9
SM
36242020-08-06 Simon Marchi <simon.marchi@efficios.com>
3625
3626 * regcache.h (class regcache): Remove friend
3627 registers_changed_ptid.
3628 <regcache_thread_ptid_changed>: Remove.
3629 <regcaches>: Remove.
3630 * regcache.c (regcache::regcaches): Rename to...
3631 (regcaches): ... this. Make static.
3632 (get_thread_arch_aspace_regcache): Update.
3633 (regcache::regcache_thread_ptid_changed): Rename to...
3634 (regcache_thread_ptid_changed): ... this. Update.
3635 (class regcache_access): Remove.
3636 (regcaches_test): Update.
3637 (_initialize_regcache): Update.
3638 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3639 <forward_list>.
3640
174981ae
SM
36412020-08-06 Simon Marchi <simon.marchi@efficios.com>
3642
3643 * regcache.h (class regcache) <current_regcache>: Rename to...
3644 <regcaches>: ... this. Move doc here.
3645 * regcache.c (regcache::current_regcache) Rename to...
3646 (regcache::regcaches): ... this. Move doc to header.
3647 (get_thread_arch_aspace_regcache): Update.
3648 (regcache::regcache_thread_ptid_changed): Update.
3649 (registers_changed_ptid): Update.
3650 (class regcache_access) <current_regcache_size>: Rename to...
3651 <regcaches_size>: ... this.
3652 (current_regcache_test): Rename to...
3653 (regcaches_test): ... this.
3654 (_initialize_regcache): Update.
3655
ed908db6
VC
36562020-08-06 Victor Collod <vcollod@nvidia.com>
3657
3658 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3659
b5582ab7
KB
36602020-08-05 Kevin Buettner <kevinb@redhat.com>
3661
3662 * corelow.c (core_target::build_file_mappings): Don't output
3663 null pathname in warning.
3664
ea946b86
SM
36652020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3666
3667 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3668 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3669 gdb.dwarf2/dw2-single-line-discriminators.exp,
3670 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3671
57d02173
TT
36722020-08-05 Tom Tromey <tromey@adacore.com>
3673
3674 PR rust/26197:
3675 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3676 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3677 Fix off-by-one and type size errors in ordinary case.
3678
5555c86d
TV
36792020-08-05 Tom de Vries <tdevries@suse.de>
3680
3681 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3682 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3683
97916bfe
SM
36842020-08-04 Simon Marchi <simon.marchi@efficios.com>
3685
3686 * frame.h (frame_id_p): Return bool.
3687 (frame_id_artificial_p): Return bool.
3688 (frame_id_eq): Return bool.
3689 (has_stack_frames): Return bool.
3690 (get_selected_frame): Fix typo in comment.
3691 (get_frame_pc_if_available): Return bool.
3692 (get_frame_address_in_block_if_available): Return bool.
3693 (get_frame_func_if_available): Return bool.
3694 (read_frame_register_unsigned): Return bool.
3695 (get_frame_register_bytes): Return bool.
3696 (safe_frame_unwind_memory): Return bool.
3697 (deprecated_frame_register_read): Return bool.
3698 (frame_unwinder_is): Return bool.
3699 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3700 bool.
3701 <this_id::p>: Likewise.
3702 <prev_p>: Likewise.
3703 (frame_stash_add): Return bool.
3704 (get_frame_id): Use bool.
3705 (frame_id_build_special) Use bool.
3706 (frame_id_build_unavailable_stack): Use bool.
3707 (frame_id_build): Use bool.
3708 (frame_id_p): Return bool, use true/false instead of 1/0.
3709 (frame_id_artificial_p): Likewise.
3710 (frame_id_eq): Likewise.
3711 (frame_id_inner): Likewise.
3712 (get_frame_func_if_available): Likewise.
3713 (read_frame_register_unsigned): Likewise.
3714 (deprecated_frame_register_read): Likewise.
3715 (get_frame_register_bytes): Likewise.
3716 (has_stack_frames): Likewise.
3717 (inside_main_func): Likewise.
3718 (inside_entry_func): Likewise.
3719 (get_frame_pc_if_available): Likewise.
3720 (get_frame_address_in_block_if_available): Likewise.
3721 (frame_unwinder_is): Likewise.
3722 (safe_frame_unwind_memory): Likewise.
3723 (frame_unwind_arch): Likewise.
3724
fedfee88
SM
37252020-08-04 Simon Marchi <simon.marchi@efficios.com>
3726
3727 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3728 type to cached_copy_status.
3729 (fprintf_frame): Adjust.
3730 (get_frame_func_if_available): Adjust.
3731 (frame_cleanup_after_sniffer): Adjust.
3732
6cfa9b59
MW
37332020-08-04 Mark Wielaard <mark@klomp.org>
3734
3735 * MAINTAINERS (Write After Approval): Update email address.
3736
66d6346b
SM
37372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3740 dynamic_prop::const_val.
3741
8a6d5e35
SM
37422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3743
3744 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3745 dynamic_prop::kind.
3746
51d6067d
SM
37472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3748
3749 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3750
b26e2ae7
JM
37512020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3752
3753 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3754
39791af2
JM
37552020-08-04 Weimin Pan <weimin.pan@oracle.com>
3756 Jose E. Marchesi <jose.marchesi@oracle.com>
3757
3758 * configure.tgt: Add entry for bpf-*-*.
3759 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3760 (ALLDEPFILES): Add bpf-tdep.c.
3761 * bpf-tdep.c: New file.
3762 * MAINTAINERS: Add bpf target and maintainer.
3763 * NEWS: Mention the support for the new target.
3764
521894aa
TV
37652020-08-04 Tom de Vries <tdevries@suse.de>
3766
3767 PR symtab/23270
3768 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3769 Error.
3770
5d6356e9
JB
37712020-08-03 John Baldwin <jhb@FreeBSD.org>
3772
3773 * syscalls/freebsd.xml: Regenerate.
3774
0cf82b81
JB
37752020-08-03 John Baldwin <jhb@FreeBSD.org>
3776
3777 * syscalls/update-freebsd.sh: Fix usage and year range.
3778
8f34b746
TV
37792020-08-03 Tom de Vries <tdevries@suse.de>
3780
3781 PR symtab/26333
3782 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3783 DW_LNE_lo_user/DW_LNE_hi_user range.
3784
5e500d33
SM
37852020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3786
3787 PR ada/26318
3788 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3789 kind.
3790
78319c15
TBA
37912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3792
3793 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3794
4c55e970
TBA
37952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796
3797 * breakpoint.c (set_breakpoint_condition): Update the condition
3798 expressions after checking that the input condition string parses
3799 successfully and does not contain junk at the end.
3800
1e620590
TBA
38012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3802
3803 * breakpoint.c (set_breakpoint_condition): Update the
3804 condition string after parsing the new condition successfully.
3805
c8693053
RO
38062020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3807
3808 * proc-api.c (_STRUCTURED_PROC): Don't define.
3809 * proc-events.c: Likewise.
3810 * proc-flags.c: Likewise.
3811 * proc-why.c: Likewise.
3812 * procfs.c: Likewise.
3813
3814 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3815 * configure, config.in: Regenerate.
3816
5a99adb8
TV
38172020-07-30 Tom de Vries <tdevries@suse.de>
3818
3819 PR build/26320
3820 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3821 m_red/m_green/m_blue in a union.
3822
8ba83e91
TV
38232020-07-29 Tom de Vries <tdevries@suse.de>
3824
3825 PR tdep/26280
3826 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3827
f75a0693
AB
38282020-07-28 Tom Tromey <tromey@adacore.com>
3829
3830 PR symtab/26270:
3831 * symtab.h (find_pc_partial_function_sym): Declare.
3832 * cli/cli-cmds.c (disassemble_command): Use
3833 find_pc_partial_function_sym. Check asm_demangle.
3834 * blockframe.c (cache_pc_function_sym): New global.
3835 (cache_pc_function_name): Remove.
3836 (clear_pc_function_cache): Update.
3837 (find_pc_partial_function_sym): New function, from
3838 find_pc_partial_function.
3839 (find_pc_partial_function): Rewrite using
3840 find_pc_partial_function_sym.
3841
16f3242c
TT
38422020-07-28 Tom Tromey <tromey@adacore.com>
3843
3844 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3845 help. Add usage.
3846
4888741a
TT
38472020-07-28 Tom Tromey <tromey@adacore.com>
3848
3849 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3850 <DW_OP_GNU_variable_value>: Cast to address type.
3851
4d46f402
KR
38522020-07-28 Kamil Rytarowski <n54@gmx.com>
3853
3854 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3855 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3856 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3857 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3858 (nbsd_get_siginfo_type): New.
3859 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3860 (_initialize_nbsd_tdep): New.
3861
d70f978b
L
38622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3863
3864 PR binutils/26301
3865 * configure: Regenerated.
3866
377170fa
L
38672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3868
3869 PR binutils/26301
3870 * configure: Regenerated.
3871
43d5901d
AB
38722020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 * python/py-frame.c: Remove 'user-regs.h' include.
3875 (frapy_read_register): Rewrite to make use of
3876 gdbpy_parse_register_id.
3877 * python/py-registers.c (gdbpy_parse_register_id): New function,
3878 moved here from python/py-unwind.c. Updated the return type, and
3879 also accepts register descriptor objects.
3880 * python/py-unwind.c: Remove 'user-regs.h' include.
3881 (pyuw_parse_register_id): Moved to python/py-registers.c.
3882 (unwind_infopy_add_saved_register): Update to use
3883 gdbpy_parse_register_id.
3884 (pending_framepy_read_register): Likewise.
3885 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3886
14fa8fb3
AB
38872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * python/py-registers.c: Add 'user-regs.h' include.
3890 (register_descriptor_iter_find): New function.
3891 (register_descriptor_iterator_object_methods): New static global
3892 methods array.
3893 (register_descriptor_iterator_object_type): Add pointer to methods
3894 array.
3895
ddce1758
JB
38962020-07-27 John Baldwin <jhb@FreeBSD.org>
3897
3898 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3899 for all architectures on FreeBSD 11.3 and later.
3900
a4089f52
TT
39012020-07-27 Tom Tromey <tromey@adacore.com>
3902
3903 * gcore.h (load_corefile): Don't declare.
3904
95420d30
TV
39052020-07-27 Tom de Vries <tdevries@suse.de>
3906
3907 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3908 * config.in: Regenerate.
3909 * configure: Regenerate.
3910
05a6b8c2
EZ
39112020-07-26 Eli Zaretskii <eliz@gnu.org>
3912
3913 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3914 ws2tcpip.h. When checking whether socklen_t type is defined, use
3915 ws2tcpip.h if it is available and sys/socket.h isn't.
3916 * configure: Regenerate.
3917 * config.in: Regenerate.
3918
e79eb02f
AB
39192020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3920
3921 PR fortran/23051
3922 PR fortran/26139
3923 * valops.c (value_ind): Pass address to
3924 readjust_indirect_value_type.
3925 * value.c (readjust_indirect_value_type): Make parameter
3926 non-const, and add extra address parameter. Resolve original type
3927 before using it.
3928 * value.h (readjust_indirect_value_type): Update function
3929 signature and comment.
3930
876518dd
TV
39312020-07-25 Tom de Vries <tdevries@suse.de>
3932
3933 PR symtab/26243
3934 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3935 entries.
3936
f6720b1c
AM
39372020-07-24 Aaron Merey <amerey@redhat.com>
3938
3939 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3940 * configure: Rebuild.
3941
513487e1
KB
39422020-07-23 Kevin Buettner <kevinb@redhat.com>
3943
3944 PR corefiles/26294
3945 * corelow.c (_initialize_corelow): Add period to help text
3946 for "maintenance print core-file-backed-mappings".
3947
e7bc9db8
PA
39482020-07-23 Pedro Alves <pedro@palves.net>
3949
3950 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3951 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3952 meanwhile.
3953 * frame.c (frame_cache_generation, get_frame_cache_generation):
3954 New.
3955 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3956 (get_prev_frame_if_no_cycle): On exception, don't touch
3957 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3958 * frame.h (get_frame_cache_generation): Declare.
3959
90fcc466
TV
39602020-07-23 Tom de Vries <tdevries@suse.de>
3961
3962 PR tui/26282
3963 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3964 New default constructor.
3965
78344df7
AB
39662020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3967
3968 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3969 exclude non-statement entries.
3970
b089853a
KB
39712020-07-22 Kevin Buettner <kevinb@redhat.com>
3972
3973 * NEWS (New commands): Mention new command
3974 "maintenance print core-file-backed-mappings".
3975
09c2f5d4
KB
39762020-07-22 Kevin Buettner <kevinb@redhat.com>
3977
3978 * corelow.c (gdbcmd.h): Include.
3979 (core_target::info_proc_mappings): New method.
3980 (get_current_core_target): New function.
3981 (maintenance_print_core_file_backed_mappings): New function.
3982 (_initialize_corelow): Add core-file-backed-mappings to
3983 "maint print" commands.
3984
9c5ec5c2 39852020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3986
9c5ec5c2
KB
3987 * linux-tdep.c (dump_note_entry_p): New function.
3988 (linux_dump_mapping_p_ftype): New typedef.
3989 (linux_find_memory_regions_full): Add new parameter,
3990 should_dump_mapping_p.
3991 (linux_find_memory_regions): Adjust call to
3992 linux_find_memory_regions_full.
3993 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3994 call to linux_find_memory_regions_full.
3995
db082f59
KB
39962020-07-22 Kevin Buettner <kevinb@redhat.com>
3997
3998 * corelow.c (solist.h, unordered_map): Include.
3999 (class core_target): Add field m_core_file_mappings and
4000 method build_file_mappings.
4001 (core_target::core_target): Call build_file_mappings.
4002 (core_target::~core_target): Free memory associated with
4003 m_core_file_mappings.
4004 (core_target::build_file_mappings): New method.
4005 (core_target::xfer_partial): Use m_core_file_mappings
4006 for memory transfers.
4007 * linux-tdep.c (linux_read_core_file_mappings): New
4008 function.
4009 (linux_core_info_proc_mappings): Rewrite to use
4010 linux_read_core_file_mappings.
4011 (linux_init_abi): Register linux_read_core_file_mappings.
4012
7e183d27
KB
40132020-07-22 Kevin Buettner <kevinb@redhat.com>
4014
4015 * arch-utils.c (default_read_core_file_mappings): New function.
4016 * arch-utils.c (default_read_core_file_mappings): Declare.
4017 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4018 * gdbarch.h, gdbarch.c: Regenerate.
4019
2735d421
KB
40202020-07-22 Kevin Buettner <kevinb@redhat.com>
4021
4022 PR corefiles/25631
4023 * corelow.c (core_target:xfer_partial): Revise
4024 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4025 case after first checking the stratum beneath the core
4026 target.
4027 (has_all_memory): Return true.
4028 * target.c (raw_memory_xfer_partial): Revise comment
4029 regarding use of has_all_memory.
4030
e56cb451
KB
40312020-07-22 Kevin Buettner <kevinb@redhat.com>
4032
4033 * exec.h (section_table_xfer_memory): Revise declaration,
4034 replacing section name parameter with an optional callback
4035 predicate.
4036 * exec.c (section_table_xfer_memory): Likewise.
4037 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4038 of section_table_xfer_memory.
4039
32fa152e
TT
40402020-07-22 Tom Tromey <tromey@adacore.com>
4041
4042 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4043 lookup_symbol_search_name.
4044
a67a1c41
AB
40452020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4048 redundant local variable.
4049 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4050 reference, not pointer, update code accordingly.
4051
a7b4ff4f
SM
40522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4053 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4054
4055 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4056 * jit.c (jit_breakpoint_re_set_internal): Use the
4057 `skip_jit_symbol_lookup` field.
4058
2340e834
SM
40592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4060 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061
4062 * jit.c (jit_read_descriptor): Define the descriptor address once,
4063 use twice.
4064 (jit_breakpoint_deleted): Move the declaration of the loop variable
4065 `iter` into the loop header.
4066 (jit_breakpoint_re_set_internal): Move the declaration of the local
4067 variable `objf_data` to the first point of definition.
4068 (jit_event_handler): Move the declaration of local variables
4069 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4070 Rename `objf` to `jited`.
4071
c1072906
SM
40722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4075 Remove.
4076 * jit.c (get_jiter_objfile_data): Update.
4077
c8474dc3
TBA
40782020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4079 Simon Marchi <simon.marchi@polymtl.ca>
4080
4081 * jit.c (struct jit_program_space_data): Remove.
4082 (jit_program_space_key): Remove.
4083 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4084 stuff.
4085 (get_jit_program_space_data): Remove.
4086 (jit_breakpoint_deleted): Iterate on all of the program space's
4087 objfiles.
4088 (jit_inferior_init): Likewise.
4089 (jit_breakpoint_re_set_internal): Likewise. Also change return
4090 type to void.
4091 (jit_breakpoint_re_set): Pass current_program_space to
4092 jit_breakpoint_re_set_internal.
4093
77208eb7
SM
40942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4095
4096 * jit.h (struct jiter_objfile_data) <cached_code_address,
4097 jit_breakpoint>: Move to here from ...
4098 * jit.c (jit_program_space_data): ... here.
4099 (jiter_objfile_data::~jiter_objfile_data): Update.
4100 (jit_breakpoint_deleted): Update.
4101 (jit_breakpoint_re_set_internal): Update.
4102
8c1c720f
SM
41032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4104
4105 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4106 checks.
4107 (jit_read_descriptor): Remove NULL check.
4108 (jit_event_handler): Add an assertion.
4109
0e74a041
SM
41102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4111
4112 * jit.h (struct jit_objfile_data): Split into...
4113 (struct jiter_objfile_data): ... this ...
4114 (struct jited_objfile_data): ... and this.
4115 * objfiles.h (struct objfile) <jit_data>: Remove.
4116 <jiter_data, jited_data>: New fields.
4117 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4118 (jiter_objfile_data::~jiter_objfile_data): ... this.
4119 (get_jit_objfile_data): Rename to ...
4120 (get_jiter_objfile_data): ... this.
4121 (add_objfile_entry): Update.
4122 (jit_read_descriptor): Use get_jiter_objfile_data.
4123 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4124 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4125 (jit_inferior_exit_hook): Use objfile's jited_data field.
4126
238b5c9f
SM
41272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4128
4129 * jit.h: Forward-declare `struct minimal_symbol`.
4130 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4131 constructor, destructor, and an objfile* field.
4132 * jit.c (jit_objfile_data): Remove.
4133 (struct jit_objfile_data): Migrate from here to jit.h.
4134 (jit_objfile_data::~jit_objfile_data): New destructor
4135 implementation with code moved from free_objfile_data.
4136 (free_objfile_data): Delete.
4137 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4138 (jit_find_objf_with_entry_addr): Ditto.
4139 (jit_inferior_exit_hook): Ditto.
4140 (_initialize_jit): Remove the call to
4141 register_objfile_data_with_cleanup.
4142 * objfiles.h (struct objfile) <jit_data>: New field.
4143
fe053b9e
TBA
41442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4145
4146 * jit.h: Forward-declare `struct objfile`.
4147 (jit_event_handler): Add a second parameter, the JITer objfile.
4148 * jit.c (jit_read_descriptor): Change the signature to take the
4149 JITer objfile as an argument instead of the jit_program_space_data.
4150 (jit_inferior_init): Update the call to jit_read_descriptor.
4151 (jit_event_handler): Use the new JITer objfile argument when calling
4152 jit_read_descriptor.
4153 * breakpoint.c (handle_jit_event): Update the call to
4154 jit_event_handler to pass the JITer objfile.
4155
4cec0c66
JB
41562020-07-21 John Baldwin <jhb@FreeBSD.org>
4157
4158 * gdbarch.c: Regenerate.
4159 * gdbarch.h: Regenerate.
4160 * gdbarch.sh (handle_segmentation_fault): Remove method.
4161 * infrun.c (handle_segmentation_fault): Remove.
4162 (print_signal_received_reason): Remove call to
4163 handle_segmentation_fault.
4164
0e42f66a
JB
41652020-07-21 John Baldwin <jhb@FreeBSD.org>
4166
4167 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4168 Rename to sparc64_linux_report_signal_info and add siggnal
4169 argument.
4170 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4171 instead of sparc64_linux_handle_segmentation_fault.
4172
77bdfeb2
JB
41732020-07-21 John Baldwin <jhb@FreeBSD.org>
4174
4175 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4176 i386_linux_report_signal_info instead of
4177 i386_linux_handle_segmentation_fault.
4178 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4179 to i386_linux_report_signal_info and add siggnal argument.
4180 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4181 of i386_linux_handle_segmentation_fault.
4182 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4183 to i386_linux_report_signal_info and add siggnal argument.
4184
ad97bfc5
JB
41852020-07-21 John Baldwin <jhb@FreeBSD.org>
4186
4187 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4188 hook if present.
4189
272bb05c
JB
41902020-07-21 John Baldwin <jhb@FreeBSD.org>
4191
4192 * gdbarch.c: Regenerate.
4193 * gdbarch.h: Regenerate.
4194 * gdbarch.sh (report_signal_info): New method.
4195 * infrun.c (print_signal_received_reason): Invoke gdbarch
4196 report_signal_info hook if present.
4197
baf8791e
AB
41982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * python/py-registers.c : Add 'unordered_map' include.
4201 (gdbpy_new_reggroup): Renamed to...
4202 (gdbpy_get_reggroup): ...this. Update to only create register
4203 group descriptors when needed.
4204 (gdbpy_reggroup_iter_next): Update.
4205
f7306dac
AB
42062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4207
4208 * python/py-registers.c (gdbpy_register_object_data): New static
4209 global.
4210 (gdbpy_register_object_data_init): New function.
4211 (gdbpy_new_register_descriptor): Renamed to...
4212 (gdbpy_get_register_descriptor): ...this, and update to reuse
4213 existing register descriptors where possible.
4214 (gdbpy_register_descriptor_iter_next): Update.
4215 (gdbpy_initialize_registers): Register new gdbarch data.
4216
05c309a8
SM
42172020-07-21 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * linux-nat.c (stopped_pids): Make static.
4220
d1fd641e
SM
42212020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 PR ada/26235
4224 * gdbtypes.c (ada_discrete_type_low_bound,
4225 ada_discrete_type_high_bound): Handle undefined bounds.
4226
1de14d77
KR
42272020-07-21 Kamil Rytarowski <n54@gmx.com>
4228
4229 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4230 declaration.
4231 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4232 function.
4233
ed810cc7
JB
42342020-07-20 John Baldwin <jhb@FreeBSD.org>
4235
4236 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4237 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4238 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4239 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4240 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4241 method.
4242
ae5369e7
LC
42432020-07-20 Ludovic Courtès <ludo@gnu.org>
4244
4245 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4246 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4247 which are deprecated in Guile 3.0.
4248 * configure.ac (try_guile_versions): Add "guile-3.0".
4249 * configure (try_guile_versions): Regenerate.
4250 * NEWS: Update entry.
4251
68cf161c
LC
42522020-07-20 Ludovic Courtès <ludo@gnu.org>
4253 Doug Evans <dje@google.com>
4254
4255 PR gdb/21104
4256 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4257 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4258 USING_GUILE_BEFORE_2_2.
4259 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4260 Change type to 'scm_t_port_type *'.
4261 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4262 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4263 parameter and honor it. Update callers.
4264 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4265 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4266 functions.
4267 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4268 USING_GUILE_BEFORE_2_2.
4269 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4270 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4271 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4272 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4273 and 'SCM_PORT_TYPE'.
4274 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4275 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4276 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4277 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4278 [!USING_GUILE_BEFORE_2_2]: New functions.
4279 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4280 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4281 'gdbscm_memory_port_read'.
4282 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4283 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4284 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4285 function.
4286 (ioscm_init_memory_port): Remove.
4287 (ioscm_init_memory_port_stream): New function
4288 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4289 function.
4290 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4291 Return scm_from_uint (0).
4292 (gdbscm_set_memory_port_read_buffer_size_x)
4293 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4294 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4295 Return scm_from_uint (0).
4296 (gdbscm_set_memory_port_write_buffer_size_x)
4297 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4298 * configure.ac (try_guile_versions): Add "guile-2.2".
4299 * configure: Regenerate.
4300 * NEWS: Add entry.
4301
aee91db3
TT
43022020-07-18 Tom Tromey <tom@tromey.com>
4303
4304 * linux-nat.c (linux_multi_process): Remove.
4305 (linux_nat_target::supports_multi_process): Return true.
4306
0e267416
AB
43072020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4308
4309 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4310 (riscv_lookup_target_description): Return pointer out of
4311 unique_ptr.
4312 * target-descriptions.c (allocate_target_description): Add
4313 comment.
4314 (target_desc_deleter::operator()): Likewise.
4315 * target-descriptions.h (struct target_desc_deleter): Moved to
4316 gdbsupport/tdesc.h.
4317 (target_desc_up): Likewise.
4318
f80c8ec4
TT
43192020-07-17 Tom Tromey <tromey@adacore.com>
4320
4321 * linux-nat.c (linux_nat_target::supports_non_stop)
4322 (linux_nat_target::always_non_stop_p): Use "true".
4323 (linux_nat_target::supports_disable_randomization): Use "true" and
4324 "false".
4325
d0ce17d8
CT
43262020-07-16 Caroline Tice <cmtice@google.com>
4327
4328 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4329 (RNGLIST_HEADER_SIZE64): New constant definition.
4330 (struct dwop_section_names): Add rnglists_dwo.
4331 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4332 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4333 (struct dwo_sections): Add rnglists field.
4334 (read_attribut_reprocess): Add tag parameter.
4335 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4336 (cu_debug_rnglists_section): New function (decl & definition).
4337 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4338 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4339 die whose range is being checked; get rnglist section from
4340 cu_debug_rnglists_section, to get from either objfile or dwo file as
4341 appropriate. Add cases for DW_RLE_base_addressx,
4342 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4343 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4344 test inside if-condition and updating complaint message.
4345 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4346 dwarf2_rnglists_process.
4347 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4348 dwarf2_ranges_process.
4349 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4350 need_ranges_base and update comment appropriately. Also pass die tag
4351 to dwarf2_ranges_read.
4352 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4353 need_ranges_base and update comment appropriately. Also pass die tag
4354 to dwarf2_ranges_process.
4355 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4356 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4357 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4358 need_ranges_base and update comment appropriately. Also pass die tag
4359 to read_attribute_reprocess and dwarf2_ranges_read.
4360 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4361 and update function comment appropriately.
4362 (read_loclist_index): Call read_loclists_rnglists_header instead of
4363 read_loclist_header.
4364 (read_rnglist_index): New function.
4365 (read_attribute_reprocess): Add tag parameter. Add code for
4366 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4367 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4368
3dcc261c
AB
43692020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4372 being resolved.
4373
ccb9eba6
AB
43742020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4375
4376 * arch-utils.c (show_architecture): Update formatting of messages.
4377
cf88be68
SM
43782020-07-12 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * gdbtypes.h (struct type) <bounds>: Handle array and string
4381 types.
4382 * ada-lang.c (assign_aggregate): Use type::bounds on
4383 array/string type.
4384 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4385 * c-varobj.c (c_number_of_children): Likewise.
4386 (c_describe_child): Likewise.
4387 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4388 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4389 (f_type_print_base): Likewise.
4390 * f-valprint.c (f77_array_offset_tbl): Likewise.
4391 (f77_get_upperbound): Likewise.
4392 (f77_print_array_1): Likewise.
4393 * guile/scm-type.c (gdbscm_type_range): Likewise.
4394 * m2-typeprint.c (m2_array): Likewise.
4395 (m2_is_long_set_of_type): Likewise.
4396 * m2-valprint.c (get_long_set_bounds): Likewise.
4397 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4398 * python/py-type.c (typy_range): Likewise.
4399 * rust-lang.c (rust_internal_print_type): Likewise.
4400 * type-stack.c (type_stack::follow_types): Likewise.
4401 * valarith.c (value_subscripted_rvalue): Likewise.
4402 * valops.c (value_cast): Likewise.
4403
509971ae
SM
44042020-07-12 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4407 callers to use the equivalent accessor methods.
4408
107406b7
SM
44092020-07-12 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4412 (struct type) <bit_stride>: New method.
4413 (TYPE_BIT_STRIDE): Remove.
4414 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4415
bb789949
SM
44162020-07-12 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4419 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4420 callers to use the equivalent accessor methods instead.
4421
39498edb
SM
44222020-07-12 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4425 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4426 callers to use the equivalent accessor methods instead.
4427
3b606f38
SM
44282020-07-12 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4431 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4432 to use dynamic_prop::kind.
4433
064d9cb9
SM
44342020-07-12 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4437 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4438 to get the bound property's kind and check against
4439 PROP_UNDEFINED.
4440
5537ddd0
SM
44412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4444 all callers to use type::range_bounds followed by
4445 dynamic_prop::{low,high}.
4446
8c2e4e06
SM
44472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4448
4449 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4450 const_val, set_const_val, baton, set_locexpr, set_loclist,
4451 set_addr_offset, variant_parts, set_variant_parts,
4452 original_type, set_original_type>: New methods.
4453 <kind>: Rename to...
4454 <m_kind>: ... this. Update all users to use the new methods
4455 instead.
4456 <data>: Rename to...
4457 <m_data>: ... this. Update all users to use the new methods
4458 instead.
4459
7c6f2712
SM
44602020-07-12 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.c (get_discrete_bounds): Return failure if
4463 the range type's bounds are not both defined and constant
4464 values.
4465 (get_array_bounds): Update comment. Remove undefined bound check.
4466
599088e3
SM
44672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4468
4469 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4470 the type::bounds method directly.
4471
c4dfcb36
SM
44722020-07-12 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4475 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4476 are used to set the range type's bounds to use set_bounds.
4477
0a278aa7
PW
44782020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4479
4480 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4481
cce20f10
PA
44822020-07-10 Pedro Alves <pedro@palves.net>
4483
4484 * gdbthread.h (inferior_ref): Define.
4485 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4486 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4487 * thread.c
4488 (scoped_restore_current_thread::restore):
4489 Adjust to gdb::ref_ptr.
4490 (scoped_restore_current_thread::~scoped_restore_current_thread):
4491 Remove manual decref handling.
4492 (scoped_restore_current_thread::scoped_restore_current_thread):
4493 Adjust to use
4494 inferior_ref::new_reference/thread_info_ref::new_reference.
4495 Incref the thread before calling get_frame_id instead of after.
4496 Let TARGET_CLOSE_ERROR propagate.
4497
6d7aa592
PA
44982020-07-10 Pedro Alves <pedro@palves.net>
4499
4500 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4501 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4502 NOT_AVAILABLE_ERROR.
4503 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4504 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4505
b3e3a4c1
SM
45062020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4507 Pedro Alves <pedro@palves.net>
4508
4509 PR gdb/26199
4510 * infrun.c (threads_are_resumed_pending_p): Delete.
4511 (do_target_wait): Remove threads_are_executing and
4512 threads_are_resumed_pending_p checks from the inferior_matches
4513 lambda. Update comments.
4514
d6cc5d98
PA
45152020-07-10 Pedro Alves <pedro@palves.net>
4516
4517 PR gdb/26199
4518 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4519 executing threads.
4520
7d3badc6
PA
45212020-07-10 Pedro Alves <pedro@palves.net>
4522
4523 PR gdb/26199
4524 * infrun.c (handle_no_resumed): Handle multiple targets.
4525
42bd97a6
PA
45262020-07-10 Pedro Alves <pedro@palves.net>
4527
4528 PR gdb/26199
4529 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4530 target_is_async_p.
4531
43667cc6
PA
45322020-07-10 Pedro Alves <pedro@palves.net>
4533
4534 PR gdb/26199
4535 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4536 threads, not all threads.
4537
96118d11
PA
45382020-07-10 Pedro Alves <pedro@palves.net>
4539
4540 PR gdb/26199
4541 * remote.c (remote_target::open_1): Pass remote target pointer as
4542 data to create_async_event_handler.
4543 (remote_async_inferior_event_handler): Mark async event handler
4544 before returning if the remote target still has either pending
4545 events or unacknowledged notifications.
4546
54904d81
JB
45472020-07-10 John Baldwin <jhb@FreeBSD.org>
4548
4549 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4550 declaration.
4551 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4552 function.
4553
f37e5866
JB
45542020-07-09 John Baldwin <jhb@FreeBSD.org>
4555
4556 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4557 inferior_ptid.
4558
fc238d4a
JB
45592020-07-09 John Baldwin <jhb@FreeBSD.org>
4560
4561 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4562 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4563 AT_FREEBSD_PS_STRINGS.
4564
6e2469ff
HD
45652020-07-08 Hannes Domani <ssbssa@yahoo.de>
4566
4567 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4568 of debugfile path on Windows.
4569
d1076c41
JB
45702020-07-08 John Baldwin <jhb@FreeBSD.org>
4571
4572 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4573 argument to 'data'.
4574
15f3b077
TT
45752020-07-08 Tom Tromey <tromey@adacore.com>
4576
4577 * ada-lang.c (ada_exception_message_1): Use read_memory.
4578
9fc501fd
AB
45792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 PR python/22748
4582 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4583 special handling for inline frames.
4584 * findvar.c (value_of_register_lazy): Skip inline frames when
4585 creating lazy register values.
4586 * frame.c (frame_id_computed_p): Delete definition.
4587 * frame.h (frame_id_computed_p): Delete declaration.
4588
64cb3757
AB
45892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4590
4591 * NEWS: Mention additions to Python API.
4592 * python/py-arch.c (archpy_register_groups): New function.
4593 (arch_object_methods): Add 'register_groups' method.
4594 * python/py-registers.c (reggroup_iterator_object): New struct.
4595 (reggroup_object): New struct.
4596 (gdbpy_new_reggroup): New function.
4597 (gdbpy_reggroup_to_string): New function.
4598 (gdbpy_reggroup_name): New function.
4599 (gdbpy_reggroup_iter): New function.
4600 (gdbpy_reggroup_iter_next): New function.
4601 (gdbpy_new_reggroup_iterator): New function
4602 (gdbpy_initialize_registers): Register new types.
4603 (reggroup_iterator_object_type): Define new Python type.
4604 (gdbpy_reggroup_getset): New static global.
4605 (reggroup_object_type): Define new Python type.
4606 * python/python-internal.h
4607
0f767f94
AB
46082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4609
4610 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4611 * python/py-arch.c (archpy_registers): New function.
4612 (arch_object_methods): Add 'registers' method.
4613 * python/py-registers.c: New file.
4614 * python/python-internal.h
4615 (gdbpy_new_register_descriptor_iterator): Declare.
4616 (gdbpy_initialize_registers): Declare.
4617 * python/python.c (do_start_initialization): Call
4618 gdbpy_initialize_registers.
4619 * NEWS: Mention additions to the Python API.
4620
87dbc774
AB
46212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * NEWS: Mention new Python API method.
4624 * python/py-unwind.c (pending_framepy_architecture): New function.
4625 (pending_frame_object_methods): Add architecture method.
4626
3bc98c0c
AB
46272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * gdbarch.c: Regenerate.
4630 * gdbarch.h: Regenerate.
4631 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4632 (gdbarch_data): Use internal_error for the case where
4633 deprecated_set_gdbarch_data was originally needed.
4634 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4635 and use passed in obstack.
4636 (libunwind_frame_set_descr): Should no longer get back NULL from
4637 gdbarch_data.
4638 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4639 type.
4640 * user-regs.c (user_regs_init): Update parameters, and use passed
4641 in obstack.
4642 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4643 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4644
d8cc8af6
TV
46452020-07-06 Tom de Vries <tdevries@suse.de>
4646
4647 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4648 End-Of-Sequence in lte_is_less_than.
4649 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4650 "gdb: Don't reorder line table entries too much when sorting".
4651
947f7597
TV
46522020-07-06 Tom de Vries <tdevries@suse.de>
4653
4654 PR tui/26205
4655 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4656
1e7c1b22
TV
46572020-07-05 Tom de Vries <tdevries@suse.de>
4658
4659 PR build/26187
4660 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4661 std::uncaught_exceptions instead of deprecated
4662 std::uncaught_exception.
4663
a36158ec
SM
46642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * macroexp.h (macro_stringify): Return
4667 gdb::unique_xmalloc_ptr<char>.
4668 * macroexp.c (macro_stringify): Likewise.
4669 * macrotab.c (fixup_definition): Update.
4670
14d960c8
SM
46712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4672
4673 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4674 (lex_one_token): Update.
4675 * macroexp.c (struct macro_buffer) <release>: Return
4676 gdb::unique_xmalloc_ptr<char>.
4677 (macro_stringify): Update.
4678 (macro_expand): Update.
4679 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4680 * macroexp.h (macro_expand_next): Likewise.
4681
211d5b1c
SM
46822020-07-02 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * macroexp.h (macro_lookup_ftype): Remove.
4685 (macro_expand, macro_expand_once, macro_expand_next): Remove
4686 lookup function parameters, add scope parameter.
4687 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4688 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4689 * macroscope.h (standard_macro_lookup): Change parameter type
4690 to macro_scope.
4691 * macroscope.c (standard_macro_lookup): Likewise.
4692 * c-exp.y (lex_one_token): Update.
4693 * macrocmd.c (macro_expand_command): Likewise.
4694 (macro_expand_once_command): Likewise.
4695
b1a35af2
SM
46962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * inf-loop.c (inferior_event_handler): Remove client_data param.
4699 * inf-loop.h (inferior_event_handler): Likewise.
4700 * infcmd.c (step_1): Adjust.
4701 * infrun.c (proceed): Adjust.
4702 (fetch_inferior_event): Remove client_data param.
4703 (infrun_async_inferior_event_handler): Adjust.
4704 * infrun.h (fetch_inferior_event): Remove `void *` param.
4705 * linux-nat.c (handle_target_event): Adjust.
4706 * record-btrace.c (record_btrace_handle_async_inferior_event):
4707 Adjust.
4708 * record-full.c (record_full_async_inferior_event_handler):
4709 Adjust.
4710 * remote.c (remote_async_inferior_event_handler): Adjust.
4711
1cdf9e33
TT
47122020-07-01 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4715 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4716
32c1e210
TT
47172020-07-01 Tom Tromey <tom@tromey.com>
4718
4719 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4720 tui_gen_win_info.
4721 (tui_win_info::make_window): Merge with
4722 tui_gen_win_info::make_window.
4723 (tui_win_info::make_visible): Move from tui_gen_win_info.
4724 * tui/tui-win.c (tui_win_info::max_width): Move from
4725 tui_gen_win_info.
4726 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4727 type.
4728 <window_factory>: Likewise.
4729 * tui/tui-layout.c (tui_win_info::resize): Move from
4730 tui_gen_win_info.
4731 (make_standard_window): Change return type.
4732 (get_locator_window, tui_get_window_by_name): Likewise.
4733 (tui_layout_window::apply): Remove a cast.
4734 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4735 (struct tui_win_info): Merge with tui_gen_win_info.
4736 (struct tui_gen_win_info): Remove.
4737
a30cb6da
TT
47382020-07-01 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-stack.h (struct tui_locator_window): Derive from
4741 tui_win_info.
4742 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4743 <can_box>: New method.
4744
1eb2161f
TT
47452020-07-01 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4748
7134f2eb
TT
47492020-07-01 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-regs.c (tui_data_window::display_registers_from)
4752 (tui_data_window::display_registers_from)
4753 (tui_data_window::first_data_item_displayed)
4754 (tui_data_window::delete_data_content_windows): Update.
4755 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4756 Remove.
4757 (tui_data_window::check_register_values): Update.
4758 (tui_data_item_window::rerender): Add parameters. Update.
4759 (tui_data_item_window::refresh_window): Remove.
4760 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4761 virtual.
4762 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4763 tui_gen_win_info.
4764 <refresh_window, max_height, min_height>: Remove.
4765 <rerender>: Add parameters.
4766 <x, y, visible>: New members.
4767 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4768 <m_item_width>: New member.
4769
22b7b041
TT
47702020-07-01 Tom Tromey <tom@tromey.com>
4771
4772 * tui/tui-regs.c (tui_data_window::show_register_group)
4773 (tui_data_window::check_register_values): Update.
4774 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4775 from item_no.
4776
c9753adb
TT
47772020-07-01 Tom Tromey <tom@tromey.com>
4778
4779 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4780 useless "if".
4781
9ab26b4a
TT
47822020-07-01 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4785 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4786
e555083f
TT
47872020-07-01 Tom Tromey <tom@tromey.com>
4788
4789 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4790 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4791 (struct tui_line_or_address): Move from tui-data.h.
4792 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4793 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4794 (tui_cmd_window, tui_source_window_base, tui_source_window)
4795 (tui_disasm_window): Don't declare.
4796 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4797 to tui-winsource.h.
4798 (SINGLE_KEY): Move to tui-stack.c.
4799
7a02bab7
TT
48002020-07-01 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4803 std::string.
4804 * tui/tui-regs.c (class tab_expansion_file): New.
4805 (tab_expansion_file::write): New method.
4806 (tui_register_format): Change return type. Use
4807 tab_expansion_file.
4808 (tui_get_register, tui_data_window::display_registers_from)
4809 (tui_data_item_window::rerender): Update.
4810 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4811 * tui/tui-io.c (tui_expand_tabs): Remove.
4812
ea68593b
TT
48132020-07-01 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4816
a8caed5d
FS
48172020-07-01 Fangrui Song <maskray@google.com>
4818
4819 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4820
9cdf9820
AKS
48212020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4822
4823 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4824 forms for DW_AT_associated and DW_AT_allocated attributes,
4825 which is already checked in function attr_to_dynamic_prop.
4826
a1520ad8
TT
48272020-06-30 Tom Tromey <tromey@adacore.com>
4828
4829 * dwarf2/read.c (quirk_rust_enum): Correctly call
4830 alloc_rust_variant for default-less enum.
4831
5ac58899
TT
48322020-06-30 Tom Tromey <tromey@adacore.com>
4833
4834 PR build/26183:
4835 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4836 gdb::to_string.
4837
19b187a9
SM
48382020-06-29 Simon Marchi <simon.marchi@efficios.com>
4839
4840 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4841 * gdbarch.h: Re-generate.
4842
cd4c4c07
TT
48432020-06-28 Tom Tromey <tom@tromey.com>
4844
4845 * command.h (cmd_types): Remove.
4846 (cmd_type): Don't declare.
4847 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4848 typedef.
4849 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4850 * cli/cli-decode.c (cmd_type): Remove.
4851
05779d57
PA
48522020-06-27 Pedro Alves <palves@redhat.com>
4853
4854 * fork-child.c (prefork_hook): Adjust.
4855 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4856 Delete.
4857 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4858 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4859 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4860 Remove declarations.
4861 (struct inferior) <set_tty, tty>: New methods.
4862 (struct inferior) <terminal>: Rename to ...
4863 (struct inferior) <m_terminal>: ... this and make private.
4864 * main.c (captured_main_1): Adjust.
4865 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4866 (mi_cmd_inferior_tty_show): Adjust.
4867 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4868 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4869
1776e3e5
NA
48702020-06-26 Nick Alcock <nick.alcock@oracle.com>
4871
4872 * configure.ac: Add --enable-libctf: handle --disable-static
4873 properly.
4874 * acinclude.m4: sinclude ../config/enable.m4.
4875 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4876 (LIBCTF): Substitute in.
4877 (CTF_DEPS): New, likewise.
4878 (CLIBS): libctf needs symbols from libbfd: move earlier.
4879 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4880 flags.
4881 * ctfread.c: Surround in ENABLE_LIBCTF.
4882 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4883 * configure: Regenerate.
4884 * config.in: Likewise.
4885
58373b80
SM
48862020-06-25 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4889
277474ee
SM
48902020-06-25 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * inferior.h (struct inferior) <terminal>: Change type to
4893 gdb::unique_xmalloc_ptr<char>.
4894 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4895 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4896 field, adjust to unique pointer.
4897 (get_inferior_io_terminal): Adjust to unique pointer.
4898
6d74da72
AB
48992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4902 registers, not just the known core set of registers.
4903
2e52d038
AB
49042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4905
4906 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4907 fflags, frm, and fcsr registers.
4908 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4909 restore groups.
4910 (riscv_tdesc_unknown_reg): New function.
4911 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4912 tdesc_use_registers.
4913 * riscv-tdep.h (struct gdbarch_tdep): Add
4914 unknown_csrs_first_regnum, unknown_csrs_count,
4915 duplicate_fflags_regnum, duplicate_frm_regnum, and
4916 duplicate_fcsr_regnum fields.
4917
be64fd07
AB
49182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4919
4920 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4921 callback, use the callback (when not null) to help number unknown
4922 registers.
4923 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4924 (tdesc_use_registers): Add extra parameter to declaration.
4925
3b9fce96
AB
49262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4929 in the file.
4930 (class riscv_pending_register_alias): Likewise.
4931 (riscv_register_feature::register_info): Change 'required_p' field
4932 to 'required', and change its type. Add 'check' member function.
4933 (riscv_register_feature::register_info::check): Define new member
4934 function.
4935 (riscv_xreg_feature): Change initialisation of 'required' field.
4936 (riscv_freg_feature): Likewise.
4937 (riscv_virtual_feature): Likewise.
4938 (riscv_csr_feature): Likewise.
4939 (riscv_check_tdesc_feature): Take extra parameter, the csr
4940 tdesc_feature, rewrite the function to use the new
4941 riscv_register_feature::register_info::check function.
4942 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4943
865bad26
AB
49442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * features/Makefile: Remove all references to the deleted files
4947 below.
4948 * features/riscv/32bit-csr.c: Deleted.
4949 * features/riscv/32bit-csr.xml: Deleted.
4950 * features/riscv/64bit-csr.c: Deleted.
4951 * features/riscv/64bit-csr.xml: Deleted.
4952 * features/riscv/rebuild-csr-xml.sh: Deleted.
4953
ed69cbc8
AB
49542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4957 whitespace error for declaration of names member variable.
4958 (struct riscv_register_feature): Add new prefer_first_name member
4959 variable, and fix whitespace error in declaration of registers.
4960 (riscv_xreg_feature): Initialize prefer_first_name field.
4961 (riscv_freg_feature): Likewise.
4962 (riscv_virtual_feature): Likewise.
4963 (riscv_csr_feature): Likewise.
4964 (riscv_register_name): Expand on comments. Remove register name
4965 modifications for CSR and virtual registers.
4966
4445e8f5
AB
49672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4970 errors.
4971
767a879e
AB
49722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4973
4974 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4975 riscv-opc.h.
4976 (class riscv_pending_register_alias): New class.
4977 (riscv_check_tdesc_feature): Take vector of pending aliases and
4978 populate it as appropriate.
4979 (riscv_setup_register_aliases): Delete.
4980 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4981 to riscv_check_tdesc_feature in all cases. Use the vector to
4982 create the register aliases.
4983
bb6e55f3
RO
49842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4985
4986 * sol2-tdep.c (sol2_static_transform_name): Remove.
4987 (sol2_init_abi): Don't register it.
4988 * gdbarch.sh (static_transform_name): Remove.
4989 * gdbarch.c, gdbarch.h: Regenerate.
4990
4991 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4992 gdbarch_static_transform_name.
4993 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4994 * stabsread.c (define_symbol) <'X'>: Remove.
4995 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4996 handling.
4997 <'V'>: Likewise.
4998 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4999 <'S'>: Remove call to gdbarch_static_transform_name.
5000
c6d36836
RO
50012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5002
5003 * procfs.c (procfs_pre_trace): New function.
5004 (procfs_target::create_inferior): Pass it to fork_inferior.
5005
a7e6196b
RO
50062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5007
5008 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5009 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5010 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5011 sol2-tdep.o, sparc-sol2-tdep.o.
5012 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5013 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5014 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5015 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5016
d412e696
RO
50172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5018
5019 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5020 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5021 Call sol2_init_abi.
5022 Remove calls to set_gdbarch_skip_solib_resolver,
5023 set_gdbarch_core_pid_to_str.
5024 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5025 (i386_sol2_static_transform_name): Remove.
5026 (i386_sol2_init_abi): Call sol2_init_abi.
5027 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5028 set_gdbarch_static_transform_name,
5029 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5030 Use sol2_sigtramp_p.
5031 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5032 (sol2_sigtramp_p): New function.
5033 (sol2_static_transform_name): New function.
5034 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5035 (sol2_init_abi): New function.
5036 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5037 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5038 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5039 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5040 (sparc_sol2_static_transform_name): Remove.
5041 (sparc32_sol2_init_abi): Call sol2_init_abi.
5042 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5043 set_gdbarch_static_transform_name,
5044 set_gdbarch_skip_solib_resolver,
5045 set_gdbarch_core_pid_to_str.
5046 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5047 (sparc_sol2_static_transform_name): Remove
5048 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5049 call sol2_sigtramp_p.
5050 (sparc64_sol2_init_abi): Call sol2_init_abi.
5051 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5052 set_gdbarch_static_transform_name,
5053 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5054
a8654e7d
PW
50552020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5056
5057 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5058 * exec.c (validate_exec_file): If from_tty, set both
5059 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5060 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5061 and from_tty, unconditionally ask a confirmation.
5062
caa7fd04
AB
50632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5064
5065 * target-descriptions.c (tdesc_architecture_name): Protect against
5066 NULL pointer dereference.
5067 (maint_print_xml_tdesc_cmd): New function.
5068 (_initialize_target_descriptions): Register new 'maint print
5069 xml-tdesc' command and give it the filename completer.
5070 * NEWS: Mention new 'maint print xml-tdesc' command.
5071
fbf42f4e
AB
50722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * target-descriptions.c (class tdesc_compatible_info): New class.
5075 (struct target_desc): Change type of compatible vector.
5076 (tdesc_compatible_p): Update for change in type of
5077 target_desc::compatible.
5078 (tdesc_compatible_info_list): New function.
5079 (tdesc_compatible_info_arch_name): New function.
5080 (tdesc_add_compatible): Update for change in type of
5081 target_desc::compatible.
5082 (print_c_tdesc::visit_pre): Likewise.
5083
20821f4e
AB
50842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5085
5086 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5087 whitespace to underscore.
5088 (maint_print_c_tdesc_cmd): Use fake filename for target
5089 descriptions that came from the target.
5090 (_initialize_target_descriptions): Add filename command completion
5091 for 'maint print c-tdesc'.
5092
1fb5ee62
SM
50932020-06-23 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5096 lines.
5097
fc3ecb3e
SM
50982020-06-23 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5101 lines.
5102 (dwarf2_find_location_expression): Likewise.
5103 (call_site_parameter_matches): Likewise.
5104 (dwarf2_compile_expr_to_ax): Likewise.
5105 (disassemble_dwarf_expression): Likewise.
5106 (loclist_describe_location): Likewise.
5107
236ef034
PA
51082020-06-23 Pedro Alves <palves@redhat.com>
5109
5110 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5111 progspace-and-thread.h. Include scoped-mock-context.h instead.
5112 (register_to_value_test): Use scoped_mock_context.
5113 * regcache.c: Include "scoped-mock-context.h".
5114 (cooked_read_test): Don't error out if a target is already pushed.
5115 Use scoped_mock_context. Adjust.
5116 * scoped-mock-context.h: New file.
5117
39e7ecca
AB
51182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5121 initializer.
5122 (ada_language::is_string_type_p): New member function.
5123 * c-lang.c (c_language_data): Delete la_is_string_type_p
5124 initializer.
5125 (cplus_language_data): Likewise.
5126 (asm_language_data): Likewise.
5127 (minimal_language_data): Likewise.
5128 * d-lang.c (d_language_data): Likewise.
5129 * f-lang.c (f_is_string_type_p): Delete function, implementation
5130 moved to f_language::is_string_type_p.
5131 (f_language_data): Delete la_is_string_type_p initializer.
5132 (f_language::is_string_type_p): New member function,
5133 implementation from f_is_string_type_p.
5134 * go-lang.c (go_is_string_type_p): Delete function, implementation
5135 moved to go_language::is_string_type_p.
5136 (go_language_data): Delete la_is_string_type_p initializer.
5137 (go_language::is_string_type_p): New member function,
5138 implementation from go_is_string_type_p.
5139 * language.c (language_defn::is_string_type_p): Define new member
5140 function.
5141 (default_is_string_type_p): Make static, add comment copied from
5142 header file.
5143 (unknown_language_data): Delete la_is_string_type_p initializer.
5144 (unknown_language::is_string_type_p): New member function.
5145 (auto_language_data): Delete la_is_string_type_p initializer.
5146 (auto_language::is_string_type_p): New member function.
5147 * language.h (language_data): Delete la_is_string_type_p field.
5148 (language_defn::is_string_type_p): Declare new function.
5149 (default_is_string_type_p): Delete desclaration, move comment to
5150 definition.
5151 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5152 moved to m2_language::is_string_type_p.
5153 (m2_language_data): Delete la_is_string_type_p initializer.
5154 (m2_language::is_string_type_p): New member function,
5155 implementation from m2_is_string_type_p.
5156 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5157 initializer.
5158 * opencl-lang.c (opencl_language_data): Likewise.
5159 * p-lang.c (pascal_is_string_type_p): Delete function,
5160 implementation moved to pascal_language::is_string_type_p.
5161 (pascal_language_data): Delete la_is_string_type_p initializer.
5162 (pascal_language::is_string_type_p): New member function,
5163 implementation from pascal_is_string_type_p.
5164 * rust-lang.c (rust_is_string_type_p): Delete function,
5165 implementation moved to rust_language::is_string_type_p.
5166 (rust_language_data): Delete la_is_string_type_p initializer.
5167 (rust_language::is_string_type_p): New member function,
5168 implementation from rust_is_string_type_p.
5169 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5170 is_string_type_p.
5171
4ffc13fb
AB
51722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5173
5174 * ada-lang.c (ada_language_data): Delete la_print_typedef
5175 initializer.
5176 (ada_language::print_typedef): New member function.
5177 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5178 (cplus_language_data): Likewise.
5179 (asm_language_data): Likewise.
5180 (minimal_language_data): Likewise.
5181 * d-lang.c (d_language_data): Likewise.
5182 * f-lang.c (f_language_data): Likewise.
5183 (f_language::print_typedef): New member function.
5184 * go-lang.c (go_language_data): Delete la_print_typedef
5185 initializer.
5186 * language.c (language_defn::print_typedef): Define member
5187 function.
5188 (unknown_language_data): Delete la_print_typedef initializer.
5189 (unknown_language::print_typedef): New member function.
5190 (auto_language_data): Delete la_print_typedef initializer.
5191 (auto_language::print_typedef): New member function.
5192 * language.h (language_data): Delete la_print_typedef field.
5193 (language_defn::print_typedef): Declare new member function.
5194 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5195 (default_print_typedef): Delete declaration.
5196 * m2-lang.c (m2_language_data): Delete la_print_typedef
5197 initializer.
5198 (m2_language::print_typedef): New member function.
5199 * objc-lang.c (objc_language_data): Delete la_print_typedef
5200 initializer.
5201 * opencl-lang.c (opencl_language_data): Likewise.
5202 * p-lang.c (pascal_language_data): Likewise.
5203 (pascal_language::print_typedef): New member function.
5204 * rust-lang.c (rust_print_typedef): Delete function,
5205 implementation moved to rust_language::print_typedef.
5206 (rust_language): Delete la_print_typedef initializer.
5207 (rust_language::print_typedef): New member function,
5208 implementation from rust_print_typedef.
5209 * typeprint.c (default_print_typedef): Delete.
5210
d711ee67
AB
52112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5214 (ada_language::printstr): New member function.
5215 * c-lang.c (c_language_data): Delete la_printstr initializer.
5216 (cplus_language_data): Likewise.
5217 (asm_language_data): Likewise.
5218 (minimal_language_data): Likewise.
5219 * d-lang.c (d_language_data): Likewise.
5220 * f-lang.c (f_printstr): Rename to f_language::printstr.
5221 (f_language_data): Delete la_printstr initializer.
5222 (f_language::printstr): New member function, implementation from
5223 f_printstr.
5224 * go-lang.c (go_language_data): Delete la_printstr initializer.
5225 * language.c (language_defn::printstr): Define new member
5226 function.
5227 (unk_lang_printstr): Delete.
5228 (unknown_language_data): Delete la_printstr initializer.
5229 (unknown_language::printstr): New member function.
5230 (auto_language_data): Delete la_printstr initializer.
5231 (auto_language::printstr): New member function.
5232 * language.h (language_data): Delete la_printstr field.
5233 (language_defn::printstr): Declare new member function.
5234 (LA_PRINT_STRING): Update call to printstr.
5235 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5236 (m2_language_data): Delete la_printstr initializer.
5237 (m2_language::printstr): New member function, implementation from
5238 m2_printstr.
5239 * objc-lang.c (objc_language_data): Delete la_printstr
5240 initializer.
5241 * opencl-lang.c (opencl_language_data): Likewise.
5242 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5243 (pascal_language_data): Delete la_printstr initializer.
5244 (pascal_language::printstr): New member function, implementation
5245 from pascal_printstr.
5246 * p-lang.h (pascal_printstr): Delete declaration.
5247 * rust-lang.c (rust_printstr): Update header comment.
5248 (rust_language_data): Delete la_printstr initializer.
5249 (rust_language::printstr): New member function.
5250
52b50f2c
AB
52512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5254 (ada_language::printchar): New member function.
5255 * c-lang.c (c_language_data): Delete la_printchar initializer.
5256 (cplus_language_data): Likewise.
5257 (asm_language_data): Likewise.
5258 (minimal_language_data): Likewise.
5259 * d-lang.c (d_language_data): Likewise.
5260 * f-lang.c (f_printchar): Rename to f_language::printchar.
5261 (f_language_data): Delete la_printchar initializer.
5262 (f_language::printchar): New member function, implementation from
5263 f_printchar.
5264 * go-lang.c (go_language_data): Delete la_printchar initializer.
5265 * language.c (unk_lang_printchar): Delete.
5266 (language_defn::printchar): Define new member function.
5267 (unknown_language_data): Delete la_printchar initializer.
5268 (unknown_language::printchar): New member function.
5269 (auto_language_data): Delete la_printchar initializer.
5270 (auto_language::printchar): New member function.
5271 * language.h (language_data): Delete la_printchar field.
5272 (language_defn::printchar): Declare new member function.
5273 (LA_PRINT_CHAR): Update call to printchar.
5274 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5275 (m2_language::printchar): New member function.
5276 * objc-lang.c (objc_language_data): Delete la_printchar
5277 initializer.
5278 * opencl-lang.c (opencl_language_data): Likewise.
5279 * p-lang.c (pascal_language_data): Delete la_printchar
5280 initializer.
5281 (pascal_language::printchar): New member function.
5282 * rust-lang.c (rust_printchar): Rename to
5283 rust_language::printchar.
5284 (rust_language_data): Delete la_printchar initializer.
5285 (rust_language::printchar): New member function, implementation
5286 from rust_printchar.
5287
ec8cec5b
AB
52882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5291 (ada_language_data): Delete la_emitchar initializer.
5292 (ada_language::emitchar): New member function, implementation from
5293 emit_char.
5294 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5295 (cplus_language_data): Likewise.
5296 (asm_language_data): Likewise.
5297 (minimal_language_data): Likewise.
5298 * d-lang.c (d_language_data): Likewise.
5299 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5300 (f_language_data): Delete la_emitchar initializer.
5301 (f_language::emitchar): New member function, implementation from
5302 f_emit_char.
5303 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5304 * language.c (unk_lang_emit_char): Delete.
5305 (language_defn::emitchar): New member function definition.
5306 (unknown_language_data): Delete la_emitchar initializer.
5307 (unknown_language::emitchar): New member function.
5308 (auto_language_data): Delete la_emitchar initializer.
5309 (auto_language::emitchar): New member function.
5310 * language.h (language_data): Delete la_emitchar field.
5311 (language_defn::emitchar): New member field declaration.
5312 (LA_EMIT_CHAR): Update call to emitchar.
5313 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5314 (m2_language_data): Delete la_emitchar initializer.
5315 (m2_language::emitchar): New member function, implementation from
5316 m2_emit_char.
5317 * objc-lang.c (objc_language_data): Delete la_emitchar
5318 initializer.
5319 * opencl-lang.c (opencl_language_data): Likewise.
5320 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5321 (pascal_language_data): Delete la_emitchar initializer.
5322 (pascal_language::emitchar): New member function, implementation
5323 from pascal_emit_char.
5324 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5325 (rust_language_data): Delete la_emitchar initializer.
5326 (rust_language::emitchar): New member function, implementation
5327 from rust_emitchar.
5328
1bf9c363
AB
53292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5330
5331 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5332 (ada_language_data): Delete la_post_parser initializer.
5333 (ada_language::post_parser): New member function.
5334 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5335 (cplus_language_data): Likewise.
5336 (asm_language_data): Likewise.
5337 (minimal_language_data): Likewise.
5338 * d-lang.c (d_language_data): Likewise.
5339 * f-lang.c (f_language_data): Likewise.
5340 * go-lang.c (go_language_data): Likewise.
5341 * language.c (unknown_language_data): Likewise.
5342 (auto_language_data): Likewise.
5343 * language.h (language_data): Delete la_post_parser field.
5344 (language_defn::post_parser): New member function.
5345 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5346 * objc-lang.c (objc_language_data): Likewise.
5347 * opencl-lang.c (opencl_language_data): Likewise.
5348 * p-lang.c (pascal_language_data): Likewise.
5349 * parse.c (parse_exp_in_context): Update call to post_parser.
5350 (null_post_parser): Delete definition.
5351 * parser-defs.h (null_post_parser): Delete declaration.
5352 * rust-lang.c (rust_language_data): Delete la_post_parser
5353 initializer.
5354
87afa652
AB
53552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * ada-lang.c (parse): Rename to ada_language::parser.
5358 (ada_language_data): Delete la_parser initializer.
5359 (ada_language::parser): New member function, implementation from
5360 parse.
5361 * c-lang.c (c_language_data): Delete la_parser initializer.
5362 (cplus_language_data): Likewise.
5363 (asm_language_data): Likewise.
5364 (minimal_language_data): Likewise.
5365 * d-lang.c (d_language_data): Likewise.
5366 (d_language::parser): New member function.
5367 * f-lang.c (f_language_data): Delete la_parser initializer.
5368 (f_language::parser): New member function.
5369 * go-lang.c (go_language_data): Delete la_parser initializer.
5370 (go_language::parser): New member function.
5371 * language.c (unk_lang_parser): Delete.
5372 (language_defn::parser): Define new member function.
5373 (unknown_language_data): Delete la_parser initializer.
5374 (unknown_language::parser): New member function.
5375 (auto_language_data): Delete la_parser initializer.
5376 (auto_language::parser): New member function.
5377 * language.h (language_data): Delete la_parser field.
5378 (language_defn::parser): Declare new member function.
5379 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5380 (m2_language::parser): New member function.
5381 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5382 * opencl-lang.c (opencl_language_data): Likewise.
5383 * p-lang.c (pascal_language_data): Likewise.
5384 (pascal_language::parser): New member function.
5385 * parse.c (parse_exp_in_context): Update call to parser.
5386 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5387 (rust_language::parser): New member function.
5388
37825800
AB
53892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5390
5391 * top.c (print_gdb_configuration): Print --with-python-libdir
5392 configuration value.
5393
5b860c93
PW
53942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5395
5396 * NEWS: Mention change to the alias command.
5397
cf00cd6f
PW
53982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5399
5400 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5401 (alias_command_completer)
5402 (make_alias_options_def_group): New functions.
5403 (alias_opts, alias_option_defs): New struct and array.
5404 (alias_usage_error): Update usage.
5405 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5406 Use option framework.
5407 (_initialize_cli_cmds): Update alias command help.
5408 Update aliases command help.
5409 (show_user):
5410 Add NULL for new default_args lookup_cmd argument.
5411 (valid_command_p): Rename to validate_aliased_command.
5412 Add NULL for new default_args lookup_cmd argument. Verify that the
5413 aliased_command has no default args.
5414 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5415 (lookup_cmd_1, lookup_cmd): New argument default_args.
5416 (add_alias_cmd):
5417 Add NULL for new default_args lookup_cmd argument.
5418 (print_help_for_command): Show default args under the layout
5419 alias some_alias = some_aliased_cmd some_alias_default_arg.
5420 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5421 xfree default_args in destructor.
5422 * cli/cli-script.c (process_next_line, do_define_command):
5423 Add NULL for new default_args lookup_cmd argument.
5424 * command.h: Declare new default_args argument in lookup_cmd
5425 and lookup_cmd_1.
5426 * completer.c (complete_line_internal_1):
5427 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5428 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5429 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5430 Likewise.
5431 * infcmd.c (_initialize_infcmd): Likewise.
5432 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5433 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5434 * python/py-param.c (add_setshow_generic): Likewise.
5435 * remote.c (_initialize_remote): Likewise.
5436 * top.c (execute_command): Prepend default_args if command has some.
5437 (set_verbose):
5438 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5439 * tracepoint.c (validate_actionline, encode_actions_1):
5440 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5441
bd920864
TBA
54422020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5443
5444 * jit.c (jit_read_descriptor): Use bool as the return type.
5445 (jit_breakpoint_re_set_internal): Use bool as the return type.
5446 Invert the return value logic; return true if the jit breakpoint
5447 has been successfully initialized.
5448 (jit_inferior_init): Update the call to
5449 jit_breakpoint_re_set_internal.
5450
f8098322
PA
54512020-06-22 Pedro Alves <palves@redhat.com>
5452
5453 PR gdb/25939
5454 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5455 Use the current inferior instead. Don't return
5456 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5457 wait again.
5458 * sol-thread.c (sol_thread_target::wait): Don't reference
5459 inferior_ptid.
5460 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5461 (sol_update_thread_list_callback): Use the current inferior's pid
5462 instead of inferior_ptid.
5463
196535a6
RO
54642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5465
5466 * procfs.c: Cleanup many comments.
5467
5468 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5469 (AFTER_WATCHFLAG): Replace by value.
5470
5471 (MAIN_PROC_NAME_FORMAT): Inline ...
5472 (create_procinfo): ... here.
5473
5474 (procfs_debug_inferior): Remove SYS_exec handling.
5475 (syscall_is_exec): Likewise.
5476 (procfs_set_exec_trap): Likewise.
5477
5478 (syscall_is_lwp_exit): Inline in callers.
5479 (syscall_is_exit): Likewise.
5480 (syscall_is_exec): Likewise.
5481 (syscall_is_lwp_create): Likewise.
5482
5483 (invalidate_cache): Remove #if 0 code.
5484
5485 (make_signal_thread_runnable): Remove.
5486 (procfs_target::resume): Remove #if 0 code.
5487
cf6f3e86
RO
54882020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5489
5490 PR gdb/25939
5491 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5492 call ...
5493 (procfs_target::create_inferior): ... here.
5494
48e9cc84
PW
54952020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5496
5497 * exec.c (validate_exec_file): Ensure the build-id is up to
5498 date by calling reopen_exec_file (that checks file timestamp
5499 to decide to re-read the file).
5500
3922b302
PA
55012020-06-18 Pedro Alves <palves@redhat.com>
5502
5503 PR gdb/25412
5504 * gdbthread.h (delete_thread, delete_thread_silent)
5505 (find_thread_ptid): Update comments.
5506 * thread.c (current_thread_): New global.
5507 (is_current_thread): Move higher, and reimplement.
5508 (inferior_thread): Reimplement.
5509 (set_thread_exited): Use bool. Add assertions.
5510 (add_thread_silent): Simplify thread-reuse handling by always
5511 calling delete_thread.
5512 (delete_thread): Remove intro comment.
5513 (find_thread_ptid): Skip exited threads.
5514 (switch_to_thread_no_regs): Write to current_thread_.
5515 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5516 INFERIOR_PTID. Clear current_thread_.
5517
6dbdab44
PA
55182020-06-18 Pedro Alves <palves@redhat.com>
5519
5520 * aix-thread.c (pd_update): Use switch_to_thread.
5521
2da4b788
PA
55222020-06-18 Pedro Alves <palves@redhat.com>
5523
5524 * ravenscar-thread.c (ravenscar_thread_target): Update.
5525 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5526 (ravenscar_thread_target::add_active_thread): ... this. Don't
5527 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5528 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5529
50838d1b
PA
55302020-06-18 Pedro Alves <palves@redhat.com>
5531
5532 * nat/windows-nat.c (current_windows_thread): Remove.
5533 * nat/windows-nat.h (current_windows_thread): Remove.
5534 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5535 Adjust.
5536 (display_selectors): Adjust to fetch the current
5537 windows_thread_info based on inferior_ptid.
5538 (fake_create_process): No longer write to current_windows_thread.
5539 (windows_nat_target::get_windows_debug_event):
5540 Don't set inferior_ptid or current_windows_thread.
5541 (windows_nat_target::wait): Adjust to not rely on
5542 current_windows_thread.
5543 (do_initial_windows_stuff): Now a method of windows_nat_target.
5544 Switch to the last_ptid thread.
5545 (windows_nat_target::attach): Adjust.
5546 (windows_nat_target::detach): Use switch_to_no_thread instead of
5547 writing to inferior_ptid directly.
5548 (windows_nat_target::create_inferior): Adjust.
5549
31ce04e9
PA
55502020-06-18 Pedro Alves <palves@redhat.com>
5551
5552 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5553
1ee1a363
PA
55542020-06-18 Pedro Alves <palves@redhat.com>
5555
5556 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5557 after creating it, instead of writing to inferior_ptid. Don't
5558 write to inferior_ptid.
5559
6d350754
PA
55602020-06-18 Pedro Alves <palves@redhat.com>
5561
5562 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5563
5d971d48
PA
55642020-06-18 Pedro Alves <palves@redhat.com>
5565
5566 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5567 it, instead of writing to inferior_ptid.
5568
86e57d1b
PA
55692020-06-18 Pedro Alves <palves@redhat.com>
5570
5571 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5572 to inferior_ptid.
5573
f2e1c129
PA
55742020-06-18 Pedro Alves <palves@redhat.com>
5575
5576 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5577 instead of writing to inferior_ptid directly.
5578
60db1b85
PA
55792020-06-18 Pedro Alves <palves@redhat.com>
5580
5581 * corelow.c (core_target::close): Use switch_to_no_thread instead
5582 of writing to inferior_ptid directly.
5583 (add_to_thread_list, core_target_open): Use switch_to_thread
5584 instead of writing to inferior_ptid directly.
5585
fe7d6a8d
PA
55862020-06-18 Pedro Alves <palves@redhat.com>
5587
5588 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5589 inferior_ptid.
5590 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5591 inferior_ptid.
5592 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5593 inferior_ptid directly.
5594 (darwin_nat_target::init_thread_list): Switch to thread, instead
5595 of writing to inferior_ptid.
5596 (darwin_nat_target::attach): Don't write to inferior_ptid.
5597 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5598
975f8708
PA
55992020-06-18 Pedro Alves <palves@redhat.com>
5600
5601 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5602 thread.
5603 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5604 Instead use switch_to_thread.
5605 (gnu_nat_target::detach): Use switch_to_no_thread
5606 instead of writing to inferior_ptid directly. Used passed-in
5607 inferior instead of looking up the inferior by pid.
5608
1a204730
PA
56092020-06-18 Pedro Alves <palves@redhat.com>
5610
5611 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5612 inferior_ptid.
5613
ebe84f23
PA
56142020-06-18 Pedro Alves <palves@redhat.com>
5615
5616 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5617 inferior_ptid.
5618 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5619 thread.
5620 (nto_procfs_target::detach): Avoid referencing
5621 inferior_ptid. Use switch_to_no_thread instead of writing to
5622 inferior_ptid directly.
5623 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5624 instead of writing to inferior_ptid directly.
5625 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5626 to thread.
5627
191f02e5
PA
56282020-06-18 Pedro Alves <palves@redhat.com>
5629
5630 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5631 after creating it, instead of writing to inferior_ptid.
5632 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5633 to inferior_ptid directly.
5634 (gdbsim_target::wait): Don't write to inferior_ptid.
5635
0ac55310
PA
56362020-06-18 Pedro Alves <palves@redhat.com>
5637
5638 * remote.c (remote_target::remote_notice_new_inferior): Use
5639 switch_to_thread instead of writing to inferior_ptid directly.
5640 (remote_target::add_current_inferior_and_thread): Use
5641 switch_to_no_thread instead of writing to inferior_ptid directly.
5642 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5643 and switch_to_thread instead of using set_current_inferior or
5644 writing to inferior_ptid directly.
5645
5233f39b
PA
56462020-06-18 Pedro Alves <palves@redhat.com>
5647
5648 * tracectf.c (ctf_target_open): Switch to added thread instead of
5649 writing to inferior_ptid directly.
5650 (ctf_target::close): Use switch_to_no_thread instead of writing to
5651 inferior_ptid directly.
5652
087e161b
PA
56532020-06-18 Pedro Alves <palves@redhat.com>
5654
5655 * tracefile-tfile.c (tfile_target_open): Don't write to
5656 inferior_ptid directly, instead switch to added thread.
5657 (tfile_target::close): Use switch_to_no_thread instead of writing
5658 to inferior_ptid directly.
5659
7fb43e53
PA
56602020-06-18 Pedro Alves <palves@redhat.com>
5661
5662 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5663 (procfs_target::detach): Use switch_to_no_thread
5664 instead of writing to inferior_ptid directly.
5665 (do_attach): Change return type to void. Switch to the added
5666 thread.
5667 (procfs_target::create_inferior): Switch to the added thread.
5668 (procfs_do_thread_registers): Don't write to inferior_ptid.
5669
18493a00
PA
56702020-06-18 Pedro Alves <palves@redhat.com>
5671
5672 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5673 of writing to inferior_ptid.
5674 (scoped_restore_exited_inferior): Delete.
5675 (handle_vfork_child_exec_or_exit): Simplify using
5676 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5677 instead of writing to inferior_ptid.
5678 (THREAD_STOPPED_BY): Delete.
5679 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5680 (thread_stopped_by_hw_breakpoint): Delete.
5681 (save_waitstatus): Use
5682 scoped_restore_current_thread+switch_to_thread, and call
5683 target_stopped_by_watchpoint instead of
5684 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5685 instead of thread_stopped_by_sw_breakpoint, and
5686 target_stopped_by_hw_breakpoint instead of
5687 thread_stopped_by_hw_breakpoint.
5688 (handle_inferior_event)
5689 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5690 inferior_ptid directly, nor
5691 set_current_inferior/set_current_program_space. Use
5692 switch_to_thread / switch_to_inferior_no_thread instead.
5693
a0776b13
PA
56942020-06-18 Pedro Alves <palves@redhat.com>
5695
5696 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5697 instead of writing to inferior_ptid.
5698
6155c136
PA
56992020-06-18 Pedro Alves <palves@redhat.com>
5700
5701 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5702 added thread.
5703 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5704 to the added thread.
5705 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5706 instead of writing to inferior_ptid.
5707
c5316fc6
PA
57082020-06-18 Pedro Alves <palves@redhat.com>
5709
5710 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5711 (register_to_value_test): Mock a program_space too. Heap-allocate
5712 the address space. Don't write to inferior_ptid. Use
5713 switch_to_thread instead.
5714
8df01799
PA
57152020-06-18 Pedro Alves <palves@redhat.com>
5716
5717 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5718 Delete.
5719 (find_signalled_thread()): New, factored out from
5720 linux_make_corefile_notes and adjusted to handle exited threads.
5721 (linux_make_corefile_notes): Adjust to use the new
5722 find_signalled_thread.
5723
41792d68
PA
57242020-06-18 Pedro Alves <palves@redhat.com>
5725
5726 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5727 of saving/restoring inferior_ptid.
5728
612f258a
TT
57292020-06-17 Tom Tromey <tom@tromey.com>
5730
5731 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5732 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5733 declare.
5734 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5735
efb763a5
SM
57362020-06-15 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5739 of partial symtabs.
5740
2951f6c0
SM
57412020-06-17 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * regformats/reg-arm.dat: Remove.
5744 * regformats/reg-bfin.dat: Remove.
5745 * regformats/reg-cris.dat: Remove.
5746 * regformats/reg-crisv32.dat: Remove.
5747 * regformats/reg-m32r.dat: Remove.
5748 * regformats/reg-tilegx.dat: Remove.
5749 * regformats/reg-tilegx32.dat: Remove.
5750
7d458ea5
SM
57512020-06-17 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * features/Makefile (WHICH): Remove arm files.
5754 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5755 * regformats/arm/arm-with-neon.dat: Remove.
5756 * regformats/arm/arm-with-vfpv2.dat: Remove.
5757 * regformats/arm/arm-with-vfpv3.dat: Remove.
5758
3af96c0d
SM
57592020-06-17 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * features/Makefile (XMLTOC): Remove rx.xml.
5762
b25e22fd
PA
57632020-06-17 Pedro Alves <palves@redhat.com>
5764
5765 * gdbthread.h (thread_control_state) <trap_expected> Update
5766 comments.
5767
a78a19b1
AB
57682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5769
5770 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5771 ada_language::lookup_symbol_nonlocal.
5772 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5773 (ada_language::lookup_symbol_nonlocal): New member function,
5774 implementation from ada_lookup_symbol_nonlocal.
5775 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5776 initializer.
5777 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5778 initializer.
5779 (cplus_language::lookup_symbol_nonlocal): New member function.
5780 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5781 (minimal_language_data) Likewise.
5782 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5783 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5784 initializer.
5785 (d_language::lookup_symbol_nonlocal): New member function.
5786 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5787 initializer.
5788 (f_language::lookup_symbol_nonlocal): New member function.
5789 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5790 initializer.
5791 * language.c (unknown_language_data): Likewise.
5792 (auto_language_data): Likewise.
5793 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5794 field.
5795 (language_defn::lookup_symbol_nonlocal): New member function.
5796 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5797 initializer.
5798 * objc-lang.c (objc_language_data): Likewise.
5799 * opencl-lang.c (opencl_language_data): Likewise.
5800 * p-lang.c (pascal_language_data): Likewise.
5801 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5802 rust_language::lookup_symbol_nonlocal.
5803 (rust_language_data): Delete la_lookup_symbol_nonlocal
5804 initializer.
5805 (rust_language::lookup_symbol_nonlocal): New member function,
5806 implementation from rust_lookup_symbol_nonlocal.
5807 * symtab.c (lookup_symbol_aux): Update call to
5808 lookup_symbol_nonlocal.
5809 (basic_lookup_symbol_nonlocal): Rename to...
5810 (language_defn::lookup_symbol_nonlocal): ...this, and update
5811 header comment. Remove language_defn parameter, and replace with
5812 uses of `this'.
5813 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5814
ebe2334e
AB
58152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5816
5817 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5818 initializer.
5819 (ada_language::value_print_inner): New member function.
5820 * c-lang.c (c_language_data): Delete la_value_print_inner
5821 initializer.
5822 (cplus_language_data): Likewise.
5823 (asm_language_data): Likewise.
5824 (minimal_language_data): Likewise.
5825 * d-lang.c (d_language_data): Likewise.
5826 (d_language::value_print_inner): New member function.
5827 * f-lang.c (f_language_data): Delete la_value_print_inner
5828 initializer.
5829 (f_language::value_print_inner): New member function.
5830 * f-lang.h (f_value_print_innner): Rename to...
5831 (f_value_print_inner): ...this (note spelling of 'inner').
5832 * f-valprint.c (f_value_print_innner): Rename to...
5833 (f_value_print_inner): ...this (note spelling of 'inner').
5834 * go-lang.c (go_language_data): Delete la_value_print_inner
5835 initializer.
5836 (go_language::value_print_inner): New member function.
5837 * language.c (language_defn::value_print_inner): Define new member
5838 function.
5839 (unk_lang_value_print_inner): Delete.
5840 (unknown_language_data): Delete la_value_print_inner initializer.
5841 (unknown_language::value_print_inner): New member function.
5842 (auto_language_data): Delete la_value_print_inner initializer.
5843 (auto_language::value_print_inner): New member function.
5844 * language.h (language_data): Delete la_value_print_inner field.
5845 (language_defn::value_print_inner): Delcare new member function.
5846 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5847 initializer.
5848 (m2_language::value_print_inner): New member function.
5849 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5850 initializer.
5851 * opencl-lang.c (opencl_language_data): Likewise.
5852 * p-lang.c (pascal_language_data): Likewise.
5853 (pascal_language::value_print_inner): New member function.
5854 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5855 initializer.
5856 (rust_language::value_print_inner): New member function.
5857 * valprint.c (do_val_print): Update call to value_print_inner.
5858
a1d1fa3e
AB
58592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * ada-lang.c (ada_language_data): Delete la_value_print
5862 initializer.
5863 (ada_language::value_print): New member function.
5864 * c-lang.c (c_language_data): Delete la_value_print initializer.
5865 (cplus_language_data): Likewise.
5866 (asm_language_data): Likewise.
5867 (minimal_language_data): Likewise.
5868 * d-lang.c (d_language_data): Likewise.
5869 * f-lang.c (f_language_data): Likewise.
5870 * go-lang.c (go_language_data): Likewise.
5871 * language.c (unk_lang_value_print): Delete.
5872 (language_defn::value_print): Define new member function.
5873 (unknown_language_data): Delete la_value_print initializer.
5874 (unknown_language::value_print): New member function.
5875 (auto_language_data): Delete la_value_print initializer.
5876 (auto_language::value_print): New member function.
5877 * language.h (language_data): Delete la_value_print field.
5878 (language_defn::value_print): Declare new member function.
5879 (LA_VALUE_PRINT): Update call to value_print.
5880 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5881 * objc-lang.c (objc_language_data): Likewise.
5882 * opencl-lang.c (opencl_language_data): Likewise.
5883 * p-lang.c (pascal_language_data): Likewise.
5884 (pascal_language::value_print): New member function.
5885 * rust-lang.c (rust_language_data): Delete la_value_print
5886 initializer.
5887
f16a9f57
AB
58882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5889
5890 * ada-lang.c (ada_watch_location_expression): Rename to
5891 ada_language::watch_location_expression.
5892 (ada_language_data): Delete la_watch_location_expression
5893 initializer.
5894 (ada_language::watch_location_expression): New member function,
5895 implementation from ada_watch_location_expression.
5896 * breakpoint.c (watch_command_1): Update call to
5897 watch_location_expression.
5898 * c-lang.c (c_watch_location_expression): Rename to
5899 language_defn::watch_location_expression.
5900 (c_language_data): Delete la_watch_location_expression
5901 initializer.
5902 (cplus_language_data): Likewise.
5903 (asm_language_data): Likewise.
5904 (minimal_language_data): Likewise.
5905 * c-lang.h (c_watch_location_expression): Delete declaration.
5906 * d-lang.c (d_language_data): Delete la_watch_location_expression
5907 initializer.
5908 * f-lang.c (f_language_data): Likewise.
5909 * go-lang.c (go_language_data): Likewise.
5910 * language.c (language_defn::watch_location_expression): Member
5911 function implementation from c_watch_location_expression.
5912 (unknown_language_data): Delete la_watch_location_expression
5913 initializer.
5914 (auto_language_data): Likewise.
5915 * language.h (language_data): Delete la_watch_location_expression
5916 field.
5917 (language_defn::watch_location_expression): Declare new member
5918 function.
5919 * m2-lang.c (m2_language_data): Delete
5920 la_watch_location_expression initializer.
5921 * objc-lang.c (objc_language_data): Likewise.
5922 * opencl-lang.c (opencl_language_data): Likewise.
5923 * p-lang.c (pascal_language_data): Likewise.
5924 * rust-lang.c (rust_watch_location_expression): Rename to
5925 rust_language::watch_location_expression.
5926 (rust_language_data): Delete la_watch_location_expression
5927 initializer.
5928 (rust_language::watch_location_expression): New member function,
5929 implementation from rust_watch_location_expression.
5930
7e56227d
AB
59312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5934 ada_language::collect_symbol_completion_matches.
5935 (ada_language_data): Delete la_collect_symbol_completion_matches
5936 initializer.
5937 (ada_language::collect_symbol_completion_matches): New member
5938 function, implementation from
5939 ada_collect_symbol_completion_matches.
5940 * c-lang.c (c_language_data): Delete
5941 la_collect_symbol_completion_matches initializer.
5942 (cplus_language_data): Likewise.
5943 (asm_language_data): Likewise.
5944 (minimal_language_data): Likewise.
5945 * d-lang.c (d_language_data): Likewise.
5946 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5947 f_language::collect_symbol_completion_matches.
5948 (f_language_data): Delete la_collect_symbol_completion_matches
5949 initializer.
5950 (f_language::collect_symbol_completion_matches) New member
5951 function, implementation from f_collect_symbol_completion_matches.
5952 * go-lang.c (go_language_data): Delete
5953 la_collect_symbol_completion_matches initializer.
5954 * language.c (unknown_language_data): Likewise.
5955 (auto_language_data): Likewise.
5956 * language.h (language_data): Delete
5957 la_collect_symbol_completion_matches field.
5958 (language_defn::collect_symbol_completion_matches): New member
5959 function.
5960 * m2-lang.c (m2_language_data): Delete
5961 la_collect_symbol_completion_matches initializer.
5962 * objc-lang.c (objc_language_data): Likewise.
5963 * opencl-lang.c (opencl_language_data): Likewise.
5964 * p-lang.c (pascal_language_data): Likewise.
5965 * rust-lang.c (rust_language_data): Likewise.
5966 * symtab.c (default_collect_symbol_completion_matches): Delete.
5967 (collect_symbol_completion_matches): Update call to
5968 collect_symbol_completion_matches.
5969 (collect_symbol_completion_matches_type): Likewise.
5970 * symtab.h (default_collect_symbol_completion_matches): Delete
5971 declaration.
5972
53fc67f8
AB
59732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5974
5975 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5976 (ada_language_data): Delete la_word_break_characters initializer.
5977 (ada_language::word_break_characters): New member function.
5978 * c-lang.c (c_language_data): Delete la_word_break_characters
5979 initializer.
5980 (cplus_language_data): Likewise.
5981 (asm_language_data): Likewise.
5982 (minimal_language_data): Likewise.
5983 * completer.c: Update global comment.
5984 (advance_to_expression_complete_word_point): Update call to
5985 word_break_characters.
5986 (complete_files_symbols): Likewise.
5987 (complete_line_internal_1): Likewise.
5988 (default_completer_handle_brkchars): Likewise.
5989 (skip_quoted_chars): Likewise.
5990 * d-lang.c (d_language_data): Delete la_word_break_characters
5991 initializer.
5992 * f-lang.c (f_word_break_characters): Delete.
5993 (f_language_data): Delete la_word_break_characters initializer.
5994 (f_language::word_break_characters): New member function.
5995 * go-lang.c (go_language_data): Delete la_word_break_characters
5996 initializer.
5997 * language.c (unknown_language_data): Likewise.
5998 (auto_language_data): Likewise.
5999 * language.h (default_word_break_characters): Move declaration to
6000 earlier in the file.
6001 (language_data): Delete la_word_break_characters field.
6002 (language_defn::word_break_characters): New member function.
6003 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6004 initializer.
6005 * objc-lang.c (objc_language_data): Likewise.
6006 * opencl-lang.c (opencl_language_data): Likewise.
6007 * p-lang.c (pascal_language_data): Likewise.
6008 * rust-lang.c (rust_language_data): Likewise.
6009
c9debfb9
AB
60102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6011
6012 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6013 (ada_language_data): Delete la_get_symbol_name_matcher
6014 initializer.
6015 (language_defn::get_symbol_name_matcher_inner): New member
6016 function.
6017 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6018 initializer.
6019 (cplus_language_data): Likewise.
6020 (cplus_language::get_symbol_name_matcher_inner): New member
6021 function.
6022 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6023 (minimal_language_data): Likewise.
6024 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6025 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6026 initializer.
6027 * dictionary.c (iter_match_first_hashed): Update call to
6028 get_symbol_name_matcher.
6029 (iter_match_next_hashed): Likewise.
6030 (iter_match_next_linear): Likewise.
6031 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6032 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6033 initializer.
6034 (f_language::get_symbol_name_matcher_inner): New member function.
6035 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6036 initializer.
6037 * language.c (default_symbol_name_matcher): Update header comment,
6038 make static.
6039 (language_defn::get_symbol_name_matcher): New definition.
6040 (language_defn::get_symbol_name_matcher_inner): Likewise.
6041 (get_symbol_name_matcher): Delete.
6042 (unknown_language_data): Delete la_get_symbol_name_matcher
6043 initializer.
6044 (auto_language_data): Likewise.
6045 * language.h (language_data): Delete la_get_symbol_name_matcher
6046 field.
6047 (language_defn::get_symbol_name_matcher): New member function.
6048 (language_defn::get_symbol_name_matcher_inner): Likewise.
6049 (default_symbol_name_matcher): Delete declaration.
6050 * linespec.c (find_methods): Update call to
6051 get_symbol_name_matcher.
6052 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6053 initializer.
6054 * minsyms.c (lookup_minimal_symbol): Update call to
6055 get_symbol_name_matcher.
6056 (iterate_over_minimal_symbols): Likewise.
6057 * objc-lang.c (objc_language_data): Delete
6058 la_get_symbol_name_matcher initializer.
6059 * opencl-lang.c (opencl_language_data): Likewise.
6060 * p-lang.c (pascal_language_data): Likewise.
6061 * psymtab.c (psymbol_name_matches): Update call to
6062 get_symbol_name_matcher.
6063 * rust-lang.c (rust_language_data): Delete
6064 la_get_symbol_name_matcher initializer.
6065 * symtab.c (symbol_matches_search_name): Update call to
6066 get_symbol_name_matcher.
6067 (compare_symbol_name): Likewise.
6068
9a49ad8c
AB
60692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6070
6071 * ada-lang.c (ada_language_data): Delete la_compute_program
6072 initializer.
6073 * c-lang.c (c_language_data): Likewise.
6074 (c_language::compute_program): New member function.
6075 (cplus_language_data): Delete la_compute_program initializer.
6076 (cplus_language::compute_program): New member function.
6077 (asm_language_data): Delete la_compute_program initializer.
6078 (minimal_language_data): Likewise.
6079 * c-lang.h (c_compute_program): Update comment.
6080 (cplus_compute_program): Likewise.
6081 * compile/compile-c-support.c (c_compute_program): Likewise.
6082 (cplus_compute_program): Likewise.
6083 * compile/compile.c (compile_to_object): Update call to
6084 la_compute_program.
6085 * d-lang.c (d_language_data): Delete la_compute_program
6086 initializer.
6087 * f-lang.c (f_language_data): Likewise.
6088 * go-lang.c (go_language_data): Likewise.
6089 * language.c (unknown_language_data): Likewise.
6090 (auto_language_data): Likewise.
6091 * language.h (language_data): Delete la_compute_program field.
6092 (language_defn::compute_program): New member function.
6093 * m2-lang.c (m2_language_data): Delete la_compute_program
6094 initializer.
6095 * objc-lang.c (objc_language_data): Likewise.
6096 * opencl-lang.c (opencl_language_data): Likewise.
6097 * p-lang.c (pascal_language_data): Likewise.
6098 * rust-lang.c (rust_language_data): Likewise.
6099
eff93b4d
AB
61002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6101
6102 * ada-lang.c (ada_language_data) Delete
6103 la_class_name_from_physname initializer.
6104 * c-lang.c (c_language_data): Likewise.
6105 (cplus_language_data): Likewise.
6106 (cplus_language::class_name_from_physname): New member function.
6107 (asm_language_data): Delete la_class_name_from_physname
6108 initializer.
6109 (minimal_language_data): Likewise.
6110 * d-lang.c (d_language_data): Likewise.
6111 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6112 method on language_defn class.
6113 (guess_full_die_structure_name): Likewise.
6114 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6115 initializer.
6116 * go-lang.c (go_language_data): Likewise.
6117 * language.c (language_class_name_from_physname): Delete.
6118 (unk_lang_class_name): Delete.
6119 (unknown_language_data): Delete la_class_name_from_physname
6120 initializer.
6121 (auto_language_data): Likewise.
6122 * language.h (language_data): Delete la_class_name_from_physname
6123 field.
6124 (language_defn::class_name_from_physname): New function.
6125 (language_class_name_from_physname): Delete declaration.
6126 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6127 initializer.
6128 * objc-lang.c (objc_language_data): Likewise.
6129 * opencl-lang.c (opencl_language_data): Likewise.
6130 * p-lang.c (pascal_language_data): Likewise.
6131 * rust-lang.c (rust_language_data): Likewise.
6132
de543742
TT
61332020-06-16 Tom Tromey <tom@tromey.com>
6134
6135 * tui/tui-data.h (STATUS_NAME): New macro.
6136 * tui/tui-layout.c (tui_remove_some_windows)
6137 (initialize_known_windows, tui_register_window)
6138 (tui_layout_split::remove_windows, initialize_layouts)
6139 (tui_new_layout_command): Don't use hard-coded window names.
6140
a350efd4
TT
61412020-06-16 Tom Tromey <tom@tromey.com>
6142
6143 PR tui/25348:
6144 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6145 tui_initialize_readline. Only run once. Call rl_initialize.
6146 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6147 tui_initialize_readline.
6148 * tui/tui-io.c (tui_setup_io): Call
6149 tui_ensure_readline_initialized.
6150 * tui/tui-interp.c (tui_interp::init): Update.
6151
39ec0490
TT
61522020-06-16 Tom Tromey <tom@tromey.com>
6153
6154 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6155 Also preserve the status window.
6156
d2d1ea20
TT
61572020-06-16 Tom Tromey <tom@tromey.com>
6158
6159 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6160 where m_window==nullptr.
6161
66920317
TT
61622020-06-15 Tom Tromey <tromey@adacore.com>
6163
6164 * windows-nat.c (windows_nat::handle_output_debug_string):
6165 Update.
6166 (windows_nat::handle_ms_vc_exception): Update.
6167 * target.h (target_read_string): Change API.
6168 * target.c (target_read_string): Change API.
6169 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6170 Update.
6171 * solib-frv.c (frv_current_sos): Update.
6172 * solib-dsbt.c (dsbt_current_sos): Update.
6173 * solib-darwin.c (darwin_current_sos): Update.
6174 * linux-thread-db.c (inferior_has_bug): Update.
6175 * expprint.c (print_subexp_standard): Update.
6176 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6177 (ada_exception_message_1): Update.
6178
a5d871dd
TT
61792020-06-15 Tom Tromey <tromey@adacore.com>
6180
6181 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6182
670e35fa
TT
61832020-06-15 Tom Tromey <tromey@adacore.com>
6184
6185 * valprint.c (read_string): Update comment.
6186 * target.c (MIN): Remove.
6187 (target_read_string): Rewrite.
6188
f5272a3b
TT
61892020-06-15 Tom Tromey <tromey@adacore.com>
6190
6191 * corefile.c (read_memory_string): Remove.
6192 * ada-valprint.c (ada_value_print_ptr): Update.
6193 * ada-lang.h (ada_tag_name): Change return type.
6194 * ada-lang.c (type_from_tag): Update.
6195 (ada_tag_name_from_tsd): Change return type. Use
6196 target_read_string.
6197 (ada_tag_name): Likewise.
6198 * gdbcore.h (read_memory_string): Don't declare.
6199
2c074f49
HD
62002020-06-14 Hannes Domani <ssbssa@yahoo.de>
6201
6202 * symtab.c (rbreak_command): Ignore Windows drive colon.
6203
6a17d503
SM
62042020-06-12 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * NEWS: Mention removed GDBserver host support.
6207
453c733f
NC
62082020-06-12 Nelson Chu <nelson.chu@sifive.com>
6209
6210 * features/riscv/rebuild-csr-xml.sh: Updated.
6211
2b4e6a3f
TT
62122020-06-11 Tom Tromey <tom@tromey.com>
6213
6214 PR gdb/18318:
6215 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6216
4412332f
JG
62172020-06-09 Jonny Grant <jg@jguk.org>
62182020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6219
6220 * main.c (captured_main_1): Don't print new line after help.
6221 (print_gdb_help): add mailing list and IRC channel information
6222 to --help. Add new lines between items in the footer. Remove
6223 quotes around bug url.
6224
2f33032a
KS
62252020-06-11 Keith Seitz <keiths@redhat.com>
6226
6227 PR gdb/21356
6228 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6229 Resolve typedefs for type length calculations.
6230
7ab96794
TV
62312020-06-10 Tom de Vries <tdevries@suse.de>
6232
6233 PR ada/24713
6234 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6235 (write_psymbols): Enable .gdb_index for ada.
6236 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6237 ada.
6238
e5f3ece2
TV
62392020-06-10 Tom de Vries <tdevries@suse.de>
6240
6241 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6242 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6243 namei" instead of "const char *name" argument.
6244 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6245 dw2_symtab_iter_init.
6246
940da03e
SM
62472020-06-08 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6250 to use type::field and field::type instead.
6251
b6cdac4b
SM
62522020-06-08 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6255 to use field::type instead.
6256
5d14b6e5
SM
62572020-06-08 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * gdbtypes.h (struct field) <type, set_type>: New methods.
6260 Rename `type` field to...
6261 <m_type>: ... this. Change references throughout to use type or
6262 set_type methods.
6263 (FIELD_TYPE): Use field::type. Change call sites that modify
6264 the field's type to use field::set_type instead.
6265
3d967001
SM
62662020-06-08 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6269 to use type::index_type instead.
6270
262abc0d
SM
62712020-06-08 Simon Marchi <simon.marchi@efficios.com>
6272
6273 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6274 methods.
6275 (TYPE_INDEX_TYPE): Use type::index_type.
6276 * gdbtypes.c (create_array_type_with_stride): Likewise.
6277
82836c92
TT
62782020-06-07 Tom Tromey <tom@tromey.com>
6279
6280 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6281 parameter.
6282 (generic_value_print): Update.
6283
940dace9
AB
62842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 Revert commit 982a38f60b0.
6287 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6288
982a38f6
AB
62892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6290
6291 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6292 avoid use after free.
6293
82f06518
TV
62942020-06-05 Tom de Vries <tdevries@suse.de>
6295
6296 * NEWS: Fix typos.
6297
f8c41851
SM
62982020-06-04 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6301 the per_bfd object.
6302 (dwarf2_read_debug_names): Likewise.
6303 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6304 object when re-using a per_bfd object with an index.
6305
f9b5d5ea
TV
63062020-06-03 Tom de Vries <tdevries@suse.de>
6307
6308 PR symtab/26046
6309 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6310 children for C++.
6311 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6312 DW_TAG_subprogram.
6313
f6eee2d0
AB
63142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * ada-lang.c (ada_language_data): Delete skip_trampoline
6317 initializer.
6318 * c-lang.c (c_language_data): Likewise.
6319 (cplus_language_data): Likewise.
6320 (cplus_language::skip_trampoline): New member function.
6321 (asm_language_data): Delete skip_trampoline initializer.
6322 (minimal_language_data): Likewise.
6323 * d-lang.c (d_language_data): Likewise.
6324 * f-lang.c (f_language_data): Likewise.
6325 * go-lang.c (go_language_data): Likewise.
6326 * language.c (unk_lang_trampoline): Delete function.
6327 (skip_language_trampoline): Update.
6328 (unknown_language_data): Delete skip_trampoline initializer.
6329 (auto_language_data): Likewise.
6330 * language.h (language_data): Delete skip_trampoline field.
6331 (language_defn::skip_trampoline): New function.
6332 * m2-lang.c (m2_language_data): Delete skip_trampoline
6333 initializer.
6334 * objc-lang.c (objc_skip_trampoline): Delete function, move
6335 implementation to objc_language::skip_trampoline.
6336 (objc_language_data): Delete skip_trampoline initializer.
6337 (objc_language::skip_trampoline): New member function with
6338 implementation from objc_skip_trampoline.
6339 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6340 initializer.
6341 * p-lang.c (pascal_language_data): Likewise.
6342 * rust-lang.c (rust_language_data): Likewise.
6343
0a50df5d
AB
63442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6345
6346 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6347 (ada_language::demangle): New member function.
6348 * c-lang.c (c_language_data): Delete la_demangle initializer.
6349 (cplus_language_data): Delete la_demangle initializer.
6350 (cplus_language::demangle): New member function.
6351 (asm_language_data): Delete la_demangle initializer.
6352 (minimal_language_data): Delete la_demangle initializer.
6353 * d-lang.c (d_language_data): Delete la_demangle initializer.
6354 (d_language::demangle): New member function.
6355 * f-lang.c (f_language_data): Delete la_demangle initializer.
6356 (f_language::demangle): New member function.
6357 * go-lang.c (go_language_data): Delete la_demangle initializer.
6358 (go_language::demangle): New member function.
6359 * language.c (language_demangle): Update.
6360 (unk_lang_demangle): Delete.
6361 (unknown_language_data): Delete la_demangle initializer.
6362 (unknown_language::demangle): New member function.
6363 (auto_language_data): Delete la_demangle initializer.
6364 (auto_language::demangle): New member function.
6365 * language.h (language_data): Delete la_demangle field.
6366 (language_defn::demangle): New function.
6367 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6368 * objc-lang.c (objc_language_data): Delete la_demangle
6369 initializer.
6370 (objc_language::demangle): New member function.
6371 * opencl-lang.c (opencl_language_data): Delete la_demangle
6372 initializer.
6373 * p-lang.c (pascal_language_data): Likewise.
6374 * rust-lang.c (rust_language_data): Likewise.
6375 (rust_language::demangle): New member function.
6376
fbfb0a46
AB
63772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * ada-lang.c (ada_language_data): Delete la_print_type
6380 initializer.
6381 (ada_language::print_type): New member function.
6382 * c-lang.c (c_language_data): Delete la_print_type initializer.
6383 (c_language::print_type): New member function.
6384 (cplus_language_data): Delete la_print_type initializer.
6385 (cplus_language::print_type): New member function.
6386 (asm_language_data): Delete la_print_type initializer.
6387 (asm_language::print_type): New member function.
6388 (minimal_language_data): Delete la_print_type initializer.
6389 (minimal_language::print_type): New member function.
6390 * d-lang.c (d_language_data): Delete la_print_type initializer.
6391 (d_language::print_type): New member function.
6392 * f-lang.c (f_language_data): Delete la_print_type initializer.
6393 (f_language::print_type): New member function.
6394 * go-lang.c (go_language_data): Delete la_print_type initializer.
6395 (go_language::print_type): New member function.
6396 * language.c (unk_lang_print_type): Delete.
6397 (unknown_language_data): Delete la_print_type initializer.
6398 (unknown_language::print_type): New member function.
6399 (auto_language_data): Delete la_print_type initializer.
6400 (auto_language::print_type): New member function.
6401 * language.h (language_data): Delete la_print_type field.
6402 (language_defn::print_type): New function.
6403 (LA_PRINT_TYPE): Update.
6404 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6405 (m2_language::print_type): New member function.
6406 * objc-lang.c (objc_language_data): Delete la_print_type
6407 initializer.
6408 (objc_language::print_type): New member function.
6409 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6410 to opencl_language::print_type.
6411 (opencl_language_data): Delete la_print_type initializer.
6412 (opencl_language::print_type): New member function, implementation
6413 from opencl_print_type.
6414 * p-lang.c (pascal_language_data): Delete la_print_type
6415 initializer.
6416 (pascal_language::print_type): New member function.
6417 * rust-lang.c (rust_print_type): Delete, implementation moved to
6418 rust_language::print_type.
6419 (rust_language_data): Delete la_print_type initializer.
6420 (rust_language::print_type): New member function, implementation
6421 from rust_print_type.
6422
6f827019
AB
64232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6426 implementation moves to...
6427 (ada_language::sniff_from_mangled_name): ...here. Update return
6428 type.
6429 (ada_language_data): Delete la_sniff_from_mangled_name
6430 initializer.
6431 * c-lang.c (c_language_data): Likewise.
6432 (cplus_language_data): Likewise.
6433 (cplus_language::sniff_from_mangled_name): New member function,
6434 implementation taken from gdb_sniff_from_mangled_name.
6435 (asm_language_data): Delete la_sniff_from_mangled_name
6436 initializer.
6437 (minimal_language_data): Likewise.
6438 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6439 implementation moves to cplus_language::sniff_from_mangled_name.
6440 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6441 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6442 moves to...
6443 (d_language::sniff_from_mangled_name): ...here.
6444 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6445 * f-lang.c (f_language_data): Likewise.
6446 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6447 moves to...
6448 (go_language::sniff_from_mangled_name): ...here.
6449 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6450 * language.c (language_sniff_from_mangled_name): Delete.
6451 (unknown_language_data): Delete la_sniff_from_mangled_name
6452 initializer.
6453 (auto_language_data): Likewise.
6454 * language.h (language_data): Delete la_sniff_from_mangled_name
6455 field.
6456 (language_defn::sniff_from_mangled_name): New function.
6457 (language_sniff_from_mangled_name): Delete declaration.
6458 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6459 field.
6460 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6461 implementation moves to...
6462 (objc_language::sniff_from_mangled_name): ...here.
6463 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6464 * opencl-lang.c (opencl_language_data): Likewise.
6465 * p-lang.c (pascal_language_data): Likewise.
6466 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6467 implementation moves to...
6468 (rust_language::sniff_from_mangled_name): ...here.
6469 (rust_language_data): Delete la_sniff_from_mangled_name
6470 initializer.
6471 * symtab.c (symbol_find_demangled_name): Call
6472 sniff_from_mangled_name member function.
6473
fb8006fd
AB
64742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6475
6476 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6477 initializer.
6478 * c-lang.c (c_language_data): Likewise.
6479 (cplus_language_data): Likewise.
6480 (cplus_language::search_name_hash): New member function.
6481 (asm_language_data): Delete la_search_name_hash initializer.
6482 (minimal_language_data): Likewise.
6483 * d-lang.c (d_language_data): Likewise.
6484 * dictionary.c (default_search_name_hash): Rename to...
6485 (language_defn::search_name_hash): ...this.
6486 * f-lang.c (f_language_data): Likewise.
6487 (f_language::search_name_hash): New member function.
6488 * go-lang.c (go_language_data): Delete la_search_name_hash
6489 initializer.
6490 * language.c (unknown_language_data): Likewise.
6491 (auto_language_data): Likewise.
6492 * language.h (struct language_data): Delete la_search_name_hash
6493 field.
6494 (language_defn::search_name_hash): Declare new member function.
6495 (default_search_name_hash): Delete declaration.
6496 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6497 initializer.
6498 * objc-lang.c (objc_language_data): Likewise.
6499 * opencl-lang.c (opencl_language_data): Likewise.
6500 * p-lang.c (pascal_language_data): Likewise.
6501 * rust-lang.c (rust_language_data): Likewise.
6502 * symtab.c (search_name_hash): Update call.
6503
8e25bafe
AB
65042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6505
6506 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6507 initializer.
6508 * c-lang.c (class compile_instance): Declare.
6509 (c_language_data): Delete la_get_compile_instance initializer.
6510 (c_language::get_compile_instance): New member function.
6511 (cplus_language_data): Delete la_get_compile_instance initializer.
6512 (cplus_language::get_compile_instance): New member function.
6513 (asm_language_data): Delete la_get_compile_instance initializer.
6514 (minimal_language_data): Likewise.
6515 * c-lang.h (c_get_compile_context): Update comment.
6516 (cplus_get_compile_context): Update comment.
6517 * compile/compile.c (compile_to_object): Update calls, don't rely
6518 on function pointer being NULL.
6519 * d-lang.c (d_language_data): Delete la_get_compile_instance
6520 initializer.
6521 * f-lang.c (f_language_data): Likewise.
6522 * go-lang.c (go_language_data): Likewise.
6523 * language.c (unknown_language_data): Likewise.
6524 (auto_language_data): Likewise.
6525 * language.h (language_data): Delete la_get_compile_instance field.
6526 (language_defn::get_compile_instance): New member function.
6527 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6528 initializer.
6529 * objc-lang.c (objc_language_data): Likewise.
6530 * opencl-lang.c (opencl_language_data): Likewise.
6531 * p-lang.c (pascal_language_data): Likewise.
6532 * rust-lang.c (rust_language_data): Likewise.
6533
4009ee92
AB
65342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6535
6536 * ada-lang.c (ada_add_all_symbols): Update comment.
6537 (ada_iterate_over_symbols): Delete, move implementation to...
6538 (ada_language::iterate_over_symbols): ...here, a new member
6539 function, rewrite to use range based for loop.
6540 (ada_language_data): Delete la_iterate_over_symbols initializer.
6541 * c-lang.c (c_language_data): Likewise.
6542 (cplus_language_data): Likewise.
6543 (asm_language_data): Likewise.
6544 (minimal_language_data): Likewise.
6545 * d-lang.c (d_language_data): Likewise.
6546 * f-lang.c (f_language_data): Likewise.
6547 * go-lang.c (go_language_data): Likewise.
6548 * language.c (unknown_language_data): Likewise.
6549 (auto_language_data): Likewise.
6550 * language.h (language_data): Delete la_iterate_over_symbols field.
6551 (language_defn::iterate_over_symbols): New member function.
6552 (LA_ITERATE_OVER_SYMBOLS): Update.
6553 * linespec.c (iterate_over_all_matching_symtabs): Update.
6554 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6555 initializer.
6556 * objc-lang.c (objc_language_data): Likewise.
6557 * opencl-lang.c (opencl_language_data): Likewise.
6558 * p-lang.c (pascal_language_data): Likewise.
6559 * rust-lang.c (rust_language_data): Likewise.
6560
54f4ca46
AB
65612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 * ada-lang.c (ada_language_data): Delete
6564 la_lookup_transparent_type initializer.
6565 * c-lang.c (c_language_data): Likewise.
6566 (cplus_language_data): Likewise.
6567 (cplus_language::lookup_transparent_type): New member function.
6568 (asm_language_data): Delete la_lookup_transparent_type
6569 initializer.
6570 (minimal_language_data): Likewise.
6571 * d-lang.c (d_language_data): Likewise.
6572 * f-lang.c (f_language_data): Likewise.
6573 * go-lang.c (go_language_data): Likewise.
6574 * language.c (unknown_language_data): Likewise.
6575 (auto_language_data): Likewise.
6576 * language.h (struct language_data): Delete
6577 la_lookup_transparent_type field.
6578 (language_defn::lookup_transparent_type): New member function.
6579 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6580 initializer.
6581 * objc-lang.c (objc_language_data): Likewise.
6582 * opencl-lang.c (opencl_language_data): Likewise.
6583 * p-lang.c (pascal_language_data): Likewise.
6584 * rust-lang.c (rust_language_data): Likewise.
6585 * symtab.c (symbol_matches_domain): Update call.
6586
1fb314aa
AB
65872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6588
6589 * ada-lang.c (ada_language_arch_info): Delete function, move
6590 implementation to...
6591 (ada_language::language_arch_info): ...here, a new member
6592 function.
6593 (ada_language_data): Delete la_language_arch_info.
6594 * c-lang.c (c_language_data): Likewise.
6595 (c_language::language_arch_info): New member function.
6596 (cplus_language_arch_info): Delete function, move
6597 implementation to...
6598 (cplus_language::language_arch_info): ...here, a new member
6599 function.
6600 (cplus_language_data): Delete la_language_arch_info.
6601 (asm_language_data): Likewise.
6602 (asm_language::language_arch_info): New member function.
6603 (minimal_language_data): Delete la_language_arch_info.
6604 (minimal_language::language_arch_info): New member function.
6605 * d-lang.c (d_language_arch_info): Delete function, move
6606 implementation to...
6607 (d_language::language_arch_info): ...here, a new member
6608 function.
6609 (d_language_data): Delete la_language_arch_info.
6610 * f-lang.c (f_language_arch_info): Delete function, move
6611 implementation to...
6612 (f_language::language_arch_info): ...here, a new member
6613 function.
6614 (f_language_data): Delete la_language_arch_info.
6615 * go-lang.c (go_language_arch_info): Delete function, move
6616 implementation to...
6617 (go_language::language_arch_info): ...here, a new member
6618 function.
6619 (go_language_data): Delete la_language_arch_info.
6620 * language.c (unknown_language_data): Likewise.
6621 (unknown_language::language_arch_info): New member function.
6622 (auto_language_data): Delete la_language_arch_info.
6623 (auto_language::language_arch_info): New member function.
6624 (language_gdbarch_post_init): Update call to
6625 la_language_arch_info.
6626 * language.h (language_data): Delete la_language_arch_info
6627 function pointer.
6628 (language_defn::language_arch_info): New function.
6629 * m2-lang.c (m2_language_arch_info): Delete function, move
6630 implementation to...
6631 (m2_language::language_arch_info): ...here, a new member
6632 function.
6633 (m2_language_data): Delete la_language_arch_info.
6634 * objc-lang.c (objc_language_arch_info): Delete function, move
6635 implementation to...
6636 (objc_language::language_arch_info): ...here, a new member
6637 function.
6638 (objc_language_data): Delete la_language_arch_info.
6639 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6640 implementation to...
6641 (opencl_language::language_arch_info): ...here, a new member
6642 function.
6643 (opencl_language_data): Delete la_language_arch_info.
6644 * p-lang.c (pascal_language_arch_info): Delete function, move
6645 implementation to...
6646 (pascal_language::language_arch_info): ...here, a new member
6647 function.
6648 (pascal_language_data): Delete la_language_arch_info.
6649 * rust-lang.c (rust_language_arch_info): Delete function, move
6650 implementation to...
6651 (rust_language::language_arch_info): ...here, a new member
6652 function.
6653 (rust_language_data): Delete la_language_arch_info.
6654
48448202
AB
66552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6658 initializer.
6659 * c-lang.c (c_language_data): Likewise.
6660 (cplus_language_data): Likewise.
6661 (cplus_language::pass_by_reference_info): New method.
6662 (asm_language_data): Delete la_pass_by_reference initializer.
6663 (minimal_language_data): Likewise.
6664 * cp-abi.c (cp_pass_by_reference): Remove use of
6665 default_pass_by_reference.
6666 * d-lang.c (d_language_data): Likewise.
6667 * f-lang.c (f_language_data): Likewise.
6668 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6669 default_pass_by_reference.
6670 * go-lang.c (go_language_data): Likewise.
6671 * language.c (language_pass_by_reference): Update.
6672 (default_pass_by_reference): Delete.
6673 (unknown_language_data): Delete la_pass_by_reference
6674 initializer.
6675 (auto_language_data): Likewise.
6676 * language.h (struct language_data): Delete la_pass_by_reference
6677 field.
6678 (language_defn::pass_by_reference_info): New member function.
6679 (default_pass_by_reference): Delete declaration.
6680 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6681 initializer.
6682 * objc-lang.c (objc_language_data): Likewise.
6683 * opencl-lang.c (opencl_language_data): Likewise.
6684 * p-lang.c (pascal_language_data): Likewise.
6685 * rust-lang.c (rust_language_data): Likewise.
6686
15e5fd35
AB
66872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6688
6689 * ada-lang.c (ada_read_var_value): Delete function, move
6690 implementation to...
6691 (ada_language::read_var_value): ...here.
6692 (ada_language_data): Delete la_read_var_value initializer.
6693 * c-lang.c (c_language_data): Likewise.
6694 (cplus_language_data): Likewise.
6695 (minimal_language_data): Likewise.
6696 * d-lang.c (d_language_data): Likewise.
6697 * f-lang.c (f_language_data): Likewise.
6698 * findvar.c (default_read_var_value): Rename to...
6699 (language_defn::read_var_value): ...this.
6700 * findvar.c (read_var_value): Update header comment, and change to
6701 call member function instead of function pointer.
6702 * go-lang.c (go_language_data): Likewise.
6703 * language.c (unknown_language_data): Delete la_read_var_value
6704 initializer.
6705 (auto_language_data): Likewise.
6706 * language.h (struct language_data): Delete la_read_var_value
6707 field.
6708 (language_defn::read_var_value): New member function.
6709 (default_read_var_value): Delete declaration.
6710 * m2-lang.c (m2_language_data): Delete la_read_var_value
6711 initializer.
6712 * objc-lang.c (objc_language_data): Likewise.
6713 * opencl-lang.c (opencl_language_data): Likewise.
6714 * p-lang.c (pascal_language_data): Likewise.
6715 * rust-lang.c (rust_language_data): Likewise.
6716 * value.h (default_read_var_value): Delete declaration.
6717
5bd40f2a
AB
67182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6719
6720 * ada-lang.c (ada_print_array_index): Delete function, move
6721 implementation to...
6722 (ada_language::print_array_index): ...here.
6723 (ada_language_data): Delete la_print_array_index initializer.
6724 * c-lang.c (c_language_data): Likewise.
6725 (cplus_language_data): Likewise.
6726 (minimal_language_data): Likewise.
6727 * d-lang.c (d_language_data): Likewise.
6728 * f-lang.c (f_language_data): Likewise.
6729 * go-lang.c (go_language_data): Likewise.
6730 * language.c (default_print_array_index): Delete function, move
6731 implementation to...
6732 (language_defn::print_array_index): ...here.
6733 (unknown_language_data): Delete la_print_array_index initializer.
6734 (auto_language_data): Likewise.
6735 * language.h (struct language_data): Delete la_print_array_index
6736 field.
6737 (language_defn::print_array_index): New member function.
6738 (LA_PRINT_ARRAY_INDEX): Update.
6739 (default_print_array_index): Delete declaration.
6740 * m2-lang.c (m2_language_data): Delete la_print_array_index
6741 initializer.
6742 * objc-lang.c (objc_language_data): Likewise.
6743 * opencl-lang.c (opencl_language_data): Likewise.
6744 * p-lang.c (pascal_language_data): Likewise.
6745 * rust-lang.c (rust_language_data): Likewise.
6746
0874fd07
AB
67472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * gdb/ada-lang.c (ada_language_defn): Convert to...
6750 (ada_language_data): ...this.
6751 (class ada_language): New class.
6752 (ada_language_defn): New static global.
6753 * gdb/c-lang.c (c_language_defn): Convert to...
6754 (c_language_data): ...this.
6755 (class c_language): New class.
6756 (c_language_defn): New static global.
6757 (cplus_language_defn): Convert to...
6758 (cplus_language_data): ...this.
6759 (class cplus_language): New class.
6760 (cplus_language_defn): New static global.
6761 (asm_language_defn): Convert to...
6762 (asm_language_data): ...this.
6763 (class asm_language): New class.
6764 (asm_language_defn): New static global.
6765 (minimal_language_defn): Convert to...
6766 (minimal_language_data): ...this.
6767 (class minimal_language): New class.
6768 (minimal_language_defn): New static global.
6769 * gdb/d-lang.c (d_language_defn): Convert to...
6770 (d_language_data): ...this.
6771 (class d_language): New class.
6772 (d_language_defn): New static global.
6773 * gdb/f-lang.c (f_language_defn): Convert to...
6774 (f_language_data): ...this.
6775 (class f_language): New class.
6776 (f_language_defn): New static global.
6777 * gdb/go-lang.c (go_language_defn): Convert to...
6778 (go_language_data): ...this.
6779 (class go_language): New class.
6780 (go_language_defn): New static global.
6781 * gdb/language.c (unknown_language_defn): Remove declaration.
6782 (current_language): Initialize to nullptr, real initialization is
6783 moved to _initialize_language.
6784 (languages): Delete global.
6785 (language_defn::languages): Define.
6786 (set_language_command): Use language_defn::languages.
6787 (set_language): Likewise.
6788 (range_error): Likewise.
6789 (language_enum): Likewise.
6790 (language_def): Likewise.
6791 (add_set_language_command): Use language_def::languages for the
6792 language list, and language_def to lookup language pointers.
6793 (skip_language_trampoline): Use language_defn::languages.
6794 (unknown_language_defn): Convert to...
6795 (unknown_language_data): ...this.
6796 (class unknown_language): New class.
6797 (unknown_language_defn): New static global.
6798 (auto_language_defn): Convert to...
6799 (auto_language_data): ...this.
6800 (class auto_language): New class.
6801 (auto_language_defn): New static global.
6802 (language_gdbarch_post_init): Use language_defn::languages.
6803 (_initialize_language): Initialize current_language.
6804 * gdb/language.h (struct language_defn): Rename to...
6805 (struct language_data): ...this.
6806 (struct language_defn): New.
6807 (auto_language_defn): Delete.
6808 (unknown_language_defn): Delete.
6809 (minimal_language_defn): Delete.
6810 (ada_language_defn): Delete.
6811 (asm_language_defn): Delete.
6812 (c_language_defn): Delete.
6813 (cplus_language_defn): Delete.
6814 (d_language_defn): Delete.
6815 (f_language_defn): Delete.
6816 (go_language_defn): Delete.
6817 (m2_language_defn): Delete.
6818 (objc_language_defn): Delete.
6819 (opencl_language_defn): Delete.
6820 (pascal_language_defn): Delete.
6821 (rust_language_defn): Delete.
6822 * gdb/m2-lang.c (m2_language_defn): Convert to...
6823 (m2_language_data): ...this.
6824 (class m2_language): New class.
6825 (m2_language_defn): New static global.
6826 * gdb/objc-lang.c (objc_language_defn): Convert to...
6827 (objc_language_data): ...this.
6828 (class objc_language): New class.
6829 (objc_language_defn): New static global.
6830 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6831 (opencl_language_data): ...this.
6832 (class opencl_language): New class.
6833 (opencl_language_defn): New static global.
6834 * gdb/p-lang.c (pascal_language_defn): Convert to...
6835 (pascal_language_data): ...this.
6836 (class pascal_language): New class.
6837 (pascal_language_defn): New static global.
6838 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6839 language pointer, update comment format.
6840 * gdb/rust-lang.c (rust_language_defn): Convert to...
6841 (rust_language_data): ...this.
6842 (class rust_language): New class.
6843 (rust_language_defn): New static global.
6844
1313c56e
AB
68452020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6848 member variable.
6849 <m_stmt_at_address>: New member variable.
6850 (lnp_state_machine::record_line): Don't record some lines, update
6851 tracking of is_stmt at the same address.
6852 (lnp_state_machine::lnp_state_machine): Initialise new member
6853 variables.
6854
b7ed9f3d
ST
68552020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6856
6857 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6858 "-include gnu-nat-mig.h".
6859 * gnu-nat-mig.h: New file.
6860 * gnu-nat.c: Include "gnu-nat-mig.h".
6861 (exc_server, msg_reply_server, notify_server,
6862 process_reply_server): Remove declarations.
6863
14a8ad62
ST
68642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6865
6866 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6867 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6868 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6869 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6870 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6871 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6872 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6873 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6874 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6875 to gnu_nat_target class.
6876 * gnu-nat.c: Likewise.
6877 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6878 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6879 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6880 object.
6881 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6882 instead of `gnu_target'.
6883
0af5e106
ST
68842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6885
6886 * i386-gnu-tdep.c: Include "gdbcore.h"
6887 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6888 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6889 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6890 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6891 i386_gnu_sigcontext_addr): New functions
6892 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6893 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6894 tdep.
6895
078f2fc9
ST
68962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6897
6898 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6899 before fork_inferior call. Avoid calling it if target_is_pushed returns
6900 true.
6901
53dff92c
ST
69022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6903
6904 * gnu-nat.h (gnu_target): New variable declaration.
6905 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6906 gnu_target.
6907 * gnu-nat.c (gnu_target): New variable.
6908 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6909 add_thread_silent, and add_thread calls.
6910 (gnu_nat_target::create_inferior): Pass gnu_target to
6911 add_thread_silent, thread_change_ptid call.
6912 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6913 call.
6914
5a8b8627
ST
69152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6916
6917 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6918 (gnu_nat_target::find_memory_regions): Remove unused
6919 `old_address' variable.
6920
366f550a
ST
69212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6922
6923 * gnu-nat.c: Include "gdbarch.h".
6924
f14871bf
ST
69252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6926
6927 * reply_mig_hack.awk (Error return): Cast function through
6928 void *, to bypass compiler function call check.
6929
c6887cfb
ST
69302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6931
6932 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6933 $(srcdir)/reply_mig_hack.awk.
6934
6930bffe
ST
69352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6936
6937 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6938
112c22ed
JG
69392020-05-30 Jonny Grant <jg@jguk.org>
6940
6941 * configure.ac (ACX_BUGURL): change bug URL to https.
6942
f68f85b5
PA
69432020-05-30 Pedro Alves <palves@redhat.com>
6944
6945 * cp-support.c (replace_typedefs_template): New.
6946 (replace_typedefs_qualified_name): Handle
6947 DEMANGLE_COMPONENT_TEMPLATE.
6948
976ca316
SM
69492020-05-29 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6952 dwarf2/index-cache.h, dwarf2/index-write.c,
6953 dwarf2/index-write.h, dwarf2/line-header.c,
6954 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6955 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6956 variables and fields from `dwarf2_per_objfile` to just
6957 `per_objfile` throughout.
6958
989ade05
SM
69592020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6960
6961 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6962 <push_dwarf_reg_entry_value>: Add comment.
6963
c47bae85
KB
69642020-05-28 Kevin Buettner <kevinb@redhat.com>
6965 Keith Seitz <keiths@redhat.com>
6966
6967 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6968 instead of PyEval_ReleaseLock.
6969 (class gdbpy_gil): Move to earlier in file.
6970 (finalize_python): Set gdb_python_initialized.
6971 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6972 when not initialized.
6973
44486dcf
SM
69742020-05-28 Simon Marchi <simon.marchi@efficios.com>
6975
6976 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6977 <push_dwarf_reg_entry_value>: Remove assert. Override
6978 per_objfile with caller_per_objfile.
6979
f030440d
TV
69802020-05-28 Tom de Vries <tdevries@suse.de>
6981
6982 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6983 PR gold/15646 workaround to symbol kind "type".
6984
f0fbb768
TT
69852020-05-27 Tom Tromey <tromey@adacore.com>
6986
6987 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6988
af0b2a3e
TT
69892020-05-27 Tom Tromey <tromey@adacore.com>
6990
6991 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6992 Use htab_find_with_hash.
6993 <add_abbrev>: Remove "abbrev_number" parameter.
6994 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6995 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6996 (hash_abbrev): Add comment.
6997 (abbrev_table::lookup_abbrev): Move to header file.
6998 (abbrev_table::read): Update.
6999
7d00ffec
TT
70002020-05-27 Tom Tromey <tromey@adacore.com>
7001
7002 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7003 method.
7004 <canonical_name>: New member.
7005 <raw_name>: Rename from "name".
7006 (partial_die_info): Initialize canonical_name.
7007 (scan_partial_symbols): Check raw_name.
7008 (partial_die_parent_scope, partial_die_full_name)
7009 (add_partial_symbol, add_partial_subprogram)
7010 (add_partial_enumeration, load_partial_dies): Use "name" method.
7011 (partial_die_info::name): New method.
7012 (partial_die_info::read, guess_partial_die_structure_name)
7013 (partial_die_info::fixup): Update.
7014
697bba18
TT
70152020-05-27 Tom Tromey <tromey@adacore.com>
7016
7017 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7018 <get_ref_die_offset>: Inline.
7019 <get_ref_die_offset_complaint>: New method.
7020 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7021 (attribute::get_ref_die_offset_complaint): Rename from
7022 get_ref_die_offset. Just issue complaint.
7023
c17ace43
HD
70242020-05-27 Hannes Domani <ssbssa@yahoo.de>
7025
7026 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7027
96445f0b
HD
70282020-05-27 Hannes Domani <ssbssa@yahoo.de>
7029
7030 * exec.c (exec_file_attach): Use errno value of first openp failure.
7031
ac637ec3
HD
70322020-05-27 Hannes Domani <ssbssa@yahoo.de>
7033
7034 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7035 Don't close thread handle.
7036
17ee85fc
TT
70372020-05-27 Tom Tromey <tom@tromey.com>
7038 Simon Marchi <simon.marchi@efficios.com>
7039
7040 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7041 shared_ptr.
7042 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7043 member.
7044 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7045 dwarf2_per_bfd_objfile_data_key>: New globals.
7046 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7047 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7048 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7049 shared.
7050 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7051 short-circuit when sharing.
7052 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7053 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7054
39b16f87
SM
70552020-05-27 Simon Marchi <simon.marchi@efficios.com>
7056
7057 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7058 to...
7059 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7060 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7061
fcf23d5b
SM
70622020-05-27 Simon Marchi <simon.marchi@efficios.com>
7063
7064 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7065 build_name_components, find_name_components_bounds>:
7066 Add per_objfile parameter.
7067 (struct mapped_index) <symbol_name_at>: Likewise.
7068 (struct mapped_debug_names): Remove constructor.
7069 <dwarf2_per_objfile>: Remove field.
7070 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7071 (mapped_index_base::find_name_components_bounds,
7072 mapped_index_base::build_name_components,
7073 dw2_expand_symtabs_matching_symbol): Likewise.
7074 (class mock_mapped_index) <symbol_name_at>: Likewise.
7075 (check_match): Likewise.
7076 (check_find_bounds_finds): Likewise.
7077 (test_mapped_index_find_name_component_bounds): Update.
7078 (CHECK_MATCH): Update.
7079 (dw2_expand_symtabs_matching): Update.
7080 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7081 per_objfile parameter.
7082 <find_vec_in_debug_names>: Likewise.
7083 <m_per_objfile>: New field.
7084 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7085 parameter.
7086 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7087 (dw2_debug_names_iterator::next): Update.
7088 (dw2_debug_names_lookup_symbol): Update.
7089 (dw2_debug_names_expand_symtabs_for_function): Update.
7090 (dw2_debug_names_map_matching_symbols): Update.
7091 (dw2_debug_names_expand_symtabs_matching): Update.
7092 (dwarf2_read_debug_names): Update.
7093
7188ed02
SM
70942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7095
7096 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7097 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7098 move to dwarf2_per_objfile.
7099 <read_in_chain>: Remove.
7100 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7101 remove_all_cus, age_comp_units>: New methods.
7102 <m_dwarf2_cus>: New member.
7103 (struct dwarf2_per_cu_data) <cu>: Remove.
7104 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7105 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7106 moved to methods of dwarf2_per_objfile.
7107 (dwarf2_clear_marks): Remove.
7108 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7109 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7110 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7111 (dwarf2_per_objfile::remove_all_cus): New.
7112 (class free_cached_comp_units) <~free_cached_comp_units>:
7113 Update.
7114 (load_cu): Update.
7115 (dw2_do_instantiate_symtab): Adjust.
7116 (fill_in_sig_entry_from_dwo_entry): Adjust.
7117 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7118 (cutu_reader::cutu_reader): Likewise.
7119 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7120 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7121 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7122 and dwarf2_per_objfile::age_comp_units.
7123 (load_partial_comp_unit): Update.
7124 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7125 (process_queue): Likewise.
7126 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7127 backlink.
7128 (dwarf2_read_addr_index): Likewise.
7129 (follow_die_offset): Likewise.
7130 (dwarf2_fetch_die_loc_sect_off): Likewise.
7131 (dwarf2_fetch_constant_bytes): Likewise.
7132 (dwarf2_fetch_die_type_sect_off): Likewise.
7133 (follow_die_sig_1): Likewise.
7134 (load_full_type_unit): Likewise.
7135 (read_signatured_type): Likewise.
7136 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7137 (dwarf2_cu::~dwarf2_cu): Remove.
7138 (dwarf2_per_objfile::get_cu): New.
7139 (dwarf2_per_objfile::set_cu): New.
7140 (age_cached_comp_units): Rename to...
7141 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7142 to std::unordered_map.
7143 (free_one_cached_comp_unit): Rename to...
7144 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7145 to std::unordered_map.
7146 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7147 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7148 a dwarf2_per_objfile in data.
7149 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7150 (dwarf2_clear_marks): Remove.
7151
2e671100
SM
71522020-05-27 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7155 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7156 (init_tu_and_read_dwo_dies): Likewise.
7157 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7158 (cutu_reader::cutu_reader): Likewise.
7159 (load_partial_comp_unit): Likewise.
7160 (process_psymtab_comp_unit): Update.
7161 (build_type_psymtabs_1): Update.
7162 (process_skeletonless_type_unit): Update.
7163 (load_full_comp_unit): Update.
7164 (find_partial_die): Update.
7165 (dwarf2_read_addr_index): Update.
7166 (read_signatured_type): Update.
7167
2e6a9f79
SM
71682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7169
7170 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7171 m_header_read_in>: New fields.
7172 <get_header>: New method.
7173 * dwarf2/read.c (per_cu_header_read_in): Remove.
7174 (dwarf2_per_cu_data::get_header): New.
7175 (dwarf2_per_cu_data::addr_size): Update.
7176 (dwarf2_per_cu_data::offset_size): Update.
7177 (dwarf2_per_cu_data::ref_addr_size): Update.
7178
1b555f17
SM
71792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7180
7181 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7182 (dw2_do_instantiate_symtab): Update.
7183 (queue_and_load_all_dwo_tus): Change parameter from
7184 dwarf2_per_cu_data to dwarf2_cu.
7185 (dwarf2_fetch_die_loc_sect_off): Update.
7186 (dwarf2_fetch_constant_bytes): Update.
7187 (dwarf2_fetch_die_type_sect_off): Update.
7188
8fc0b21d
SM
71892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7190
7191 * dwarf2/read.c (process_full_comp_unit,
7192 process_full_type_unit): Remove per_cu, per_objfile paramters.
7193 Add dwarf2_cu parameter.
7194 (process_queue): Update.
7195
168c9250
SM
71962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * dwarf2/read.c (create_cu_from_index_list): Replace
7199 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7200 (create_cus_from_index_list): Likewise.
7201 (create_cus_from_index): Likewise.
7202 (create_signatured_type_table_from_index): Likewise.
7203 (create_cus_from_debug_names_list): Likewise.
7204 (create_cus_from_debug_names): Likewise.
7205 (dwarf2_read_gdb_index): Update.
7206 (dwarf2_read_debug_names): Update.
7207
e286671b
TT
72082020-05-27 Tom Tromey <tom@tromey.com>
7209 Simon Marchi <simon.marchi@efficios.com>
7210
7211 * dwarf2/read.h (struct dwarf2_per_objfile)
7212 <get_type_for_signatured_type, set_type_for_signatured_type>:
7213 New methods.
7214 <m_type_map>: New member.
7215 (struct signatured_type) <type>: Remove.
7216 * dwarf2/read.c
7217 (dwarf2_per_objfile::get_type_for_signatured_type,
7218 dwarf2_per_objfile::set_type_for_signatured_type): New.
7219 (get_signatured_type): Use new methods.
7220
8adb8487
TT
72212020-05-27 Tom Tromey <tom@tromey.com>
7222 Simon Marchi <simon.marchi@efficios.com>
7223
7224 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7225 (struct dwarf2_per_objfile) <type_units>: New member.
7226 <get_type_unit_group_unshareable>: New method.
7227 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7228 num_symtabs, symtabs>: Remove; move to
7229 type_unit_group_unshareable.
7230 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7231 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7232 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7233
127bbf4b
SM
72342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7235
7236 * dwarf2/read.h (struct dwarf2_per_cu_data):
7237 <dwarf2_per_objfile>: Remove.
7238 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7239 dwarf2_per_objfile.
7240 (create_signatured_type_table_from_index): Likewise.
7241 (create_signatured_type_table_from_debug_names): Likewise.
7242 (create_debug_type_hash_table): Likewise.
7243 (fill_in_sig_entry_from_dwo_entry): Likewise.
7244 (create_type_unit_group): Likewise.
7245 (read_comp_units_from_section): Likewise.
7246 (create_cus_hash_table): Likewise.
7247
f6e649dd
SM
72482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7249
7250 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7251 dwarf2_per_cu_data::dwarf2_per_objfile.
7252 (compute_compunit_symtab_includes): Likewise.
7253 (dwarf2_cu::start_symtab): Likewise.
7254
aa66c379
SM
72552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7256
7257 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7258 parameter.
7259 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7260 (read_namespace_alias): Update.
7261 (lookup_die_type): Update.
7262 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7263 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7264 Update.
7265 (disassemble_dwarf_expression): Update.
7266
120ce1b5
SM
72672020-05-27 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * dwarf2/read.h (struct dwarf2_queue_item): Add
7270 dwarf2_per_objfile parameter, assign new parameter.
7271 <per_objfile>: New field.
7272 * dwarf2/read.c (free_one_cached_comp_unit): Add
7273 dwarf2_per_objfile parameter.
7274 (queue_comp_unit): Likewise.
7275 (dw2_do_instantiate_symtab): Update.
7276 (process_psymtab_comp_unit): Update.
7277 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7278 (process_imported_unit_die): Update.
7279 (queue_and_load_dwo_tu): Update.
7280 (follow_die_offset): Update.
7281 (follow_die_sig_1): Update.
7282
9f47c707
SM
72832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7284
7285 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7286 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7287 (read_call_site_scope): Assign per_objfile.
7288 (dwarf2_per_cu_data::objfile): Remove.
7289 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7290 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7291 dwarf2_per_objfile parameter.
7292 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7293 dwarf2_per_objfile parameter.
7294 (dwarf_expr_reg_to_entry_parameter): Add output
7295 dwarf2_per_objfile parameter.
7296 (locexpr_get_frame_base): Update.
7297 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7298 <push_dwarf_reg_entry_value>: Update.
7299 <call_site_to_target_addr>: Update.
7300 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7301 parameter.
7302 (value_of_dwarf_reg_entry): Update.
7303 (rw_pieced_value): Update.
7304 (indirect_synthetic_pointer): Update.
7305 (dwarf2_evaluate_property): Update.
7306 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7307 parameter.
7308 (locexpr_read_variable): Update.
7309 (locexpr_get_symbol_read_needs): Update.
7310 (loclist_read_variable): Update.
7311
14095eb3
SM
73122020-05-27 Simon Marchi <simon.marchi@efficios.com>
7313
7314 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7315 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7316 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7317 parameter.
7318 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7319 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7320 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7321 parameter.
7322 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7323 sect_variable_value): Add dwarf2_per_objfile parameter.
7324 (class dwarf_evaluate_loc_desc) <dwarf_call,
7325 dwarf_variable_value>: Update.
7326 (fetch_const_value_from_synthetic_pointer): Add
7327 dwarf2_per_objfile parameter.
7328 (fetch_const_value_from_synthetic_pointer): Update.
7329 (coerced_pieced_ref): Update.
7330 (class symbol_needs_eval_context) <dwarf_call,
7331 dwarf_variable_value>: Update.
7332 (dwarf2_compile_expr_to_ax): Update.
7333
3c3cd3d4
SM
73342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7337 parameter.
7338 (dwarf2_evaluate_loc_desc_full): Update.
7339
82ca3f51
SM
73402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7341
7342 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7343 parameter.
7344 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7345 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7346 dwarf2_per_objfile parameter.
7347 (decode_debug_loc_dwo_addresses): Likewise.
7348 (dwarf2_find_location_expression): Update.
7349 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7350 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7351 parameter.
7352 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7353 parameter.
7354 (locexpr_describe_location_1): Likewise.
7355 (locexpr_describe_location): Update.
7356
4b167ea1
SM
73572020-05-27 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7360 Remove.
7361 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7362 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7363 (dwarf2_compile_property_to_c): Update.
7364 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7365 use text offset from objfile.
7366 (locexpr_tracepoint_var_ref): Update.
7367 (locexpr_generate_c_location): Update.
7368 (loclist_describe_location): Update.
7369 (loclist_tracepoint_var_ref): Update.
7370 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7371 dwarf2_per_objfile parameter.
7372 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7373 use text offset from objfile.
7374 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7375
89b07335
SM
73762020-05-27 Simon Marchi <simon.marchi@efficios.com>
7377
7378 * dwarf2/expr.h (struct dwarf_expr_context)
7379 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7380 <offset>: Remove.
7381 <per_objfile>: New member.
7382 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7383 dwarf2_per_objfile parameter. Don't set offset, set
7384 per_objfile.
7385 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7386 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7387 a dwarf2_per_objfile object instead of an offset.
7388 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7389 constructor.
7390 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7391 to dwarf2_expr_executor constructor. Don't set offset.
7392 (dwarf2_fetch_cfa_info): Update.
7393 (struct dwarf2_frame_cache) <text_offset>: Remove.
7394 <per_objfile>: New field.
7395 (dwarf2_frame_cache): Update.
7396 (dwarf2_frame_prev_register): Update.
7397 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7398 <dwarf_evaluate_loc_desc>: Add constructor.
7399 (dwarf2_evaluate_loc_desc_full): Update.
7400 (dwarf2_locexpr_baton_eval): Update.
7401 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7402 Add constructor.
7403 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7404
293e7e51
SM
74052020-05-27 Simon Marchi <simon.marchi@efficios.com>
7406
7407 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7408 addr_sized_int_type>: Move to dwarf2_cu.
7409 <int_type>: Move to dwarf2_per_objfile.
7410 (struct dwarf2_per_objfile) <int_type>: Move here.
7411 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7412 addr_sized_int_type>: Move here.
7413 (read_func_scope): Update.
7414 (read_array_type): Update.
7415 (read_tag_string_type): Update.
7416 (attr_to_dynamic_prop): Update.
7417 (dwarf2_per_cu_data::int_type): Rename to...
7418 (dwarf2_per_objfile::int_type): ... this.
7419 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7420 (dwarf2_cu::addr_sized_int_type): ... this.
7421 (read_subrange_type): Update.
7422 (dwarf2_per_cu_data::addr_type): Rename to...
7423 (dwarf2_cu::addr_type): ... this.
7424 (set_die_type): Update.
7425
64874a40
SM
74262020-05-27 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7429 data through per_cu->cu.
7430
4ab09049
SM
74312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7434 dwarf2_per_cu_data parameter fo dwarf2_cu.
7435 (lookup_dwo_type_unit): Likewise.
7436 (read_cutu_die_from_dwo): Likewise.
7437 (lookup_dwo_unit): Likewise.
7438 (open_and_init_dwo_file): Likewise.
7439 (lookup_dwo_cutu): Likewise.
7440 (lookup_dwo_comp_unit): Likewise.
7441 (lookup_dwo_type_unit): Likewise.
7442 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7443 (cutu_reader::cutu_reader): Update.
7444
47b14e86
SM
74452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7448 parameter.
7449 (process_full_type_unit): Likewise.
7450 (process_queue): Update.
7451
43182c09
SM
74522020-05-27 Simon Marchi <simon.marchi@efficios.com>
7453
7454 * dwarf2/read.c (recursively_compute_inclusions): Add
7455 dwarf2_per_objfile parameter.
7456 (compute_compunit_symtab_includes): Likewise.
7457 (process_cu_includes): Update.
7458
7aa104c4
SM
74592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7462 parameter.
7463 (create_type_unit_group): Update.
7464 (process_psymtab_comp_unit_reader): Update.
7465 (build_type_psymtabs_reader): Update.
7466
e3beb21d
SM
74672020-05-27 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7470 object through m_this_cu->cu.
7471
d460f660
SM
74722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7473
7474 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7475 the info parameter.
7476 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7477
ab432490
SM
74782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7479
7480 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7481 per_objfile parameter.
7482 (load_full_type_unit): Add per_objfile parameter.
7483 (read_signatured_type): Likewise.
7484 (load_full_comp_unit): Likewise.
7485 (load_cu): Likewise.
7486 (dw2_do_instantiate_symtab): Likewise.
7487 (dw2_get_file_names): Likewise.
7488 (dw2_map_symtabs_matching_filename): Update.
7489 (dw_expand_symtabs_matching_file_matcher): Update.
7490 (dw2_map_symbol_filenames): Update.
7491 (process_psymtab_comp_unit): Add per_objfile parameter.
7492 (build_type_psymtabs_1): Update.
7493 (process_skeletonless_type_unit): Update.
7494 (dwarf2_build_psymtabs_hard): Update.
7495 (load_partial_comp_unit): Add per_objfile parameter.
7496 (scan_partial_symbols): Update.
7497 (load_full_comp_unit): Add per_objfile parameter.
7498 (process_imported_unit_die): Update.
7499 (create_cus_hash_table): Update.
7500 (find_partial_die): Update.
7501 (dwarf2_read_addr_index): Update.
7502 (follow_die_offset): Update.
7503 (dwarf2_fetch_die_loc_sect_off): Update.
7504 (dwarf2_fetch_constant_bytes): Update.
7505 (dwarf2_fetch_die_type_sect_off): Update.
7506 (follow_die_sig_1): Update.
7507 (load_full_type_unit): Add per_objfile parameter.
7508 (read_signatured_type): Likewise.
7509
313bad1b
SM
75102020-05-27 Simon Marchi <simon.marchi@efficios.com>
7511
7512 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7513 of objfile_name.
7514
c3699833
SM
75152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7516
7517 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7518 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7519 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7520 field.
7521 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7522 (create_cus_from_index): Update.
7523 (dwarf2_read_gdb_index): Update.
7524 (create_cus_from_debug_names): Update.
7525 (dwarf2_read_debug_names): Update.
7526 (get_abbrev_section_for_cu): Update.
7527 (create_all_comp_units): Update.
7528 (read_attribute_value): Update.
7529 (get_debug_line_section): Update.
7530 * dwarf2/index-cache.c (index_cache::store): Update.
7531 * dwarf2/index-write.c (save_gdb_index_command): Update.
7532 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7533
1859c670
SM
75342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7535
7536 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7537 member.
7538 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7539 dwarf2_per_cu_data::per_bfd.
7540 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7541 (create_type_unit_group): Likewise.
7542 (queue_comp_unit): Remove reference to
7543 per_cu->dwarf2_per_objfile.
7544 (maybe_queue_comp_unit): Likewise.
7545 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7546 (create_cus_hash_table): Assign new field.
7547
5e22e966
SM
75482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * dwarf2/read.c: Replace
7551 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7552 dwarf2_cu->per_objfile throughout.
7553
97a1449a
SM
75542020-05-27 Simon Marchi <simon.marchi@efficios.com>
7555
7556 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7557 parameter, don't use per_cu->dwarf2_per_objfile.
7558 (dw2_instantiate_symtab): Likewise.
7559 (dw2_find_last_source_symtab): Update.
7560 (dw2_map_expand_apply): Update.
7561 (dw2_lookup_symbol): Update.
7562 (dw2_expand_symtabs_for_function): Update.
7563 (dw2_expand_all_symtabs): Update.
7564 (dw2_expand_symtabs_with_fullname): Update.
7565 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7566 don't use per_cu->dwarf2_per_objfile.
7567 (dw2_expand_marked_cus): Update.
7568 (dw2_find_pc_sect_compunit_symtab): Update.
7569 (dw2_debug_names_lookup_symbol): Update.
7570 (dw2_debug_names_expand_symtabs_for_function): Update.
7571 (dw2_debug_names_map_matching_symbols): Update.
7572 (dwarf2_psymtab::expand_psymtab): Update.
7573
9e021579
SM
75742020-05-27 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7577 <per_objfile>: New member.
7578 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7579 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7580 call to dwarf2_cu.
7581 (cutu_reader::cutu_reader): Update.
7582 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7583
ae090bdb
SM
75842020-05-27 Simon Marchi <simon.marchi@efficios.com>
7585
7586 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7587 struct dwarf2_per_objfile.
7588 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7589 dwarf2_per_bfd.
7590 * dwarf2/read.c (set_die_type): Update.
7591 (get_die_type_at_offset): Update.
7592
af758d11
SM
75932020-05-27 Tom Tromey <tom@tromey.com>
7594 Simon Marchi <simon.marchi@efficios.com>
7595
7596 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7597 method.
7598 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7599 get_symtab, set_symtab>: New methods.
7600 <m_symtabs>: New field.
7601 (struct dwarf2_psymtab): Derive from partial_symtab.
7602 <readin_p, get_compunit_symtab>: Declare methods.
7603 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7604 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7605 New methods.
7606 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7607 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7608 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7609 (dw2_symtab_iter_next, dw2_print_stats)
7610 (dw2_expand_symtabs_with_fullname)
7611 (dw2_expand_symtabs_matching_one)
7612 (dw_expand_symtabs_matching_file_matcher)
7613 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7614 (dw2_debug_names_iterator::next)
7615 (dw2_debug_names_map_matching_symbols)
7616 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7617 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7618 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7619 New methods.
7620 (get_compunit_symtab, process_full_comp_unit)
7621 (process_full_type_unit): Update.
7622 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7623
5989a64e
SM
76242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7625
7626 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7627 then introduce a new dwarf2_per_objfile type.
7628 <read_line_string>: Move to the new dwarf2_per_objfile type.
7629 <objfile>: Likewise.
7630 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7631 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7632 dwarf2_per_objfile->per_bfd.
7633 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7634 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7635 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7636 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7637 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7638 (dwarf2_per_objfile::locate_sections): Rename to...
7639 (dwarf2_per_bfd::locate_sections): ... this.
7640 (dwarf2_per_objfile::get_cutu): Rename to...
7641 (dwarf2_per_bfd::get_cutu): ... this.
7642 (dwarf2_per_objfile::get_cu): Rename to...
7643 (dwarf2_per_bfd::get_cu): ... this.
7644 (dwarf2_per_objfile::get_tu): Rename to...
7645 (dwarf2_per_bfd::get_tu): ... this.
7646 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7647 (dwarf2_per_bfd::allocate_per_cu): ... this.
7648 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7649 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7650 (get_gdb_index_contents_ftype): Change parameter from
7651 dwarf2_per_objfile to dwarf2_per_bfd.
7652 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7653 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7654
a50264ba
TT
76552020-05-27 Tom Tromey <tom@tromey.com>
7656 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7659 (allocate_piece_closure): Set "per_objfile" member.
7660 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7661 (locexpr_describe_location, loclist_describe_location): Use new
7662 member.
7663 * dwarf2/read.c (read_call_site_scope)
7664 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7665 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7666 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7667 handle_data_member_location): Set per_objfile member.
7668 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7669 member.
7670 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7671
d3473f0c
TT
76722020-05-27 Tom Tromey <tom@tromey.com>
7673
7674 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7675 allocate_signatured_type>: Declare new methods.
7676 <m_num_psymtabs>: New member.
7677 (struct dwarf2_per_cu_data) <index>: New member.
7678 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7679 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7680 (create_cu_from_index_list): Use allocate_per_cu.
7681 (create_signatured_type_table_from_index)
7682 (create_signatured_type_table_from_debug_names)
7683 (create_debug_type_hash_table, add_type_unit)
7684 (read_comp_units_from_section): Use allocate_signatured_type.
7685
5717c425
TT
76862020-05-27 Tom Tromey <tom@tromey.com>
7687
7688 * psymtab.c (partial_map_expand_apply)
7689 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7690 (psym_lookup_global_symbol_language)
7691 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7692 (psym_print_stats, psym_expand_symtabs_for_function)
7693 (psym_map_symbol_filenames, psym_map_matching_symbols)
7694 (psym_expand_symtabs_matching)
7695 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7696 (maintenance_check_psymtabs): Update.
7697 * psympriv.h (struct partial_symtab) <readin_p,
7698 get_compunit_symtab>: Add objfile parameter.
7699 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7700 Likewise.
7701 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7702 get_compunit_symtab>: Likewise.
7703 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7704
45940949
TT
77052020-05-27 Tom Tromey <tom@tromey.com>
7706
7707 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7708 member.
7709 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7710 (create_cu_from_index_list)
7711 (create_signatured_type_table_from_index)
7712 (create_signatured_type_table_from_debug_names)
7713 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7714 (dwarf2_create_include_psymtab)
7715 (create_debug_type_hash_table, add_type_unit)
7716 (create_type_unit_group, read_comp_units_from_section)
7717 (dwarf2_compute_name, create_cus_hash_table)
7718 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7719 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7720 obstack.
7721 (dw2_get_real_path): Likewise. Change argument to
7722 dwarf2_per_objfile.
7723
f8c6d152
LM
77242020-05-27 Luis Machado <luis.machado@linaro.org>
7725
7726 PR tdep/26000
7727 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7728 for ldrd (immediate).
7729
e98d2e6d
PW
77302020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7731
7732 * command.h: Add comment giving the name of class_tui.
7733 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7734 create the fake command for the help for class_tui.
7735
53a47a3e
TT
77362020-05-26 Tom Tromey <tromey@adacore.com>
7737
7738 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7739 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7740 (val_atr): New function.
7741 (value_val_atr): Use it.
7742 * ada-valprint.c (print_optional_low_bound): Change low bound
7743 handling for enums.
7744 (val_print_packed_array_elements): Don't call discrete_position.
7745 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7746 discrete_position for enum types.
7747 * language.c (default_print_array_index): Change type.
7748 * language.h (struct language_defn) <la_print_array_index>: Add
7749 index_type parameter, change type of index_value.
7750 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7751 (default_print_array_index): Update.
7752 * valprint.c (maybe_print_array_index): Don't call
7753 value_from_longest. Update.
7754 (value_print_array_elements): Don't call discrete_position.
7755
0bc2354b
TT
77562020-05-26 Tom Tromey <tromey@adacore.com>
7757
7758 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7759 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7760
1218a4bf
CDA
77612020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7762
7763 PR gdb/13519
7764 * avr-tdep.c (avr_integer_to_address): Return data or code
7765 address accordingly to the second 'type' argument of the
7766 function.
7767
92651b1d
MW
77682020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7769
7770 * infcmd.c, inferior.h: (construct_inferior_arguments):
7771 Moved function from here to gdbsupport/common-inferior.{h,cc}
7772
0a4f5f8c
TT
77732020-05-23 Tom Tromey <tom@tromey.com>
7774
7775 Revert commit eca1f90c:
7776 * NEWS: Remove entry for completion styling.
7777 * completer.c (_rl_completion_prefix_display_length): Move
7778 declaration later.
7779 (gdb_fnprint): Revert.
7780 (gdb_display_match_list_1): Likewise.
7781 * cli/cli-style.c (completion_prefix_style)
7782 (completion_difference_style, completion_suffix_style): Remove.
7783 (_initialize_cli_style): Revert.
7784 * cli/cli-style.h (completion_prefix_style)
7785 (completion_difference_style, completion_suffix_style): Don't
7786 declare.
7787
e08bd6c5
PA
77882020-05-24 Pedro Alves <palves@redhat.com>
7789
7790 * symtab.c (completion_list_add_name): Return boolean indication
7791 of whether the symbol matched.
7792 (completion_list_add_symbol): Don't try to remove C++ aliases if
7793 the symbol didn't match in the first place.
7794 * symtab.h (completion_list_add_name): Return bool.
7795
ceacbf6e
SM
77962020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7797
7798 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7799 type::field.
7800
26f16254
JB
78012020-05-23 Joel Brobecker <brobecker@adacore.com>
7802
7803 GDB 9.2 released.
7804
eca1f90c
TT
78052020-05-23 Tom Tromey <tom@tromey.com>
7806
7807 * NEWS: Add entry for completion styling.
7808 * completer.c (_rl_completion_prefix_display_length): Move
7809 declaration earlier.
7810 (gdb_fnprint): Use completion_style.
7811 (gdb_display_match_list_1): Likewise.
7812 * cli/cli-style.c (completion_prefix_style)
7813 (completion_difference_style, completion_suffix_style): New
7814 globals.
7815 (_initialize_cli_style): Register new globals.
7816 * cli/cli-style.h (completion_prefix_style)
7817 (completion_difference_style, completion_suffix_style): Declare.
7818
51e2cfa2
PA
78192020-05-23 Pedro Alves <palves@redhat.com>
7820
7821 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7822 (parse_escape): Use ISDIGIT instead of isdigit.
7823 (puts_debug): Use gdb_isprint instead of isprint.
7824 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7825 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7826 ISSPACE instead of isspace.
7827 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7828 instead of isspace.
7829 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7830 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7831 instead of isxdigit and ISDIGIT instead of isdigit.
7832
80fc5e77
SM
78332020-05-22 Simon Marchi <simon.marchi@efficios.com>
7834
7835 * gdbtypes.h (struct type) <field>: New method.
7836 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7837 or type::field.
7838
3cabb6b0
SM
78392020-05-22 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7842 (TYPE_FIELDS): Use type::fields. Change all call sites that
7843 modify the propery to use type::set_fields instead.
7844
1f704f76
SM
78452020-05-22 Simon Marchi <simon.marchi@efficios.com>
7846
7847 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7848 type::num_fields instead.
7849
5e33d5f4
SM
78502020-05-22 Simon Marchi <simon.marchi@efficios.com>
7851
7852 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7853 methods.
7854 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7855 that modify the number of fields to use type::set_num_fields
7856 instead.
7857
9392ebb3
TT
78582020-05-22 Tom Tromey <tromey@adacore.com>
7859
7860 * compile/compile-object-load.h (munmap_list_free): Don't
7861 declare.
7862
7c13f4e8
AB
78632020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7864
7865 * annotate.c (annotate_source_line): Update return type, add call
7866 to update current symtab and line.
7867 * annotate.h (annotate_source_line): Update return type, and
7868 extend header comment.
7869 * source.c (info_line_command): Check annotation_level before
7870 calling annotate_source_line.
7871 * stack.c (print_frame_info): If calling annotate_source_line
7872 returns true, then don't print any other source line information.
7873
aa370940
SM
78742020-05-21 Simon Marchi <simon.marchi@efficios.com>
7875
7876 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7877
84d53fa9
SM
78782020-05-21 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * coffread.c (patch_type): Remove NULL check before xfree.
7881 * corefile.c (set_gnutarget): Likewise.
7882 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7883 * exec.c (build_section_table): Likewise.
7884 * remote.c (remote_target::pass_signals): Likewise.
7885 * utils.c (n_spaces): Likewise.
7886 * cli/cli-script.c (document_command): Likewise.
7887 * i386-windows-tdep.c (core_process_module_section): Likewise.
7888 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7889
9d428aae
SM
78902020-05-20 Simon Marchi <simon.marchi@efficios.com>
7891
7892 * symfile.c (reread_symbols): Clear objfile's section_offsets
7893 vector and section indices, re-compute them by calling
7894 sym_offsets.
7895
250106a7
TT
78962020-05-20 Tom Tromey <tromey@adacore.com>
7897
7898 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7899 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7900
9a0bacfb
TV
79012020-05-20 Tom de Vries <tdevries@suse.de>
7902
7903 PR symtab/25833
7904 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7905
7b958a48
AM
79062020-05-20 Alan Modra <amodra@gmail.com>
7907
7908 PR 25993
7909 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7910 bfd_set_filename.
7911 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7912 passed to bfd_set_filename.
7913 * symfile-mem.c (add_vsyscall_page): Likewise for string
7914 passed to symbol_file_add_from_memory.
7915 (symbol_file_add_from_memory): Make name param a const char* and
7916 don't strdup.
7917
c7e97679
AM
79182020-05-20 Alan Modra <amodra@gmail.com>
7919
7920 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7921 rather than accessing bfd->filename directly.
7922 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7923 and use bfd_section_name.
7924 * dwarf2/frame.c (decode_frame_entry): Likewise.
7925 * exec.c (exec_set_section_address): Likewise.
7926 * solib-aix.c (solib_aix_bfd_open): Likewise.
7927 * stap-probe.c (get_stap_base_address): Likewise.
7928 * symfile.c (reread_symbols): Likewise.
7929
563c591b
TT
79302020-05-19 Tom Tromey <tromey@adacore.com>
7931
7932 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7933
f408d82c
SM
79342020-05-19 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7937
98c59b52
PA
79382020-05-19 Pedro Alves <palves@redhat.com>
7939
7940 * NEWS (set exec-file-mismatch): Adjust entry.
7941 * exec.c: Include "build-id.h".
7942 (validate_exec_file): Try to match build IDs instead of filenames.
7943 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7944 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7945 and pass down 'warn_if_slow'.
7946 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7947 gdb_bfd_open_closure to pass it down.
7948 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7949
4111f652
PA
79502020-05-19 Pedro Alves <palves@redhat.com>
7951
7952 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7953 * target.c (target_fileio_open_1): Rename to target_fileio_open
7954 and make extern. Use bool.
7955 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7956 (target_fileio_read_alloc_1): Adjust.
7957 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7958 (target_fileio_open_warn_if_slow): Delete declaration.
7959
ad80db5b
PA
79602020-05-19 Pedro Alves <palves@redhat.com>
7961
7962 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7963 Adjust all callers.
7964
1d6ce4d3
YS
79652020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7966
7967 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7968 whether disp is negative.
7969
9005fbbb
SM
79702020-05-19 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * symfile.h (struct symfile_segment_data)
7973 <~symfile_segment_data>: Remove.
7974 <segment_info>: Change to std::vector.
7975 * symfile.c (default_symfile_segments): Update.
7976 * elfread.c (elf_symfile_segments): Update.
7977
68b888ff
SM
79782020-05-19 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7981 <segments>: New.
7982 <segment_bases, segment_sizes>: Remove.
7983 * symfile.c (default_symfile_segments): Update.
7984 * elfread.c (elf_symfile_segments): Update.
7985 * remote.c (remote_target::get_offsets): Update.
7986 * solib-target.c (solib_target_relocate_section_addresses):
7987 Update.
7988
62982abd
SM
79892020-05-19 Simon Marchi <simon.marchi@efficios.com>
7990
7991 * symfile.h (struct symfile_segment_data): Initialize fields.
7992 <~symfile_segment_data>: Add.
7993 (symfile_segment_data_up): New.
7994 (struct sym_fns) <sym_segments>: Return a
7995 symfile_segment_data_up.
7996 (default_symfile_segments): Return a symfile_segment_data_up.
7997 (free_symfile_segment_data): Remove.
7998 (get_symfile_segment_data): Return a symfile_segment_data_up.
7999 * symfile.c (default_symfile_segments): Likewise.
8000 (get_symfile_segment_data): Likewise.
8001 (free_symfile_segment_data): Remove.
8002 (symfile_find_segment_sections): Update.
8003 * elfread.c (elf_symfile_segments): Return a
8004 symfile_segment_data_up.
8005 * remote.c (remote_target::get_offsets): Update.
8006 * solib-target.c (solib_target_relocate_section_addresses):
8007 Update.
8008 * symfile-debug.c (debug_sym_segments): Return a
8009 symfile_segment_data_up.
8010
7f204339
RO
80112020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8012
e52a0f1b
RO
8013 PR build/25981
8014 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8015 Hardcode register numbers.
8016
7f204339
RO
8017 PR build/25981
8018 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8019 procfs_find_LDT_entry): Remove.
8020 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8021 procfs_find_LDT_entry): Remove.
8022 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8023 Remove.
8024
7f32a4d5
PA
80252020-05-17 Pedro Alves <palves@redhat.com>
8026 Andrew Burgess <andrew.burgess@embecosm.com>
8027 Keno Fischer <keno@juliacomputing.com>
8028
8029 PR gdb/25741
8030 * breakpoint.c (build_target_condition_list): Update comments.
8031 (build_target_command_list): Update comments and skip matching
8032 locations.
8033 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8034 a separate function. Simplify "set breakpoint auto-hw off"
8035 handling.
8036 (insert_breakpoints): Update comment.
8037 (tracepoint_locations_match): New parameter. For breakpoints,
8038 compare location types too, if the caller wants to.
8039 (handle_automatic_hardware_breakpoints): New functions.
8040 (bp_location_is_less_than): Also sort by location type and
8041 hardware breakpoint length.
8042 (update_global_location_list): Handle "set breakpoint auto-hw on"
8043 here.
8044 (update_breakpoint_locations): Ask breakpoint_locations_match to
8045 ignore location types.
8046
7d93a1e0
SM
80472020-05-16 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8050 type::name instead.
8051
d0e39ea2
SM
80522020-05-16 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * gdbtypes.h (struct type) <name, set_name>: New methods.
8055 (TYPE_CODE): Use type::name. Change all call sites used to set
8056 the name to use type::set_name instead.
8057
2dab0c7b
TT
80582020-05-16 Tom Tromey <tom@tromey.com>
8059
8060 * top.c (quit_force): Update.
8061 * infrun.c (handle_no_resumed): Update.
8062 * top.h (all_uis): New function.
8063 (ALL_UIS): Remove.
8064
59f7bd8d
SM
80652020-05-16 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8068
9bf058f0
PA
80692020-05-16 Pedro Alves <palves@redhat.com>
8070
8071 * ia64-linux-nat.c
8072 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8073 Declare method.
8074 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8075
8f86ae1a
SM
80762020-05-15 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8079 (sparc64_adi_info): Likewise.
8080
d6bc0792
TT
80812020-05-15 Tom Tromey <tom@tromey.com>
8082
8083 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8084 block_objfile.
8085 (lookup_objfile_from_block): Remove.
8086 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8087 (lookup_global_symbol): Use block_objfile.
8088 * symtab.h (lookup_objfile_from_block): Don't declare.
8089 * printcmd.c (clear_dangling_display_expressions): Use
8090 block_objfile.
8091 * parse.c (operator_check_standard): Use block_objfile.
8092
8c14c3a3
TT
80932020-05-15 Tom Tromey <tom@tromey.com>
8094
8095 * language.c (language_alloc_type_symbol): Set
8096 SYMBOL_SECTION.
8097 * symtab.c (initialize_objfile_symbol): Remove.
8098 (allocate_symbol): Remove.
8099 (allocate_template_symbol): Remove.
8100 * dwarf2/read.c (fixup_go_packaging): Use "new".
8101 (new_symbol): Use "new".
8102 (read_variable): Don't call initialize_objfile_symbol. Use
8103 "new".
8104 (read_func_scope): Use "new".
8105 * xcoffread.c (process_xcoff_symbol): Don't call
8106 initialize_objfile_symbol.
8107 (SYMBOL_DUP): Remove.
8108 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8109 "new".
8110 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8111 (allocate_template_symbol): Don't declare.
8112 (struct symbol): Add copy constructor. Change defaults.
8113 * jit.c (finalize_symtab): Use "new".
8114 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8115 Use "new".
8116 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8117 (common_block_end): Use "new".
8118 * mdebugread.c (parse_symbol): Use "new".
8119 (new_symbol): Likewise.
8120
5b4a1a8d
PW
81212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8122
8123 * NEWS: Mention changes to help and apropos.
8124
57b4f16e
PW
81252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8126
8127 * command.h (enum command_class): Improve comments, document
8128 that class_alias is for user-defined aliases, give the class
8129 name for each class, remove unused class_xdb.
8130 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8131 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8132 by a precise class.
8133 * infcmd.c (_initialize_infcmd): Likewise.
8134 * reverse.c (_initialize_reverse): Likewise.
8135 * stack.c (_initialize_stack): Likewise.
8136 * symfile.c (_initialize_symfile): Likewise.
8137 * tracepoint.c (_initialize_tracepoint): Likewise.
8138
7c05caf7
PW
81392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8140
8141 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8142 when their aliased command is traversed.
8143 (help_cmd): Add fput_command_names_styled call to
8144 output command name and aliases when command has an alias.
8145
3b3aaacb
PW
81462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8147
8148 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8149 * cli/cli-decode.c (help_cmd_list): Declare as static,
8150 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8151 a command together with the command.
8152 (fput_command_name_styled, fput_command_names_styled): New functions.
8153 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8154 fput_command_name_styled.
8155 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8156 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8157
7aa1b46f
PW
81582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159
8160 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8161 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8162 * command.h (cmd_show_list): Likewise.
8163 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8164 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8165
89bcba74
PW
81662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8167
8168 * unittests/command-def-selftests.c (traverse_command_structure):
8169 Verify all commands of a list have the same prefix command and
8170 that only the top cmdlist commands have a null prefix.
8171
3f4d92eb
PW
81722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8173
8174 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8175 as prefix, not one of its aliases.
8176 (set_cmd_prefix): Remove.
8177 (do_add_cmd): Centralize the setting of the prefix of a command, when
8178 command is defined after its full chain of prefix commands.
8179 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8180 (add_setshow_cmd_full): Likewise.
8181 (update_prefix_field_of_prefixed_commands): New function.
8182 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8183 update_prefix_field_of_prefixed_commands.
8184 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8185 addresses of remote_set_cmdlist and remote_show_cmdlist given
8186 as argument, not the address of an argument.
8187 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8188 * gdb/remote.c (_initialize_remote): Likewise.
8189
0605465f
PW
81902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8191
8192 * cli/cli-cmds.c (alias_command): Check for an existing alias
8193 using lookup_cmd_composition, as valid_command_p is too strict
8194 and forbids aliases that are the prefix of an existing alias
8195 or command.
8196 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8197 command is properly recognised as a valid command.
8198
58e6ac70
PW
81992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8200
8201 * unittests/help-doc-selftests.c: Rename to
8202 unittests/command-def-selftests.c
8203 * unittests/command-def-selftests.c (help_doc_tests): Update some
8204 comments.
8205 (command_structure_tests, traverse_command_structure): New namespace
8206 and function.
8207 (command_structure_invariants_tests): New function.
8208 (_initialize_command_def_selftests) Renamed from
8209 _initialize_help_doc_selftests, register command_structure_invariants
8210 selftest.
8211
a7b9ceb8
PW
82122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8213
8214 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8215 an alias of 'show'.
8216
b2188a06
JB
82172020-05-15 Joel Brobecker <brobecker@adacore.com>
8218
8219 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8220 ada_is_fixed_point_type. Update all callers.
8221 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8222 all callers.
8223 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8224 Update all callers.
8225 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8226 print_fixed_point_type. Update all callers.
8227 * ada-valprint.c (ada_value_print_num): Replace call to
8228 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8229
a51951c2
KB
82302020-05-14 Kevin Buettner <kevinb@redhat.com>
8231
8232 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8233 processors.
8234 (cpu_supports_bts): Add CV_AMD case.
8235
29d6859f
LM
82362020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8237 Simon Marchi <simon.marchi@efficios.com>
8238
8239 * infrun.c (stop_all_threads): Collect multiple wait events at
8240 each pass.
8241
78134374
SM
82422020-05-14 Simon Marchi <simon.marchi@efficios.com>
8243
8244 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8245 type::code instead.
8246
67607e24
SM
82472020-05-14 Simon Marchi <simon.marchi@efficios.com>
8248
8249 * gdbtypes.h (struct type) <code, set_code>: New methods.
8250 (TYPE_CODE): Use type::code. Change all call sites used to set
8251 the code to use type::set_code instead.
8252
a05575d3
TBA
82532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8254 Tom de Vries <tdevries@suse.de>
8255 Pedro Alves <palves@redhat.com>
8256
8257 PR threads/25478
8258 * infrun.c (stop_all_threads): Do NOT ignore
8259 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8260 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8261 received.
8262 (handle_no_resumed): Remove code handling a live inferior with no
8263 threads.
8264 * remote.c (has_single_non_exited_thread): New.
8265 (remote_target::update_thread_list): Do not delete a thread if is
8266 the last thread of the process.
8267 * thread.c (thread_select): Call delete_exited_threads instead of
8268 prune_threads.
8269
6ad82919
TBA
82702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8271
8272 * infrun.c (stop_all_threads): Enable/disable thread events of all
8273 targets. Move a debug message denoting the end of the function
8274 into the SCOPED_EXIT block.
8275
d890404b
TBA
82762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8277
8278 * process-stratum-target.h: Include <set>.
8279 (all_non_exited_process_targets, switch_to_target_no_thread): New
8280 function declarations.
8281 * process-stratum-target.c (all_non_exited_process_targets)
8282 (switch_to_target_no_thread): New function implementations.
8283
293b3ebc
TBA
82842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8285
8286 * infrun.c (handle_inferior_event): Extract out a piece of code
8287 into...
8288 (mark_non_executing_threads): ...this new function.
8289
7ca9b62a
TBA
82902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8291
8292 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8293 use.
8294
fc75c28b
TBA
82952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8296
8297 * regcache.c (regcache_read_pc_protected): New function
8298 implementation that returns 0 if the PC cannot read via
8299 'regcache_read_pc'.
8300 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8301 instead of 'regcache_read_pc'.
8302 (keep_going_pass_signal): Ditto.
8303
a89febbd
TT
83042020-05-13 Tom Tromey <tromey@adacore.com>
8305
8306 * ada-lang.c (align_value): Remove.
8307 (ada_template_to_fixed_record_type_1): Use align_up.
8308
f7e23710
TBA
83092020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8310
8311 * async-event.c: Update the copyright year.
8312 * async-event.h: Update the copyright year.
8313
02ff80c2
SM
83142020-05-12 Simon Marchi <simon.marchi@efficios.com>
8315
8316 * objfiles.h (is_addr_in_objfile,
8317 shared_objfile_contains_address_p): Return bool.
8318 * objfile.c (is_addr_in_objfile,
8319 shared_objfile_contains_address_p): Return bool.
8320
4fd6c7e8
TT
83212020-05-11 Tom Tromey <tromey@adacore.com>
8322
8323 * cli/cli-cmds.c (info_command): Restore.
8324 (_initialize_cli_cmds): Use add_prefix_command for "info".
8325 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8326
5eb68a39
TT
83272020-05-11 Tom Tromey <tromey@adacore.com>
8328
8329 * ada-lang.c (ada_value_primitive_field): Now public.
8330 * ada-lang.h (ada_value_primitive_field): Declare.
8331 * ada-valprint.c (print_field_values): Use
8332 ada_value_primitive_field for wrapper fields.
8333
7666722f
TV
83342020-05-11 Tom de Vries <tdevries@suse.de>
8335
8336 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8337 MODULE_DOMAIN.
8338
3ee6bb11
TV
83392020-05-11 Tom de Vries <tdevries@suse.de>
8340
8341 PR symtab/25941
8342 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8343 with length 0, if not gdb-produced.
8344 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8345
43434996
TV
83462020-05-09 Tom de Vries <tdevries@suse.de>
8347
8348 PR gdb/25955
8349 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8350 calculation.
8351
2f78cffc
TT
83522020-05-09 Tom Tromey <tom@tromey.com>
8353
8354 * top.c (server_command): Now bool.
8355 * top.h (server_command): Now bool.
8356
4f7bc5ed
TT
83572020-05-08 Tom Tromey <tromey@adacore.com>
8358
8359 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8360 already being processed.
8361
8be4b118
TT
83622020-05-08 Tom Tromey <tom@tromey.com>
8363
8364 * printcmd.c (struct display) <next>: Remove.
8365 <display>: New constructor.
8366 <exp_string>: Now a std::string.
8367 <enabled_p>: Now a bool.
8368 (display_number): Move definition earlier.
8369 (displays): Rename from display_chain. Now a std::vector.
8370 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8371 (display_command): Update.
8372 (do_one_display, disable_display)
8373 (enable_disable_display_command, do_enable_disable_display):
8374 Update.
8375 (free_display): Remove.
8376 (clear_displays): Rewrite.
8377 (delete_display): Update.
8378 (map_display_numbers): Use function_view. Remove "data"
8379 parameter. Update.
8380 (do_delete_display): Remove.
8381 (undisplay_command): Update.
8382 (do_one_display, do_displays, disable_display)
8383 (info_display_command): Update.
8384 (do_enable_disable_display): Remove.
8385 (enable_disable_display_command)
8386 (clear_dangling_display_expressions): Update.
8387
94c93c35
TT
83882020-05-08 Tom Tromey <tom@tromey.com>
8389
8390 * symtab.c (set_symbol_cache_size)
8391 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8392 (maintenance_print_symbol_cache_statistics): Update.
8393 * symmisc.c (print_symbol_bcache_statistics)
8394 (print_objfile_statistics, maintenance_print_objfiles)
8395 (maintenance_info_symtabs, maintenance_check_symtabs)
8396 (maintenance_expand_symtabs, maintenance_info_line_tables):
8397 Update.
8398 * symfile-debug.c (set_debug_symfile): Update.
8399 * source.c (forget_cached_source_info): Update.
8400 * python/python.c (gdbpy_progspaces): Update.
8401 * psymtab.c (maintenance_info_psymtabs): Update.
8402 * probe.c (parse_probes): Update.
8403 * linespec.c (iterate_over_all_matching_symtabs)
8404 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8405 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8406 * exec.c (exec_target::close): Update.
8407 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8408 * breakpoint.c (print_one_breakpoint_location)
8409 (create_longjmp_master_breakpoint)
8410 (create_std_terminate_master_breakpoint): Update.
8411 * progspace.c (program_spaces): Now a std::vector.
8412 (maybe_new_address_space): Update.
8413 (add_program_space): Remove.
8414 (program_space::program_space): Update.
8415 (remove_program_space): Update.
8416 (number_of_program_spaces): Remove.
8417 (print_program_space, update_address_spaces): Update.
8418 * progspace.h (program_spaces): Change type.
8419 (ALL_PSPACES): Remove.
8420 (number_of_program_spaces): Don't declare.
8421 (struct program_space) <next>: Remove.
8422
a1fd1ac9
TT
84232020-05-08 Tom Tromey <tom@tromey.com>
8424
8425 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8426 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8427 (enable_break): Update.
8428 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8429 (frv_fdpic_find_canonical_descriptor): Update.
8430 (frv_fetch_objfile_link_map): Update.
8431 * progspace.c (program_space::free_all_objfiles): Update.
8432 (program_space::solibs): New method.
8433 * progspace.h (struct program_space) <solibs>: New method.
8434 * solist.h (master_so_list): Don't declare.
8435 (ALL_SO_LIBS): Remove.
8436 * solib.h (so_list_head): Remove.
8437 (update_solib_list): Update comment.
8438 * solib.c (master_so_list): Remove.
8439 (solib_used, update_solib_list, solib_add)
8440 (info_sharedlibrary_command, clear_solib)
8441 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8442
38eae084
TT
84432020-05-08 Tom Tromey <tom@tromey.com>
8444
8445 * extension.c (extension_languages): Now a std::array.
8446 (ALL_EXTENSION_LANGUAGES): Remove.
8447 (get_ext_lang_defn, get_ext_lang_of_file)
8448 (eval_ext_lang_from_control_command): Update.
8449 (finish_ext_lang_initialization)
8450 (auto_load_ext_lang_scripts_for_objfile)
8451 (ext_lang_type_printers::ext_lang_type_printers)
8452 (apply_ext_lang_type_printers)
8453 (ext_lang_type_printers::~ext_lang_type_printers)
8454 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8455 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8456 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8457 (get_matching_xmethod_workers, ext_lang_colorize)
8458 (ext_lang_before_prompt): Update.
8459 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8460
596dc4ad
TT
84612020-05-08 Tom Tromey <tom@tromey.com>
8462
8463 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8464 overload.
8465 <swap_string, m_string>: Remove.
8466 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8467 Update.
8468 * stabsread.c (define_symbol, read_type): Update.
8469 * linespec.c (find_linespec_symbols): Update.
8470 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8471 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8472 * dbxread.c (read_dbx_symtab): Update.
8473 * cp-support.h (cp_canonicalize_string_full)
8474 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8475 Return unique_xmalloc_ptr.
8476 * cp-support.c (inspect_type): Update.
8477 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8478 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8479 Likewise.
8480 * c-typeprint.c (print_name_maybe_canonical): Update.
8481 * break-catch-throw.c (check_status_exception_catchpoint):
8482 Update.
8483
bf4cb9be
TV
84842020-05-08 Tom de Vries <tdevries@suse.de>
8485
8486 * infrun.c (follow_fork): Copy current_line and current_symtab to
8487 child thread.
8488
a1b68f28
SM
84892020-05-07 Simon Marchi <simon.marchi@efficios.com>
8490
8491 * async-event.c (struct async_signal_handler, struct
8492 async_event_handler): Reformat, remove typedef.
8493
98d48915
SM
84942020-05-07 Simon Marchi <simon.marchi@efficios.com>
8495
8496 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8497 access thistype->main_type->dyn_prop_list directly.
8498
7aa91313
SM
84992020-05-07 Simon Marchi <simon.marchi@efficios.com>
8500
8501 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8502 (remove_dyn_prop): Remove. Update all users to use
8503 type::remove_dyn_prop.
8504 * gdbtypes.c (remove_dyn_prop): Rename to...
8505 (type::remove_dyn_prop): ... this.
8506
5c54719c
SM
85072020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8508
8509 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8510 (add_dyn_prop): Remove. Update all users to use
8511 type::add_dyn_prop.
8512 * gdbtypes.c (add_dyn_prop): Rename to...
8513 (type::add_dyn_prop): ... this.
8514
24e99c6c
SM
85152020-05-07 Simon Marchi <simon.marchi@efficios.com>
8516
8517 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8518 (get_dyn_prop): Remove. Update all users to use
8519 type::dyn_prop.
8520 * gdbtypes.c (get_dyn_prop): Rename to...
8521 (type::dyn_prop): ... this.
8522
0d4bf016
SM
85232020-05-06 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8526
ac4a4f1c
SM
85272020-05-06 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8530 instruction, skip it if it's there.
8531
a3bbacc1
SM
85322020-05-05 Simon Marchi <simon.marchi@efficios.com>
8533
8534 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8535
c3236f84
SM
85362020-05-04 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8539 * gdbtypes.c (recursive_dump_type): Remove use of
8540 TYPE_INCOMPLETE.
8541
3b6acaee
TT
85422020-05-03 Tom Tromey <tom@tromey.com>
8543
8544 * breakpoint.c (catch_command, tcatch_command): Remove.
8545 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8546 add_show_prefix_cmd.
8547 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8548 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8549 Remove.
8550 (add_internal_problem_command): Use add_basic_prefix_cmd,
8551 add_show_prefix_cmd.
8552 * mips-tdep.c (set_mipsfpu_command): Remove.
8553 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8554 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8555 (_initialize_index_cache): Use add_basic_prefix_cmd.
8556 * memattr.c (dummy_cmd): Remove.
8557 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8558 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8559 (_initialize_tui_win): Use add_basic_prefix_cmd,
8560 add_show_prefix_cmd.
8561 * cli/cli-logging.c (set_logging_command): Remove.
8562 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8563 add_show_prefix_cmd.
8564 (show_logging_command): Remove.
8565 * target.c (target_command): Remove.
8566 (add_target): Use add_basic_prefix_cmd.
8567
a51119cd
HD
85682020-05-02 Hannes Domani <ssbssa@yahoo.de>
8569
8570 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8571
652fc23a 85722020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8573
652fc23a
PW
8574 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8575 info_command.
8576
117539e6
KR
85772020-04-30 Kamil Rytarowski <n54@gmx.com>
8578
8579 * nbsd-nat.c (nbsd_enable_proc_events)
8580 (nbsd_nat_target::post_startup_inferior): Add.
8581 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8582 (nbsd_nat_target::update_thread_list): Rewrite.
8583 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8584 "PTRACE_LWP_CREATE".
8585 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8586
102e38eb 85872020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8588
102e38eb
PW
8589 * stack.c (_initialize_stack): Remove duplicated creation
8590 of "frame" command and "f" alias.
8591
ee9d1e5f
HD
85922020-04-30 Hannes Domani <ssbssa@yahoo.de>
8593
8594 PR gdb/18706
8595 * gdbtypes.c (check_typedef): Calculate size of array of
8596 stubbed type.
8597
627c7fb8
HD
85982020-04-30 Hannes Domani <ssbssa@yahoo.de>
8599
8600 PR gdb/15559
8601 * i386-tdep.c (i386_push_dummy_call): Call
8602 i386_thiscall_push_dummy_call.
8603 (i386_thiscall_push_dummy_call): New function.
8604 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8605 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8606 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8607
ffc2844e
SM
86082020-04-29 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * gdbarch.sh (do_read): Add shellcheck disable directive for
8611 warning SC2162.
8612
1207375d
SM
86132020-04-29 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8616 "referenced but not assigned" warning.
8617
9fdb2916
SM
86182020-04-29 Simon Marchi <simon.marchi@efficios.com>
8619
8620 * gdbarch.sh: Remove code that sets fallbackdefault.
8621
759cea5e
SM
86222020-04-29 Simon Marchi <simon.marchi@efficios.com>
8623
8624 * gdbarch.sh: Use shell operators && and || instead of
8625 -a and -o.
8626
cb02ab24
SM
86272020-04-29 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * gdbarch.sh: Use $(...) instead of `...`.
8630
a6fc5ffc
SM
86312020-04-29 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * gdbarch.sh: Use double quotes around variables.
8634
8d113d13
SM
86352020-04-29 Simon Marchi <simon.marchi@efficios.com>
8636
8637 * gdbarch.sh: Use %s with printf, instead of variables in the
8638 format string.
8639
ed6acedd
TT
86402020-04-29 Tom Tromey <tromey@adacore.com>
8641
8642 PR ada/25875:
8643 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8644 type fields here.
8645 (read_enumeration_type): Call
8646 update_enumeration_type_from_children later. Update comments.
8647 (process_enumeration_scope): Don't create type fields.
8648
b68b1b58
KR
86492020-04-29 Kamil Rytarowski <n54@gmx.com>
8650
8651 * nbsd-tdep.c: Include "xml-syscall.h".
8652 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8653
f94b2e03
KR
86542020-04-29 Kamil Rytarowski <n54@gmx.com>
8655
8656 * nbsd-nat.c: Include "sys/wait.h".
8657 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8658 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8659 (nbsd_nat_target::remove_exec_catchpoint)
8660 (nbsd_nat_target::set_syscall_catchpoint): Add.
8661 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8662 (nbsd_nat_target::insert_exec_catchpoint)
8663 (nbsd_nat_target::remove_exec_catchpoint)
8664 (nbsd_nat_target::set_syscall_catchpoint): Add.
8665 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8666 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8667 `nbsd_get_syscall_number'.
8668
fc49bc72
TT
86692020-04-29 Tom Tromey <tom@tromey.com>
8670
8671 * stack.c (print_block_frame_labels): Remove.
8672
d642b692
HD
86732020-04-29 Hannes Domani <ssbssa@yahoo.de>
8674
8675 PR gdb/17320
8676 * ada-valprint.c (val_print_packed_array_elements): Move array
8677 end bracket to new line.
8678 (ada_val_print_string): Remove extra spaces before first array
8679 element.
8680 * c-valprint.c (c_value_print_array): Likewise.
8681 * m2-valprint.c (m2_print_array_contents): Likewise.
8682 (m2_value_print_inner): Likewise.
8683 * p-valprint.c (pascal_value_print_inner): Likewise.
8684 * valprint.c (generic_val_print_array): Likewise.
8685 (value_print_array_elements): Move first array element and array
8686 end bracket to new line.
8687
ea90f227
TV
86882020-04-29 Tom de Vries <tdevries@suse.de>
8689
8690 PR symtab/25889
8691 * linespec.c (find_method): Fix ix calculation.
8692
4498ef4f
KR
86932020-04-28 Kamil Rytarowski <n54@gmx.com>
8694
8695 * syscalls/update-netbsd.sh: New file.
8696 * syscalls/netbsd.xml: Regenerate.
8697 * data-directory/Makefile.in: Register `netbsd.xml' in
8698 `SYSCALLS_FILES'.
8699
a55e30b5
SM
87002020-04-28 Simon Marchi <simon.marchi@efficios.com>
8701
8702 * syscalls/update-freebsd.sh: Add double quotes.
8703
2b2fbab8
TT
87042020-04-28 Tom Tromey <tom@tromey.com>
8705
8706 * NEWS: Update.
8707 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8708 (cmdpy_init): Allow class_tui.
8709
a65189c9
TV
87102020-04-28 Mark Williams <mark@myosotissp.com>
8711
8712 PR gdb/24480
8713 * dwarf2read.c: Add missing assingments to list_in_scope when
8714 start_symtab was already called.
8715
1b95cdb7
SM
87162020-04-28 Simon Marchi <simon.marchi@efficios.com>
8717
8718 PR gdb/25881
8719 * dwarf2/read.c (offset_map_type): Use
8720 gdb:hash_enum<sect_offset> as hash function.
8721
15cd93d0
TV
87222020-04-28 Tom de Vries <tdevries@suse.de>
8723
8724 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8725 with DW_AT_signature.
8726
1eb39914
SM
87272020-04-27 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * configure.ac: Remove check for fs_base/gs_base in
8730 user_regs_struct.
8731 * configure: Re-generate.
8732 * config.in: Re-generate.
8733 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8734 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8735 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8736
991a3e2e
LM
87372020-04-27 Luis Machado <luis.machado@linaro.org>
8738
8739 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8740 problematic inline frame unwinding situation.
8741 * frame.c (frame_id_computed_p): New function.
8742 * frame.h (frame_id_computed_p): New prototype.
8743
361ba0e8
TT
87442020-04-26 Tom Tromey <tom@tromey.com>
8745
8746 * command.h (enum command_class) <class_pseudo>: Remove.
8747
bc3609fd
PW
87482020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8749
8750 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8751 and whitespace.
8752
b9771db7
KR
87532020-04-25 Kamil Rytarowski <n54@gmx.com>
8754
ec16513e
SM
8755 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8756 `PT_GET_PROCESS_STATE' block.
b9771db7 8757
7151c1af
TT
87582020-04-24 Tom Tromey <tom@tromey.com>
8759
8760 * symtab.h (symbol_get_demangled_name): Don't declare.
8761 * symtab.c (symbol_get_demangled_name): Remove.
8762 (general_symbol_info::natural_name)
8763 (general_symbol_info::demangled_name): Update.
8764
906bb4c5
TT
87652020-04-24 Tom Tromey <tom@tromey.com>
8766
8767 PR rust/25025:
8768 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8769
bcfe6157
TT
87702020-04-24 Tom Tromey <tom@tromey.com>
8771
8772 PR symtab/12707:
8773 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8774 exists.
8775 (new_symbol): Likewise.
8776 * compile/compile-object-load.c (get_out_value_type): Use
8777 symbol_matches_search_name.
8778
f049a313
TT
87792020-04-24 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/read.c (add_partial_symbol): Do not call
8782 compute_and_set_names.
8783
76e288d1
TT
87842020-04-24 Tom Tromey <tom@tromey.com>
8785
8786 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8787 overload.
8788
2467f4f6
TT
87892020-04-24 Tom Tromey <tom@tromey.com>
8790
8791 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8792 (add_psymbol_to_list): New overload. Make old overload call new
8793 one.
8794 * psympriv.h (add_psymbol_to_list): New overload.
8795
e61108c9
TT
87962020-04-24 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/read.c (partial_die_info::read) <case
8799 DW_AT_linkage_name>: Use value_as_string.
8800 (dwarf2_string_attr): Use value_as_string.
8801 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8802 method.
8803 * dwarf2/attribute.c (attribute::value_as_string): New method.
8804
8c87a452
TT
88052020-04-24 Tom Tromey <tom@tromey.com>
8806
8807 * symtab.c (general_symbol_info::natural_name)
8808 (general_symbol_info::demangled_name): Check for language_rust.
8809
787de330
TT
88102020-04-24 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8813 (dwarf2_physname): ... from here.
8814 (partial_die_info::read): Add Rust "{" hack.
8815
ff985671
TT
88162020-04-24 Tom Tromey <tom@tromey.com>
8817
8818 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8819 method.
8820 (symbol_set_demangled_name): Don't declare.
8821 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8822 symbol_set_demangled_name.
8823 (general_symbol_info::set_language)
8824 (general_symbol_info::compute_and_set_names): Update.
8825 * minsyms.c (minimal_symbol_reader::install): Update.
8826 * dwarf2/read.c (new_symbol): Update.
8827
1acda803
TT
88282020-04-24 Tom Tromey <tromey@adacore.com>
8829
8830 PR python/23662:
8831 * python/py-type.c (convert_field): Handle
8832 FIELD_LOC_KIND_DWARF_BLOCK.
8833 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8834 (typy_get_dynamic): Nw function.
8835 (type_object_getset): Add "dynamic".
8836 * NEWS: Add entry.
8837
d656f129
TT
88382020-04-24 Tom Tromey <tromey@adacore.com>
8839
8840 * ada-typeprint.c (print_choices, print_variant_part)
8841 (print_record_field_types_dynamic): New functions.
8842 (print_record_field_types): Use print_record_field_types_dynamic.
8843
7d79de9a
TT
88442020-04-24 Tom Tromey <tromey@adacore.com>
8845
8846 * dwarf2/read.c (handle_data_member_location): New overload.
8847 (dwarf2_add_field): Use it.
8848 (decode_locdesc): Add "computed" parameter. Update comment.
8849 * gdbtypes.c (is_dynamic_type_internal): Also look for
8850 FIELD_LOC_KIND_DWARF_BLOCK.
8851 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8852 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8853 virtual base classes.
8854 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8855 FIELD_LOC_KIND_DWARF_BLOCK.
8856
f8e89861
TT
88572020-04-24 Tom Tromey <tromey@adacore.com>
8858
8859 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8860 * gdbtypes.c (is_dynamic_type_internal): Check
8861 TYPE_HAS_DYNAMIC_LENGTH.
8862 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8863 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8864 New macros.
8865 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8866 constant.
8867
9c6a1327
TT
88682020-04-24 Tom Tromey <tromey@adacore.com>
8869
8870 * dwarf2/read.c (struct variant_field): Rewrite.
8871 (struct variant_part_builder): New.
8872 (struct nextfield): Remove "variant" field. Add "offset".
8873 (struct field_info): Add "current_variant_part" and
8874 "variant_parts".
8875 (alloc_discriminant_info): Remove.
8876 (alloc_rust_variant): New function.
8877 (quirk_rust_enum): Update.
8878 (dwarf2_add_field): Set "offset" member. Don't handle
8879 DW_TAG_variant_part.
8880 (offset_map_type): New typedef.
8881 (convert_variant_range, create_one_variant)
8882 (create_one_variant_part, create_variant_parts)
8883 (add_variant_property): New functions.
8884 (dwarf2_attach_fields_to_type): Call add_variant_property.
8885 (read_structure_type): Don't handle DW_TAG_variant_part.
8886 (handle_variant_part, handle_variant): New functions.
8887 (handle_struct_member_die): Use them.
8888 (process_structure_scope): Don't handle variant parts.
8889 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8890 (struct discriminant_info): Remove.
8891 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8892 (struct main_type) <flag_discriminated_union>: Remove.
8893 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8894 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8895 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8896 Update.
8897 * valops.c (value_union_variant): Remove.
8898 * value.h (value_union_variant): Don't declare.
8899
b249d2c2
TT
89002020-04-24 Tom Tromey <tromey@adacore.com>
8901
8902 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8903 (ada_value_primitive_packed_val): Update.
8904 * ada-valprint.c (ada_value_print_1): Update.
8905 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8906 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8907 just an address. Use evaluate_for_locexpr_baton.
8908 (dwarf2_evaluate_property): Update.
8909 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8910 array_view.
8911 * findvar.c (default_read_var_value): Update.
8912 * gdbtypes.c (compute_variant_fields_inner)
8913 (resolve_dynamic_type_internal): Update.
8914 (resolve_dynamic_type): Change type of valaddr parameter.
8915 * gdbtypes.h (resolve_dynamic_type): Update.
8916 * valarith.c (value_subscripted_rvalue): Update.
8917 * value.c (value_from_contents_and_address): Update.
8918
61122aa9
TT
89192020-04-24 Tom Tromey <tromey@adacore.com>
8920
8921 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8922 "push_initial_value" parameter.
8923 (dwarf2_evaluate_property): Likewise.
8924 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8925
ef83a141
TT
89262020-04-24 Tom Tromey <tromey@adacore.com>
8927
8928 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8929 (variant::matches, compute_variant_fields_recurse)
8930 (compute_variant_fields_inner, compute_variant_fields): New
8931 functions.
8932 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8933 Use resolved_type after type is made.
8934 (operator==): Add new cases.
8935 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8936 (struct discriminant_range, struct variant, struct variant_part):
8937 New.
8938 (union dynamic_prop_data) <variant_parts, original_type>: New
8939 members.
8940 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8941 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8942 constants.
8943 * value.c (unpack_bits_as_long): Now public.
8944 * value.h (unpack_bits_as_long): Declare.
8945
675127ec
TT
89462020-04-24 Tom Tromey <tromey@adacore.com>
8947
8948 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8949 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8950
9852ceef
HD
89512020-04-24 Hannes Domani <ssbssa@yahoo.de>
8952
8953 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8954
7632c6ce
KR
89552020-04-24 Kamil Rytarowski <n54@gmx.com>
8956
8957 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8958 (remove_fork_catchpoint, post_startup_inferior)
8959 (post_attach): Move...
8960 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8961 (remove_fork_catchpoint, post_startup_inferior)
8962 (post_attach): ...here.
8963 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8964 (remove_fork_catchpoint, post_startup_inferior)
8965 (post_attach): Move...
8966 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8967 (remove_fork_catchpoint, post_startup_inferior)
8968 (post_attach): ...here.
8969
7be2bb4f
TT
89702020-04-24 Tom Tromey <tromey@adacore.com>
8971
8972 * nat/windows-nat.h (struct windows_thread_info)
8973 <pc_adjusted>: New member.
8974 * windows-nat.c (windows_fetch_one_register): Check
8975 pc_adjusted.
8976 (windows_nat_target::get_windows_debug_event)
8977 (windows_nat_target::wait): Set pc_adjusted.
8978
f80cb3b4
TV
89792020-04-24 Tom de Vries <tdevries@suse.de>
8980
8981 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8982 Run gdb-add-index inside temp dir.
8983
29514b87
TT
89842020-04-23 Tom Tromey <tromey@adacore.com>
8985
8986 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8987 in loop.
8988
5939967b
LM
89892020-04-23 Luis Machado <luis.machado@linaro.org>
8990
8991 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8992 get_frame_register instead of gdbarch_unwind_pc.
8993
70bc38f5
TV
89942020-04-23 Tom de Vries <tdevries@suse.de>
8995
8996 * symtab.c (lookup_global_symbol): Prefer def over decl.
8997
de82891c
TV
89982020-04-23 Tom de Vries <tdevries@suse.de>
8999
9000 PR symtab/25807
9001 * block.c (best_symbol, better_symbol): Promote to external.
9002 * block.h (best_symbol, better_symbol): Declare.
9003 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9004 decl.
9005
ecc6c606
TT
90062020-04-23 Tom Tromey <tromey@adacore.com>
9007
9008 PR ada/25837:
9009 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9010 "const char *", not a "const std::string &".
9011 <name_and_matcher::operator==>: Update.
9012 * unittests/lookup_name_info-selftests.c: Change type of
9013 "result".
9014
740480b8
TT
90152020-04-23 Tom Tromey <tom@tromey.com>
9016
9017 * inferior.h (iterate_over_inferiors): Don't declare.
9018 * inferior.c (iterate_over_inferiors): Remove.
9019 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9020 Remove.
9021 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9022 use iterate_over_inferiors.
9023 (darwin_resume_inferior_it)
9024 (struct resume_inferior_threads_param)
9025 (darwin_resume_inferior_threads_it): Remove.
9026 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9027
ae3ab1f0
TV
90282020-04-23 Tom de Vries <tdevries@suse.de>
9029
9030 * blockframe.c (find_pc_partial_function): Use
9031 find_pc_sect_compunit_symtab rather than
9032 objfile->sf->qf->find_pc_sect_compunit_symtab.
9033
317d2668
TV
90342020-04-22 Tom de Vries <tdevries@suse.de>
9035
9036 PR symtab/25764
9037 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9038 in psymtabs.
9039
eea9e357
TV
90402020-04-22 Tom de Vries <tdevries@suse.de>
9041
9042 PR symtab/25801
9043 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9044 symtabs.
9045
3d5afab3
TV
90462020-04-22 Tom de Vries <tdevries@suse.de>
9047
9048 PR symtab/25700
9049 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9050 CU if already created.
9051
d43b7a2d
TBA
90522020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9053
9054 * infrun.c (displaced_step_fixup): Switch to the event_thread
9055 before calling displaced_step_restore, not after.
9056
d89edf9b
MM
90572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9058
9059 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9060 its inferior is not recorded by us.
9061 (record_btrace_target_open): Replace call to
9062 all_non_exited_threads () with call to current_inferior
9063 ()->non_exited_threads ().
9064 (record_btrace_target::stop_recording): Likewise.
9065 (record_btrace_target::close): Likewise.
9066 (record_btrace_target::wait): Likewise.
9067 (record_btrace_target::record_stop_replaying): Likewise.
9068
5897fd49
MM
90692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9070
9071 * btrace.c (btrace_enable): Throw an error on double enables and
9072 when enabling recording fails.
9073 (btrace_disable): Throw an error if the thread is not recorded.
9074
1a476b6d
MM
90752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9076
9077 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9078 request if we do not have a thread_info.
9079
4778a5f8
TV
90802020-04-21 Tom de Vries <tdevries@suse.de>
9081
9082 PR gdb/25471
9083 * thread.c
9084 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9085 exception in get_frame_id.
9086
0fa7617d
TT
90872020-04-20 Tom Tromey <tromey@adacore.com>
9088
9089 * python/python.c (struct gdbpy_event): Mark move constructor as
9090 noexcept.
9091 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9092 constructor as noexcept.
9093 * completer.h (struct completion_result): Mark move constructor as
9094 noexcept.
9095 * completer.c (completion_result::completion_result): Use
9096 initialization style. Don't call reset_match_list.
9097
ad23bda0
MS
90982020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9099
9100 * MAINTAINERS (Write After Approval): Add myself.
9101
45e1f031
TT
91022020-04-18 Tom Tromey <tom@tromey.com>
9103
9104 * windows-tdep.c (init_w32_command_list)
9105 (w32_prefix_command_valid): Restore.
9106 (_initialize_windows_tdep): Call init_w32_command_list.
9107
08feed99
TT
91082020-04-18 Tom Tromey <tom@tromey.com>
9109
9110 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9111 * value.c (value_fn_field): Update.
9112 * valops.c (find_function_in_inferior)
9113 (value_allocate_space_in_inferior): Update.
9114 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9115 Update.
9116 * tui/tui-source.c (tui_source_window::set_contents): Update.
9117 * symtab.c (lookup_global_or_static_symbol)
9118 (find_function_start_sal_1, skip_prologue_sal)
9119 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9120 * symmisc.c (dump_msymbols, dump_symtab_1)
9121 (maintenance_print_one_line_table): Update.
9122 * symfile.c (init_entry_point_info, section_is_mapped)
9123 (list_overlays_command, simple_read_overlay_table)
9124 (simple_overlay_update_1): Update.
9125 * stap-probe.c (handle_stap_probe): Update.
9126 * stabsread.c (dbx_init_float_type, define_symbol)
9127 (read_one_struct_field, read_enum_type, read_range_type): Update.
9128 * source.c (info_line_command): Update.
9129 * python/python.c (gdbpy_source_objfile_script)
9130 (gdbpy_execute_objfile_script): Update.
9131 * python/py-type.c (save_objfile_types): Update.
9132 * python/py-objfile.c (py_free_objfile): Update.
9133 * python/py-inferior.c (python_new_objfile): Update.
9134 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9135 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9136 (maintenance_check_psymtabs): Update.
9137 * printcmd.c (info_address_command): Update.
9138 * objfiles.h (struct objfile) <arch>: New method, from
9139 get_objfile_arch.
9140 (get_objfile_arch): Don't declare.
9141 * objfiles.c (get_objfile_arch): Remove.
9142 (filter_overlapping_sections): Update.
9143 * minsyms.c (msymbol_is_function): Update.
9144 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9145 (output_nondebug_symbol): Update.
9146 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9147 (mdebug_expand_psymtab): Update.
9148 * machoread.c (macho_add_oso_symfile): Update.
9149 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9150 Update.
9151 * linux-fork.c (checkpoint_command): Update.
9152 * linespec.c (convert_linespec_to_sals): Update.
9153 * jit.c (finalize_symtab): Update.
9154 * infrun.c (insert_exception_resume_from_probe): Update.
9155 * ia64-tdep.c (ia64_find_unwind_table): Update.
9156 * hppa-tdep.c (internalize_unwinds): Update.
9157 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9158 Update.
9159 * gcore.c (call_target_sbrk): Update.
9160 * elfread.c (record_minimal_symbol, elf_symtab_read)
9161 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9162 (elf_gnu_ifunc_resolve_by_got): Update.
9163 * dwarf2/read.c (create_addrmap_from_index)
9164 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9165 (read_debug_names_from_section)
9166 (process_psymtab_comp_unit_reader, add_partial_symbol)
9167 (add_partial_subprogram, process_full_comp_unit)
9168 (read_file_scope, read_func_scope, read_lexical_block_scope)
9169 (read_call_site_scope, dwarf2_ranges_read)
9170 (dwarf2_record_block_ranges, dwarf2_add_field)
9171 (mark_common_block_symbol_computed, read_tag_pointer_type)
9172 (read_tag_string_type, dwarf2_init_float_type)
9173 (dwarf2_init_complex_target_type, read_base_type)
9174 (partial_die_info::read, partial_die_info::read)
9175 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9176 (dwarf2_fetch_die_loc_sect_off): Update.
9177 * dwarf2/loc.c (dwarf2_find_location_expression)
9178 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9179 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9180 (dwarf2_loc_desc_get_symbol_read_needs)
9181 (locexpr_describe_location_piece, locexpr_describe_location_1)
9182 (loclist_describe_location): Update.
9183 * dwarf2/index-write.c (write_debug_names): Update.
9184 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9185 * dtrace-probe.c (dtrace_process_dof): Update.
9186 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9187 (process_one_symbol): Update.
9188 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9189 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9190 (coff_read_enum_type): Update.
9191 * cli/cli-cmds.c (edit_command, list_command): Update.
9192 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9193 * breakpoint.c (create_overlay_event_breakpoint)
9194 (create_longjmp_master_breakpoint)
9195 (create_std_terminate_master_breakpoint)
9196 (create_exception_master_breakpoint, get_sal_arch): Update.
9197 * block.c (block_gdbarch): Update.
9198 * annotate.c (annotate_source_line): Update.
9199
0743fc83
TT
92002020-04-17 Tom Tromey <tromey@adacore.com>
9201
9202 * auto-load.c (show_auto_load_cmd): Remove.
9203 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9204 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9205 (maintenance_print_arc_command): Remove.
9206 * tui/tui-win.c (tui_command): Remove.
9207 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9208 * tui/tui-layout.c (tui_layout_command): Remove.
9209 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9210 * python/python.c (user_set_python, user_show_python): Remove.
9211 (_initialize_python): Use add_basic_prefix_cmd,
9212 add_show_prefix_cmd.
9213 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9214 (install_gdb_commands): Use add_basic_prefix_cmd,
9215 add_show_prefix_cmd.
9216 (info_guile_command): Remove.
9217 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9218 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9219 add_show_prefix_cmd.
9220 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9221 Remove do_set and do_show parameters.
9222 * cli/cli-style.c (set_style, show_style): Remove.
9223 (_initialize_cli_style): Use add_basic_prefix_cmd,
9224 add_show_prefix_cmd.
9225 (cli_style_option::add_setshow_commands): Remove do_set and
9226 do_show parameters.
9227 (cli_style_option::add_setshow_commands): Use
9228 add_basic_prefix_cmd, add_show_prefix_cmd.
9229 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9230 (set_style_name): Remove.
9231 * cli/cli-dump.c (dump_command, append_command): Remove.
9232 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9233 (tekhex_dump_command, binary_dump_command)
9234 (binary_append_command): Remove.
9235 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9236 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9237 (init_w32_command_list): Remove; move into ...
9238 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9239 * valprint.c (set_print, show_print, set_print_raw)
9240 (show_print_raw): Remove.
9241 (_initialize_valprint): Use add_basic_prefix_cmd,
9242 add_show_prefix_cmd.
9243 * typeprint.c (set_print_type, show_print_type): Remove.
9244 (_initialize_typeprint): Use add_basic_prefix_cmd,
9245 add_show_prefix_cmd.
9246 * record.c (set_record_command, show_record_command): Remove.
9247 (_initialize_record): Use add_basic_prefix_cmd,
9248 add_show_prefix_cmd.
9249 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9250 add_show_prefix_cmd.
9251 (info_command, show_command, set_debug, show_debug): Remove.
9252 * top.h (set_history, show_history): Don't declare.
9253 * top.c (set_history, show_history): Remove.
9254 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9255 (unset_tdesc_cmd): Remove.
9256 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9257 add_show_prefix_cmd.
9258 * symtab.c (info_module_command): Remove.
9259 (_initialize_symtab): Use add_basic_prefix_cmd.
9260 * symfile.c (overlay_command): Remove.
9261 (_initialize_symfile): Use add_basic_prefix_cmd.
9262 * sparc64-tdep.c (info_adi_command): Remove.
9263 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9264 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9265 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9266 add_show_prefix_cmd.
9267 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9268 (_initialize_serial): Use add_basic_prefix_cmd,
9269 add_show_prefix_cmd.
9270 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9271 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9272 add_show_prefix_cmd.
9273 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9274 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9275 add_show_prefix_cmd.
9276 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9277 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9278 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9279 add_show_prefix_cmd.
9280 * remote.c (remote_command, set_remote_cmd): Remove.
9281 (_initialize_remote): Use add_basic_prefix_cmd.
9282 * record-full.c (set_record_full_command)
9283 (show_record_full_command): Remove.
9284 (_initialize_record_full): Use add_basic_prefix_cmd,
9285 add_show_prefix_cmd.
9286 * record-btrace.c (cmd_set_record_btrace)
9287 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9288 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9289 (cmd_show_record_btrace_pt): Remove.
9290 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9291 add_show_prefix_cmd.
9292 * ravenscar-thread.c (set_ravenscar_command)
9293 (show_ravenscar_command): Remove.
9294 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9295 add_show_prefix_cmd.
9296 * mips-tdep.c (show_mips_command, set_mips_command)
9297 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9298 add_show_prefix_cmd.
9299 * maint.c (maintenance_command, maintenance_info_command)
9300 (maintenance_check_command, maintenance_print_command)
9301 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9302 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9303 add_show_prefix_cmd.
9304 (show_per_command_cmd): Remove.
9305 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9306 Remove.
9307 (maintenance_show_test_settings_cmd): Remove.
9308 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9309 add_show_prefix_cmd.
9310 * maint-test-options.c (maintenance_test_options_command):
9311 Remove.
9312 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9313 * macrocmd.c (macro_command): Remove
9314 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9315 * language.c (set_check, show_check): Remove.
9316 (_initialize_language): Use add_basic_prefix_cmd,
9317 add_show_prefix_cmd.
9318 * infcmd.c (unset_command): Remove.
9319 (_initialize_infcmd): Use add_basic_prefix_cmd.
9320 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9321 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9322 add_show_prefix_cmd.
9323 * go32-nat.c (go32_info_dos_command): Remove.
9324 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9325 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9326 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9327 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9328 (_initialize_frame): Use add_basic_prefix_cmd,
9329 add_show_prefix_cmd.
9330 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9331 (_initialize_dcache): Use add_basic_prefix_cmd,
9332 add_show_prefix_cmd.
9333 * cp-support.c (maint_cplus_command): Remove.
9334 (_initialize_cp_support): Use add_basic_prefix_cmd.
9335 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9336 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9337 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9338 add_basic_prefix_cmd, add_show_prefix_cmd.
9339 * breakpoint.c (save_command): Remove.
9340 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9341 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9342 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9343 add_show_prefix_cmd.
9344 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9345 (set_ada_command, show_ada_command): Remove.
9346 (_initialize_ada_language): Use add_basic_prefix_cmd,
9347 add_show_prefix_cmd.
9348 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9349
3557f442
KR
93502020-04-16 Kamil Rytarowski <n54@gmx.com>
9351
9352 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9353 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9354
16197208
SM
93552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9356
9357 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9358 warning messages.
9359
00ac85d3
SM
93602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9361
9362 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9363 import table is not at beginning of .idata section.
9364
381ce63f
PA
93652020-04-16 Pedro Alves <palves@redhat.com>
9366
9367 * inferior.c (delete_inferior): Use delete operator directly
9368 instead of delete_program_space.
9369 * progspace.c (add_program_space): New, factored out from
9370 program_space::program_space.
9371 (remove_program_space): New, factored out from
9372 delete_program_space.
9373 (program_space::program_space): Remove intro comment. Rewrite.
9374 (program_space::~program_space): Remove intro comment. Call
9375 remove_program_space.
9376 (delete_program_space): Delete.
9377 * progspace.h (program_space::program_space): Make explicit. Move
9378 intro comment here, adjusted.
9379 (program_space::~program_space): Move intro comment here,
9380 adjusted.
9381 (delete_program_space): Remove.
9382
a010605f
TT
93832020-04-16 Tom Tromey <tromey@adacore.com>
9384
9385 * windows-nat.c (windows_nat::handle_access_violation): New
9386 function.
9387 * nat/windows-nat.h (handle_access_violation): Declare.
9388 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9389 windows-nat.c. Call handle_access_violation.
9390
efba5c23
TV
93912020-04-16 Tom de Vries <tdevries@suse.de>
9392
9393 PR symtab/25791
9394 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9395 CUs without psymtab.
9396
97ed802d
KB
93972020-04-16 Kevin Buettner <kevinb@redhat.com>
9398
9399 * python/python.c (do_start_initialization): Don't call
9400 PyEval_InitThreads for Python 3.9 and beyond.
9401
c7d64809
KR
94022020-04-15 Kamil Rytarowski <n54@gmx.com>
9403
9404 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9405 thread functions.
9406 (obsd_nat_target::wait): Likewise.
9407
ce127a96
TT
94082020-04-15 Tom Tromey <tromey@adacore.com>
9409
9410 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9411 (DEBUG_EXCEPT): Use debug_printf.
9412
99f1bc6a
AB
94132020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * completer.c (class completion_tracker::completion_hash_entry)
9416 <hash_name>: New member function.
9417 (completion_tracker::discard_completions): New callback to hash a
9418 completion_hash_entry, pass this to htab_create_alloc.
9419
a0e9b532
JT
94202016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9421
9422 * windows-nat.c (windows_make_so): Warn rather than stopping with
9423 an error if realpath() fails.
9424
06ca5dd4
KR
94252020-04-14 Kamil Rytarowski <n54@gmx.com>
9426
9427 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9428 (nbsd_nat_target::info_proc): Add do_status.
9429
194d088f
TV
94302020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9431 Tom de Vries <tdevries@suse.de>
9432
9433 PR symtab/25718
9434 * psympriv.h (struct partial_symtab::read_symtab)
9435 (struct partial_symtab::expand_psymtab)
9436 (struct partial_symtab::read_dependencies): Update comments.
9437 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9438 read_symtab for includer.
9439 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9440 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9441 (struct dwarf2_include_psymtab::m_readin): Remove.
9442 (struct dwarf2_include_psymtab::includer): New member function.
9443 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9444
c1a66c06
TV
94452020-04-14 Tom de Vries <tdevries@suse.de>
9446
9447 PR symtab/25720
9448 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9449 with NULL symbol_matcher and lookup_name.
9450 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9451 and lookup_name.
9452 * dwarf2/read.c (dw2_expand_symtabs_matching)
9453 (dw2_debug_names_expand_symtabs_matching): Same.
9454 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9455 Make lookup_name a pointer. Update comment.
9456 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9457 lookup_name being a pointer.
9458 * symfile.c (expand_symtabs_matching): Same.
9459 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9460 * linespec.c (iterate_over_all_matching_symtabs): Same.
9461
400b5eca
TT
94622020-04-13 Tom Tromey <tom@tromey.com>
9463
9464 * run-on-main-thread.c: Update include.
9465 * unittests/main-thread-selftests.c: Update include.
9466 * tui/tui-win.c: Update include.
9467 * tui/tui-io.c: Update include.
9468 * tui/tui-interp.c: Update include.
9469 * tui/tui-hooks.c: Update include.
9470 * top.h: Update include.
9471 * top.c: Update include.
9472 * ser-base.c: Update include.
9473 * remote.c: Update include.
9474 * remote-notif.c: Update include.
9475 * remote-fileio.c: Update include.
9476 * record-full.c: Update include.
9477 * record-btrace.c: Update include.
9478 * python/python.c: Update include.
9479 * posix-hdep.c: Update include.
9480 * mingw-hdep.c: Update include.
9481 * mi/mi-main.c: Update include.
9482 * mi/mi-interp.c: Update include.
9483 * main.c: Update include.
9484 * linux-nat.c: Update include.
9485 * interps.c: Update include.
9486 * infrun.c: Update include.
9487 * inf-loop.c: Update include.
9488 * event-top.c: Update include.
9489 * event-loop.c: Move to ../gdbsupport/.
9490 * event-loop.h: Move to ../gdbsupport/.
9491 * async-event.h: Update include.
9492 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9493
93b54c8e
TT
94942020-04-13 Tom Tromey <tom@tromey.com>
9495
9496 * tui/tui-win.c: Include async-event.h.
9497 * remote.c: Include async-event.h.
9498 * remote-notif.c: Include async-event.h.
9499 * record-full.c: Include async-event.h.
9500 * record-btrace.c: Include async-event.h.
9501 * infrun.c: Include async-event.h.
9502 * event-top.c: Include async-event.h.
9503 * event-loop.h: Move some declarations to async-event.h.
9504 * event-loop.c: Don't include ser-event.h or top.h. Move some
9505 code to async-event.c.
9506 * async-event.h: New file.
9507 * async-event.c: New file.
9508 * Makefile.in (COMMON_SFILES): Add async-event.c.
9509 (HFILES_NO_SRCDIR): Add async-event.h.
9510
c1cd3163
TT
95112020-04-13 Tom Tromey <tom@tromey.com>
9512
9513 * utils.c (flush_streams): New function.
9514 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9515
29f2bf4f
TT
95162020-04-13 Tom Tromey <tom@tromey.com>
9517
9518 * event-loop.c (handle_file_event): Use warning, not
9519 printf_unfiltered.
9520
98029d02
TT
95212020-04-13 Tom Tromey <tom@tromey.com>
9522
9523 * event-loop.c: Include <chrono>.
9524
06cc9596
TT
95252020-04-13 Tom Tromey <tom@tromey.com>
9526
9527 * gdb_select.h: Move to ../gdbsupport/.
9528 * event-loop.c: Update include path.
9529 * top.c: Update include path.
9530 * ser-base.c: Update include path.
9531 * ui-file.c: Update include path.
9532 * ser-tcp.c: Update include path.
9533 * guile/scm-ports.c: Update include path.
9534 * posix-hdep.c: Update include path.
9535 * ser-unix.c: Update include path.
9536 * gdb_usleep.c: Update include path.
9537 * mingw-hdep.c: Update include path.
9538 * inflow.c: Update include path.
9539 * infrun.c: Update include path.
9540 * event-top.c: Update include path.
9541
8ae8e197
TT
95422020-04-13 Tom Tromey <tom@tromey.com>
9543
9544 * configure: Rebuild.
9545 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9546
58cf28e8
TT
95472020-04-13 Tom Tromey <tom@tromey.com>
9548
9549 * event-loop.h (start_event_loop): Don't declare.
9550 * event-loop.c (start_event_loop): Move...
9551 * main.c (start_event_loop): ...here. Now static.
9552
b7f999ae
SDJ
95532020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9554
9555 * MAINTAINERS: Update my email address.
9556
1085dfd4
KR
95572020-04-12 Kamil Rytarowski <n54@gmx.com>
9558
9559 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9560 IP_ALL.
9561
49d1d1f5
KR
95622020-04-12 Kamil Rytarowski <n54@gmx.com>
9563
9564 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9565 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9566
b4848d2a
KR
95672020-04-12 Kamil Rytarowski <n54@gmx.com>
9568
9569 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9570 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9571
51c133d5
KR
95722020-04-12 Kamil Rytarowski <n54@gmx.com>
9573
9574 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9575
54b8cbd0
KR
95762020-04-11 Kamil Rytarowski <n54@gmx.com>
9577
9578 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9579 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9580 (nbsd_nat_target::info_proc): New functions.
9581 * nbsd-nat.c (kinfo_get_vmmap): New function.
9582 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9583 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9584 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9585 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9586 functions.
9587 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9588 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9589 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9590 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9591 (KINFO_VME_FLAG_GROWS_DOWN): New.
9592
cf83625d
AS
95932020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9594
9595 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9596 bit shift.
9597
0c4311ab
TT
95982020-04-10 Tom Tromey <tromey@adacore.com>
9599
9600 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9601
3e65b3e9
TT
96022020-04-10 Tom Tromey <tromey@adacore.com>
9603
9604 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9605 separate debug files.
9606
13302e95
HD
96072020-04-10 Hannes Domani <ssbssa@yahoo.de>
9608
9609 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9610 Move to...
9611 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9612 ... here.
9613 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9614 Check for STATUS_WX86_BREAKPOINT.
9615 (windows_nat_target::wait): Same.
9616
bdfc1e8a
TV
96172020-04-10 Tom de Vries <tdevries@suse.de>
9618
9619 PR cli/25808
9620 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9621
f4460aec
SM
96222020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9623
9624 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9625 (Write After Approval): Remove Tom de Vries.
9626
a25198bb
BE
96272020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9628
9629 revert partially:
9630 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9631
aac66a4c
SM
9632 * buildsym.c (record_line): Fix undefined behavior and preserve
9633 lines at eof.
a25198bb 9634
206c98a6
KR
96352020-04-09 Kamil Rytarowski <n54@gmx.com>
9636
9637 * auxv.h (svr4_auxv_parse): New.
9638 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9639 and generic_auxv_parse.
9640 (svr4_auxv_parse): Add.
9641 * obsd-tdep.c: Include "auxv.h".
9642 (obsd_auxv_parse): Remove.
9643 (obsd_init_abi): Remove comment.
9644 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9645 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9646 * nbsd-tdep.c: Include "auxv.h".
9647 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9648
71fbdbaf
TT
96492020-04-08 Tom Tromey <tromey@adacore.com>
9650
9651 * nat/windows-nat.h (last_wait_event): Don't declare.
9652 (wait_for_debug_event): Update comment.
9653 * nat/windows-nat.c (last_wait_event): Now static.
9654
2c1d95e8
TT
96552020-04-08 Tom Tromey <tromey@adacore.com>
9656
9657 * windows-nat.c (wait_for_debug_event): Move to
9658 nat/windows-nat.c.
9659 * nat/windows-nat.h (wait_for_debug_event): Declare.
9660 * nat/windows-nat.c (wait_for_debug_event): Move from
9661 windows-nat.c. No longer static.
9662
d2977bc4
TT
96632020-04-08 Tom Tromey <tromey@adacore.com>
9664
9665 * windows-nat.c (get_windows_debug_event): Use
9666 fetch_pending_stop.
9667 * nat/windows-nat.h (fetch_pending_stop): Declare.
9668 * nat/windows-nat.c (fetch_pending_stop): New function.
9669
e758e19c
TT
96702020-04-08 Tom Tromey <tromey@adacore.com>
9671
9672 * windows-nat.c (windows_continue): Use matching_pending_stop and
9673 continue_last_debug_event.
9674 * nat/windows-nat.h (matching_pending_stop)
9675 (continue_last_debug_event): Declare.
9676 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9677 (matching_pending_stop, continue_last_debug_event): New
9678 functions.
9679
8d30e395
TT
96802020-04-08 Tom Tromey <tromey@adacore.com>
9681
9682 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9683 (handle_exception_result): Move to nat/windows-nat.h.
9684 (DEBUG_EXCEPTION_SIMPLE): Remove.
9685 (windows_nat::handle_ms_vc_exception): New function.
9686 (handle_exception): Move to nat/windows-nat.c.
9687 (get_windows_debug_event): Update.
9688 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9689 nat/windows-nat.c.
9690 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9691 (handle_exception_result): Move from windows-nat.c.
9692 (handle_exception): Declare.
9693 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9694 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9695 windows-nat.c.
9696
29de418d
TT
96972020-04-08 Tom Tromey <tromey@adacore.com>
9698
9699 * windows-nat.c (exception_count, event_count): Remove.
9700 (handle_exception, get_windows_debug_event)
9701 (do_initial_windows_stuff): Update.
9702
a816ba18
TT
97032020-04-08 Tom Tromey <tromey@adacore.com>
9704
9705 * windows-nat.c (windows_nat::handle_load_dll)
9706 (windows_nat::handle_unload_dll): Rename. No longer static.
9707 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9708 Declare.
9709
a00caa12
TT
97102020-04-08 Tom Tromey <tromey@adacore.com>
9711
9712 * complaints.h (stop_whining): Declare at top-level.
9713 (complaint): Don't declare stop_whining.
9714
d41b524f
TT
97152020-04-08 Tom Tromey <tromey@adacore.com>
9716
9717 * windows-nat.c (windows_nat::handle_output_debug_string):
9718 Rename. No longer static.
9719 * nat/windows-nat.h (handle_output_debug_string): Declare.
9720
3c76026d
TT
97212020-04-08 Tom Tromey <tromey@adacore.com>
9722
9723 * windows-nat.c (current_process_handle, current_process_id)
9724 (main_thread_id, last_sig, current_event, last_wait_event)
9725 (current_windows_thread, desired_stop_thread_id, pending_stops)
9726 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9727 (display_selectors, fake_create_process)
9728 (get_windows_debug_event): Update.
9729 * nat/windows-nat.h (current_process_handle, current_process_id)
9730 (main_thread_id, last_sig, current_event, last_wait_event)
9731 (current_windows_thread, desired_stop_thread_id, pending_stops)
9732 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9733 * nat/windows-nat.c (current_process_handle, current_process_id)
9734 (main_thread_id, last_sig, current_event, last_wait_event)
9735 (current_windows_thread, desired_stop_thread_id, pending_stops)
9736 (siginfo_er): New globals. Move from windows-nat.c.
9737
9d8679cc
TT
97382020-04-08 Tom Tromey <tromey@adacore.com>
9739
9740 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9741 (handle_load_dll): Update.
9742 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9743
28688adf
TT
97442020-04-08 Tom Tromey <tromey@adacore.com>
9745
9746 * windows-nat.c (enum thread_disposition_type): Move to
9747 nat/windows-nat.h.
9748 (windows_nat::thread_rec): Rename from thread_rec. No longer
9749 static.
9750 (windows_add_thread, windows_nat_target::fetch_registers)
9751 (windows_nat_target::store_registers, handle_exception)
9752 (windows_nat_target::resume, get_windows_debug_event)
9753 (windows_nat_target::get_tib_address)
9754 (windows_nat_target::thread_name)
9755 (windows_nat_target::thread_alive): Update.
9756 * nat/windows-nat.h (enum thread_disposition_type): Move from
9757 windows-nat.c.
9758 (thread_rec): Declare.
9759
4834dad0
TT
97602020-04-08 Tom Tromey <tromey@adacore.com>
9761
9762 * windows-nat.c: Add "using namespace".
9763 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9764 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9765
65bafd5b
TT
97662020-04-08 Tom Tromey <tromey@adacore.com>
9767
9768 * nat/windows-nat.h (struct windows_thread_info): Declare
9769 destructor.
9770 * nat/windows-nat.c (~windows_thread_info): New.
9771
0a4afda3
TT
97722020-04-08 Tom Tromey <tromey@adacore.com>
9773
9774 PR gdb/22992
9775 * windows-nat.c (current_event): Update comment.
9776 (last_wait_event, desired_stop_thread_id): New globals.
9777 (struct pending_stop): New.
9778 (pending_stops): New global.
9779 (windows_nat_target) <stopped_by_sw_breakpoint>
9780 <supports_stopped_by_sw_breakpoint>: New methods.
9781 (windows_fetch_one_register): Add assertions. Adjust PC.
9782 (windows_continue): Handle pending stops. Suspend other threads
9783 when stepping. Use last_wait_event
9784 (wait_for_debug_event): New function.
9785 (get_windows_debug_event): Use wait_for_debug_event. Handle
9786 pending stops. Queue spurious stops.
9787 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9788 (windows_nat_target::kill): Use wait_for_debug_event.
9789 * nat/windows-nat.h (struct windows_thread_info)
9790 <stopped_at_software_breakpoint>: New field.
9791 * nat/windows-nat.c (windows_thread_info::resume): Clear
9792 stopped_at_software_breakpoint.
9793
8e61ebec
TT
97942020-04-08 Tom Tromey <tromey@adacore.com>
9795
9796 * windows-nat.c (enum thread_disposition_type): New.
9797 (thread_rec): Replace "get_context" parameter with "disposition";
9798 change type.
9799 (windows_add_thread, windows_nat_target::fetch_registers)
9800 (windows_nat_target::store_registers, handle_exception)
9801 (windows_nat_target::resume, get_windows_debug_event)
9802 (windows_nat_target::get_tib_address)
9803 (windows_nat_target::thread_name)
9804 (windows_nat_target::thread_alive): Update.
9805
98a03287
TT
98062020-04-08 Tom Tromey <tromey@adacore.com>
9807
9808 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9809 (windows_continue): Use windows_continue::resume.
9810 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9811 resume>: Declare new methods.
9812 * nat/windows-nat.c: New file.
9813 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9814
7c7411bc
TT
98152020-04-08 Tom Tromey <tromey@adacore.com>
9816
9817 * windows-nat.c (windows_add_thread, windows_delete_thread)
9818 (windows_nat_target::fetch_registers)
9819 (windows_nat_target::store_registers, fake_create_process)
9820 (windows_nat_target::resume, windows_nat_target::resume)
9821 (get_windows_debug_event, windows_nat_target::wait)
9822 (windows_nat_target::pid_to_str)
9823 (windows_nat_target::get_tib_address)
9824 (windows_nat_target::get_ada_task_ptid)
9825 (windows_nat_target::thread_name)
9826 (windows_nat_target::thread_alive): Use lwp, not tid.
9827
2950fdf7
TT
98282020-04-08 Tom Tromey <tromey@adacore.com>
9829
9830 * windows-nat.c (handle_exception)
9831 (windows_nat_target::thread_name): Update.
9832 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9833 <name>: Now unique_xmalloc_ptr.
9834
62fe396b
TT
98352020-04-08 Tom Tromey <tromey@adacore.com>
9836
9837 * windows-nat.c (thread_rec)
9838 (windows_nat_target::fetch_registers): Update.
9839 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9840 Update comment.
9841 <debug_registers_changed, reload_context>: Now bool.
9842
e9534bd2
TT
98432020-04-08 Tom Tromey <tromey@adacore.com>
9844
9845 * windows-nat.c (windows_add_thread): Use new.
9846 (windows_init_thread_list, windows_delete_thread): Use delete.
9847 (get_windows_debug_event): Update.
9848 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9849 destructor, and initializers.
9850
ae1f8880
TT
98512020-04-08 Tom Tromey <tromey@adacore.com>
9852
9853 * windows-nat.c (struct windows_thread_info): Remove.
9854 * nat/windows-nat.h: New file.
9855
55a1e039
TT
98562020-04-08 Tom Tromey <tromey@adacore.com>
9857
9858 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9859 (thread_rec, windows_add_thread, windows_delete_thread)
9860 (windows_continue): Update.
9861
93366324
TT
98622020-04-08 Tom Tromey <tromey@adacore.com>
9863
9864 * windows-nat.c (struct windows_thread_info): Remove typedef.
9865 (thread_head): Remove.
9866 (thread_list): New global.
9867 (thread_rec, windows_add_thread, windows_init_thread_list)
9868 (windows_delete_thread, windows_continue): Update.
9869
0f2265e2
SM
98702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9871
9872 * windows-tdep.h (windows_init_abi): Add comment.
9873 (cygwin_init_abi): New declaration.
9874 * windows-tdep.c: Split signal enumeration in two, one for
9875 Windows and one for Cygwin.
9876 (windows_gdb_signal_to_target): Only deal with signal of the
9877 Windows OS ABI.
9878 (cygwin_gdb_signal_to_target): New function.
9879 (windows_init_abi): Rename to windows_init_abi_common, don't set
9880 gdb_signal_to_target gdbarch method. Add new new function with
9881 this name.
9882 (cygwin_init_abi): New function.
9883 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9884 comment. Don't call windows_init_abi.
9885 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9886 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9887 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9888 i386_windows_init_abi_common, don't call windows_init_abi. Add
9889 a new function of this name.
9890 (i386_cygwin_init_abi): New function.
9891 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9892 OS ABI Cygwin.
9893
3810f182
SM
98942020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9897 parameter.c.
9898 (dwarf2_read_gdb_index): Update.
9899
063f8e80
KR
99002020-04-07 Kamil Rytarowski <n54@gmx.com>
9901
9902 * nbsd-tdep.c: Include "objfiles.h".
9903 (nbsd_skip_solib_resolver): New.
9904 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9905
85a9510c 99062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9907
9908 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9909 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9910 with DW_LLE_base_addressx are being emitted in DWARFv5.
9911 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9912 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9913 unsigned integer.
9914
9fc3eaae 99152020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9916
9917 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9918 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9919 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9920 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9921 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9922 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9923 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9924
9925
41144253 99262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9927
9928 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9929 (read_loclist_index): New function definition.
9930 (lookup_loclist_base): New function definition.
9931 (read_loclist_header): New function definition.
9932 (dwarf2_cu): Add loclist_base and loclist_header field.
9933 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9934 (read_full_die_1): Read the value of DW_AT_loclists_base.
9935 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9936 (read_attribute_value): Handle DW_FORM_loclistx.
9937 (skip_one_die): Handle DW_FORM_loclistx.
9938 (loclist_header): New structure declaration.
9939 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9940
9f4e76a4
SM
99412020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9942
9943 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9944 constructor. Remove `addr` parameter from other constructor and
9945 add `per_cu` parameter.
9946 * dwarf2/read.c (create_partial_symtab): Update.
9947
25c11aca
TV
99482020-04-07 Tom de Vries <tdevries@suse.de>
9949
9950 PR symtab/25796
9951 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9952 (partial_die_info::fixup): Inherit has_const_value.
9953
5707e24b
TV
99542020-04-07 Tom de Vries <tdevries@suse.de>
9955
9956 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9957 symbols without address.
9958
05f00e22
KR
99592020-04-06 Kamil Rytarowski <n54@gmx.com>
9960
9961 * nbsd-nat.h (struct thread_info): Add forward declaration.
9962 (nbsd_nat_target::thread_alive): Add.
9963 (nbsd_nat_target::thread_name): Likewise.
9964 (nbsd_nat_target::update_thread_list): Likewise.
9965 (update_thread_list::post_attach): Likewise.
9966 (post_attach::pid_to_str): Likewise.
9967 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9968 (nbsd_thread_lister): Add.
9969 (nbsd_nat_target::thread_alive): Likewise.
9970 (nbsd_nat_target::thread_name): Likewise.
9971 (nbsd_add_threads): Likewise.
9972 (update_thread_list::post_attach): Likewise.
9973 (nbsd_nat_target::update_thread_list): Likewise.
9974 (post_attach::pid_to_str): Likewise.
9975
6ee448cc
TT
99762020-04-06 Tom Tromey <tromey@adacore.com>
9977
9978 * ada-valprint.c (print_variant_part): Extract the variant field.
9979 (print_field_values): Use the field as the outer value when
9980 recursing.
9981
dea34e8c
TT
99822020-04-06 Tom Tromey <tromey@adacore.com>
9983
9984 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9985 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9986 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9987 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9988 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9989
93689ce9
TT
99902020-04-06 Tom Tromey <tromey@adacore.com>
9991
9992 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9993 TYPE_CODE_ERROR.
9994
79743962
KR
99952020-04-06 Kamil Rytarowski <n54@gmx.com>
9996
9997 * nbsd-tdep.c: Include "gdbarch.h".
9998 Define enum with NetBSD signal numbers.
9999 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10000 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10001 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10002 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10003 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10004 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10005 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10006 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10007 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10008 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10009 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10010 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10011
9e7c9a03
HD
100122020-04-03 Hannes Domani <ssbssa@yahoo.de>
10013
10014 PR gdb/25325
10015 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10016
d9e49b61
TT
100172020-04-03 Tom Tromey <tromey@adacore.com>
10018
10019 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10020 Read constant block.
10021
e0fc5c3f
SM
100222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10023
10024 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10025 (gdb_bfd_get_full_section_contents): New declaration.
10026 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10027 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10028 gdb_bfd_get_full_section_contents.
10029
e2ff18a0
SM
100302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10031
10032 * exec.c (build_section_table): Replace internal_error with
10033 gdb_assert.
10034 (section_table_xfer_memory_partial): Likewise.
10035 * mdebugread.c (parse_partial_symbols): Likewise.
10036 * psymtab.c (lookup_partial_symbol): Likewise.
10037 * utils.c (wrap_here): Likewise.
10038
0830d301
TT
100392020-04-02 Tom Tromey <tromey@adacore.com>
10040
10041 * f-lang.c (build_fortran_types): Use arch_type to initialize
10042 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10043
e7da7f8f
TT
100442020-04-02 Tom Tromey <tromey@adacore.com>
10045
10046 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10047 of attributes.
10048
c90d28ac
AB
100492020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10050 Bernd Edlinger <bernd.edlinger@hotmail.de>
10051 Tom Tromey <tromey@adacore.com>
10052
10053 * buildsym.c (buildsym_compunit::record_line): Remove
10054 deduplication code.
10055
1aa98955
TV
100562020-04-02 Tom de Vries <tdevries@suse.de>
10057
10058 PR ada/24671
10059 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10060
d3214198
TV
100612020-04-02 Tom de Vries <tdevries@suse.de>
10062
10063 * dwarf2/read.c (dwarf2_gdb_index_functions,
10064 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10065 NULL.
10066 * psymtab.c (psym_lookup_global_symbol_language): New function.
10067 (psym_functions): Init psym_lookup_global_symbol_language with
10068 psym_lookup_global_symbol_language.
10069 * symfile-debug.c (debug_sym_quick_functions): Init
10070 lookup_global_symbol_language with NULL.
10071 * symfile.c (set_initial_language): Remove fixme comment.
10072 * symfile.h (struct quick_symbol_functions): Add
10073 lookup_global_symbol_language.
10074 * symtab.c (find_quick_global_symbol_language): New function.
10075 (find_main_name): Use find_quick_global_symbol_language.
10076
2836752f
SM
100772020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10078
10079 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10080
64dc2d4b
BE
100812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10082
10083 * buildsym.c (record_line): Fix undefined behavior and preserve
10084 lines at eof.
10085
bbe3dc41
BE
100862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10087
10088 * buildsym.c (record_line): Fix the resizing condition.
10089
6b4a335b
TT
100902020-04-01 Tom Tromey <tom@tromey.com>
10091
10092 * value.h (value_literal_complex): Add comment.
10093 * valops.c (value_literal_complex): Refer to value.h.
10094
3638a098
TT
100952020-04-01 Tom Tromey <tom@tromey.com>
10096
10097 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10098 (scalar_type): New rule, from typebase.
10099 (typebase): Use scalar_type. Recognize complex types.
10100 (field_name): Handle FLOAT_KEYWORD.
10101 (ident_tokens): Add _Complex and __complex__.
10102
c34e8714
TT
101032020-04-01 Tom Tromey <tom@tromey.com>
10104
10105 PR exp/25299:
10106 * valarith.c (promotion_type, complex_binop): New functions.
10107 (scalar_binop): Handle complex numbers. Use promotion_type.
10108 (value_pos, value_neg, value_complement): Handle complex numbers.
10109
fa649bb7
TT
101102020-04-01 Tom Tromey <tom@tromey.com>
10111
10112 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10113 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10114 (parse_number): Handle complex numbers.
10115
981c08ce
TT
101162020-04-01 Tom Tromey <tom@tromey.com>
10117
10118 * c-valprint.c (c_decorations): Change complex suffix to "i".
10119
4c99290d
TT
101202020-04-01 Tom Tromey <tom@tromey.com>
10121
10122 * valprint.c (generic_value_print_complex): Use accessors.
10123 * value.h (value_real_part, value_imaginary_part): Declare.
10124 * valops.c (value_real_part, value_imaginary_part): New
10125 functions.
10126 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10127
5b930b45
TT
101282020-04-01 Tom Tromey <tom@tromey.com>
10129
10130 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10131 (read_range_type): Update.
10132 * mdebugread.c (basic_type): Update.
10133 * go-lang.c (build_go_types): Use init_complex_type.
10134 * gdbtypes.h (struct main_type) <complex_type>: New member.
10135 (init_complex_type): Update.
10136 (arch_complex_type): Don't declare.
10137 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10138 Make name if none given. Use alloc_type_copy. Look for cached
10139 complex type.
10140 (arch_complex_type): Remove.
10141 (gdbtypes_post_init): Use init_complex_type.
10142 * f-lang.c (build_fortran_types): Use init_complex_type.
10143 * dwarf2/read.c (read_base_type): Update.
10144 * d-lang.c (build_d_types): Use init_complex_type.
10145 * ctfread.c (read_base_type): Update.
10146
53cccef1
TBA
101472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10148
10149 * infrun.c (stop_all_threads): Update assertion, plus when
10150 stopping threads, take into account that we might be trying
10151 to stop an all-stop target.
10152 (stop_waiting): Call 'stop_all_threads' if there exists a
10153 non-stop target.
10154
a0714d30
TBA
101552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10156
10157 * target.h (exists_non_stop_target): New function declaration.
10158 * target.c (exists_non_stop_target): New function.
10159
60e22c1e
HD
101602020-04-01 Hannes Domani <ssbssa@yahoo.de>
10161
10162 PR gdb/24789
10163 * eval.c (is_integral_or_integral_reference): New function.
10164 (evaluate_subexp_standard): Allow integer references in
10165 pointer arithmetic.
10166
e139a727
TBA
101672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10168
10169 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10170 check for no ptid in the stop reply when the target is non-stop.
10171
e0802d59
TT
101722020-04-01 Tom Tromey <tromey@adacore.com>
10173
10174 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10175 "name" parameter to rvalue reference. Initialize m_name_holder.
10176 <lookup_name_info>: New overloads.
10177 <name>: Return gdb::string_view.
10178 <c_str>: New method.
10179 <make_ignore_params>: Update.
10180 <search_name_hash>: Update.
10181 <language_lookup_name>: Return const char *.
10182 <m_name>: Change type.
10183 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10184 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10185 (lookup_name_info::match_any): Update.
10186 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10187 Update.
10188 * minsyms.c (linkage_name_str): Update.
10189 * language.c (default_symbol_name_matcher): Update.
10190 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10191 Update.
10192 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10193 (ada_lookup_name_info::ada_lookup_name_info): Update.
10194 (literal_symbol_name_matcher): Update.
10195
8c072cb6
TT
101962020-04-01 Tom Tromey <tromey@adacore.com>
10197
10198 * psymtab.c (psymtab_search_name): Remove function.
10199 (psym_lookup_symbol): Create search name and lookup name here.
10200 (lookup_partial_symbol): Remove "name" parameter; add
10201 lookup_name.
10202 (psym_expand_symtabs_for_function): Update.
10203
6f29a534
TT
102042020-03-31 Joel Jones <joelkevinjones@gmail.com>
10205
10206 PR tui/25597:
10207 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10208
af62665e
TT
102092020-03-31 Tom Tromey <tromey@adacore.com>
10210
10211 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10212 memcpy.
10213
d1a89da5
NC
102142020-03-30 Nelson Chu <nelson.chu@sifive.com>
10215
10216 * features/riscv/32bit-csr.xml: Regenerated.
10217 * features/riscv/64bit-csr.xml: Regenerated.
10218
d8af9068
TT
102192020-03-30 Tom Tromey <tromey@adacore.com>
10220
10221 * ada-valprint.c (print_variant_part): Update.
10222 * ada-lang.h (ada_which_variant_applies): Update.
10223 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10224 outer_valaddr parameters; replace with "outer" value parameter.
10225 (to_fixed_variant_branch_type): Update.
10226
227c0bf4
PFC
102272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10228
10229 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10230 <list>. Remove inclusion of observable.h.
10231 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10232 (struct arch_lwp_info): New struct.
10233 (class ppc_linux_dreg_interface): New class.
10234 (struct ppc_linux_process_info): New struct.
10235 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10236 <low_new_clone, low_forget_process, low_prepare_to_resume>
10237 <copy_thread_dreg_state, mark_thread_stale>
10238 <mark_debug_registers_changed, register_hw_breakpoint>
10239 <clear_hw_breakpoint, register_wp, clear_wp>
10240 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10241 <num_memory_accesses, get_trigger_type>
10242 <create_watchpoint_request, hwdebug_point_cmp>
10243 <init_arch_lwp_info, get_arch_lwp_info>
10244 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10245 methods.
10246 <struct ptid_hash>: New inner struct.
10247 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10248 members.
10249 (saved_dabr_value, hwdebug_info, max_slots_number)
10250 (struct hw_break_tuple, struct thread_points, ppc_threads)
10251 (have_ptrace_hwdebug_interface)
10252 (hwdebug_find_thread_points_by_tid)
10253 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10254 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10255 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10256 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10257 use m_dreg_interface.
10258 (hwdebug_point_cmp): Change to...
10259 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10260 reference arguments instead of pointers.
10261 (ppc_linux_nat_target::ranged_break_num_registers): Use
10262 m_dreg_interface.
10263 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10264 m_dreg_interface. Call register_hw_breakpoint.
10265 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10266 m_dreg_interface. Call clear_hw_breakpoint.
10267 (get_trigger_type): Change to...
10268 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10269 comment.
10270 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10271 use m_dreg_interface. Call register_hw_breakpoint.
10272 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10273 use m_dreg_interface. Call clear_hw_breakpoint.
10274 (can_use_watchpoint_cond_accel): Change to...
10275 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10276 method. Update comment, use m_dreg_interface and
10277 m_process_info.
10278 (calculate_dvc): Change to...
10279 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10280 m_dreg_interface.
10281 (num_memory_accesses): Change to...
10282 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10283 (check_condition): Change to...
10284 (ppc_linux_nat_target::check_condition): ...this method.
10285 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10286 comment, use m_dreg_interface.
10287 (create_watchpoint_request): Change to...
10288 (ppc_linux_nat_target::create_watchpoint_request): ...this
10289 method. Use m_dreg_interface.
10290 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10291 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10292 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10293 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10294 (ppc_linux_nat_target::low_forget_process)
10295 (ppc_linux_nat_target::low_new_fork)
10296 (ppc_linux_nat_target::low_new_clone)
10297 (ppc_linux_nat_target::low_delete_thread)
10298 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10299 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10300 only call mark_thread_stale.
10301 (ppc_linux_thread_exit): Remove.
10302 (ppc_linux_nat_target::stopped_data_address): Change to...
10303 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10304 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10305 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10306 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10307 comment. Call low_stopped_data_address.
10308 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10309 m_dreg_interface.
10310 (ppc_linux_nat_target::masked_watch_num_registers): Use
10311 m_dreg_interface.
10312 (ppc_linux_nat_target::copy_thread_dreg_state)
10313 (ppc_linux_nat_target::mark_thread_stale)
10314 (ppc_linux_nat_target::mark_debug_registers_changed)
10315 (ppc_linux_nat_target::register_hw_breakpoint)
10316 (ppc_linux_nat_target::clear_hw_breakpoint)
10317 (ppc_linux_nat_target::register_wp)
10318 (ppc_linux_nat_target::clear_wp)
10319 (ppc_linux_nat_target::init_arch_lwp_info)
10320 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10321 (_initialize_ppc_linux_nat): Remove observer callback.
10322
4db10d8f
PFC
103232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10324
10325 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10326 (ppc_linux_nat_target::auxv_parse)
10327 (ppc_linux_nat_target::read_description)
10328 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10329 Move up.
10330
1310c1b0
PFC
103312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10332
10333 * linux-nat.h (low_new_clone): New method.
10334 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10335
69b037c3
SM
103362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10337
10338 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10339 (dbx_expand_psymtab): ... this.
10340 (start_psymtab): Update.
10341 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10342 (mdebug_expand_psymtab): ... this.
10343 (parse_partial_symbols): Update.
10344 (new_psymtab): Update.
10345 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10346 (xcoff_expand_psymtab): ... this.
10347 (xcoff_start_psymtab): Update.
10348
48993951
SM
103492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10350
10351 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10352 <expand_dependencies>: ... this.
10353 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10354 (partial_symtab::expand_dependencies): ... this.
10355 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10356 Update.
10357 (dwarf2_psymtab::expand_psymtab): Update.
10358 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10359 * mdebugread.c (psymtab_to_symtab_1): Update.
10360 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10361
3ad83046
SM
103622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10363
10364 * psympriv.h (discard_psymtab): Remove.
10365 * dbxread.c (dbx_end_psymtab): Update.
10366 * xcoffread.c (xcoff_end_psymtab): Update.
10367
4d1b9ab6
TT
103682020-03-28 Tom Tromey <tom@tromey.com>
10369
10370 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10371 comment.
10372
f1749218
TT
103732020-03-28 Tom Tromey <tom@tromey.com>
10374
10375 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10376
ebea7626
HD
103772020-03-27 Hannes Domani <ssbssa@yahoo.de>
10378
10379 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10380
a879b4d5
JB
103812020-03-26 John Baldwin <jhb@FreeBSD.org>
10382
10383 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10384
0826b30a
TT
103852020-03-26 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10388 (mark_common_block_symbol_computed, read_tag_string_type)
10389 (attr_to_dynamic_prop, read_subrange_type): Update.
10390 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10391 to be methods on struct attribute.
10392 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10393 (read_call_site_scope, partial_die_info::read)
10394 (partial_die_info::read, lookup_die_type, follow_die_ref):
10395 Update.
10396 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10397 from dwarf2_get_ref_die_offset.
10398 (attribute::constant_value): New method, from
10399 dwarf2_get_attr_constant_value.
10400 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10401 Declare method.
10402 <constant_value>: New method.
10403
2b2558bf
TT
104042020-03-26 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10407 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10408 (dwarf_type_encoding_name): Move to stringify.c.
10409 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10410 * dwarf2/stringify.c: New file.
10411 * dwarf2/stringify.h: New file.
10412
eeb64781
TT
104132020-03-26 Tom Tromey <tom@tromey.com>
10414
10415 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10416 Rewrite.
10417
a39fdb41
TT
104182020-03-26 Tom Tromey <tom@tromey.com>
10419
10420 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10421 methods.
10422 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10423 (lookup_ranges_base): Likewise.
10424 (read_cutu_die_from_dwo, read_full_die_1): Update.
10425
436c571c
TT
104262020-03-26 Tom Tromey <tom@tromey.com>
10427
10428 * dwarf2/read.c (read_import_statement, read_file_scope)
10429 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10430 (read_lexical_block_scope, read_call_site_scope)
10431 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10432 (handle_struct_member_die, process_structure_scope)
10433 (update_enumeration_type_from_children)
10434 (process_enumeration_scope, read_array_type, read_common_block)
10435 (read_namespace, read_module, read_subroutine_type): Update.
10436 (sibling_die): Remove.
10437
052c8bb8
TT
104382020-03-26 Tom Tromey <tom@tromey.com>
10439
10440 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10441 (build_type_psymtabs_reader, read_structure_type)
10442 (read_enumeration_type, read_full_die_1): Update.
10443 (dwarf2_attr_no_follow): Move to die.h.
10444 * dwarf2/die.h (struct die_info) <attr>: New method.
10445
2b24b6e4
TT
104462020-03-26 Tom Tromey <tom@tromey.com>
10447
10448 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10449 <base_address>: Now an optional.
10450 (dwarf2_find_base_address, dwarf2_rnglists_process)
10451 (dwarf2_ranges_process, fill_in_loclist_baton)
10452 (dwarf2_symbol_mark_computed): Update.
10453
c2d50fd0
TT
104542020-03-26 Tom Tromey <tom@tromey.com>
10455
10456 * dwarf2/read.c (struct die_info): Move to die.h.
10457 * dwarf2/die.h: New file.
10458
0df7ad3a
TT
104592020-03-26 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10462 * dwarf2/read.c
10463 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10464 Move to line-header.c.
10465 (read_checked_initial_length_and_offset, read_formatted_entries):
10466 Likewise.
10467 (dwarf_decode_line_header): Split into two.
10468 * dwarf2/line-header.c
10469 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10470 Move from read.c.
10471 (read_checked_initial_length_and_offset, read_formatted_entries):
10472 Likewise.
10473 (dwarf_decode_line_header): New function, split from read.c.
10474
86c0bb4c
TT
104752020-03-26 Tom Tromey <tom@tromey.com>
10476
10477 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10478 Declare method.
10479 * dwarf2/read.c (read_attribute_value): Update.
10480 (dwarf2_per_objfile::read_line_string): Rename from
10481 read_indirect_line_string.
10482 (read_formatted_entries): Update.
10483
2ef46c2f
TT
104842020-03-26 Tom Tromey <tom@tromey.com>
10485
10486 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10487 variable.
10488
4f9c1eda
TT
104892020-03-26 Tom Tromey <tom@tromey.com>
10490
10491 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10492 const.
10493 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10494 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10495 parameter const.
10496
5a0e026f
TT
104972020-03-26 Tom Tromey <tom@tromey.com>
10498
10499 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10500 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10501 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10502 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10503
8844c11b
TT
105042020-03-26 Tom Tromey <tom@tromey.com>
10505
10506 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10507 file_names_size, file_full_name, file_file_name>: Use const.
10508 <file_name_at, file_names>: Add const overload.
10509 * dwarf2/line-header.c (line_header::file_file_name)
10510 (line_header::file_full_name): Update.
10511
c90ec28a
TT
105122020-03-26 Tom Tromey <tom@tromey.com>
10513
10514 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10515 (macro_start_file, consume_improper_spaces)
10516 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10517 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10518 (dwarf_decode_macros): Move to macro.c.
10519 * dwarf2/macro.c: New file.
10520 * dwarf2/macro.h: New file.
10521 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10522
4f44ae6c
TT
105232020-03-26 Tom Tromey <tom@tromey.com>
10524
10525 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10526 method.
10527 * dwarf2/section.c: New method. From
10528 read_indirect_string_at_offset_from.
10529 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10530 (read_indirect_string_at_offset_from): Move to section.c.
10531 (read_indirect_string_at_offset): Rewrite.
10532 (read_indirect_line_string_at_offset): Remove.
10533 (read_indirect_string, read_indirect_line_string)
10534 (dwarf_decode_macro_bytes): Update.
10535
a0194fa8
TT
105362020-03-26 Tom Tromey <tom@tromey.com>
10537
10538 * dwarf2/section.h (struct dwarf2_section_info)
10539 <overload_complaint>: Declare.
10540 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10541 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10542 Rename from dwarf2_section_buffer_overflow_complaint.
10543 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10544 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10545
3d27bbdb
TT
105462020-03-26 Tom Tromey <tom@tromey.com>
10547
10548 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10549 Declare.
10550 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10551 Move from read.c.
10552 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10553 to section.c.
10554
9eac9650
TT
105552020-03-26 Tom Tromey <tom@tromey.com>
10556
10557 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10558
bf80d710
TT
105592020-03-26 Tom Tromey <tom@tromey.com>
10560
10561 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10562 "builder".
10563 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10564 parameter.
10565 (dwarf_decode_macros): Update.
10566
0314b390
TT
105672020-03-26 Tom Tromey <tom@tromey.com>
10568
10569 * dwarf2/read.c (read_attribute_value): Update.
10570 (read_indirect_string_from_dwz): Move to dwz.c; change into
10571 method.
10572 (dwarf_decode_macro_bytes): Update.
10573 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10574 * dwarf2/dwz.c: New file.
10575 * Makefile.in (COMMON_SFILES): Add dwz.c.
10576
9fda78b6
TT
105772020-03-26 Tom Tromey <tom@tromey.com>
10578
10579 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10580 * dwarf2/read.c: Add include.
10581 * dwarf2/index-write.c: Add include.
10582 * dwarf2/index-cache.c: Add include.
10583 * dwarf2/dwz.h: New file.
10584
33aa3c10
TT
105852020-03-25 Tom Tromey <tom@tromey.com>
10586
10587 * compile/compile-object-load.c (get_out_value_type): Mention
10588 correct symbol name in error message.
10589
d503b685
HD
105902020-03-25 Hannes Domani <ssbssa@yahoo.de>
10591
10592 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10593
7b1eff95
TV
105942020-03-25 Tom de Vries <tdevries@suse.de>
10595
10596 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10597 * symmisc.c (dump_symtab_1): Print user and includes fields.
10598 (maintenance_info_symtabs): Same.
10599
dd895392
AB
106002020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10601
10602 PR gdb/25534
10603 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10604 (riscv_regcache_cooked_write): New function.
10605 (riscv_push_dummy_call): Use new function.
10606 (riscv_return_value): Likewise.
10607
5ab2fbf1
SM
106082020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10609
10610 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10611 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10612 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10613 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10614 * infrun.c (follow_fork): Likewise.
10615 (follow_fork_inferior): Likewise.
10616 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10617 * linux-nat.h (class linux_nat_target): Likewise.
10618 * remote.c (class remote_target) <follow_fork>: Likewise.
10619 (remote_target::follow_fork): Likewise.
10620 * target-delegates.c: Re-generate.
10621 * target.c (default_follow_fork): Likewise.
10622 (target_follow_fork): Likewise.
10623 * target.h (struct target_ops) <follow_fork>: Likewise.
10624 (target_follow_fork): Likewise.
10625
a64fafb5
TV
106262020-03-24 Tom de Vries <tdevries@suse.de>
10627
10628 * psymtab.c (maintenance_info_psymtabs): Print user field.
10629
fe26d3a3
TT
106302020-03-20 Tom Tromey <tromey@adacore.com>
10631
10632 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10633 const.
10634 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10635 const.
10636
c884cc46
SM
106372020-03-20 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * ptrace.m4: Don't check for ptrace declaration.
10640 * config.in: Re-generate.
10641 * configure: Re-generate.
10642 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10643 not defined.
10644
1ff700c2
KR
106452020-03-20 Kamil Rytarowski <n54@gmx.com>
10646
10647 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10648 `PTRACE_TYPE_RET'.
10649 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10650 * sparc-nat.c (gdb_ptrace): Likewise.
10651 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10652
f7d4f0b1
TT
106532020-03-20 Tom Tromey <tromey@adacore.com>
10654
10655 * c-exp.y (lex_one_token): Fix assert.
10656
f67210ff
TT
106572020-03-20 Tom Tromey <tromey@adacore.com>
10658
10659 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10660 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10661 strncpy call.
10662
1773be9e
TT
106632020-03-20 Tom Tromey <tromey@adacore.com>
10664
10665 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10666
70304be9
TT
106672020-03-20 Tom Tromey <tromey@adacore.com>
10668
10669 * ada-valprint.c (print_variant_part): Remove parameters; switch
10670 to value-based API.
10671 (print_field_values): Likewise.
10672 (ada_val_print_struct_union): Likewise.
10673 (ada_value_print_1): Update.
10674
9faa006d
KR
106752020-03-20 Kamil Rytarowski <n54@gmx.com>
10676
10677 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10678 nbsd_nat_target instead of inf_ptrace_target.
10679 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10680 nbsd_nat_target.
10681
4a90f062
KR
106822020-03-20 Kamil Rytarowski <n54@gmx.com>
10683
10684 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10685 it to the ptrace call.
10686 * (store_registers): Likewise.
10687
106882020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10689
10690 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10691 it to the ptrace call.
10692 * (store_registers): Likewise.
10693
2d07da27
LM
106942020-03-19 Luis Machado <luis.machado@linaro.org>
10695
10696 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10697 valid, fetch vg value from ptrace.
10698
f09db380
KR
106992020-03-19 Kamil Rytarowski <n54@gmx.com>
10700 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10701 * inf-ptrace.c: Likewise.
10702 * (gdb_ptrace): Add.
10703 * (inf_ptrace_target::resume): Update.
10704 * (inf_ptrace_target::xfer_partial): Likewise.
10705 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10706 * (inf_ptrace_peek_poke): Update.
10707
fcc7376e
KR
107082020-03-19 Kamil Rytarowski <n54@gmx.com>
10709
10710 * x86-bsd-nat.c (gdb_ptrace): New.
10711 * (x86bsd_dr_set): Add new argument `ptid'.
10712 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10713 x86bsd_dr_set_addr): Update.
10714
cada5fc9
AB
107152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10716
10717 * remote.c (remote_target::process_stop_reply): Handle events for
10718 all threads differently.
10719
19a2740f
AB
107202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10721
10722 * completer.c (completion_tracker::remove_completion): Define new
10723 function.
10724 * completer.h (completion_tracker::remove_completion): Declare new
10725 function.
10726 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10727 when adding a C++ function symbol.
10728
724fd9ba
AB
107292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * completer.c (completion_tracker::completion_hash_entry): Define
10732 new class.
10733 (advance_to_filename_complete_word_point): Call
10734 recompute_lowest_common_denominator.
10735 (completion_tracker::completion_tracker): Call discard_completions
10736 to setup the hash table.
10737 (completion_tracker::discard_completions): Allow for being called
10738 from the constructor, pass new equal function, and element deleter
10739 when constructing the hash table. Initialise new class member
10740 variables.
10741 (completion_tracker::maybe_add_completion): Remove use of
10742 m_entries_vec, and store more information into m_entries_hash.
10743 (completion_tracker::recompute_lcd_visitor): New function, most
10744 content taken from...
10745 (completion_tracker::recompute_lowest_common_denominator):
10746 ...here, this now just visits each item in the hash calling the
10747 above visitor.
10748 (completion_tracker::build_completion_result): Remove use of
10749 m_entries_vec, call recompute_lowest_common_denominator.
10750 * completer.h (completion_tracker::have_completions): Remove use
10751 of m_entries_vec.
10752 (completion_tracker::completion_hash_entry): Declare new class.
10753 (completion_tracker::recompute_lowest_common_denominator): Change
10754 function signature.
10755 (completion_tracker::recompute_lcd_visitor): Declare new function.
10756 (completion_tracker::m_entries_vec): Delete.
10757 (completion_tracker::m_entries_hash): Initialize to NULL.
10758 (completion_tracker::m_lowest_common_denominator_valid): New
10759 member variable.
10760 (completion_tracker::m_lowest_common_denominator_max_length): New
10761 member variable.
10762
5a82b8a1
KR
107632020-03-17 Kamil Rytarowski <n54@gmx.com>
10764
10765 * regformats/regdef.h: Put reg in gdb namespace.
10766
fb516a69
KR
107672020-03-17 Kamil Rytarowski <n54@gmx.com>
10768
10769 * i386-bsd-nat.c (gdb_ptrace): New.
10770 * (i386bsd_fetch_inferior_registers,
10771 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10772 * (i386bsd_fetch_inferior_registers,
10773 i386bsd_store_inferior_registers) Use gdb_ptrace.
10774
1c0aa1fb
KR
107752020-03-17 Kamil Rytarowski <n54@gmx.com>
10776
10777 * amd64-bsd-nat.c (gdb_ptrace): New.
10778 * (amd64bsd_fetch_inferior_registers,
10779 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10780 * (amd64bsd_fetch_inferior_registers,
10781 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10782
5ccd2fb7
KR
107832020-03-17 Kamil Rytarowski <n54@gmx.com>
10784
10785 * user-regs.c (user_reg::read): Rename to...
10786 (user_reg::xread): ...this.
10787 * (append_user_reg): Rename argument `read' to `xread'.
10788 * (user_reg_add_builtin): Likewise.
10789 * (user_reg_add): Likewise.
10790 * (value_of_user_reg): Likewise.
10791
2108a63a
KR
107922020-03-17 Kamil Rytarowski <n54@gmx.com>
10793
10794 * sparc-nat.c (gdb_ptrace): New.
10795 * sparc-nat.c (sparc_fetch_inferior_registers)
10796 (sparc_store_inferior_registers) Remove obsolete comment.
10797 * sparc-nat.c (sparc_fetch_inferior_registers)
10798 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10799 * sparc-nat.c (sparc_fetch_inferior_registers)
10800 (sparc_store_inferior_registers) Use gdb_ptrace.
10801
a225c9a8
KR
108022020-03-17 Kamil Rytarowski <n54@gmx.com>
10803
10804 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10805 it to the ptrace call.
10806 * sh-nbsd-nat.c (store_registers): Likewise.
10807
98097623
KR
108082020-03-17 Kamil Rytarowski <n54@gmx.com>
10809
10810 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10811 nbsd_nat_target instead of inf_ptrace_target.
10812 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10813 nbsd_nat_target.
10814
9e38d619
KR
108152020-03-17 Kamil Rytarowski <n54@gmx.com>
10816
10817 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10818
a2ecbe9f
KR
108192020-03-17 Kamil Rytarowski <n54@gmx.com>
10820
10821 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10822 <sys/sysctl.h>.
10823 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10824
58990295
TV
108252020-03-17 Tom de Vries <tdevries@suse.de>
10826
10827 PR gdb/23710
10828 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10829 fields.
10830 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10831 fields.
10832 (process_imported_unit_die): Skip import of c++ CUs.
10833
771dd3a8
TT
108342020-03-16 Tom Tromey <tom@tromey.com>
10835
10836 * p-valprint.c (pascal_object_print_value): Initialize
10837 base_value.
10838
817a7585
AK
108392020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10840 Shahab Vahedi <shahab@synopsys.com>
10841
10842 * Makefile.in: Add arch/arc.o
10843 * configure.tgt: Likewise.
10844 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10845 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10846 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10847 * arc-tdep.h (arc_read_description): Add proto type.
10848 * arch/arc.c: New file.
10849 * arch/arc.h: Likewise.
10850 * features/Makefile: Replace old target descriptions with new.
10851 * features/arc-arcompact.c: Remove.
10852 * features/arc-arcompact.xml: Likewise.
10853 * features/arc-v2.c: Likewise
10854 * features/arc-v2.xml: Likewise
10855 * features/arc/aux-arcompact.xml: New file.
10856 * features/arc/aux-v2.xml: Likewise.
10857 * features/arc/core-arcompact.xml: Likewise.
10858 * features/arc/core-v2.xml: Likewise.
10859 * features/arc/aux-arcompact.c: Generate.
10860 * features/arc/aux-v2.c: Likewise.
10861 * features/arc/core-arcompact.c: Likewise.
10862 * features/arc/core-v2.c: Likewise.
10863 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10864
67430cd0
TT
108652020-03-16 Tom Tromey <tromey@adacore.com>
10866
10867 PR gdb/25663:
10868 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10869 putting value into bcache.
10870
30efb6c7
SM
108712020-03-16 Simon Marchi <simon.marchi@efficios.com>
10872
10873 PR gdb/21500
10874 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10875 to...
10876 (amd64_windows_init_abi_common): ... this. Don't set size of
10877 long type.
10878 (amd64_windows_init_abi): New function.
10879 (amd64_cygwin_init_abi): New function.
10880 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10881 the Cygwin OS ABI.
10882 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10883 comment.
10884
8db52437
SM
108852020-03-16 Simon Marchi <simon.marchi@efficios.com>
10886
10887 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10888 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10889 (pe_import_directory_entry): New struct type.
10890 (is_linked_with_cygwin_dll): New function.
10891 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10892 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10893 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10894
5982a56a
SM
108952020-03-16 Simon Marchi <simon.marchi@efficios.com>
10896
10897 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10898 i386_cygwin_core_osabi_sniffer.
10899
7a1998df
SM
109002020-03-16 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * i386-cygwin-tdep.c: Rename to...
10903 * i386-windows-tdep.c: ... this.
10904 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10905 i386-windows-tdep.c.
10906 * configure.tgt: Likewise.
10907
053205cc
SM
109082020-03-16 Simon Marchi <simon.marchi@efficios.com>
10909
10910 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10911 * osabi.c (gdb_osabi_names): Add "Windows".
10912 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10913 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10914 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10915 i386_cygwin_osabi_sniffer.
10916 (_initialize_i386_cygwin_tdep): Register OS ABI
10917 GDB_OSABI_WINDOWS for i386.
10918 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10919 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10920 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10921 for x86-64.
10922 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10923 when the target matches '*-*-mingw*'.
10924
fe4b2ee6
SM
109252020-03-16 Simon Marchi <simon.marchi@efficios.com>
10926
10927 * defs.h (enum gdb_osabi): Move to...
10928 * osabi.h (enum gdb_osabi): ... here.
10929 * gdbarch.sh: Include osabi.h in gdbarch.h.
10930 * gdbarch.h: Re-generate.
10931
cb9b645d
SM
109322020-03-16 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10935 function.
10936 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10937
3293bbaf
TT
109382020-03-14 Tom Tromey <tom@tromey.com>
10939
10940 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10941 for C++.
10942 (c_type_print_modifier): Likewise. Add "language" parameter.
10943 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10944 (c_type_print_base_1): Update.
10945 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10946 constants.
10947 * type-stack.c (type_stack::insert): Handle tp_atomic and
10948 tp_restrict.
10949 (type_stack::follow_type_instance_flags): Likewise.
10950 (type_stack::follow_types): Likewise. Merge type-following code.
10951 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10952 (space_identifier, cv_with_space_id)
10953 (const_or_volatile_or_space_identifier_noopt)
10954 (const_or_volatile_or_space_identifier): Remove.
10955 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10956 rules.
10957 (ptr_operator, typebase): Update.
10958 (enum token_flag) <FLAG_C>: New constant.
10959 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10960 "_Atomic".
10961 (lex_one_token): Handle FLAG_C.
10962
154151a6
KR
109632020-03-14 Kamil Rytarowski <n54@gmx.com>
10964
10965 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10966 it to the ptrace call.
10967 * m68k-bsd-nat.c (store_registers): Likewise.
10968
bc107784
KR
109692020-03-14 Kamil Rytarowski <n54@gmx.com>
10970
10971 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10972 gdb_byte *.
10973 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10974 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10975 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10976
01a80117
KR
109772020-03-14 Kamil Rytarowski <n54@gmx.com>
10978
10979 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10980 nbsd_nat_target instead of inf_ptrace_target.
10981 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10982 nbsd_nat_target.
10983
f90280ca
KR
109842020-03-14 Kamil Rytarowski <n54@gmx.com>
10985
10986 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10987 register_t.
10988
6def66f1
KR
109892020-03-14 Kamil Rytarowski <n54@gmx.com>
10990
10991 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10992 it to the ptrace call.
10993 * alpha-bsd-nat.c (store_registers): Likewise.
10994
66eaca97
KR
109952020-03-14 Kamil Rytarowski <n54@gmx.com>
10996
10997 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10998 includes.
10999 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11000 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11001 fill_fpregset): Likewise.
11002
4fed520b
KR
110032020-03-14 Kamil Rytarowski <n54@gmx.com>
11004
11005 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11006 nbsd_nat_target instead of inf_ptrace_target.
11007 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11008 nbsd_nat_target.
11009
2190cf06
KR
110102020-03-14 Kamil Rytarowski <n54@gmx.com>
11011
11012 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11013 register_t.
11014
75c56d3d
KR
110152020-03-14 Kamil Rytarowski <n54@gmx.com>
11016
11017 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11018 it to the ptrace call.
11019 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11020 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11021 * arm-nbsd-nat.c (store_register): Likewise.
11022 * arm-nbsd-nat.c (store_regs): Likewise.
11023 * arm-nbsd-nat.c (store_fp_register): Likewise.
11024 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11025
6018d381
KR
110262020-03-14 Kamil Rytarowski <n54@gmx.com>
11027
11028 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11029 nbsd_nat_target instead of inf_ptrace_target.
11030 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11031 nbsd_nat_target.
11032
013f99f0
KR
110332020-03-14 Kamil Rytarowski <n54@gmx.com>
11034
11035 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11036 it to the ptrace call.
11037 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11038
12753073
KR
110392020-03-14 Kamil Rytarowski <n54@gmx.com>
11040
6227b330
KR
11041 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11042 it to the ptrace call.
11043 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11044
110452020-03-14 Kamil Rytarowski <n54@gmx.com>
11046
11047 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11048 gdb_byte *.
12753073
KR
11049 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11050
d5be5fa4
KR
110512020-03-14 Kamil Rytarowski <n54@gmx.com>
11052
11053 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11054 instead of inf_ptrace_target.
11055 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11056 nbsd_nat_target.
11057
8110f842
KR
110582020-03-14 Kamil Rytarowski <n54@gmx.com>
11059
11060 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11061 register_t.
11062
52feded7
KR
110632020-03-14 Kamil Rytarowski <n54@gmx.com>
11064
11065 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11066 register_t.
11067
25567eee
KR
110682020-03-14 Kamil Rytarowski <n54@gmx.com>
11069
11070 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11071 register_t.
11072
426a9c18
TT
110732020-03-13 Tom Tromey <tom@tromey.com>
11074
11075 * value.h (val_print): Don't declare.
11076 * valprint.h (val_print_array_elements)
11077 (val_print_scalar_formatted, generic_val_print): Don't declare.
11078 * valprint.c (generic_val_print_array): Take a struct value.
11079 (generic_val_print_ptr, generic_val_print_memberptr)
11080 (generic_val_print_bool, generic_val_print_int)
11081 (generic_val_print_char, generic_val_print_complex)
11082 (generic_val_print): Remove.
11083 (generic_value_print): Update.
11084 (do_val_print): Remove unused parameters. Don't call
11085 la_val_print.
11086 (val_print): Remove.
11087 (common_val_print): Update. Don't call value_check_printable.
11088 (val_print_scalar_formatted, val_print_array_elements): Remove.
11089 * rust-lang.c (rust_val_print): Remove.
11090 (rust_language_defn): Update.
11091 * p-valprint.c (pascal_val_print): Remove.
11092 (pascal_value_print_inner): Update.
11093 (pascal_object_print_val_fields, pascal_object_print_val):
11094 Remove.
11095 (pascal_object_print_static_field): Update.
11096 * p-lang.h (pascal_val_print): Don't declare.
11097 * p-lang.c (pascal_language_defn): Update.
11098 * opencl-lang.c (opencl_language_defn): Update.
11099 * objc-lang.c (objc_language_defn): Update.
11100 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11101 * m2-lang.h (m2_val_print): Don't declare.
11102 * m2-lang.c (m2_language_defn): Update.
11103 * language.h (struct language_defn) <la_val_print>: Remove.
11104 * language.c (unk_lang_value_print_inner): Rename. Change
11105 argument types.
11106 (unknown_language_defn, auto_language_defn): Update.
11107 * go-valprint.c (go_val_print): Remove.
11108 * go-lang.h (go_val_print): Don't declare.
11109 * go-lang.c (go_language_defn): Update.
11110 * f-valprint.c (f_val_print): Remove.
11111 * f-lang.h (f_value_print): Don't declare.
11112 * f-lang.c (f_language_defn): Update.
11113 * d-valprint.c (d_val_print): Remove.
11114 * d-lang.h (d_value_print): Don't declare.
11115 * d-lang.c (d_language_defn): Update.
11116 * cp-valprint.c (cp_print_value_fields)
11117 (cp_print_value_fields_rtti, cp_print_value): Remove.
11118 (cp_print_static_field): Update.
11119 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11120 (c_val_print_struct, c_val_print_union, c_val_print_int)
11121 (c_val_print_memberptr, c_val_print): Remove.
11122 * c-lang.h (c_val_print_array, cp_print_value_fields)
11123 (cp_print_value_fields_rtti): Don't declare.
11124 * c-lang.c (c_language_defn, cplus_language_defn)
11125 (asm_language_defn, minimal_language_defn): Update.
11126 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11127 (ada_val_print_enum): Take a struct value.
11128 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11129 (ada_val_print): Remove.
11130 (ada_value_print_1): Update.
11131 (printable_val_type): Remove.
11132 * ada-lang.h (ada_val_print): Don't declare.
11133 * ada-lang.c (ada_language_defn): Update.
11134
42331a1e
TT
111352020-03-13 Tom Tromey <tom@tromey.com>
11136
11137 * valprint.c (do_val_print): Update.
11138 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11139 a struct value.
11140 (value_to_value_object_no_release): Declare.
11141 * python/py-value.c (value_to_value_object_no_release): New
11142 function.
11143 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11144 struct value.
11145 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11146 function.
11147 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11148 a struct value.
11149 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11150 Declare.
11151 (gdbscm_apply_val_pretty_printer): Take a struct value.
11152 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11153 value.
11154 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11155 value.
11156 * extension-priv.h (struct extension_language_ops)
11157 <apply_val_pretty_printer>: Take a struct value.
11158 * cp-valprint.c (cp_print_value): Create a struct value.
11159 (cp_print_value): Update.
11160
3a916a97
TT
111612020-03-13 Tom Tromey <tom@tromey.com>
11162
11163 * ada-valprint.c (print_field_values): Call common_val_print.
11164
b59eac37
TT
111652020-03-13 Tom Tromey <tom@tromey.com>
11166
11167 * ada-valprint.c (val_print_packed_array_elements): Remove
11168 bitoffset and val parameters. Call common_val_print.
11169 (ada_val_print_string): Remove offset, address, and original_value
11170 parameters.
11171 (ada_val_print_array): Update.
11172 (ada_value_print_array): New function.
11173 (ada_value_print_1): Call it.
11174
03371129
TT
111752020-03-13 Tom Tromey <tom@tromey.com>
11176
11177 * ada-valprint.c (ada_value_print): Use common_val_print.
11178
2e088f8b
TT
111792020-03-13 Tom Tromey <tom@tromey.com>
11180
11181 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11182
39ef85a8
TT
111832020-03-13 Tom Tromey <tom@tromey.com>
11184
11185 * ada-valprint.c (ada_value_print_num): New function.
11186 (ada_value_print_1): Use it.
11187
b9fa6e07
TT
111882020-03-13 Tom Tromey <tom@tromey.com>
11189
11190 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11191
416595d6
TT
111922020-03-13 Tom Tromey <tom@tromey.com>
11193
11194 * ada-valprint.c (ada_value_print_ptr): New function.
11195 (ada_value_print_1): Use it.
11196
5b5e15ec
TT
111972020-03-13 Tom Tromey <tom@tromey.com>
11198
11199 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11200 call common_val_print.
11201 (ada_val_print_1): Update.
11202 (ada_value_print_1): New function.
11203 (ada_value_print_inner): Rewrite.
11204
fbf54e75
TT
112052020-03-13 Tom Tromey <tom@tromey.com>
11206
11207 * cp-valprint.c (cp_print_value_fields): Update.
11208 (cp_print_value): New function.
11209
64b653ca
TT
112102020-03-13 Tom Tromey <tom@tromey.com>
11211
11212 * m2-valprint.c (m2_value_print_inner): Use
11213 cp_print_value_fields.
11214 * cp-valprint.c (cp_print_value_fields): New function.
11215 * c-valprint.c (c_value_print_struct): New function.
11216 (c_value_print_inner): Use c_value_print_struct.
11217 * c-lang.h (cp_print_value_fields): Declare.
11218
6999f067
TT
112192020-03-13 Tom Tromey <tom@tromey.com>
11220
11221 * c-valprint.c (c_value_print_array): New function.
11222 (c_value_print_inner): Use it.
11223
ce80b8bd
TT
112242020-03-13 Tom Tromey <tom@tromey.com>
11225
11226 * c-valprint.c (c_value_print_memberptr): New function.
11227 (c_value_print_inner): Use it.
11228
2faac269
TT
112292020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * c-valprint.c (c_value_print_int): New function.
11232 (c_value_print_inner): Use it.
11233
da3e2c29
TT
112342020-03-13 Tom Tromey <tom@tromey.com>
11235
11236 * c-valprint.c (c_value_print_ptr): New function.
11237 (c_value_print_inner): Use it.
11238
50836231
TT
112392020-03-13 Tom Tromey <tom@tromey.com>
11240
11241 * c-valprint.c (c_value_print_inner): Rewrite.
11242
4f412b6e
TT
112432020-03-13 Tom Tromey <tom@tromey.com>
11244
11245 * valprint.c (generic_value_print_complex): New function.
11246 (generic_value_print): Use it.
11247
f5354008
TT
112482020-03-13 Tom Tromey <tom@tromey.com>
11249
11250 * valprint.c (generic_val_print_float): Don't call
11251 val_print_scalar_formatted.
11252 (generic_val_print, generic_value_print): Update.
11253
3eec3b05
TT
112542020-03-13 Tom Tromey <tom@tromey.com>
11255
11256 * valprint.c (generic_value_print_char): New function
11257 (generic_value_print): Use it.
11258
fdddfccb
TT
112592020-03-13 Tom Tromey <tom@tromey.com>
11260
11261 * valprint.c (generic_value_print_int): New function.
11262 (generic_value_print): Use it.
11263
6dde7521
TT
112642020-03-13 Tom Tromey <tom@tromey.com>
11265
11266 * valprint.c (generic_value_print_bool): New function.
11267 (generic_value_print): Use it.
11268
4112d2e6
TT
112692020-03-13 Tom Tromey <tom@tromey.com>
11270
11271 * valprint.c (generic_val_print_func): Simplify.
11272 (generic_val_print, generic_value_print): Update.
11273
65786af6
TT
112742020-03-13 Tom Tromey <tom@tromey.com>
11275
11276 * valprint.c (generic_val_print_flags): Remove.
11277 (generic_val_print, generic_value_print): Update.
11278 (val_print_type_code_flags): Add original_value parameter.
11279
40f3ce18
TT
112802020-03-13 Tom Tromey <tom@tromey.com>
11281
11282 * valprint.c (generic_val_print): Update.
11283 (generic_value_print): Update.
11284 * valprint.c (generic_val_print_enum): Don't call
11285 val_print_scalar_formatted.
11286
2a5b130b
TT
112872020-03-13 Tom Tromey <tom@tromey.com>
11288
11289 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11290 * valprint.c (generic_value_print_ptr): New function.
11291
abc66ce9
TT
112922020-03-13 Tom Tromey <tom@tromey.com>
11293
11294 * valprint.c (generic_value_print): Rewrite.
11295
07a32858
TT
112962020-03-13 Tom Tromey <tom@tromey.com>
11297
11298 * p-valprint.c (pascal_object_print_value_fields)
11299 (pascal_object_print_value): New functions.
11300
64d64d3a
TT
113012020-03-13 Tom Tromey <tom@tromey.com>
11302
11303 * p-valprint.c (pascal_value_print_inner): Rewrite.
11304
6a95a1f5
TT
113052020-03-13 Tom Tromey <tom@tromey.com>
11306
11307 * f-valprint.c (f_value_print_innner): Rewrite.
11308
59fcdac6
TT
113092020-03-13 Tom Tromey <tom@tromey.com>
11310
11311 * m2-valprint.c (m2_print_unbounded_array): New overload.
11312 (m2_print_unbounded_array): Update.
11313 (m2_print_array_contents): Take a struct value.
11314 (m2_value_print_inner): Rewrite.
11315
d133c3e1
TT
113162020-03-13 Tom Tromey <tom@tromey.com>
11317
11318 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11319 (d_value_print_inner): New function.
11320 * d-lang.h (d_value_print_inner): Declare.
11321 * d-lang.c (d_language_defn): Use d_value_print_inner.
11322
23b0f06b
TT
113232020-03-13 Tom Tromey <tom@tromey.com>
11324
11325 * go-valprint.c (go_value_print_inner): New function.
11326 * go-lang.h (go_value_print_inner): Declare.
11327 * go-lang.c (go_language_defn): Use go_value_print_inner.
11328
5f56f7cb
TT
113292020-03-13 Tom Tromey <tom@tromey.com>
11330
11331 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11332 API.
11333 (rust_val_print): Rewrite.
11334 (rust_value_print_inner): New function, from rust_val_print.
11335 (rust_language_defn): Use rust_value_print_inner.
11336
26792ee0
TT
113372020-03-13 Tom Tromey <tom@tromey.com>
11338
11339 * ada-valprint.c (ada_value_print_inner): New function.
11340 * ada-lang.h (ada_value_print_inner): Declare.
11341 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11342
24051bbe
TT
113432020-03-13 Tom Tromey <tom@tromey.com>
11344
11345 * f-valprint.c (f_value_print_innner): New function.
11346 * f-lang.h (f_value_print_innner): Declare.
11347 * f-lang.c (f_language_defn): Use f_value_print_innner.
11348
c0941be6
TT
113492020-03-13 Tom Tromey <tom@tromey.com>
11350
11351 * p-valprint.c (pascal_value_print_inner): New function.
11352 * p-lang.h (pascal_value_print_inner): Declare.
11353 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11354
62c4663d
TT
113552020-03-13 Tom Tromey <tom@tromey.com>
11356
11357 * m2-valprint.c (m2_value_print_inner): New function.
11358 * m2-lang.h (m2_value_print_inner): Declare.
11359 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11360
62182190
TT
113612020-03-13 Tom Tromey <tom@tromey.com>
11362
11363 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11364 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11365 * c-valprint.c (c_value_print_inner): New function.
11366 * c-lang.h (c_value_print_inner): Declare.
11367 * c-lang.c (c_language_defn, cplus_language_defn)
11368 (asm_language_defn, minimal_language_defn): Use
11369 c_value_print_inner.
11370
1e592a8a
TT
113712020-03-13 Tom Tromey <tom@tromey.com>
11372
11373 * p-valprint.c (pascal_object_print_value_fields): Now static.
11374 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11375
7fe471e9
TT
113762020-03-13 Tom Tromey <tom@tromey.com>
11377
11378 * c-valprint.c (c_val_print_array): Simplify.
11379
d121c6ce
TT
113802020-03-13 Tom Tromey <tom@tromey.com>
11381
11382 * valprint.c (value_print_array_elements): New function.
11383 * valprint.h (value_print_array_elements): Declare.
11384
4dba70ee
TT
113852020-03-13 Tom Tromey <tom@tromey.com>
11386
11387 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11388 * mips-tdep.c (mips_print_register): Use
11389 value_print_scalar_formatted.
11390
4f9ae810
TT
113912020-03-13 Tom Tromey <tom@tromey.com>
11392
11393 * valprint.h (value_print_scalar_formatted): Declare.
11394 * valprint.c (value_print_scalar_formatted): New function.
11395
156bfec9
TT
113962020-03-13 Tom Tromey <tom@tromey.com>
11397
11398 * valprint.h (generic_value_print): Declare.
11399 * valprint.c (generic_value_print): New function.
11400
2b4e573d
TT
114012020-03-13 Tom Tromey <tom@tromey.com>
11402
11403 * valprint.c (do_val_print): Call la_value_print_inner, if
11404 available.
11405 * rust-lang.c (rust_language_defn): Update.
11406 * p-lang.c (pascal_language_defn): Update.
11407 * opencl-lang.c (opencl_language_defn): Update.
11408 * objc-lang.c (objc_language_defn): Update.
11409 * m2-lang.c (m2_language_defn): Update.
11410 * language.h (struct language_defn) <la_value_print_inner>: New
11411 member.
11412 * language.c (unknown_language_defn, auto_language_defn): Update.
11413 * go-lang.c (go_language_defn): Update.
11414 * f-lang.c (f_language_defn): Update.
11415 * d-lang.c (d_language_defn): Update.
11416 * c-lang.c (c_language_defn, cplus_language_defn)
11417 (asm_language_defn, minimal_language_defn): Update.
11418 * ada-lang.c (ada_language_defn): Update.
11419
a1f6a07c
TT
114202020-03-13 Tom Tromey <tom@tromey.com>
11421
11422 * c-valprint.c (c_value_print): Use common_val_print.
11423
410cf315
TT
114242020-03-13 Tom Tromey <tom@tromey.com>
11425
11426 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11427
72a45c93
TT
114282020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * f-valprint.c (f77_print_array_1, f_val_print): Use
11431 common_val_print.
11432
040f66bd
TT
114332020-03-13 Tom Tromey <tom@tromey.com>
11434
11435 * riscv-tdep.c (riscv_print_one_register_info): Use
11436 common_val_print.
11437
a6e05a6c
TT
114382020-03-13 Tom Tromey <tom@tromey.com>
11439
11440 * mi/mi-main.c (output_register): Use common_val_print.
11441
3444c526
TT
114422020-03-13 Tom Tromey <tom@tromey.com>
11443
11444 * infcmd.c (default_print_one_register_info): Use
11445 common_val_print.
11446
c2a44efe
TT
114472020-03-13 Tom Tromey <tom@tromey.com>
11448
11449 * valprint.h (common_val_print_checked): Declare.
11450 * valprint.c (common_val_print_checked): New function.
11451 * stack.c (print_frame_arg): Use common_val_print_checked.
11452
b0c26e99
TT
114532020-03-13 Tom Tromey <tom@tromey.com>
11454
11455 * valprint.c (do_val_print): New function, from val_print.
11456 (val_print): Use do_val_print.
11457 (common_val_print): Use do_val_print.
11458
ce3acbe9
TT
114592020-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * valprint.c (value_print): Use scoped_value_mark.
11462
96c7f873
TV
114632020-03-13 Tom de Vries <tdevries@suse.de>
11464
11465 PR symtab/25646
11466 * psymtab.c (partial_symtab::partial_symtab): Don't set
11467 globals_offset and statics_offset. Push element onto
11468 current_global_psymbols and current_static_psymbols stacks.
11469 (concat): New function.
11470 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11471 element from current_global_psymbols and current_static_psymbols
11472 stacks. Concat popped elements to global_psymbols and
11473 static_symbols.
11474 (add_psymbol_to_list): Use current_global_psymbols and
11475 current_static_psymbols stacks.
11476 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11477 current_static_psymbols fields.
11478
6ba0a321
CB
114792020-03-12 Christian Biesinger <cbiesinger@google.com>
11480
11481 * corelow.c (sniff_core_bfd): Remove.
11482 (class core_target) <m_core_vec>: Remove.
11483 (core_target::core_target): Update.
11484 (core_file_fns): Remove.
11485 (deprecated_add_core_fns): Remove.
11486 (default_core_sniffer): Remove.
11487 (sniff_core_bfd): Remove.
11488 (default_check_format): Remove.
11489 (gdb_check_format): Remove.
11490 (core_target_open): Update.
11491 (core_target::get_core_register_section): Update.
11492 (get_core_registers_cb): Update.
11493 (core_target::fetch_registers): Update.
11494 * gdbcore.h (struct core_fns): Remove.
11495 (deprecated_add_core_fns): Remove.
11496 (default_core_sniffer): Remove.
11497 (default_check_format): Remove.
11498
227031b2
TT
114992020-03-12 Tom Tromey <tom@tromey.com>
11500
11501 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11502 CORE_ADDR.
11503 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11504
53807e9f
TT
115052020-03-12 Tom Tromey <tom@tromey.com>
11506
11507 * remote.c (remote_target::download_tracepoint)
11508 (remote_target::enable_tracepoint)
11509 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11510 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11511 sprintf_vma.
11512
64f25102
TT
115132020-03-12 Tom Tromey <tom@tromey.com>
11514
11515 * symfile-mem.c: Update CORE_ADDR size assert.
11516
272cd5a3
SM
115172020-03-12 Simon Marchi <simon.marchi@efficios.com>
11518
11519 * selftest.m4: Move to gdbsupport/.
11520 * acinclude.m4: Update path to selftest.m4.
11521
74cd3f9d
SM
115222020-03-12 Simon Marchi <simon.marchi@efficios.com>
11523
11524 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11525 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11526 gdbarch-selfselftests.c and selftest-arch.c.
11527 (SUBDIR_UNITTESTS_OBS): Rename to...
11528 (SELFTESTS_OBS): ... this.
11529 (COMMON_SFILES): Remove disasm-selftests.c and
11530 gdbarch-selftests.c.
11531 * configure.ac: Don't add selftest-arch.{c,o} to
11532 CONFIG_{SRCS,OBS}.
11533 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11534 preprocessor conditions.
11535
db6878ac
SM
115362020-03-12 Simon Marchi <simon.marchi@efficios.com>
11537
11538 * configure.ac: Don't source bfd/development.sh.
11539 * selftest.m4: Modify comment.
11540 * configure: Re-generate.
11541
4d696a5c
SM
115422020-03-12 Simon Marchi <simon.marchi@efficios.com>
11543
11544 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11545 not "true" or "false".
11546 * configure: Re-generate.
11547
8dd8e1c7
CB
115482020-03-12 Christian Biesinger <cbiesinger@google.com>
11549
11550 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11551 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11552 renamed to arm_nbsd_supply_gregset.
11553 (fetch_register): Update to call arm_nbsd_supply_gregset.
11554 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11555 (arm_netbsd_nat_target::fetch_registers): Update.
11556 (fetch_elfcore_registers): Removed.
11557 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11558 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11559 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11560 not require NetBSD system headers.
11561 (arm_nbsd_regset): New struct.
11562 (arm_nbsd_iterate_over_regset_sections): New function.
11563 (arm_netbsd_init_abi_common): Updated to call
11564 set_gdbarch_iterate_over_regset_sections.
11565 * arm-nbsd-tdep.h: New file.
11566
dd69bf7a
KB
115672020-03-11 Kevin Buettner <kevinb@redhat.com>
11568
11569 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11570 recursion.
11571
a0761e34
SM
115722020-03-11 Simon Marchi <simon.marchi@efficios.com>
11573
11574 * configure: Re-generate.
11575
e7a82140
TT
115762020-03-11 Tom Tromey <tromey@adacore.com>
11577
11578 * ada-typeprint.c (print_choices): Fix comment.
11579
dcc050c8
AB
115802020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11581
11582 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11583 previous item in the list, when the list has no items.
11584
1c33af77
TV
115852020-03-11 Tom de Vries <tdevries@suse.de>
11586
11587 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11588 PROP_LOCLIST handling code.
11589
8c95582d
AB
115902020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11591
11592 * buildsym-legacy.c (record_line): Pass extra parameter to
11593 record_line.
11594 * buildsym.c (buildsym_compunit::record_line): Take an extra
11595 parameter, reduce duplication in the line table, and record the
11596 is_stmt flag in the line table.
11597 * buildsym.h (buildsym_compunit::record_line): Add extra
11598 parameter.
11599 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11600 non-statement lines.
11601 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11602 this to the symtab builder.
11603 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11604 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11605 through to dwarf_record_line_1.
11606 * infrun.c (process_event_stop_test): When stepping, don't stop at
11607 a non-statement instruction, and only refresh the step info when
11608 we land in the middle of a line's range. Also add an extra
11609 comment.
11610 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11611 field.
11612 * record-btrace.c (btrace_find_line_range): Only record lines
11613 marked as is-statement.
11614 * stack.c (frame_show_address): Show the frame address if we are
11615 in a non-statement sal.
11616 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11617 (maintenance_print_one_line_table): Print a header for the is_stmt
11618 column, and include is_stmt information in the output.
11619 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11620 preference to non-statements.
11621 (find_pcs_for_symtab_line): Prefer is-statement entries.
11622 (find_line_common): Likewise.
11623 * symtab.h (struct linetable_entry): Add is_stmt field.
11624 (struct symtab_and_line): Likewise.
11625 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11626 arranging the line table.
11627
e4003a34
TV
116282020-03-07 Tom de Vries <tdevries@suse.de>
11629
11630 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11631 DIE.
11632
e8932576
TT
116332020-03-07 Tom Tromey <tom@tromey.com>
11634
11635 * valops.c (value_literal_complex): Remove obsolete comment.
11636 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11637 comment.
11638
29734269
SM
116392020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11640
11641 * infrun.h: Forward-declare thread_info.
11642 (set_step_info): Add thread_info parameter, add doc.
11643 * infrun.c (set_step_info): Add thread_info parameter, move doc
11644 to header.
11645 * infrun.c (process_event_stop_test): Pass thread to
11646 set_step_info call.
11647 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11648 set_step_info.
11649 (prepare_one_step): Add thread_info parameter, pass it to
11650 set_step_frame and prepare_one_step (recursive) call.
11651 (step_1): Pass thread to prepare_one_step call.
11652 (step_command_fsm::should_stop): Pass thread to
11653 prepare_one_step.
11654 (until_next_fsm): Pass thread to set_step_frame call.
11655 (finish_command): Pass thread to set_step_info call.
11656
b7d64b29
HD
116572020-03-06 Hannes Domani <ssbssa@yahoo.de>
11658
11659 * windows-tdep.c (windows_solib_create_inferior_hook):
11660 Check if inferior is running.
11661
09f2921c
TV
116622020-03-06 Tom de Vries <tdevries@suse.de>
11663
11664 * NEWS: Fix "the the".
11665 * ctfread.c: Same.
11666
fd760e79
TV
116672020-03-06 Tom de Vries <tdevries@suse.de>
11668
11669 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11670
20ea4a60
AB
116712020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11672
11673 * .dir-locals.el: Add a comment referencing the other copies of
11674 this file.
11675
0afbabf0
JB
116762020-03-05 John Baldwin <jhb@FreeBSD.org>
11677
11678 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11679 psargs.
11680
842806cb
TBA
116812020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11682
11683 * .gitattributes: New file.
11684
be1e3d3e
TT
116852020-03-04 Tom Tromey <tom@tromey.com>
11686
11687 * symmisc.c (print_symbol_bcache_statistics)
11688 (print_objfile_statistics): Update.
11689 * symfile.c (allocate_symtab): Use intern.
11690 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11691 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11692 macro_cache>: Remove.
11693 <string_cache>: New member.
11694 (struct objfile) <intern>: New methods.
11695 * elfread.c (elf_symtab_read): Use intern.
11696 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11697 (dwarf2_compute_name, dwarf2_physname)
11698 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11699 names.
11700 (guess_partial_die_structure_name): Update.
11701 (partial_die_info::fixup): Intern name.
11702 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11703 name.
11704 (dwarf2_name): Intern name. Update.
11705 * buildsym.c (buildsym_compunit::get_macro_table): Use
11706 string_cache.
11707
4e7625fd
TT
117082020-03-04 Tom Tromey <tom@tromey.com>
11709
11710 * jit.c (bfd_open_from_target_memory): Make "target" const.
11711 * corefile.c (gnutarget): Now const.
11712 * gdbcore.h (gnutarget): Now const.
11713
46f9f931
HD
117142020-03-04 Hannes Domani <ssbssa@yahoo.de>
11715
11716 * NEWS: Mention support for WOW64 processes.
11717 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11718 (amd64_windows_segment_register_p): Remove static.
11719 (_initialize_amd64_windows_nat): Update.
11720 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11721 * i386-windows-nat.c (context_offset): Update.
11722 (i386_mappings): Rename and remove static.
11723 (i386_windows_segment_register_p): Remove static.
11724 (_initialize_i386_windows_nat): Update.
11725 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11726 (STATUS_WX86_SINGLE_STEP): New macro.
11727 (EnumProcessModulesEx): New macro.
11728 (Wow64SuspendThread): New macro.
11729 (Wow64GetThreadContext): New macro.
11730 (Wow64SetThreadContext): New macro.
11731 (Wow64GetThreadSelectorEntry): New macro.
11732 (windows_set_context_register_offsets): Add static.
11733 (windows_set_segment_register_p): Likewise.
11734 (windows_add_thread): Adapt for WOW64 processes.
11735 (windows_fetch_one_register): Likewise.
11736 (windows_nat_target::fetch_registers): Likewise.
11737 (windows_store_one_register): Likewise.
11738 (display_selector): Likewise.
11739 (display_selectors): Likewise.
11740 (handle_exception): Likewise.
11741 (windows_continue): Likewise.
11742 (windows_nat_target::resume): Likewise.
11743 (windows_add_all_dlls): Likewise.
11744 (do_initial_windows_stuff): Likewise.
11745 (windows_nat_target::attach): Likewise.
11746 (windows_get_exec_module_filename): Likewise.
11747 (windows_nat_target::create_inferior): Likewise.
11748 (windows_xfer_siginfo): Likewise.
11749 (_initialize_loadable): Initialize Wow64SuspendThread,
11750 Wow64GetThreadContext, Wow64SetThreadContext,
11751 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11752 * windows-nat.h (windows_set_context_register_offsets):
11753 Remove declaration.
11754 (windows_set_segment_register_p): Likewise.
11755 (i386_windows_segment_register_p): Add declaration.
11756 (amd64_windows_segment_register_p): Likewise.
11757
440cf44e
LM
117582020-03-04 Luis Machado <luis.machado@linaro.org>
11759
11760 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11761 in "info registers" for AArch64/ARM.
11762
11763 The change caused "info registers" to not print GPR's.
11764
11765 gdb/ChangeLog:
11766
11767 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11768
11769 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11770 when reg->group is empty and reggroup is not.
11771
1009d92f
TT
117722020-03-03 Tom Tromey <tromey@adacore.com>
11773
11774 * dwarf2/frame.c (struct dwarf2_frame_cache)
11775 <checked_tailcall_bottom, entry_cfa_sp_offset,
11776 entry_cfa_sp_offset_p>: Remove members.
11777 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11778 (dwarf2_frame_prev_register): Don't call
11779 dwarf2_tailcall_sniffer_first.
11780 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11781 * frame-unwind.c (add_unwinder): New fuction.
11782 (frame_unwind_init): Use it. Add tailcall unwinder.
11783
5e5d66b6
AB
117842020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11785 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11786
11787 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11788 value should be printed as true.
11789
584cf46d
HD
117902020-03-03 Hannes Domani <ssbssa@yahoo.de>
11791
11792 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11793 (windows_init_abi): Set and use windows_so_ops.
11794
7b973adc
SDJ
117952020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11796
11797 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11798 when verifying if dealing with a convenience variable.
11799
bb7b70ab
LM
118002020-03-03 Luis Machado <luis.machado@linaro.org>
11801
11802 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11803
9822cb57
SM
118042020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11805
11806 * infrun.c (gdbarch_supports_displaced_stepping): New.
11807 (use_displaced_stepping): Break up conditions in smaller pieces.
11808 Use gdbarch_supports_displaced_stepping.
11809 (displaced_step_prepare_throw): Use
11810 gdbarch_supports_displaced_stepping.
11811
63e163f2
AB
118122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11813
11814 * NEWS: Mention new behaviour of the history filename.
11815 * top.c (write_history_p): Add comment.
11816 (show_write_history_p): Add header comment, give a different
11817 message when history writing is on, but the history filename is
11818 empty.
11819 (history_filename): Add comment.
11820 (history_filename_empty): New function.
11821 (show_history_filename): Add header comment, give a different
11822 message when the filename is empty.
11823 (init_history): Compare history_filename against nullptr, and only
11824 read history if the filename is not empty.
11825 (set_history_filename): Add header comment, and only make
11826 non-empty filenames absolute.
11827 (init_main): Make the filename argument to 'set history filename'
11828 optional.
11829
81b86b97
CB
118302020-03-02 Christian Biesinger <cbiesinger@google.com>
11831
11832 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11833 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11834 (fetch_fp_register): Update.
11835 (fetch_fp_regs): Update.
11836 (store_fp_register): Update.
11837 (store_fp_regs): Update.
11838 (arm_netbsd_nat_target::read_description): New function.
11839 (fetch_elfcore_registers): Update.
11840
24ed6739
AB
118412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11842
11843 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11844 general_thread if the stop reply is missing a thread-id.
11845 (remote_target::process_stop_reply): Use the first non-exited
11846 thread if the target didn't pass a thread-id.
11847 * infrun.c (do_target_wait): Move call to
11848 switch_to_inferior_no_thread to ....
11849 (do_target_wait_1): ... here.
11850
a84bb2a0
JT
118512020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11852
11853 * debuginfod-support.c: Include defs.h first.
11854
658dadf0
TV
118552020-02-28 Tom de Vries <tdevries@suse.de>
11856
11857 * symfile.c (set_initial_language): Use default language for lookup.
11858
4ebe4877
SM
118592020-02-28 Simon Marchi <simon.marchi@efficios.com>
11860
11861 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11862 reader variable, pass `this` to read_cutu_die_from_dwo.
11863
e5da1139
AM
118642020-02-27 Aaron Merey <amerey@redhat.com>
11865
11866 * source.c (open_source_file): Check for nullptr when computing
11867 srcpath.
11868
317f7127
TT
118692020-02-27 Tom Tromey <tromey@adacore.com>
11870
11871 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11872 member.
11873 (dwarf2_add_field): Don't update nfields.
11874 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11875
3104d9ee
AB
118762020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11877
11878 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11879 abs.
11880
b83470bf
TT
118812020-02-26 Tom Tromey <tom@tromey.com>
11882
11883 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11884 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11885 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11886 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11887 per_cu_data.
11888
edfe0a0c
TT
118892020-02-26 Tom Tromey <tom@tromey.com>
11890
11891 * dwarf2/index-write.c (psym_index_map): Change type.
11892 (add_address_entry_worker, write_one_signatured_type)
11893 (recursively_count_psymbols, recursively_write_psymbols)
11894 (class debug_names, psyms_seen_size, write_gdbindex)
11895 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11896
0d79cdc4
AM
118972020-02-26 Aaron Merey <amerey@redhat.com>
11898
11899 * Makefile.in: Handle optional debuginfod support.
11900 * NEWS: Update.
11901 * README: Add --with-debuginfod summary.
11902 * config.in: Regenerate.
11903 * configure: Regenerate.
11904 * configure.ac: Handle optional debuginfod support.
11905 * debuginfod-support.c: debuginfod helper functions.
11906 * debuginfod-support.h: Ditto.
11907 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11908 summary.
11909 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11910 when a dwz file cannot be found.
11911 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11912 debuginfo file cannot be found.
11913 * source.c (open_source_file): Query debuginfod servers when a
11914 source file cannot be found.
11915 * top.c (print_gdb_configuration): Include
11916 --{with,without}-debuginfod in the output.
11917
b65ce565
JG
119182020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11919
11920 * thread.c (thr_try_catch_cmd): Print thread name.
11921
d4c9a4f8
SM
119222020-02-26 Simon Marchi <simon.marchi@efficios.com>
11923
11924 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11925 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11926 dwarf2_fetch_die_type_sect_off): Move to...
11927 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11928 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11929 dwarf2_fetch_die_type_sect_off): ... here.
11930 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11931 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11932 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11933
0dce4280
TV
119342020-02-26 Tom de Vries <tdevries@suse.de>
11935
11936 PR gdb/25603
11937 * symfile.c (set_initial_language): Exit-early if
11938 language_mode == language_mode_manual.
11939
450a1bfc
SM
119402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11941
11942 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11943 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11944 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11945
9e80cfa1
AB
119462020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11947
11948 * gdbtypes.c (create_array_type_with_stride): Handle negative
11949 array strides.
11950 * valarith.c (value_subscripted_rvalue): Likewise.
11951
09624f1f
LM
119522020-02-25 Luis Machado <luis.machado@linaro.org>
11953
11954 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11955
8cb5117c
SM
119562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11957
11958 * loc.h (dwarf2_get_die_type): Move to...
11959 * read.h (dwarf2_get_die_type): ... here.
11960 * read.c (dwarf2_get_die_type): Move doc to header.
11961
c325c44e
JB
119622020-02-25 Joel Brobecker <brobecker@adacore.com>
11963
11964 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11965 'gnulib/Makefile.in' to the list.
11966
4ac93832
TT
119672020-02-24 Tom Tromey <tom@tromey.com>
11968
11969 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11970 Remove.
11971 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11972 XOBNEWVEC.
11973
197400e8
TT
119742020-02-24 Tom Tromey <tom@tromey.com>
11975
11976 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11977 New method.
11978 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11979 (dw2_do_instantiate_symtab, dw2_get_file_names)
11980 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11981
76935768
TT
119822020-02-24 Tom Tromey <tom@tromey.com>
11983
11984 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11985 make_scoped_restore.
11986 (dwarf2_psymtab::read_symtab): Don't clear
11987 reading_partial_symbols.
11988
a88ef40d
TV
119892020-02-24 Tom de Vries <tdevries@suse.de>
11990
11991 PR gdb/25592
11992 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11993
c9af6521
TV
119942020-02-24 Tom de Vries <tdevries@suse.de>
11995
11996 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11997 commands layout next/prev/regs.
11998
5707a07a
TT
119992020-02-22 Tom Tromey <tom@tromey.com>
12000
12001 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12002 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12003
3b0fb49e
TT
120042020-02-22 Tom Tromey <tom@tromey.com>
12005
12006 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12007
283be8bf
TT
120082020-02-22 Tom Tromey <tom@tromey.com>
12009
12010 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12011 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12012 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12013 * tui/tui.c (_initialize_tui): Add usage text.
12014
ca793b96
TT
120152020-02-22 Tom Tromey <tom@tromey.com>
12016
12017 * tui/tui-win.c (tui_set_focus_command)
12018 (tui_set_win_height_command): Use error_no_arg.
12019 (_initialize_tui_win): Update help text.
12020 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12021
432b5c40
TT
120222020-02-22 Tom Tromey <tom@tromey.com>
12023
12024 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12025 * tui/tui-disasm.h (struct tui_disasm_window)
12026 <display_start_addr>: Declare.
12027 * tui/tui-source.h (struct tui_source_window)
12028 <display_start_addr>: Declare.
12029 * tui/tui-winsource.h (struct tui_source_window_base)
12030 <show_source_line, display_start_addr>: New methods.
12031 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12032 Rename and move to protected section.
12033 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12034 (tui_source_window_base::do_erase_source_content): Update.
12035 (tui_source_window_base::show_source_line): Now a method.
12036 (tui_source_window_base::show_source_content)
12037 (tui_source_window_base::tui_source_window_base)
12038 (tui_source_window_base::rerender)
12039 (tui_source_window_base::refill)
12040 (tui_source_window_base::do_scroll_horizontal)
12041 (tui_source_window_base::set_is_exec_point_at)
12042 (tui_source_window_base::update_breakpoint_info)
12043 (tui_source_window_base::update_exec_info): Update.
12044 * tui/tui-source.c (tui_source_window::set_contents)
12045 (tui_source_window::showing_source_p)
12046 (tui_source_window::do_scroll_vertical)
12047 (tui_source_window::location_matches_p)
12048 (tui_source_window::line_is_displayed): Update.
12049 (tui_source_window::display_start_addr): New method.
12050 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12051 (tui_disasm_window::do_scroll_vertical)
12052 (tui_disasm_window::location_matches_p): Update.
12053 (tui_disasm_window::display_start_addr): New method.
12054
01b1af32
TT
120552020-02-22 Tom Tromey <tom@tromey.com>
12056
12057 * NEWS: Add entry for gdb.register_window_type.
12058 * tui/tui-layout.h (window_factory): New typedef.
12059 (tui_register_window): Declare.
12060 * tui/tui-layout.c (saved_tui_windows): New global.
12061 (tui_apply_current_layout): Use it.
12062 (tui_register_window): New function.
12063 * python/python.c (do_start_initialization): Call
12064 gdbpy_initialize_tui.
12065 (python_GdbMethods): Add "register_window_type" function.
12066 * python/python-internal.h (gdbpy_register_tui_window)
12067 (gdbpy_initialize_tui): Declare.
12068 * python/py-tui.c: New file.
12069 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12070
fc96d20b
TT
120712020-02-22 Tom Tromey <tom@tromey.com>
12072
12073 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12074
935c78c0
TT
120752020-02-22 Tom Tromey <tom@tromey.com>
12076
12077 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12078 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12079 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12080 (tui_set_win_focus_to): Move from tui-win.c.
12081
0240c8f1
TT
120822020-02-22 Tom Tromey <tom@tromey.com>
12083
12084 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12085 functions.
12086 (known_window_types): New global.
12087 (tui_get_window_by_name): Reimplement.
12088 (initialize_known_windows): New function.
12089 (validate_window_name): Rewrite.
12090 (_initialize_tui_layout): Call initialize_known_windows.
12091
fdb01f0c
TT
120922020-02-22 Tom Tromey <tom@tromey.com>
12093
12094 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12095 Remove constants.
12096 * tui/tui-winsource.h (struct tui_source_window_base)
12097 <tui_source_window_base>: Remove parameter.
12098 * tui/tui-winsource.c
12099 (tui_source_window_base::tui_source_window_base): Remove
12100 parameter.
12101 (tui_source_window_base::refill): Update.
12102 * tui/tui-stack.h (struct tui_locator_window)
12103 <tui_locator_window>: Update.
12104 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12105 Default the constructor.
12106 * tui/tui-regs.h (struct tui_data_item_window)
12107 <tui_data_item_window>: Default the constructor.
12108 (struct tui_data_window) <tui_data_window>: Likewise.
12109 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12110 Default the constructor.
12111 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12112 Default the constructor.
12113 <type>: Remove.
12114 (struct tui_win_info) <tui_win_info>: Default the constructor.
12115 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12116 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12117 Default the constructor.
12118
865a5aec
TT
121192020-02-22 Tom Tromey <tom@tromey.com>
12120
12121 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12122 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12123 * tui/tui-win.c (tui_resize_all): Don't call
12124 tui_delete_invisible_windows.
12125 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12126 done.
12127 (tui_set_layout): Update.
12128 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12129 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12130 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12131
e098d18c
TT
121322020-02-22 Tom Tromey <tom@tromey.com>
12133
12134 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12135 correctly.
12136
eb9c8874
TT
121372020-02-22 Tom Tromey <tom@tromey.com>
12138
12139 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12140
7eed1a8e
TT
121412020-02-22 Tom Tromey <tom@tromey.com>
12142
12143 * tui/tui-winsource.h (struct tui_source_window_iterator)
12144 <inner_iterator>: New etytypedef.
12145 <tui_source_window_iterator>: Take "end" parameter.
12146 <tui_source_window_iterator>: Take iterator.
12147 <operator*, advance>: Update.
12148 <m_iter>: Change type.
12149 <m_end>: New field.
12150 (struct tui_source_windows) <begin, end>: Update.
12151 * tui/tui-layout.c (tui_windows): New global.
12152 (tui_apply_current_layout): Clear tui_windows.
12153 (tui_layout_window::apply): Update tui_windows.
12154 * tui/tui-data.h (tui_windows): Declare.
12155 (all_tui_windows): Now inline function.
12156 (class tui_window_iterator, struct all_tui_windows): Remove.
12157
7c043ba6
TT
121582020-02-22 Tom Tromey <tom@tromey.com>
12159
12160 PR tui/17850:
12161 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12162 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12163 "height" argument.
12164 (class tui_layout_window) <get_sizes>: Likewise.
12165 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12166 argument.
12167 <get_sizes>: Add "height" argument.
12168 <m_vertical>: New field.
12169 * tui/tui-layout.c (tui_layout_split::clone): Update.
12170 (tui_layout_split::get_sizes): Add "height" argument.
12171 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12172 (tui_new_layout_command): Parse "-horizontal".
12173 (_initialize_tui_layout): Update help string.
12174 (tui_layout_split::specification): Add "-horizontal" when needed.
12175 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12176 argument.
12177 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12178 New methods.
12179
6bc56648
TT
121802020-02-22 Tom Tromey <tom@tromey.com>
12181
12182 * tui/tui-layout.h (enum tui_adjust_result): New.
12183 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12184 (class tui_layout_window) <adjust_size>: Return
12185 tui_adjust_result. Rewrite.
12186 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12187 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12188
c22fef7e
TT
121892020-02-22 Tom Tromey <tom@tromey.com>
12190
12191 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12192 parameter and return types.
12193 (class tui_layout_base) <specification>: Add "depth".
12194 (class tui_layout_window) <specification>: Add "depth".
12195 (class tui_layout_split) <specification>: Add "depth".
12196 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12197 and return types.
12198 (tui_new_layout_command): Parse sub-layouts.
12199 (_initialize_tui_layout): Update help string.
12200 (tui_layout_window::specification): Add "depth".
12201 (add_layout_command): Update.
12202
ee325b61
TT
122032020-02-22 Tom Tromey <tom@tromey.com>
12204
12205 * NEWS: Add "tui new-layout" item.
12206 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12207 Add new-layout command to help text.
12208 (validate_window_name): New function.
12209 (tui_new_layout_command): New function.
12210 (_initialize_tui_layout): Register "new-layout".
12211 (tui_layout_window::specification): New method.
12212 (tui_layout_window::specification): New method.
12213 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12214 method.
12215 (class tui_layout_window) <specification>: New method.
12216 (class tui_layout_split) <specification>: New method.
12217
416eb92d
TT
122182020-02-22 Tom Tromey <tom@tromey.com>
12219
12220 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12221 * tui/tui-win.c (window_name_completer): Update comment.
12222 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12223 Declare method.
12224 (class tui_layout_window) <replace_window>: Likewise.
12225 (class tui_layout_split) <replace_window>: Likewise.
12226 (tui_set_layout): Don't declare.
12227 (tui_set_initial_layout): Declare function.
12228 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12229 (asm_regs_layout): New globals.
12230 (tui_current_layout, show_layout): Remove.
12231 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12232 (find_layout, tui_apply_layout): New function.
12233 (layout_completer): Remove.
12234 (tui_next_layout): Reimplement.
12235 (tui_next_layout_command): New function.
12236 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12237 (tui_regs_layout): Reimplement.
12238 (tui_regs_layout_command): New function.
12239 (extract_display_start_addr): Rewrite.
12240 (next_layout, prev_layout): Remove.
12241 (tui_layout_window::replace_window): New method.
12242 (tui_layout_split::replace_window): New method.
12243 (destroy_layout): New function.
12244 (layout_list): New global.
12245 (add_layout_command): New function.
12246 (initialize_layouts): Update.
12247 (tui_layout_command): New function.
12248 (_initialize_tui_layout): Install "layout" commands.
12249 * tui/tui-data.h (enum tui_layout_type): Remove.
12250 (tui_current_layout): Don't declare.
12251
0dbc2fc7
TT
122522020-02-22 Tom Tromey <tom@tromey.com>
12253
12254 * tui/tui-regs.c (tui_reg_layout): Remove.
12255 (tui_reg_command): Use tui_regs_layout.
12256 * tui/tui-layout.h (tui_reg_command): Declare.
12257 * tui/tui-layout.c (tui_reg_command): New function.
12258
5afe342e
TT
122592020-02-22 Tom Tromey <tom@tromey.com>
12260
12261 * tui/tui.c (tui_rl_delete_other_windows): Call
12262 tui_remove_some_windows.
12263 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12264 Declare method.
12265 (class tui_layout_window) <remove_windows>: New method.
12266 (class tui_layout_split) <remove_windows>: Declare.
12267 (tui_remove_some_windows): Declare.
12268 * tui/tui-layout.c (tui_remove_some_windows): New function.
12269 (tui_layout_split::remove_windows): New method.
12270
427326a8
TT
122712020-02-22 Tom Tromey <tom@tromey.com>
12272
12273 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12274 * tui/tui-layout.h (tui_next_layout): Declare.
12275 * tui/tui-layout.c (tui_next_layout): New function.
12276
3fe12b6d
TT
122772020-02-22 Tom Tromey <tom@tromey.com>
12278
12279 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12280 correct coordinates.
12281
59b8b5d2
TT
122822020-02-22 Tom Tromey <tom@tromey.com>
12283
12284 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12285 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12286 DATA_WIN case.
12287
2a3d458b
TT
122882020-02-22 Tom Tromey <tom@tromey.com>
12289
12290 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12291 TUI_DISASM_WIN, not tui_win_list.
12292
3f0cbb04
TT
122932020-02-22 Tom Tromey <tom@tromey.com>
12294
12295 * valprint.c (generic_val_print_enum_1)
12296 (val_print_type_code_flags): Style member names.
12297 * rust-lang.c (val_print_struct, rust_print_enum)
12298 (rust_print_struct_def, rust_internal_print_type): Style member
12299 names.
12300 * p-valprint.c (pascal_object_print_value_fields): Style member
12301 names. Only call fprintf_symbol_filtered for static members.
12302 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12303 * f-valprint.c (f_val_print): Style member names.
12304 * f-typeprint.c (f_type_print_base): Style member names.
12305 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12306 call fprintf_symbol_filtered for static members.
12307 (cp_print_class_member): Style member names.
12308 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12309 member names.
12310 * ada-valprint.c (ada_print_scalar): Style enum names.
12311 (ada_val_print_enum): Likewise.
12312 * ada-typeprint.c (print_enum_type): Style enum names.
12313
d4d947ae
TT
123142020-02-21 Tom Tromey <tom@tromey.com>
12315
12316 * psympriv.h (struct partial_symtab): Update comment.
12317
e94e944b
TT
123182020-02-21 Tom Tromey <tromey@adacore.com>
12319
12320 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12321 type is CORE_ADDR.
12322
1eb73179
TV
123232020-02-21 Tom de Vries <tdevries@suse.de>
12324
12325 PR gdb/25534
12326 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12327 if dependencies[i]->user != NULL.
12328
4f180d53
AT
123292020-02-21 Ali Tamur <tamur@google.com>
12330
12331 * dwarf2/read.c (dwarf2_name): Add null check.
12332
22b6cd70
TT
123332020-02-20 Tom Tromey <tom@tromey.com>
12334
12335 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12336 ">=", in binary search.
12337 (dwarf2_find_containing_comp_unit): New overload.
12338 (run_test): New self-test.
12339 (_initialize_dwarf2_read): Register new test.
12340
bd0cf5a6
NC
123412020-02-20 Nelson Chu <nelson.chu@sifive.com>
12342
12343 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12344 * riscv-tdep.h: Likewise.
12345 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12346 rv32-only CSR.
12347 * features/riscv/64bit-csr.xml: Regenerated.
12348
3f702acd
SDJ
123492020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12350 Tom Tromey <tom@tromey.com>
12351
12352 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12353 of 'fputc_unfiltered'.
12354 (putchar_unfiltered): Call 'fputc_unfiltered'.
12355 (fputc_unfiltered): Call 'fputs_unfiltered'.
12356
d13c7322
AB
123572020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12358
12359 * config.in: Regenerate.
12360 * configure: Regenerate.
12361 * configure.ac: Add --with-python-libdir option.
12362 * main.c: Use WITH_PYTHON_LIBDIR.
12363
869d8950
TT
123642020-02-19 Tom Tromey <tom@tromey.com>
12365
12366 * symtab.c (general_symbol_info::compute_and_set_names): Use
12367 obstack_strndup. Simplify call to symbol_set_demangled_name.
12368
298e9637
SM
123692020-02-19 Simon Marchi <simon.marchi@efficios.com>
12370
12371 * dwarf2/read.c (allocate_signatured_type_table,
12372 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12373 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12374 Remove objfile parameter, update all callers.
12375
08410482
DE
123762020-02-19 Doug Evans <dje@google.com>
12377
12378 PR rust/25535
12379 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12380 rust_enum_variant calculation.
12381
dfdeeca1
TT
123822020-02-19 Tom Tromey <tromey@adacore.com>
12383
12384 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12385
2ef5453b
TT
123862020-02-19 Tom Tromey <tromey@adacore.com>
12387
12388 * ada-lang.c (cache_symbol): Use obstack_strdup.
12389
9f1528a1
AB
123902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * configure: Regenerate.
12393
d3c22fa8
TT
123942020-02-19 Tom Tromey <tromey@adacore.com>
12395
12396 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12397 NULL check.
12398
bf84f706
MR
123992020-02-19 Maciej W. Rozycki <macro@wdc.com>
12400
12401 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12402
d1c9b20f
AB
124032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12404
12405 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12406 if GDBSERVER is not defined.
12407 (riscv_tdesc_cache): Likewise, also store const target_desc.
12408 (STATIC_IN_GDB): Define.
12409 (riscv_create_target_description): Update declaration with
12410 STATIC_IN_GDB.
12411 (riscv_lookup_target_description): New function, only define if
12412 GDBSERVER is not defined.
12413 * arch/riscv.h (riscv_create_target_description): Declare only
12414 when GDBSERVER is defined.
12415 (riscv_lookup_target_description): New declaration when GDBSERVER
12416 is not defined.
12417 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12418 (riscv_linux_read_features): ...this, and return
12419 riscv_gdbarch_features instead of target_desc.
12420 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12421 (riscv_linux_read_description): Rename to...
12422 (riscv_linux_read_features): ...this.
12423 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12424 Update to use riscv_gdbarch_features and
12425 riscv_lookup_target_description.
12426 * riscv-tdep.c (riscv_find_default_target_description): Use
12427 riscv_lookup_target_description instead of
12428 riscv_create_target_description.
12429
373d7ac0
SM
124302020-02-18 Simon Marchi <simon.marchi@efficios.com>
12431
12432 * valprint.c (generic_val_print_enum_1): When printing a flag
12433 enum with value 0 and there is no enumerator with value 0, print
12434 just "0" instead of "(unknown: 0x0)".
12435
b29a2df0
SM
124362020-02-18 Simon Marchi <simon.marchi@efficios.com>
12437
12438 * valprint.c (generic_val_print_enum_1): Print unknown part of
12439 flag enum in hex.
12440
6740f0cc
SM
124412020-02-18 Simon Marchi <simon.marchi@efficios.com>
12442
12443 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12444 flag enums to contain duplicate enumerators.
12445 * valprint.c (generic_val_print_enum_1): Update comment.
12446
edd45eb0
SM
124472020-02-18 Simon Marchi <simon.marchi@efficios.com>
12448
12449 * dwarf2/read.c: Include "count-one-bits.h".
12450 (update_enumeration_type_from_children): If an enumerator has
12451 multiple bits set, don't treat the enumeration as a "flag enum".
12452 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12453 of flag enums have 0 or 1 bit set.
12454
6d0cf446
BE
124552020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12456
12457 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12458 conversion.
12459 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12460 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12461 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12462 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12463 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12464
7001c1b7
SM
124652020-02-18 Simon Marchi <simon.marchi@efficios.com>
12466
12467 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12468
fdb61c6c
SM
124692020-02-14 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12472 displaced_step_closure_up.
12473 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12474 (struct displaced_step_closure_up):
12475 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12476 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12477 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12478 Likewise.
12479 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12480 * gdbarch.c, gdbarch.h: Re-generate.
12481 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12482 displaced_step_closure_up.
12483 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12484 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12485 * infrun.h (displaced_step_closure_up): New type alias.
12486 (struct displaced_step_inferior_state) <step_closure>: Change
12487 type to displaced_step_closure_up.
12488 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12489 displaced_step_closure_up.
12490 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12491
a4a38eb4
TT
124922020-02-14 Tom Tromey <tom@tromey.com>
12493
12494 * minidebug.c (gnu_debug_key): New global.
12495 (find_separate_debug_file_in_section): Use it.
12496
e8217e61
SM
124972020-02-14 Simon Marchi <simon.marchi@efficios.com>
12498
12499 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12500 std::unique_ptr.
12501 * gdbarch.c: Re-generate.
12502 * gdbarch.h: Re-generate.
12503 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12504 change.
12505 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12506 type to std::unique_ptr.
12507 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12508 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12509 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12510 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12511 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12512 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12513 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12514 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12515 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12516
d8d83535
SM
125172020-02-14 Simon Marchi <simon.marchi@efficios.com>
12518
12519 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12520 std::unique_ptr.
12521 (displaced_step_clear): Rename to...
12522 (displaced_step_reset): ... this. Just call displaced->reset ().
12523 (displaced_step_clear_cleanup): Rename to...
12524 (displaced_step_reset_cleanup): ... this.
12525 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12526 (displaced_step_fixup): Likewise.
12527 (resume_1): Likewise.
12528 (handle_inferior_event): Restore child's memory before calling
12529 displaced_step_fixup on the parent.
12530 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12531 to std::unique_ptr.
12532 <step_closure>: Change type to std::unique_ptr.
12533
5f661e03
SM
125342020-02-14 Simon Marchi <simon.marchi@efficios.com>
12535
12536 * arm-tdep.c: Include count-one-bits.h.
12537 (cleanup_block_store_pc): Use count_one_bits.
12538 (cleanup_block_load_pc): Use count_one_bits.
12539 (arm_copy_block_xfer): Use count_one_bits.
12540 (thumb2_copy_block_xfer): Use count_one_bits.
12541 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12542 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12543 (thumb_get_next_pcs_raw): Use count_one_bits.
12544 (arm_get_next_pcs_raw): Use count_one_bits_l.
12545 * arch/arm.c (bitcount): Remove.
12546 * arch/arm.h (bitcount): Remove.
12547
8084e579
TT
125482020-02-14 Tom Tromey <tromey@adacore.com>
12549
12550 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12551 Update.
12552 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12553 * dwarf2/loc.c (call_site_find_chain_1): Return
12554 unique_xmalloc_ptr.
12555 (call_site_find_chain): Likewise.
12556
258bf0ee
RB
125572020-02-14 Richard Biener <rguenther@suse.de>
12558
12559 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12560 on expression with division operators.
12561
f98a8458
AKS
125622020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12563
12564 * MAINTAINERS (Write After Approval): Adding myself.
12565
d1437c0e
TT
125662020-02-12 Tom Tromey <tom@tromey.com>
12567
12568 * event-loop.c (event_data, gdb_event, event_handler_func):
12569 Remove.
12570
3d4560f7
TT
125712020-02-12 Tom Tromey <tom@tromey.com>
12572
12573 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12574 (dwarf2_frame_objfile_data): Add comment.
12575 (find_comp_unit, set_comp_unit): New functions.
12576 (dwarf2_frame_find_fde): Use find_comp_unit.
12577 (dwarf2_build_frame_info): Use set_comp_unit.
12578
21982304
TT
125792020-02-12 Tom Tromey <tom@tromey.com>
12580
12581 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12582 (comp_unit): Don't initialize objfile.
12583 (execute_cfa_program): Add text_offset parameter.
12584 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12585 (dwarf2_frame_cache): Update.
12586 (dwarf2_build_frame_info): Don't set "objfile" member.
12587
4debb237
TT
125882020-02-12 Tom Tromey <tom@tromey.com>
12589
12590 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12591 (decode_frame_entry): Likewise.
12592 (dwarf2_build_frame_info): Update.
12593
0d404d44
TT
125942020-02-12 Tom Tromey <tom@tromey.com>
12595
12596 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12597 (decode_frame_entry_1): Use the comp_unit obstack.
12598
a7a3ae5c
TT
125992020-02-12 Tom Tromey <tom@tromey.com>
12600
12601 * dwarf2/frame.c (struct comp_unit): Add initializers and
12602 constructor.
12603 (dwarf2_frame_objfile_data): Store a comp_unit.
12604 (dwarf2_frame_find_fde): Update.
12605 (dwarf2_build_frame_info): Use "new".
12606
a9d65418
TT
126072020-02-12 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12610 (dwarf2_fde_table): Typedef for std::vector.
12611 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12612 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12613 (decode_frame_entry): Update.
12614 (dwarf2_build_frame_info): Use "new".
12615
7559c217
CB
126162020-02-12 Christian Biesinger <cbiesinger@google.com>
12617
12618 * arm-tdep.c (arm_gdbarch_init): Update.
12619 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12620 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12621 have_neon, is_m>: Change to bool.
12622
aeefc73c
CB
126232020-02-12 Christian Biesinger <cbiesinger@google.com>
12624
12625 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12626
d27b8e5f
TT
126272020-02-12 Tom Tromey <tom@tromey.com>
12628
12629 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12630
cd5900f3
HD
126312020-02-12 Hannes Domani <ssbssa@yahoo.de>
12632
12633 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12634 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12635
f056b22b
TT
126362020-02-11 Tom Tromey <tom@tromey.com>
12637
12638 * psymtab.h: Update comment.
12639
f92ff6b5
TT
126402020-02-11 Tom Tromey <tom@tromey.com>
12641
12642 * gdb_obstack.h (struct auto_obstack): Use
12643 DISABLE_COPY_AND_ASSIGN.
12644
3fd6912b
TT
126452020-02-11 Tom Tromey <tom@tromey.com>
12646
12647 * dwarf2/frame.h (struct objfile): Don't forward declare.
12648
69ed9b74
CB
126492020-02-11 Christian Biesinger <cbiesinger@google.com>
12650
12651 * cris-tdep.c (cris_supply_gregset): Change signature to match
12652 what struct regset expects.
12653 (cris_regset): New struct.
12654 (fetch_core_registers): Remove.
12655 (cris_iterate_over_regset_sections): New function.
12656 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12657 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12658
bda874f6
CB
126592020-02-11 Christian Biesinger <cbiesinger@google.com>
12660
12661 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12662 registers.
12663
754e1564
CB
126642020-02-11 Christian Biesinger <cbiesinger@google.com>
12665
12666 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12667
8ddd8e0e
SM
126682020-02-11 Simon Marchi <simon.marchi@efficios.com>
12669
12670 * configure: Re-generate.
12671
898e7f60
SM
126722020-02-11 Simon Marchi <simon.marchi@efficios.com>
12673
12674 * configure: Re-generate.
12675
58df732b
SM
126762020-02-11 Simon Marchi <simon.marchi@efficios.com>
12677
12678 * acinclude: Update warning.m4 path.
12679 * warning.m4: Move to gdbsupport.
12680
da5bd37e
TT
126812020-02-11 Tom Tromey <tromey@adacore.com>
12682
12683 * remote.c (remote_console_output): Update.
12684 * printcmd.c (printf_command): Update.
12685 * event-loop.c (gdb_wait_for_event): Update.
12686 * linux-nat.c (sigchld_handler): Update.
12687 * remote-sim.c (gdb_os_write_stdout): Update.
12688 (gdb_os_flush_stdout): Update.
12689 (gdb_os_flush_stderr): Update.
12690 (gdb_os_write_stderr): Update.
12691 * exceptions.c (print_exception): Update.
12692 * remote-fileio.c (remote_fileio_func_read): Update.
12693 (remote_fileio_func_write): Update.
12694 * tui/tui.c (tui_enable): Update.
12695 * tui/tui-interp.c (tui_interp::init): Update.
12696 * utils.c (init_page_info): Update.
12697 (putchar_unfiltered, fputc_unfiltered): Update.
12698 (gdb_flush): Update.
12699 (emit_style_escape): Update.
12700 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12701 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12702 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12703 (stderr_file::write): Update.
12704 (stderr_file::puts): Update.
12705 * ui-file.h (ui_file_isatty, ui_file_write)
12706 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12707 (ui_file_puts): Don't declare.
12708
85f0dd3c
TV
127092020-02-10 Tom de Vries <tdevries@suse.de>
12710
12711 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12712 sentinel to char *.
12713
2e927613
TV
127142020-02-09 Tom de Vries <tdevries@suse.de>
12715
12716 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12717 filename if it matches "<artificial>".
12718
6bafc845
HD
127192020-02-09 Hannes Domani <ssbssa@yahoo.de>
12720
12721 * windows-tdep.c (struct enum_value_name): New struct.
12722 (create_enum): New function.
12723 (windows_get_siginfo_type): Create and use enum types.
12724
7928d571
HD
127252020-02-09 Hannes Domani <ssbssa@yahoo.de>
12726
12727 * NEWS: Mention $_siginfo support for Windows.
12728 * windows-nat.c (handle_exception): Set siginfo_er.
12729 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12730 (windows_xfer_siginfo): New function.
12731 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12732 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12733 (init_windows_gdbarch_data): New function.
12734 (get_windows_gdbarch_data): New function.
12735 (windows_get_siginfo_type): New function.
12736 (windows_init_abi): Register windows_get_siginfo_type.
12737 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12738
6751ebae
TT
127392020-02-08 Tom Tromey <tom@tromey.com>
12740
12741 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12742 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12743 <keep>: Declare method.
12744 <m_keep>: Remove member.
12745 <~cutu_reader>: Remove.
12746 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12747 (cutu_reader::cutu_reader): Update.
12748 (cutu_reader::keep): Rename from ~cutu_reader.
12749 (process_psymtab_comp_unit, build_type_psymtabs_1)
12750 (process_skeletonless_type_unit, load_partial_comp_unit)
12751 (load_full_comp_unit, dwarf2_read_addr_index)
12752 (read_signatured_type): Update.
12753
135f5437
TT
127542020-02-08 Tom Tromey <tom@tromey.com>
12755
12756 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12757 "want_partial_unit" parameter.
12758 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12759 Inline check for DW_TAG_partial_unit.
12760 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12761
9f66ff1c
TT
127622020-02-08 Tom Tromey <tom@tromey.com>
12763
12764 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12765 read.c.
12766 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12767 read.c.
12768
c8a7a66f
TT
127692020-02-08 Tom Tromey <tom@tromey.com>
12770
12771 * dwarf2/read.c (read_address): Move to comp-unit.c.
12772 (dwarf2_rnglists_process, dwarf2_ranges_process)
12773 (read_attribute_value, dwarf_decode_lines_1)
12774 (var_decode_location, decode_locdesc): Update.
12775 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12776 read.c. Remove "cu" parameter.
12777 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12778 method.
12779
8266302d
TT
127802020-02-08 Tom Tromey <tom@tromey.com>
12781
12782 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12783 (read_indirect_line_string): Update.
12784 * dwarf2/comp-unit.c (read_offset): Remove.
12785 (read_comp_unit_head): Update.
12786 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12787 method.
12788 (read_offset): Don't declare.
12789
4057dfde
TT
127902020-02-08 Tom Tromey <tom@tromey.com>
12791
12792 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12793 * dwarf2/read.c (struct comp_unit_head): Move to
12794 dwarf2/comp-unit.h.
12795 (enum class rcuh_kind): Move to comp-unit.h.
12796 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12797 (read_comp_unit_head, error_check_comp_unit_head)
12798 (read_and_check_comp_unit_head): Move to comp-unit.c.
12799 (read_offset, dwarf_unit_type_name): Likewise.
12800 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12801 (cutu_reader::cutu_reader, read_call_site_scope)
12802 (find_partial_die, follow_die_offset): Update.
12803 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12804
24aa364d
TT
128052020-02-08 Tom Tromey <tom@tromey.com>
12806
12807 * dwarf2/read.c (read_offset_1): Move to leb.c.
12808 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12809 (dwarf_decode_macro_bytes): Update.
12810 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12811 * dwarf2/leb.h (read_offset): Declare.
12812
2c7d5afc
TT
128132020-02-08 Tom Tromey <tom@tromey.com>
12814
12815 * dwarf2/read.c (dwarf2_section_size): Remove.
12816 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12817 Update.
12818 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12819
4075cb26
TT
128202020-02-08 Tom Tromey <tom@tromey.com>
12821
12822 * dwarf2/read.c (read_initial_length): Move to leb.c.
12823 * dwarf2/leb.h (read_initial_length): Declare.
12824 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12825 handle_nonstd parameter.
12826 * dwarf2/frame.c (read_initial_length): Remove.
12827 (decode_frame_entry_1): Update.
12828
09ba997f
TT
128292020-02-08 Tom Tromey <tom@tromey.com>
12830
12831 * dwarf2/loc.c (dwarf2_find_location_expression)
12832 (dwarf_evaluate_loc_desc::get_tls_address)
12833 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12834 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12835 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12836 (dwarf2_compile_property_to_c)
12837 (dwarf2_loc_desc_get_symbol_read_needs)
12838 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12839 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12840 (loclist_describe_location, loclist_tracepoint_var_ref)
12841 (loclist_generate_c_location): Update.
12842 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12843 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12844 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12845 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12846 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12847 (dwarf2_per_cu_data::addr_size)
12848 (dwarf2_per_cu_data::ref_addr_size)
12849 (dwarf2_per_cu_data::text_offset)
12850 (dwarf2_per_cu_data::addr_type): Now methods.
12851 (per_cu_header_read_in): Make per_cu "const".
12852 (dwarf2_version): Remove.
12853 (dwarf2_per_cu_data::int_type): Now a method.
12854 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12855 (set_die_type, read_array_type, read_subrange_index_type)
12856 (read_tag_string_type, read_subrange_type): Update.
12857 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12858 offset_size, ref_addr_size, text_offset, addr_type, version,
12859 objfile, int_type, addr_sized_int_type>: Declare methods.
12860
96c738c0
TT
128612020-02-08 Tom Tromey <tom@tromey.com>
12862
12863 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12864 Move earlier.
12865
8fdd972c
TT
128662020-02-08 Tom Tromey <tom@tromey.com>
12867
12868 * dwarf2/read.h (dwarf_line_debug): Declare.
12869 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12870 * dwarf2/read.c: Move line_header code to new files.
12871 (dwarf_line_debug): No longer static.
12872 * dwarf2/line-header.c: New file.
12873 * dwarf2/line-header.h: New file.
12874
03075812
TT
128752020-02-08 Tom Tromey <tom@tromey.com>
12876
12877 * dwarf2/read.c (struct line_header) <file_full_name,
12878 file_file_name>: Return unique_xmalloc_ptr.
12879 (line_header::file_file_name): Update.
12880 (line_header::file_full_name): Update.
12881 (dw2_get_file_names_reader): Update.
12882 (macro_start_file): Update.
12883
bb822404
TT
128842020-02-08 Tom Tromey <tom@tromey.com>
12885
12886 * dwarf2/read.c (struct line_header) <file_full_name,
12887 file_file_name>: Declare methods.
12888 (dw2_get_file_names_reader): Update.
12889 (file_file_name): Now a method.
12890 (file_full_name): Likewise.
12891 (macro_start_file): Update.
12892
009b64fc
TT
128932020-02-08 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2/read.c (dwarf_always_disassemble)
12896 (show_dwarf_always_disassemble): Move to loc.c.
12897 (_initialize_dwarf2_read): Move "always-disassemble" registration
12898 to loc.c.
12899 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12900 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12901 static.
12902 (show_dwarf_always_disassemble): Move from read.c.
12903 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12904
5895093f
TT
129052020-02-08 Tom Tromey <tom@tromey.com>
12906
12907 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12908 (create_quick_file_names_table): Return htab_up.
12909 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12910 Update.
12911 * dwarf2/read.h (struct dwarf2_per_objfile)
12912 <quick_file_names_table>: Now htab_up.
12913
b3b32279
TT
129142020-02-08 Tom Tromey <tom@tromey.com>
12915
12916 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12917
1d33d811
TT
129182020-02-08 Tom Tromey <tom@tromey.com>
12919
12920 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12921 Rewrite.
12922 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12923 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12924 (abbrev_table::abbrev_table): No longer inline.
12925 (ABBREV_HASH_SIZE): Remove.
12926 (abbrev_table::m_abbrevs): Now an htab_up.
12927
86de1d91
TT
129282020-02-08 Tom Tromey <tom@tromey.com>
12929
12930 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12931 (cutu_reader): Update.
12932 (build_type_psymtabs_1): Update.
12933 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12934 (abbrev_table::alloc_abbrev): Update.
12935 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12936 (abbrev_table::read): New static method, renamed from
12937 abbrev_table_read_table.
12938 (abbrev_table::alloc_abbrev)
12939 (abbrev_table::add_abbrev): Now private.
12940 (abbrev_table::abbrev_table): Now private.
12941 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12942
0335378b
TT
129432020-02-08 Tom Tromey <tom@tromey.com>
12944
12945 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12946 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12947 htab_up.
12948
48b490f2
TT
129492020-02-08 Tom Tromey <tom@tromey.com>
12950
12951 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12952 htab_up.
12953 (lookup_dwo_unit_in_dwp): Update.
12954 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12955 on obstack.
12956
bc68fb19
TT
129572020-02-08 Tom Tromey <tom@tromey.com>
12958
12959 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12960 obstack.
12961
d15acc42
TT
129622020-02-08 Tom Tromey <tom@tromey.com>
12963
12964 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12965 line_header_hash.
12966 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12967 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12968 Change type to htab_up.
12969
eaa5fa8b
TT
129702020-02-08 Tom Tromey <tom@tromey.com>
12971
12972 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12973 htab_up. Don't allocate on obstack.
12974 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12975 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12976 Change type to htab_up.
12977
b0b6a987
TT
129782020-02-08 Tom Tromey <tom@tromey.com>
12979
12980 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12981 Change type to htab_up.
12982 * dwarf2/read.c (create_signatured_type_table_from_index)
12983 (create_signatured_type_table_from_debug_names)
12984 (create_all_type_units, add_type_unit)
12985 (lookup_dwo_signatured_type, lookup_signatured_type)
12986 (process_skeletonless_type_unit): Update.
12987 (create_debug_type_hash_table, create_debug_types_hash_table):
12988 Change type of types_htab.
12989 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12990 htab_up. Don't allocate on obstack.
12991 (create_cus_hash_table): Change type of cus_htab parameter.
12992 (struct dwo_file) <cus, tus>: Now htab_up.
12993 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12994 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12995 (queue_and_load_all_dwo_tus): Update.
12996 * dwarf2/index-write.c (write_gdbindex): Update.
12997 (write_debug_names): Update.
12998
39856def
TT
129992020-02-08 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13002 dwarf2/read.c. Remove "next" member. Add constructor ntad
13003 destructor.
13004 (struct dwarf2_per_objfile) <queue>: New member.
13005 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13006 dwarf2/read.h.
13007 (dwarf2_queue, dwarf2_queue_tail): Remove.
13008 (class dwarf2_queue_guard): Add parameter to constructor. Use
13009 DISABLE_COPY_AND_ASSIGN.
13010 <m_per_objfile>: New member.
13011 <~dwarf2_queue_guard>: Rewrite.
13012 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13013 Update.
13014 (~dwarf2_queue_item): New.
13015
3e225074
TT
130162020-02-08 Tom Tromey <tom@tromey.com>
13017
13018 * dwarf2/read.c (struct die_info) <has_children>: New member.
13019 (dw2_get_file_names_reader): Remove has_children.
13020 (dw2_get_file_names): Update.
13021 (read_cutu_die_from_dwo): Remove has_children.
13022 (cutu_reader::init_tu_and_read_dwo_dies)
13023 (cutu_reader::cutu_reader): Update.
13024 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13025 Remove has_children.
13026 (build_type_psymtabs_1, process_skeletonless_type_unit)
13027 (load_partial_comp_unit, load_full_comp_unit): Update.
13028 (create_dwo_cu_reader): Remove has_children.
13029 (create_cus_hash_table, read_die_and_children): Update.
13030 (read_full_die_1,read_full_die): Remove has_children.
13031 (read_signatured_type): Update.
13032 (class cutu_reader) <has_children>: Remove.
13033
82ca8957
TT
130342020-02-08 Tom Tromey <tom@tromey.com>
13035
13036 * dwarf2/expr.c: Rename from dwarf2expr.c.
13037 * dwarf2/expr.h: Rename from dwarf2expr.h.
13038 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13039 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13040 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13041 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13042 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13043 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13044 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13045 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13046 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13047 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13048 * dwarf2/loc.c: Rename from dwarf2loc.c.
13049 * dwarf2/loc.h: Rename from dwarf2loc.h.
13050 * dwarf2/read.c: Rename from dwarf2read.c.
13051 * dwarf2/read.h: Rename from dwarf2read.h.
13052 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13053 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13054 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13055 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13056 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13057 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13058 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13059 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13060 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13061 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13062 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13063 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13064 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13065 Update.
13066 * Makefile.in (COMMON_SFILES): Update.
13067 (HFILES_NO_SRCDIR): Update.
13068
9e35d499
TT
130692020-02-08 Tom Tromey <tom@tromey.com>
13070
13071 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13072 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13073
1eba2311
TT
130742020-02-08 Tom Tromey <tom@tromey.com>
13075
13076 * dwarf2read.h (struct die_info): Don't declare.
13077
e41c2da2
TT
130782020-02-08 Tom Tromey <tom@tromey.com>
13079
13080 * dwarf2read.h (die_info_ptr): Remove typedef.
13081
4fc6c0d5
TT
130822020-02-08 Tom Tromey <tom@tromey.com>
13083
13084 * dwarf2read.c (read_call_site_scope)
13085 (handle_data_member_location, dwarf2_add_member_fn)
13086 (mark_common_block_symbol_computed, read_common_block)
13087 (attr_to_dynamic_prop, partial_die_info::read)
13088 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13089 (dwarf2_symbol_mark_computed, set_die_type): Update.
13090 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13091 method.
13092 (attr_form_is_block): Don't declare.
13093 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13094
cd6c91b4
TT
130952020-02-08 Tom Tromey <tom@tromey.com>
13096
13097 * dwarf2read.c (dwarf2_find_base_address, )
13098 (read_call_site_scope, rust_containing_type)
13099 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13100 (handle_data_member_location, dwarf2_add_member_fn)
13101 (get_alignment, read_structure_type, process_structure_scope)
13102 (mark_common_block_symbol_computed, read_common_block)
13103 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13104 (partial_die_info::read, read_attribute_value, new_symbol)
13105 (lookup_die_type, dwarf2_get_ref_die_offset)
13106 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13107 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13108 (dwarf2_symbol_mark_computed): Update.
13109 * dwarf2/attribute.h (struct attribute) <value_as_address,
13110 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13111 methods.
13112 (value_as_address, attr_form_is_section_offset)
13113 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13114 * dwarf2/attribute.c (attribute::value_as_address)
13115 (attribute::form_is_section_offset, attribute::form_is_constant)
13116 (attribute::form_is_ref): Now methods.
13117
162dce55
TT
131182020-02-08 Tom Tromey <tom@tromey.com>
13119
13120 * dwarf2read.c (struct attribute, DW_STRING)
13121 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13122 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13123 (attr_form_is_block, attr_form_is_section_offset)
13124 (attr_form_is_constant, attr_form_is_ref): Move.
13125 * dwarf2/attribute.h: New file.
13126 * dwarf2/attribute.c: New file, from dwarf2read.c.
13127 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13128
3054dd54
TT
131292020-02-08 Tom Tromey <tom@tromey.com>
13130
13131 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13132 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13133 Move.
13134 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13135 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13136 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13137 abbrev.c.
13138 * dwarf2/abbrev.h: New file.
13139 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13140 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13141
96b79293
TT
131422020-02-08 Tom Tromey <tom@tromey.com>
13143
13144 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13145 (dwarf2_section_size, dwarf2_get_section_info)
13146 (create_signatured_type_table_from_debug_names)
13147 (create_addrmap_from_aranges, read_debug_names_from_section)
13148 (get_gdb_index_contents_from_section, read_comp_unit_head)
13149 (error_check_comp_unit_head, read_abbrev_offset)
13150 (create_debug_type_hash_table, init_cu_die_reader)
13151 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13152 (read_comp_units_from_section, create_cus_hash_table)
13153 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13154 (create_dwp_v2_section, dwarf2_rnglists_process)
13155 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13156 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13157 (read_indirect_string_from_dwz, read_addr_index_1)
13158 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13159 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13160 (fill_in_loclist_baton): Update.
13161 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13162 get_containing_section, get_bfd_owner, get_bfd_section,
13163 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13164 (dwarf2_read_section, get_section_name, get_section_file_name)
13165 (get_containing_section, get_section_bfd_owner)
13166 (get_section_bfd_section, get_section_name, get_section_file_name)
13167 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13168 declare.
13169 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13170 (dwarf2_section_info::get_bfd_owner)
13171 (dwarf2_section_info::get_bfd_section)
13172 (dwarf2_section_info::get_name)
13173 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13174 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13175 (dwarf2_section_info::read): Now methods.
13176 * dwarf-index-write.c (class debug_names): Update.
13177
2c86cff9
TT
131782020-02-08 Tom Tromey <tom@tromey.com>
13179
13180 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13181 Move to dwarf2/section.h.
13182 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13183 (get_section_bfd_section, get_section_name)
13184 (get_section_file_name, get_section_id, get_section_flags)
13185 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13186 dwarf2/section.c.
13187 * dwarf2/section.h: New file.
13188 * dwarf2/section.c: New file, from dwarf2read.c.
13189 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13190
f4382c45
TT
131912020-02-08 Tom Tromey <tom@tromey.com>
13192
13193 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13194 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13195 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13196 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13197 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13198 * dwarf2/leb.h: New file, from dwarf2read.c.
13199 * dwarf2/leb.c: New file, from dwarf2read.c.
13200 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13201 Remove.
13202 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13203 (COMMON_SFILES): Add dwarf2/leb.c.
13204
01840b7a
JB
132052020-02-08 Joel Brobecker <brobecker@adacore.com>
13206
13207 GDB 9.1 released.
13208
dfcb27e4
IB
132092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13210
13211 PR gdb/25190:
aac66a4c
SM
13212 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13213 * gdb/remote.c (remote_console_output): Update.
13214 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13215 (ui_file_puts): ...this.
13216 * gdb/ui-file.h (ui_file_puts): Add declaration.
13217 * gdb/utils.c (emit_style_escape): Update.
13218 (flush_wrap_buffer): Update.
13219 (fputs_maybe_filtered): Update.
13220 (fputs_unfiltered): Add function.
dfcb27e4 13221
faa17681
IB
132222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13223
aac66a4c
SM
13224 * gdb/event-loop.c (gdb_wait_for_event): Update.
13225 * gdb/printcmd.c (printf_command): Update.
13226 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13227 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13228 (gdb_os_flush_stderr): Update.
13229 * gdb/remote.c (remote_console_output): Update.
13230 * gdb/ui-file.c (gdb_flush): Rename to...
13231 (ui_file_flush): ...this.
13232 (stderr_file::write): Update.
13233 (stderr_file::puts): Update.
13234 * gdb/ui-file.h (gdb_flush): Rename to...
13235 (ui_file_flush): ...this.
13236 * gdb/utils.c (gdb_flush): Add function.
13237 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13238
5abbbe1d
TT
132392020-02-07 Tom Tromey <tromey@adacore.com>
13240
13241 PR breakpoints/24915:
13242 * source.c (find_and_open_source): Do not check basenames_may_differ.
13243
919adfe8
TT
132442020-02-07 Tom Tromey <tom@tromey.com>
13245
13246 * README: Update gdbserver documentation.
13247 * gdbserver: Move to top level.
13248 * configure.tgt (build_gdbserver): Remove.
13249 * configure.ac: Remove --enable-gdbserver.
13250 * configure: Rebuild.
13251 * Makefile.in (distclean): Don't mention gdbserver.
13252
1d5d29e7
SV
132532020-02-06 Shahab Vahedi <shahab@synopsys.com>
13254
13255 * source-cache.c (source_cache::ensure): Surround
13256 get_plain_source_lines with a try/catch.
13257 (source_cache::get_line_charpos): Get rid of try/catch
13258 and only check for the return value of "ensure".
13259 * tui/tui-source.c (tui_source_window::set_contents):
13260 Simplify "nlines" calculation.
13261
6eb1129c
SV
132622020-02-06 Shahab Vahedi <shahab@synopsys.com>
13263
13264 * MAINTAINERS (Write After Approval): Add myself.
13265
c6a42d11
CB
132662020-02-05 Christian Biesinger <cbiesinger@google.com>
13267
13268 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13269 function call.
13270
c8ecdda6
CB
132712020-02-05 Christian Biesinger <cbiesinger@google.com>
13272
13273 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13274
f6480e70
MR
132752020-02-05 Maciej W. Rozycki <macro@wdc.com>
13276
13277 * nat/riscv-linux-tdesc.h: New file.
13278 * nat/riscv-linux-tdesc.c: New file, taking code from...
13279 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13280 ... here.
13281 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13282 NATDEPFILES.
13283
dcc9fbc6
AB
132842020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13285
13286 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13287 we don't set the fake simulator ptid to the null_ptid.
13288
719546c4
SM
132892020-02-03 Simon Marchi <simon.marchi@efficios.com>
13290
13291 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13292 * gdbthread.h (class thread_info) <resumed>: Likewise.
13293 * infrun.c (resume_1): Likewise.
13294 (proceed): Likewise.
13295 (infrun_thread_stop_requested): Likewise.
13296 (stop_all_threads): Likewise.
13297 (handle_inferior_event): Likewise.
13298 (restart_threads): Likewise.
13299 (finish_step_over): Likewise.
13300 (keep_going_stepped_thread): Likewise.
13301 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13302 (linux_handle_extended_wait): Likewise.
13303 * record-btrace.c (get_thread_current_frame_id): Likewise.
13304 * record-full.c (record_full_wait_1): Likewise.
13305 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13306 * target.c (target_resume): Likewise.
13307 * thread.c (set_running_thread): Likewise.
13308
e409c542
AKS
133092020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13310
13311 * f-valprint.c (f77_print_array_1): Changed datatype of index
13312 variable to LONGEST from int to enable it to contain bound
13313 values correctly.
13314
ee98c0da
MR
133152020-02-03 Maciej W. Rozycki <macro@wdc.com>
13316
13317 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13318 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13319 offsets according to FLEN determined.
13320 (riscv_linux_nat_target::read_description): Determine FLEN
13321 dynamically.
13322 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13323 according to FLEN determined.
13324 (riscv_linux_nat_target::store_registers): Likewise.
13325
aa66aac4
SV
133262020-02-01 Shahab Vahedi <shahab@synopsys.com>
13327
13328 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13329 when reg->group is empty and reggroup is not.
13330
fd9faca8
TT
133312020-01-31 Tom Tromey <tromey@adacore.com>
13332
13333 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13334 Call beneath target's mourn_inferior after unpushing.
13335
42330a68
AB
133362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13337
13338 PR tui/9765
13339 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13340 have enough lines to fill the screen, still return the lowest
13341 address we found.
13342
7a27a45b
AB
133432020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13344
13345 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13346 '-', '<', and '>' commands.
13347
c47f70e2
PA
133482020-01-29 Pedro Alves <palves@redhat.com>
13349 Sergio Durigan Junior <sergiodj@redhat.com>
13350
13351 * infcmd.c (construct_inferior_arguments): Assert that
13352 'argc' is greater than 0.
13353
5133a315
LM
133542020-01-29 Luis Machado <luis.machado@linaro.org>
13355
13356 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13357 (BRK_INSN_MASK): Define to 0xd4200000.
13358 (aarch64_program_breakpoint_here_p): New function.
13359 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13360 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13361 breakpoint.c.
13362 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13363 breakpoint.h
13364 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13365 call gdbarch_program_breakpoint_here_p.
13366 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13367 default_program_breakpoint_here_p, changed return type to bool and
13368 simplified.
13369 * breakpoint.h (program_breakpoint_here): Moved prototype to
13370 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13371 return type to bool.
13372 * gdbarch.c: Regenerate.
13373 * gdbarch.h: Regenerate.
13374 * gdbarch.sh (program_breakpoint_here_p): New method.
13375 * infrun.c (handle_signal_stop): Call
13376 gdbarch_program_breakpoint_here_p.
13377
168f8c6b
TT
133782020-01-26 Tom Tromey <tom@tromey.com>
13379
13380 * ctfread.c (struct ctf_fp_info): Reindent.
13381 (_initialize_ctfread): Remove.
13382
128a391f
TT
133832020-01-26 Tom Tromey <tom@tromey.com>
13384
13385 * psymtab.c (partial_map_expand_apply)
13386 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13387 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13388 (psym_print_stats, psym_expand_symtabs_for_function)
13389 (psym_map_symbol_filenames, psym_map_matching_symbols)
13390 (psym_expand_symtabs_matching)
13391 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13392 (maintenance_check_psymtabs): Use new methods.
13393 * psympriv.h (struct partial_symtab) <readin_p,
13394 get_compunit_symtab>: New methods.
13395 <readin, compunit_symtab>: Remove members.
13396 (struct standard_psymtab): New.
13397 (struct legacy_psymtab): Derive from standard_psymtab.
13398 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13399 standard_psymtab.
13400 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13401
0494dbec
TT
134022020-01-26 Tom Tromey <tom@tromey.com>
13403
13404 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13405 read_dependencies. Add assert.
13406 * psymtab.c (partial_symtab::read_dependencies): New method.
13407 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13408 method.
13409 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13410 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13411 read_dependencies.
13412 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13413 Add assert.
13414
8566b89b
TT
134152020-01-26 Tom Tromey <tom@tromey.com>
13416
13417 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13418 Call expand_psymtab.
13419 (xcoff_read_symtab): Call expand_psymtab.
13420 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13421 legacy_expand_psymtab.
13422 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13423 method.
13424 (struct legacy_psymtab) <expand_psymtab>: Implement.
13425 <legacy_expand_psymtab>: New member.
13426 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13427 (parse_partial_symbols): Set legacy_expand_psymtab.
13428 (psymtab_to_symtab_1): Change argument order. Call
13429 expand_psymtab.
13430 (new_psymtab): Set legacy_expand_psymtab.
13431 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13432 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13433 expand_psymtab.
13434 (dwarf2_psymtab::expand_psymtab): Rename from
13435 psymtab_to_symtab_1. Call expand_psymtab.
13436 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13437 (dbx_end_psymtab): Likewise.
13438 (dbx_psymtab_to_symtab_1): Change argument order. Call
13439 expand_psymtab.
13440 (dbx_read_symtab): Call expand_psymtab.
13441 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13442 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13443 (ctf_psymtab::read_symtab): Call expand_psymtab.
13444
077cbab2
TT
134452020-01-26 Tom Tromey <tom@tromey.com>
13446
13447 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13448 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13449 messages.
13450 * mdebugread.c (mdebug_read_symtab): Remove prints.
13451 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13452 assert.
13453 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13454
891813be
TT
134552020-01-26 Tom Tromey <tom@tromey.com>
13456
13457 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13458 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13459 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13460 legacy_symtab.
13461 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13462 * psymtab.c (psymtab_to_symtab): Call method.
13463 (dump_psymtab): Update.
13464 * psympriv.h (struct partial_symtab): Add virtual destructor.
13465 <read_symtab>: New method.
13466 (struct legacy_symtab): New.
13467 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13468 (struct pst_map) <pst>: Now a legacy_psymtab.
13469 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13470 (new_psymtab): Use legacy_psymtab.
13471 * dwarf2read.h (struct dwarf2_psymtab): New.
13472 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13473 * dwarf2read.c (dwarf2_create_include_psymtab)
13474 (dwarf2_build_include_psymtabs, create_type_unit_group)
13475 (create_partial_symtab, process_psymtab_comp_unit_reader)
13476 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13477 (set_partial_user): Use dwarf2_psymtab.
13478 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13479 (psymtab_to_symtab_1, process_full_comp_unit)
13480 (process_full_type_unit, dwarf2_ranges_read)
13481 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13482 (dwarf_decode_lines): Use dwarf2_psymtab.
13483 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13484 (add_address_entry_worker, write_one_signatured_type)
13485 (recursively_count_psymbols, recursively_write_psymbols)
13486 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13487 (write_debug_names): Likewise.
13488 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13489 <pst>: Now a legacy_psymtab.
13490 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13491 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13492 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13493 * ctfread.c (struct ctf_psymtab): New.
13494 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13495 ctf_psymtab.
13496 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13497 (create_partial_symtab): Return a ctf_psymtab.
13498 (scan_partial_symbols): Update.
13499
c3693a1d
TT
135002020-01-26 Tom Tromey <tom@tromey.com>
13501
13502 * xcoffread.c (xcoff_start_psymtab): Use new.
13503 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13504 renamed from start_psymtab_common.
13505 * psympriv.h (struct partial_symtab): Add new constructor.
13506 (start_psymtab_common): Don't declare.
13507 * mdebugread.c (parse_partial_symbols): Use new.
13508 * dwarf2read.c (create_partial_symtab): Use new.
13509 * dbxread.c (start_psymtab): Use new.
13510 * ctfread.c (create_partial_symtab): Use new.
13511
32caafd0
TT
135122020-01-26 Tom Tromey <tom@tromey.com>
13513
13514 * xcoffread.c (xcoff_end_psymtab): Use new.
13515 * psymtab.c (start_psymtab_common): Use new.
13516 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13517 Update.
13518 * psympriv.h (struct partial_symtab): Add parameters to
13519 constructor. Don't inline.
13520 (allocate_psymtab): Don't declare.
13521 * mdebugread.c (new_psymtab): Use new.
13522 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13523 * dbxread.c (dbx_end_psymtab): Use new.
13524
abaa2f23
TT
135252020-01-26 Tom Tromey <tom@tromey.com>
13526
13527 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13528 allocate_psymtab. Update documentation.
13529 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13530 allocate_psymtab. Do not use new.
13531 (allocate_psymtab): Use new. Update.
13532
6d94535f
TT
135332020-01-26 Tom Tromey <tom@tromey.com>
13534
13535 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13536 * psymtab.c (psym_print_stats): Update.
13537 * psympriv.h (struct partial_symtab) <readin,
13538 psymtabs_addrmap_supported, anonymous>: Now bool.
13539 * mdebugread.c (psymtab_to_symtab_1): Update.
13540 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13541 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13542 (process_full_comp_unit, process_full_type_unit): Update.
13543 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13544 * ctfread.c (psymtab_to_symtab): Update.
13545
6f17252b
TT
135462020-01-26 Tom Tromey <tom@tromey.com>
13547
13548 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13549 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13550 * psymtab.c (psymtab_storage): Delete psymtabs.
13551 (psymtab_storage::allocate_psymtab): Use new.
13552 (psymtab_storage::discard_psymtab): Use delete.
13553 * psympriv.h (struct partial_symtab): Add constructor and
13554 initializers.
13555
f6f1cebc
TT
135562020-01-26 Tom Tromey <tom@tromey.com>
13557
13558 * machoread.c: Do not include psympriv.h.
13559
e47e48f6
PW
135602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13561
13562 * NEWS: Mention the new option and the set/show commands.
13563
a2fedca9
PW
135642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13565
13566 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13567 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13568 (validate_exec_file): New variables, enums, functions.
13569 (exec_file_locate_attach, print_section_info): Style the filenames.
13570 (_initialize_exec): Install show_exec_file_mismatch_command and
13571 set_exec_file_mismatch_command.
13572 * gdbcore.h (validate_exec_file): Declare.
13573 * infcmd.c (attach_command): Call validate_exec_file.
13574 * remote.c ( remote_target::remote_add_inferior): Likewise.
13575
7ffa82e1
AB
135762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13577
13578 * frame.c (find_frame_sal): Move call to get_next_frame into more
13579 inner scope.
13580 * inline-frame.c (inilne_state) <inline_state>: Update argument
13581 types.
13582 (inilne_state) <skipped_symbol>: Rename to...
13583 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13584 (skip_inline_frames): Build vector of skipped symbols and use this
13585 to reate the inline_state.
13586 (inline_skipped_symbol): Add a comment and some assertions, fetch
13587 skipped symbol from the list.
13588
3d92a3e3
AB
135892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13590
13591 * buildsym.c (lte_is_less_than): Delete.
13592 (buildsym_compunit::end_symtab_with_blockvector): Create local
13593 lambda function to sort line table entries, and use
13594 std::stable_sort instead of std::sort.
13595 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13596 markers when looking for a previous line.
13597
94a72be7
AB
135982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13599
13600 * dwarf2read.c (lnp_state_machine::record_line): Include
13601 end_sequence parameter in debug print out. Record the line if we
13602 are at an end_sequence marker even if it's not the start of a
13603 statement.
13604 * symmisc.c (maintenance_print_one_line_table): Print end of
13605 sequence markers with 'END' not '0'.
13606
53af73bf
PA
136072020-01-24 Pedro Alves <palves@redhat.com>
13608
13609 PR gdb/25410
13610 * thread.c (scoped_restore_current_thread::restore): Use
13611 switch_to_inferior_no_thread.
13612 * exec.c: Include "progspace-and-thread.h".
13613 (add_target_sections, remove_target_sections):
13614 scoped_restore_current_pspace_and_thread instead of
13615 scoped_restore_current_thread.
13616 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13617 and aspace to the inferior before calling clone_program_space.
13618 Remove stale comment.
13619
3050c6f4
CB
136202020-01-24 Christian Biesinger <cbiesinger@google.com>
13621
13622 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13623 (arm_netbsd_nat_target::fetch_registers): ...this.
13624 (arm_nbsd_nat_target::store_registers): Rename to...
13625 (arm_netbsd_nat_target::store_registers): ...this.
13626
73685c7e
CB
136272020-01-24 Christian Biesinger <cbiesinger@google.com>
13628
13629 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13630 register_t.
13631
89203d40
CB
136322020-01-24 Christian Biesinger <cbiesinger@google.com>
13633
13634 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13635 Update comment.
13636 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13637 Likewise.
13638 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13639 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13640 the correct replacement (iterate_over_regset_sections).
13641 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13642 Update comment.
13643
1ba1ac88
AB
136442020-01-24 Graham Markall <graham.markall@embecosm.com>
13645
13646 PR gdb/23718
13647 * gdb/python/python.c (execute_gdb_command): Call
13648 async_enable_stdin in catch block.
13649
f3364a6d
AB
136502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13651
13652 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13653 SWITCH_THRU_ALL_UIS.
13654
733d0a67
AB
136552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13656
13657 PR tui/9765
13658 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13659 comment, add extra parameter, and update to store previous symbol
13660 when appropriate.
13661 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13662 add extra parameter.
13663 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13664 remove unneeded parameter, add try/catch around gdb_print_insn,
13665 rewrite to add items to asm_lines vector.
13666 (tui_find_backward_disassembly_start_address): New function.
13667 (tui_find_disassembly_address): Updated throughout.
13668 (tui_disasm_window::set_contents): Update for changes to
13669 tui_disassemble.
13670 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13671 number of lines to scroll.
13672
b3b3bada
SM
136732020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13674
13675 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13676 (SECT_OFF_DATA): Likewise.
13677 (SECT_OFF_RODATA): Likewise.
13678 (SECT_OFF_TEXT): Likewise.
13679 (SECT_OFF_BSS): Likewise.
13680 (struct objfile) <text_section_offset, data_section_offset>: New
13681 methods.
13682 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13683 objfile::text_section_offset.
13684 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13685 * coffread.c (coff_symtab_read): Likewise.
13686 (enter_linenos): Likewise.
13687 (process_coff_symbol): Likewise.
13688 * ctfread.c (get_objfile_text_range): Likewise.
13689 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13690 Use objfile::data_section_offset.
13691 * dwarf2-frame.c (execute_cfa_program): Use
13692 objfile::text_section_offset.
13693 (dwarf2_frame_find_fde): Likewise.
13694 * dwarf2read.c (create_addrmap_from_index): Likewise.
13695 (create_addrmap_from_aranges): Likewise.
13696 (dw2_find_pc_sect_compunit_symtab): Likewise.
13697 (process_psymtab_comp_unit_reader): Likewise.
13698 (add_partial_symbol): Likewise.
13699 (add_partial_subprogram): Likewise.
13700 (process_full_comp_unit): Likewise.
13701 (read_file_scope): Likewise.
13702 (read_func_scope): Likewise.
13703 (read_lexical_block_scope): Likewise.
13704 (read_call_site_scope): Likewise.
13705 (dwarf2_rnglists_process): Likewise.
13706 (dwarf2_ranges_process): Likewise.
13707 (dwarf2_ranges_read): Likewise.
13708 (dwarf_decode_lines_1): Likewise.
13709 (new_symbol): Likewise.
13710 (dwarf2_fetch_die_loc_sect_off): Likewise.
13711 (dwarf2_per_cu_text_offset): Likewise.
13712 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13713 * hppa-tdep.c (read_unwind_info): Likewise.
13714 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13715 * psympriv.h (struct partial_symtab): Likewise.
13716 * psymtab.c (find_pc_sect_psymtab): Likewise.
13717 * solib-svr4.c (enable_break): Likewise.
13718 * stap-probe.c (relocate_address): Use
13719 objfile::data_section_offset.
13720 * xcoffread.c (enter_line_range): Use
13721 objfile::text_section_offset.
13722 (read_xcoff_symtab): Likewise.
13723
ab53f382
SM
137242020-01-23 Simon Marchi <simon.marchi@efficios.com>
13725
13726 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13727 declaration to narrower scopes.
13728
e7eee665
SM
137292020-01-23 Simon Marchi <simon.marchi@efficios.com>
13730
13731 * darwin-nat.h (struct darwin_exception_msg, enum
13732 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13733 Move up.
13734 (class darwin_nat_target) <wait_1, check_new_threads,
13735 decode_exception_message, decode_message, stop_inferior,
13736 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13737 * darwin-nat.c (darwin_check_new_threads): Rename to...
13738 (darwin_nat_target::check_new_threads): ... this.
13739 (darwin_suspend_inferior_it): Remove.
13740 (darwin_decode_exception_message): Rename to...
13741 (darwin_nat_target::decode_exception_message): ... this.
13742 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13743 (darwin_decode_message): Rename to...
13744 (darwin_nat_target::decode_message): ... this.
13745 (cancel_breakpoint): Rename to...
13746 (darwin_nat_target::cancel_breakpoint): ... this.
13747 (darwin_wait): Rename to...
13748 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13749 instead of iterate_over_inferiors.
13750 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13751 (darwin_stop_inferior): Rename to...
13752 (darwin_nat_target::stop_inferior): ... this.
13753 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13754 (darwin_init_thread_list): Rename to...
13755 (darwin_nat_target::init_thread_list): ... this.
13756 (darwin_ptrace_him): Rename to...
13757 (darwin_nat_target::ptrace_him): ... this.
13758 (darwin_nat_target::create_inferior): Pass lambda function to
13759 fork_inferior.
13760 (darwin_nat_target::detach): Call stop_inferior instead of
13761 darwin_stop_inferior.
13762 * fork-inferior.h (fork_inferior): Change init_trace_fun
13763 parameter to gdb::function_view.
13764 * fork-inferior.c (fork_inferior): Likewise.
13765
c162ed3e
HD
137662020-01-23 Hannes Domani <ssbssa@yahoo.de>
13767
13768 * i386-cygwin-tdep.c (core_process_module_section): Update.
13769 * windows-nat.c (struct lm_info_windows): Add text_offset.
13770 (windows_xfer_shared_libraries): Update.
13771 * windows-tdep.c (windows_xfer_shared_library):
13772 Add text_offset_cached argument.
13773 * windows-tdep.h (windows_xfer_shared_library): Update.
13774
a1237872
SM
137752020-01-21 Simon Marchi <simon.marchi@efficios.com>
13776
13777 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13778
b3ee6dd9
SM
137792020-01-21 Simon Marchi <simon.marchi@efficios.com>
13780
13781 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13782 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13783 replace with range-based for.
13784 (gdbsim_interrupt_inferior): Remove.
13785 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13786 with a range-based for. Inline code from
13787 gdbsim_interrupt_inferior.
13788
f9fac3c8
SM
137892020-01-21 Simon Marchi <simon.marchi@efficios.com>
13790
13791 * infrun.c (proceed): Fix indentation.
13792
f6474de9
TT
137932020-01-21 Tom Tromey <tromey@adacore.com>
13794
13795 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13796 * python/python.c (python_extension_ops): Update.
13797 (gdbpy_colorize): New function.
13798 * python/lib/gdb/__init__.py (colorize): New function.
13799 * extension.h (ext_lang_colorize): Declare.
13800 * extension.c (ext_lang_colorize): New function.
13801 * extension-priv.h (struct extension_language_ops) <colorize>: New
13802 member.
13803 * cli/cli-style.c (_initialize_cli_style): Update help text.
13804
f0c702d4
LM
138052020-01-21 Luis Machado <luis.machado@linaro.org>
13806
13807 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13808 <cond>: Change type to bool.
13809 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13810 (aarch64_displaced_step_cb): Likewise.
13811 (aarch64_displaced_step_tb): Likewise.
13812
1ab139e5
LM
138132020-01-21 Luis Machado <luis.machado@linaro.org>
13814
13815 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13816 output.
13817
0c271889
LM
138182020-01-21 Luis Machado <luis.machado@linaro.org>
13819
13820 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13821 <pc_adjust>: Adjust the documentation.
13822 (aarch64_displaced_step_fixup): Check if PC really moved before
13823 adjusting it.
13824
4d89c1c7
TT
138252020-01-19 Tom Tromey <tom@tromey.com>
13826
13827 * disasm.c (~gdb_disassembler): New destructor.
13828 (gdb_buffered_insn_length): Call disassemble_free_target.
13829 * disasm.h (class gdb_disassembler): Declare destructor. Use
13830 DISABLE_COPY_AND_ASSIGN.
13831
c0ab21c2
TT
138322020-01-19 Tom Tromey <tom@tromey.com>
13833
13834 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13835 (die_reader_func_ftype): Remove.
13836 (cutu_reader): New class.
13837 (dw2_get_file_names_reader): Remove "data" parameter.
13838 (dw2_get_file_names): Use cutu_reader.
13839 (create_debug_type_hash_table): Update.
13840 (read_cutu_die_from_dwo): Update comment.
13841 (lookup_dwo_unit): Add dwo_name parameter.
13842 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13843 die_reader_func_ftype and data parameters.
13844 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13845 Remove die_reader_func_ftype and data parameters.
13846 (~cutu_reader): New; from init_cutu_and_read_dies.
13847 (cutu_reader::cutu_reader): Rename from
13848 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13849 and data parameters.
13850 (init_cutu_and_read_dies_simple): Remove.
13851 (struct process_psymtab_comp_unit_data): Remove.
13852 (process_psymtab_comp_unit_reader): Remove data parameter; add
13853 want_partial_unit and pretend_language parameters.
13854 (process_psymtab_comp_unit): Use cutu_reader.
13855 (build_type_psymtabs_reader): Remove data parameter.
13856 (build_type_psymtabs_1): Use cutu_reader.
13857 (process_skeletonless_type_unit): Likewise.
13858 (load_partial_comp_unit_reader): Remove.
13859 (load_partial_comp_unit): Use cutu_reader.
13860 (load_full_comp_unit_reader): Remove.
13861 (load_full_comp_unit): Use cutu_reader.
13862 (struct create_dwo_cu_data): Remove.
13863 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13864 dwo_unit parameters.
13865 (create_cus_hash_table): Use cutu_reader.
13866 (struct dwarf2_read_addr_index_data): Remove.
13867 (dwarf2_read_addr_index_reader): Remove.
13868 (dwarf2_read_addr_index): Use cutu_reader.
13869 (read_signatured_type_reader): Remove.
13870 (read_signatured_type): Use cutu_reader.
13871
45bbae5c
TT
138722020-01-19 Tom Tromey <tom@tromey.com>
13873
13874 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13875 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13876 (tui_wrefresh): Declare.
13877 * tui/tui-wingeneral.c (suppress_output): New global.
13878 (tui_suppress_output, ~tui_suppress_output): New constructor and
13879 destructor.
13880 (tui_wrefresh): New function.
13881 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13882 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13883 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13884 method.
13885 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13886 tui_wrefresh.
13887 (tui_data_window::no_refresh): New method.
13888 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13889 (tui_reg_command): Use tui_suppress_output
13890 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13891 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13892 method.
13893 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13894
4f13c1c0
TT
138952020-01-19 Tom Tromey <tom@tromey.com>
13896
13897 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13898 Handle case where symtab is null.
13899
fa47e446
SM
139002020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13901
13902 * linux-fork.c (one_fork_p): Simplify.
13903
26f42329
SM
139042020-01-17 Simon Marchi <simon.marchi@efficios.com>
13905
13906 * top.c (struct qt_args): Remove.
13907 (kill_or_detach): Change return type to void, replace `void *`
13908 parameter with a proper one.
13909 (print_inferior_quit_action): Likewise.
13910 (quit_confirm): Use range-based for loop to iterate over inferiors.
13911 (quit_force): Likewise.
13912
a9ac81b1
SM
139132020-01-17 Simon Marchi <simon.marchi@efficios.com>
13914
13915 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13916 `void *` parameter with proper parameters.
13917 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13918 (print_one_inferior): Change return type to void, replace `void *`
13919 parameter with proper parameters.
13920 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13921 inferiors.
13922 (get_other_inferior): Remove.
13923 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13924 inferiors.
13925
788eca49
SM
139262020-01-17 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * mi/mi-interp.c (report_initial_inferior): Remove.
13929 (mi_interp::init): Use range-based for to iterate over inferiors.
13930
d9bc85b6
SM
139312020-01-17 Simon Marchi <simon.marchi@efficios.com>
13932
13933 * python/py-inferior.c (build_inferior_list): Remove.
13934 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13935
40c94099
CB
139362020-01-16 Christian Biesinger <cbiesinger@google.com>
13937
13938 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13939 (btrace_stitch_trace): Likewise.
13940 * charset.c (intermediate_encoding): Likewise (vaild).
13941 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13942 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13943 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13944
e0cdfe3c
HD
139452020-01-16 Hannes Domani <ssbssa@yahoo.de>
13946
13947 * windows-tdep.c (windows_get_tlb_type):
13948 Add rtl_user_process_parameters type.
13949
790f1718 139502020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13951 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13952
13953 PR build/24805
13954 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13955 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13956 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13957 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13958 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13959 (ps_plog): Redeclare exported functions with default visibility.
13960
3112ed97
NA
139612020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13962
13963 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13964 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13965
8dc3273e
SM
139662020-01-15 Simon Marchi <simon.marchi@efficios.com>
13967
13968 * infcmd.c (post_create_inferior): Use get_thread_regcache
13969 instead of get_current_regcache.
13970
ff47f4f0
TT
139712020-01-14 Tom Tromey <tom@tromey.com>
13972
13973 PR symtab/12535:
13974 * python/python.c (gdbpy_decode_line): Treat empty string the same
13975 as no argument.
13976
975f45b7
TT
139772020-01-14 Tom Tromey <tom@tromey.com>
13978
13979 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13980
25e57356
TT
139812020-01-14 Tom Tromey <tom@tromey.com>
13982
13983 * nat/linux-btrace.c: Don't include <config.h>.
13984 * nat/linux-ptrace.c: Don't include <config.h>.
13985 * nat/x86-linux-dregs.c: Don't include <config.h>.
13986
05ea2a05
TT
139872020-01-14 Tom Tromey <tom@tromey.com>
13988
13989 * configure: Rebuild.
13990 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13991
01027315
TT
139922020-01-14 Tom Tromey <tom@tromey.com>
13993
13994 * nat/x86-linux-dregs.c: Include configh.h.
13995 * nat/linux-ptrace.c: Include configh.h.
13996 * nat/linux-btrace.c: Include configh.h.
13997 * defs.h: Include config.h, bfd.h.
13998 * configure.ac: Don't source common.host.
13999 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14000 * configure: Rebuild.
14001 * acinclude.m4: Update path.
14002 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14003 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14004 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14005 (CLIBS): Add LIBSUPPORT.
14006 (CDEPS): Likewise.
14007 (COMMON_SFILES): Remove gdbsupport files.
14008 (HFILES_NO_SRCDIR): Likewise.
14009 (stamp-version): Update path to create-version.sh.
14010 (ALLDEPFILES): Remove gdbsupport files.
14011
b2ceabe8
TT
140122020-01-14 Tom Tromey <tom@tromey.com>
14013
14014 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14015 USE_WIN32API when needed.
14016 * configure.ac (USE_WIN32API): Don't define.
14017 (WIN32LIBS): Use WIN32APILIBS.
14018 * configure: Rebuild.
14019
25c51f71
TT
140202020-01-14 Tom Tromey <tom@tromey.com>
14021
14022 * configure: Rebuild.
14023 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14024
717c684d
BE
140252020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14026
14027 * skip.c (skip_function_command): Make skip w/o arguments use the
14028 name of the inlined function if pc is inside any inlined function.
14029
7da6a5b9
LM
140302020-01-14 Luis Machado <luis.machado@linaro.org>
14031
14032 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14033 * infrun.c (resume_1): Likewise.
14034 (handle_inferior_event): Remove stale comment.
14035 * linux-nat.c (linux_nat_target::resume): Update comments.
14036 (save_stop_reason): Likewise.
14037 (linux_nat_filter_event): Likewise.
14038 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14039
44e4c775
AB
140402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14041
14042 * elfread.c (record_minimal_symbol): Set section index to 0 for
14043 non-allocatable sections.
14044
18a8505e
AT
14045
140462020-01-13 Ali Tamur <tamur@google.com>
14047
14048 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14049 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14050 to gdb::optional. Update comments.
14051 (dwo_file): Update comments.
14052 (read_attribute): Update API to take an additional out parameter,
14053 need_reprocess. This is used to mark attributes that need other
14054 attributes (e.g. str_offsets_base) for correct computation which may not
14055 have been read yet.
14056 (read_attribute_reprocess): New function declaration.
14057 (read_addr_index): Likewise.
14058 (read_dwo_str_index): Likewise.
14059 (read_stub_str_index): Likewise.
14060 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14061 (lookup_addr_base): New function definition.
14062 (lookup_ranges_base): Likewise.
14063 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14064 lookup_ranges_base.
14065 (init_cutu_and_read_dies): Update comments.
14066 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14067 unit. This is used to inherit parent's str_offsets_base and addr_base.
14068 Update comments.
14069 (init_cutu_and_read_dies_simple): Reflect API changes.
14070 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14071 (create_cus_hash_table): Change API to take parent compile unit.
14072 Reflect API changes.
14073 (open_and_init_dwo_file): Reflect API changes.
14074 (dwarf2_get_pc_bounds): Update comments.
14075 (dwarf2_record_block_ranges): Likewise.
14076 (read_full_die_1): Change implementation to reprocess attributes that
14077 need str_offsets_base and addr_base.
14078 (partial_die_info::read): Likewise.
14079 (read_attribute_reprocess): New function definition.
14080 (read_attribute_value): Change API to take an additional out parameter,
14081 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14082 when a non-dwo compile unit has index based attributes.
14083 (read_attribute): Reflect API changes.
14084 (read_addr_index_1): Reflect API changes. Update comments.
14085 (dwarf2_read_addr_index_data): Reflect API changes.
14086 (dwarf2_read_addr_index): Likewise.
14087 (read_str_index): Change API and implementation. This becomes a helper
14088 to be used by the new string index related methods. Update error
14089 message and comments.
14090 (read_dwo_str_index): New function definition.
14091 (read_stub_str_index): Likewise.
14092 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14093 * symfile.h (dwarf2_debug_sections): Likewise.
14094 * xcoffread.c (dwarf2_debug_sections): Likewise.
14095
0cac9354
SM
140962020-01-13 Simon Marchi <simon.marchi@efficios.com>
14097
14098 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14099 core_reg_sect type to gdb_byte *.
14100 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14101 * cris-tdep.c (fetch_core_registers): Likewise.
14102 * corelow.c (core_target::get_core_register_section): Change
14103 type of `contents` to gdb::byte_vector.
14104
9a6d629c
AB
141052020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14106
14107 * tui/tui-wingeneral.c (box_win): Position the title in the center
14108 of the border.
14109
d8b2f9e3
SM
141102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14111
14112 * corelow.c (core_target::get_core_register_section): Use
14113 std::vector instead of alloca.
14114
bb564c58
SM
141152020-01-13 Simon Marchi <simon.marchi@efficios.com>
14116
14117 * warning.m4: Add -Wmissing-declarations to build_warnings.
14118 * configure: Re-generate.
14119
6b366111
SM
141202020-01-13 Simon Marchi <simon.marchi@efficios.com>
14121
14122 * python/python.c (init__gdb_module): Add declaration.
14123
6c265988
SM
141242020-01-13 Simon Marchi <simon.marchi@efficios.com>
14125
14126 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14127 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14128 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14129 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14130 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14131 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14132 * ada-exp.y (_initialize_ada_exp): Add declaration.
14133 * ada-lang.c (_initialize_ada_language): Add declaration.
14134 * ada-tasks.c (_initialize_tasks): Add declaration.
14135 * agent.c (_initialize_agent): Add declaration.
14136 * aix-thread.c (_initialize_aix_thread): Add declaration.
14137 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14138 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14139 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14140 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14141 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14142 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14143 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14144 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14145 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14146 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14147 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14148 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14149 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14150 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14151 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14152 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14153 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14154 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14155 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14156 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14157 * annotate.c (_initialize_annotate): Add declaration.
14158 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14159 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14160 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14161 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14162 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14163 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14164 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14165 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14166 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14167 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14168 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14169 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14170 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14171 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14172 * auto-load.c (_initialize_auto_load): Add declaration.
14173 * auxv.c (_initialize_auxv): Add declaration.
14174 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14175 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14176 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14177 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14178 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14179 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14180 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14181 * breakpoint.c (_initialize_breakpoint): Add declaration.
14182 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14183 * btrace.c (_initialize_btrace): Add declaration.
14184 * charset.c (_initialize_charset): Add declaration.
14185 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14186 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14187 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14188 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14189 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14190 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14191 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14192 * coffread.c (_initialize_coffread): Add declaration.
14193 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14194 * compile/compile.c (_initialize_compile): Add declaration.
14195 * complaints.c (_initialize_complaints): Add declaration.
14196 * completer.c (_initialize_completer): Add declaration.
14197 * copying.c (_initialize_copying): Add declaration.
14198 * corefile.c (_initialize_core): Add declaration.
14199 * corelow.c (_initialize_corelow): Add declaration.
14200 * cp-abi.c (_initialize_cp_abi): Add declaration.
14201 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14202 * cp-support.c (_initialize_cp_support): Add declaration.
14203 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14204 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14205 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14206 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14207 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14208 * ctfread.c (_initialize_ctfread): Add declaration.
14209 * d-lang.c (_initialize_d_language): Add declaration.
14210 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14211 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14212 * dbxread.c (_initialize_dbxread): Add declaration.
14213 * dcache.c (_initialize_dcache): Add declaration.
14214 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14215 * disasm.c (_initialize_disasm): Add declaration.
14216 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14217 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14218 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14219 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14220 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14221 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14222 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14223 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14224 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14225 * elfread.c (_initialize_elfread): Add declaration.
14226 * exec.c (_initialize_exec): Add declaration.
14227 * extension.c (_initialize_extension): Add declaration.
14228 * f-lang.c (_initialize_f_language): Add declaration.
14229 * f-valprint.c (_initialize_f_valprint): Add declaration.
14230 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14231 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14232 * filesystem.c (_initialize_filesystem): Add declaration.
14233 * findcmd.c (_initialize_mem_search): Add declaration.
14234 * findvar.c (_initialize_findvar): Add declaration.
14235 * fork-child.c (_initialize_fork_child): Add declaration.
14236 * frame-base.c (_initialize_frame_base): Add declaration.
14237 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14238 * frame.c (_initialize_frame): Add declaration.
14239 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14240 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14241 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14242 * gcore.c (_initialize_gcore): Add declaration.
14243 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14244 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14245 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14246 * gdbarch.c (_initialize_gdbarch): Add declaration.
14247 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14248 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14249 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14250 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14251 * go-lang.c (_initialize_go_language): Add declaration.
14252 * go32-nat.c (_initialize_go32_nat): Add declaration.
14253 * guile/guile.c (_initialize_guile): Add declaration.
14254 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14255 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14256 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14257 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14258 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14259 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14260 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14261 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14262 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14263 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14264 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14265 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14266 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14267 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14268 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14269 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14270 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14271 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14272 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14273 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14274 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14275 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14276 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14277 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14278 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14279 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14280 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14281 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14282 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14283 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14284 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14285 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14286 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14287 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14288 * infcall.c (_initialize_infcall): Add declaration.
14289 * infcmd.c (_initialize_infcmd): Add declaration.
14290 * inflow.c (_initialize_inflow): Add declaration.
14291 * infrun.c (_initialize_infrun): Add declaration.
14292 * interps.c (_initialize_interpreter): Add declaration.
14293 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14294 * jit.c (_initialize_jit): Add declaration.
14295 * language.c (_initialize_language): Add declaration.
14296 * linux-fork.c (_initialize_linux_fork): Add declaration.
14297 * linux-nat.c (_initialize_linux_nat): Add declaration.
14298 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14299 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14300 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14301 * m2-lang.c (_initialize_m2_language): Add declaration.
14302 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14303 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14304 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14305 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14306 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14307 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14308 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14309 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14310 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14311 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14312 * machoread.c (_initialize_machoread): Add declaration.
14313 * macrocmd.c (_initialize_macrocmd): Add declaration.
14314 * macroscope.c (_initialize_macroscope): Add declaration.
14315 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14316 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14317 * maint.c (_initialize_maint_cmds): Add declaration.
14318 * mdebugread.c (_initialize_mdebugread): Add declaration.
14319 * memattr.c (_initialize_mem): Add declaration.
14320 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14321 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14322 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14323 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14324 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14325 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14326 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14327 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14328 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14329 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14330 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14331 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14332 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14333 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14334 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14335 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14336 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14337 * mipsread.c (_initialize_mipsread): Add declaration.
14338 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14339 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14340 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14341 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14342 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14343 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14344 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14345 * nto-procfs.c (_initialize_procfs): Add declaration.
14346 * objc-lang.c (_initialize_objc_language): Add declaration.
14347 * observable.c (_initialize_observer): Add declaration.
14348 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14349 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14350 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14351 * osabi.c (_initialize_gdb_osabi): Add declaration.
14352 * osdata.c (_initialize_osdata): Add declaration.
14353 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14354 * parse.c (_initialize_parse): Add declaration.
14355 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14356 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14357 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14358 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14359 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14360 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14361 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14362 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14363 * printcmd.c (_initialize_printcmd): Add declaration.
14364 * probe.c (_initialize_probe): Add declaration.
14365 * proc-api.c (_initialize_proc_api): Add declaration.
14366 * proc-events.c (_initialize_proc_events): Add declaration.
14367 * proc-service.c (_initialize_proc_service): Add declaration.
14368 * procfs.c (_initialize_procfs): Add declaration.
14369 * producer.c (_initialize_producer): Add declaration.
14370 * psymtab.c (_initialize_psymtab): Add declaration.
14371 * python/python.c (_initialize_python): Add declaration.
14372 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14373 * record-btrace.c (_initialize_record_btrace): Add declaration.
14374 * record-full.c (_initialize_record_full): Add declaration.
14375 * record.c (_initialize_record): Add declaration.
14376 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14377 * regcache.c (_initialize_regcache): Add declaration.
14378 * reggroups.c (_initialize_reggroup): Add declaration.
14379 * remote-notif.c (_initialize_notif): Add declaration.
14380 * remote-sim.c (_initialize_remote_sim): Add declaration.
14381 * remote.c (_initialize_remote): Add declaration.
14382 * reverse.c (_initialize_reverse): Add declaration.
14383 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14384 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14385 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14386 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14387 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14388 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14389 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14390 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14391 Add declaration.
14392 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14393 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14394 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14395 * rust-exp.y (_initialize_rust_exp): Add declaration.
14396 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14397 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14398 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14399 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14400 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14401 * score-tdep.c (_initialize_score_tdep): Add declaration.
14402 * ser-go32.c (_initialize_ser_dos): Add declaration.
14403 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14404 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14405 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14406 * ser-uds.c (_initialize_ser_socket): Add declaration.
14407 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14408 * serial.c (_initialize_serial): Add declaration.
14409 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14410 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14411 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14412 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14413 * skip.c (_initialize_step_skip): Add declaration.
14414 * sol-thread.c (_initialize_sol_thread): Add declaration.
14415 * solib-aix.c (_initialize_solib_aix): Add declaration.
14416 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14417 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14418 * solib-frv.c (_initialize_frv_solib): Add declaration.
14419 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14420 * solib-target.c (_initialize_solib_target): Add declaration.
14421 * solib.c (_initialize_solib): Add declaration.
14422 * source-cache.c (_initialize_source_cache): Add declaration.
14423 * source.c (_initialize_source): Add declaration.
14424 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14425 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14426 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14427 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14428 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14429 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14430 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14431 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14432 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14433 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14434 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14435 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14436 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14437 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14438 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14439 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14440 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14441 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14442 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14443 * stabsread.c (_initialize_stabsread): Add declaration.
14444 * stack.c (_initialize_stack): Add declaration.
14445 * stap-probe.c (_initialize_stap_probe): Add declaration.
14446 * std-regs.c (_initialize_frame_reg): Add declaration.
14447 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14448 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14449 * symfile.c (_initialize_symfile): Add declaration.
14450 * symmisc.c (_initialize_symmisc): Add declaration.
14451 * symtab.c (_initialize_symtab): Add declaration.
14452 * target.c (_initialize_target): Add declaration.
14453 * target-connection.c (_initialize_target_connection): Add
14454 declaration.
14455 * target-dcache.c (_initialize_target_dcache): Add declaration.
14456 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14457 * thread.c (_initialize_thread): Add declaration.
14458 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14459 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14460 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14461 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14462 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14463 * tracectf.c (_initialize_ctf): Add declaration.
14464 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14465 * tracefile.c (_initialize_tracefile): Add declaration.
14466 * tracepoint.c (_initialize_tracepoint): Add declaration.
14467 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14468 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14469 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14470 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14471 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14472 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14473 * tui/tui.c (_initialize_tui): Add declaration.
14474 * typeprint.c (_initialize_typeprint): Add declaration.
14475 * ui-style.c (_initialize_ui_style): Add declaration.
14476 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14477 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14478 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14479 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14480 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14481 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14482 * unittests/filtered_iterator-selftests.c
14483 (_initialize_filtered_iterator_selftests): Add declaration.
14484 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14485 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14486 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14487 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14488 * unittests/main-thread-selftests.c
14489 (_initialize_main_thread_selftests): Add declaration.
14490 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14491 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14492 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14493 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14494 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14495 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14496 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14497 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14498 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14499 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14500 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14501 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14502 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14503 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14504 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14505 declaration.
14506 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14507 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14508 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14509 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14510 * user-regs.c (_initialize_user_regs): Add declaration.
14511 * utils.c (_initialize_utils): Add declaration.
14512 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14513 * valops.c (_initialize_valops): Add declaration.
14514 * valprint.c (_initialize_valprint): Add declaration.
14515 * value.c (_initialize_values): Add declaration.
14516 * varobj.c (_initialize_varobj): Add declaration.
14517 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14518 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14519 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14520 * windows-nat.c (_initialize_windows_nat): Add declaration.
14521 (_initialize_check_for_gdb_ini): Add declaration.
14522 (_initialize_loadable): Add declaration.
14523 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14524 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14525 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14526 * xcoffread.c (_initialize_xcoffread): Add declaration.
14527 * xml-support.c (_initialize_xml_support): Add declaration.
14528 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14529 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14530 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14531 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14532
e2de1eec
SM
145332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14534
14535 * regformats/regdat.sh: Generate declaration for init function.
14536
e0037b4c
SM
145372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14538
14539 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14540 up.
14541 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14542 close_one_inferior>: New methods.
14543 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14544 pass down target to find_inferior_pid.
14545 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14546 Pass down target to find_inferior_ptid.
14547 (gdbsim_target::create_inferior): Pass down target to
14548 add_thread_silent.
14549 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14550 target down to find_inferior_ptid and switch_to_thread.
14551 (gdbsim_target::close): Update to call close_one_inferior.
14552 (struct resume_data): Remove.
14553 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14554 directly, rather than through a void pointer.
14555 (gdbsim_target::resume): Update to call resume_one_inferior.
14556
58920b5b
SM
145572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14558
14559 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14560
4ec89149
PA
145612020-01-12 Pedro Alves <palves@redhat.com>
14562
14563 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14564 directly for the current inferior instead of
14565 discard_all_inferiors.
14566 (discard_all_inferiors): Delete.
14567
7c392d1d
TT
145682020-01-11 Tom Tromey <tom@tromey.com>
14569
14570 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14571 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14572 deprecated_safe_get_selected_frame.
14573
d9ebdab7
TBA
145742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14575
14576 * inferior.c (print_inferior): Switch inferior before printing it.
14577
f3c469b9
PA
145782020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14579 Pedro Alves <palves@redhat.com>
14580
14581 * progspace-and-thread.c (switch_to_program_space_and_thread):
14582 Assert there's an inferior for PSPACE. Use
14583 switch_to_inferior_no_thread to switch the inferior too.
14584 * progspace.c (program_space::~program_space): Call
14585 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14586 (program_space::free_all_objfiles): Don't call clear_symtab_users
14587 here.
14588 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14589
65c574f6
PA
145902020-01-10 Pedro Alves <palves@redhat.com>
14591
14592 * NEWS: Mention multi-target debugging, "info connections", and
14593 "add-inferior -no-connection".
14594
2f4fcf00
PA
145952020-01-10 Pedro Alves <palves@redhat.com>
14596
14597 * infrun.c: Include "target-connection.h".
14598 (check_multi_target_resumption): New.
14599 (proceed): Call it.
14600 * target-connection.c (make_target_connection_string): Make
14601 extern.
14602 * target-connection.h (make_target_connection_string): Declare.
14603
121b3efd
PA
146042020-01-10 Pedro Alves <palves@redhat.com>
14605
14606 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14607 * inferior.c (uiout_field_connection): New function.
14608 (print_inferior): Add new "connection-id" column.
14609 (add_inferior_command): Show connection number/string of added
14610 inferior.
14611 * process-stratum-target.h
14612 (process_stratum_target::connection_string): New virtual method.
14613 (process_stratum_target::connection_number): New field.
14614 * remote.c (remote_target::connection_string): New override.
14615 * target-connection.c: New file.
14616 * target-connection.h: New file.
14617 * target.c (decref_target): Remove process_stratum targets from
14618 the connection list.
14619 (target_stack::push): Add process_stratum targets to the
14620 connection list.
14621
4f837581
PA
146222020-01-10 Pedro Alves <palves@redhat.com>
14623
14624 Revert:
14625 2016-04-12 Pedro Alves <palves@redhat.com>
14626 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14627 Remove references to name.
14628 * serial.h (struct serial) <name>: Delete.
14629
f4ec508e
PA
146302020-01-10 Pedro Alves <palves@redhat.com>
14631
14632 * gdbarch-selftests.c (register_to_value_test): Remove "target
14633 already pushed" check.
14634
5b6d1e4f
PA
146352020-01-10 Pedro Alves <palves@redhat.com>
14636 John Baldwin <jhb@FreeBSD.org>
14637
14638 * aarch64-linux-nat.c
14639 (aarch64_linux_nat_target::thread_architecture): Adjust.
14640 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14641 (task_command_1): Likewise.
14642 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14643 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14644 (aix_thread_target::store_registers)
14645 (aix_thread_target::thread_alive): Adjust.
14646 * amd64-fbsd-tdep.c: Include "inferior.h".
14647 (amd64fbsd_get_thread_local_address): Pass down target.
14648 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14649 thread's gdbarch instead of target_gdbarch.
14650 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14651 get_last_target_status.
14652 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14653 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14654 inferiors.
14655 (update_inserted_breakpoint_locations): Skip if inferiors with no
14656 execution.
14657 (update_global_location_list): When handling moribund locations,
14658 find representative inferior for location's pspace, and use thread
14659 count of its process_stratum target.
14660 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14661 * bsd-uthread.c (bsd_uthread_target::wait): Use
14662 as_process_stratum_target and adjust thread_change_ptid and
14663 add_thread calls.
14664 (bsd_uthread_target::update_thread_list): Use
14665 as_process_stratum_target and adjust find_thread_ptid,
14666 thread_change_ptid and add_thread calls.
14667 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14668 find_thread_ptid call.
14669 * corelow.c (add_to_thread_list): Adjust add_thread call.
14670 (core_target_open): Adjust add_thread_silent and thread_count
14671 calls.
14672 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14673 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14674 * event-top.c (async_disconnect): Pop targets from all inferiors.
14675 * exec.c (add_target_sections): Push exec target on all inferiors
14676 sharing the program space.
14677 (remove_target_sections): Remove the exec target from all
14678 inferiors sharing the program space.
14679 (exec_on_vfork): New.
14680 * exec.h (exec_on_vfork): Declare.
14681 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14682 Pass it down.
14683 (fbsd_nat_target::update_thread_list): Adjust.
14684 (fbsd_nat_target::resume): Adjust.
14685 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14686 down.
14687 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14688 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14689 get_thread_arch_regcache call.
14690 * fork-child.c (gdb_startup_inferior): Pass target down to
14691 startup_inferior and set_executing.
14692 * gdbthread.h (struct process_stratum_target): Forward declare.
14693 (add_thread, add_thread_silent, add_thread_with_info)
14694 (in_thread_list): Add process_stratum_target parameter.
14695 (find_thread_ptid(inferior*, ptid_t)): New overload.
14696 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14697 parameter.
14698 (all_threads()): Delete overload.
14699 (all_threads, all_non_exited_threads): Add process_stratum_target
14700 parameter.
14701 (all_threads_safe): Use brace initialization.
14702 (thread_count): Add process_stratum_target parameter.
14703 (set_resumed, set_running, set_stop_requested, set_executing)
14704 (threads_are_executing, finish_thread_state): Add
14705 process_stratum_target parameter.
14706 (switch_to_thread): Use is_current_thread.
14707 * i386-fbsd-tdep.c: Include "inferior.h".
14708 (i386fbsd_get_thread_local_address): Pass down target.
14709 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14710 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14711 have_inferiors check.
14712 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14713 (inf_ptrace_target::attach): Adjust.
14714 * infcall.c (run_inferior_call): Adjust.
14715 * infcmd.c (run_command_1): Pass target to
14716 scoped_finish_thread_state.
14717 (proceed_thread_callback): Skip inferiors with no execution.
14718 (continue_command): Rename 'all_threads' local to avoid hiding
14719 'all_threads' function. Adjust get_last_target_status call.
14720 (prepare_one_step): Adjust set_running call.
14721 (signal_command): Use user_visible_resume_target. Compare thread
14722 pointers instead of inferior_ptid.
14723 (info_program_command): Adjust to pass down target.
14724 (attach_command): Mark target's 'thread_executing' flag.
14725 (stop_current_target_threads_ns): New, factored out from ...
14726 (interrupt_target_1): ... this. Switch inferior before making
14727 target calls.
14728 * inferior-iter.h
14729 (struct all_inferiors_iterator, struct all_inferiors_range)
14730 (struct all_inferiors_safe_range)
14731 (struct all_non_exited_inferiors_range): Filter on
14732 process_stratum_target too. Remove explicit.
14733 * inferior.c (inferior::inferior): Push dummy target on target
14734 stack.
14735 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14736 Add process_stratum_target parameter, and pass it down.
14737 (have_live_inferiors): Adjust.
14738 (switch_to_inferior_and_push_target): New.
14739 (add_inferior_command, clone_inferior_command): Handle
14740 "-no-connection" parameter. Use
14741 switch_to_inferior_and_push_target.
14742 (_initialize_inferior): Mention "-no-connection" option in
14743 the help of "add-inferior" and "clone-inferior" commands.
14744 * inferior.h: Include "process-stratum-target.h".
14745 (interrupt_target_1): Use bool.
14746 (struct inferior) <push_target, unpush_target, target_is_pushed,
14747 find_target_beneath, top_target, process_target, target_at,
14748 m_stack>: New.
14749 (discard_all_inferiors): Delete.
14750 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14751 (all_inferiors, all_non_exited_inferiors): Add
14752 process_stratum_target parameter.
14753 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14754 (target_last_proc_target): New global.
14755 (follow_fork_inferior): Push target on new inferior. Pass target
14756 to add_thread_silent. Call exec_on_vfork. Handle target's
14757 reference count.
14758 (follow_fork): Adjust get_last_target_status call. Also consider
14759 target.
14760 (follow_exec): Push target on new inferior.
14761 (struct execution_control_state) <target>: New field.
14762 (user_visible_resume_target): New.
14763 (do_target_resume): Call target_async.
14764 (resume_1): Set target's threads_executing flag. Consider resume
14765 target.
14766 (commit_resume_all_targets): New.
14767 (proceed): Also consider resume target. Skip threads of inferiors
14768 with no execution. Commit resumtion in all targets.
14769 (start_remote): Pass current inferior to wait_for_inferior.
14770 (infrun_thread_stop_requested): Consider target as well. Pass
14771 thread_info pointer to clear_inline_frame_state instead of ptid.
14772 (infrun_thread_thread_exit): Consider target as well.
14773 (random_pending_event_thread): New inferior parameter. Use it.
14774 (do_target_wait): Rename to ...
14775 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14776 down.
14777 (threads_are_resumed_pending_p, do_target_wait): New.
14778 (prepare_for_detach): Adjust calls.
14779 (wait_for_inferior): New inferior parameter. Handle it. Use
14780 do_target_wait_1 instead of do_target_wait.
14781 (fetch_inferior_event): Adjust. Switch to representative
14782 inferior. Pass target down.
14783 (set_last_target_status): Add process_stratum_target parameter.
14784 Save target in global.
14785 (get_last_target_status): Add process_stratum_target parameter and
14786 handle it.
14787 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14788 (context_switch): Check inferior_ptid == null_ptid before calling
14789 inferior_thread().
14790 (get_inferior_stop_soon): Pass down target.
14791 (wait_one): Rename to ...
14792 (poll_one_curr_target): ... this.
14793 (struct wait_one_event): New.
14794 (wait_one): New.
14795 (stop_all_threads): Adjust.
14796 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14797 event's target.
14798 (switch_back_to_stepped_thread): Also consider target.
14799 (print_stop_event): Update.
14800 (normal_stop): Update. Also consider the resume target.
14801 * infrun.h (wait_for_inferior): Remove declaration.
14802 (user_visible_resume_target): New declaration.
14803 (get_last_target_status, set_last_target_status): New
14804 process_stratum_target parameter.
14805 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14806 process_stratum_target parameter, and use it.
14807 (clear_inline_frame_state (thread_info*)): New.
14808 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14809 process_stratum_target parameter.
14810 (clear_inline_frame_state (thread_info*)): Declare.
14811 * linux-fork.c (delete_checkpoint_command): Pass target down to
14812 find_thread_ptid.
14813 (checkpoint_command): Adjust.
14814 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14815 instead of just tweaking inferior_ptid.
14816 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14817 (exit_lwp): Pass target down to find_thread_ptid.
14818 (attach_proc_task_lwp_callback): Pass target down to
14819 add_thread/set_running/set_executing.
14820 (linux_nat_target::attach): Pass target down to
14821 thread_change_ptid.
14822 (get_detach_signal): Pass target down to find_thread_ptid.
14823 Consider last target status's target.
14824 (linux_resume_one_lwp_throw, resume_lwp)
14825 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14826 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14827 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14828 (linux_nat_target::async_wait_fd): New.
14829 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14830 target down.
14831 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14832 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14833 * linux-thread-db.c (struct thread_db_info::process_target): New
14834 field.
14835 (add_thread_db_info): Save target.
14836 (get_thread_db_info): New process_stratum_target parameter. Also
14837 match target.
14838 (delete_thread_db_info): New process_stratum_target parameter.
14839 Also match target.
14840 (thread_from_lwp): Adjust to pass down target.
14841 (thread_db_notice_clone): Pass down target.
14842 (check_thread_db_callback): Pass down target.
14843 (try_thread_db_load_1): Always push the thread_db target.
14844 (try_thread_db_load, record_thread): Pass target down.
14845 (thread_db_target::detach): Pass target down. Always unpush the
14846 thread_db target.
14847 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14848 target down. Always unpush the thread_db target.
14849 (find_new_threads_callback, thread_db_find_new_threads_2)
14850 (thread_db_target::update_thread_list): Pass target down.
14851 (thread_db_target::pid_to_str): Pass current inferior down.
14852 (thread_db_target::get_thread_local_address): Pass target down.
14853 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14854 target down.
14855 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14856 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14857 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14858 (procfs_init_inferior): Rename to ...
14859 (procfs_target::procfs_init_inferior): ... this and adjust.
14860 (procfs_target::create_inferior, procfs_notice_thread)
14861 (procfs_do_thread_registers): Adjust.
14862 * ppc-fbsd-tdep.c: Include "inferior.h".
14863 (ppcfbsd_get_thread_local_address): Pass down target.
14864 * proc-service.c (ps_xfer_memory): Switch current inferior and
14865 program space as well.
14866 (get_ps_regcache): Pass target down.
14867 * process-stratum-target.c
14868 (process_stratum_target::thread_address_space)
14869 (process_stratum_target::thread_architecture): Pass target down.
14870 * process-stratum-target.h
14871 (process_stratum_target::threads_executing): New field.
14872 (as_process_stratum_target): New.
14873 * ravenscar-thread.c
14874 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14875 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14876 down.
14877 * record-btrace.c (record_btrace_target::info_record): Adjust.
14878 (record_btrace_target::record_method)
14879 (record_btrace_target::record_is_replaying)
14880 (record_btrace_target::fetch_registers)
14881 (get_thread_current_frame_id, record_btrace_target::resume)
14882 (record_btrace_target::wait, record_btrace_target::stop): Pass
14883 target down.
14884 * record-full.c (record_full_wait_1): Switch to event thread.
14885 Pass target down.
14886 * regcache.c (regcache::regcache)
14887 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14888 process_stratum_target parameter and handle it.
14889 (current_thread_target): New global.
14890 (get_thread_regcache): Add process_stratum_target parameter and
14891 handle it. Switch inferior before calling target method.
14892 (get_thread_regcache): Pass target down.
14893 (get_thread_regcache_for_ptid): Pass target down.
14894 (registers_changed_ptid): Add process_stratum_target parameter and
14895 handle it.
14896 (registers_changed_thread, registers_changed): Pass target down.
14897 (test_get_thread_arch_aspace_regcache): New.
14898 (current_regcache_test): Define a couple local test_target_ops
14899 instances and use them for testing.
14900 (readwrite_regcache): Pass process_stratum_target parameter.
14901 (cooked_read_test, cooked_write_test): Pass mock_target down.
14902 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14903 (get_thread_arch_aspace_regcache): Add process_stratum_target
14904 parameter.
14905 (regcache::target): New method.
14906 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14907 (regcache::registers_changed_ptid): Add process_stratum_target
14908 parameter.
14909 (regcache::m_target): New field.
14910 (registers_changed_ptid): Add process_stratum_target parameter.
14911 * remote.c (remote_state::supports_vCont_probed): New field.
14912 (remote_target::async_wait_fd): New method.
14913 (remote_unpush_and_throw): Add remote_target parameter.
14914 (get_current_remote_target): Adjust.
14915 (remote_target::remote_add_inferior): Push target.
14916 (remote_target::remote_add_thread)
14917 (remote_target::remote_notice_new_inferior)
14918 (get_remote_thread_info): Pass target down.
14919 (remote_target::update_thread_list): Skip threads of inferiors
14920 bound to other targets. (remote_target::close): Don't discard
14921 inferiors. (remote_target::add_current_inferior_and_thread)
14922 (remote_target::process_initial_stop_replies)
14923 (remote_target::start_remote)
14924 (remote_target::remote_serial_quit_handler): Pass down target.
14925 (remote_target::remote_unpush_target): New remote_target
14926 parameter. Unpush the target from all inferiors.
14927 (remote_target::remote_unpush_and_throw): New remote_target
14928 parameter. Pass it down.
14929 (remote_target::open_1): Check whether the current inferior has
14930 execution instead of checking whether any inferior is live. Pass
14931 target down.
14932 (remote_target::remote_detach_1): Pass down target. Use
14933 remote_unpush_target.
14934 (extended_remote_target::attach): Pass down target.
14935 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14936 (remote_target::append_resumption): Pass down target.
14937 (remote_target::append_pending_thread_resumptions)
14938 (remote_target::remote_resume_with_hc, remote_target::resume)
14939 (remote_target::commit_resume): Pass down target.
14940 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14941 (remote_target::interrupt_query)
14942 (remote_target::remove_new_fork_children)
14943 (remote_target::check_pending_events_prevent_wildcard_vcont)
14944 (remote_target::remote_parse_stop_reply)
14945 (remote_target::process_stop_reply): Pass down target.
14946 (first_remote_resumed_thread): New remote_target parameter. Pass
14947 it down.
14948 (remote_target::wait_as): Pass down target.
14949 (unpush_and_perror): New remote_target parameter. Pass it down.
14950 (remote_target::readchar, remote_target::remote_serial_write)
14951 (remote_target::getpkt_or_notif_sane_1)
14952 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14953 down target.
14954 (remote_target::mourn_inferior): Pass down target. Use
14955 remote_unpush_target.
14956 (remote_target::core_of_thread)
14957 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14958 (remote_target::pid_to_exec_file)
14959 (remote_target::thread_handle_to_thread_info): Pass down target.
14960 (remote_target::async_wait_fd): New.
14961 * riscv-fbsd-tdep.c: Include "inferior.h".
14962 (riscv_fbsd_get_thread_local_address): Pass down target.
14963 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14964 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14965 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14966 Adjust.
14967 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14968 * solib-svr4.c (enable_break): Pass down target.
14969 * spu-multiarch.c (parse_spufs_run): Pass down target.
14970 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14971 * target-delegates.c: Regenerate.
14972 * target.c (g_target_stack): Delete.
14973 (current_top_target): Return the current inferior's top target.
14974 (target_has_execution_1): Refer to the passed-in inferior's top
14975 target.
14976 (target_supports_terminal_ours): Check whether the initial
14977 inferior was already created.
14978 (decref_target): New.
14979 (target_stack::push): Incref/decref the target.
14980 (push_target, push_target, unpush_target): Adjust.
14981 (target_stack::unpush): Defref target.
14982 (target_is_pushed): Return bool. Adjust to refer to the current
14983 inferior's target stack.
14984 (dispose_inferior): Delete, and inline parts ...
14985 (target_preopen): ... here. Only dispose of the current inferior.
14986 (target_detach): Hold strong target reference while detaching.
14987 Pass target down.
14988 (target_thread_name): Add assertion.
14989 (target_resume): Pass down target.
14990 (target_ops::beneath, find_target_at): Adjust to refer to the
14991 current inferior's target stack.
14992 (get_dummy_target): New.
14993 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14994 has a thread running.
14995 (initialize_targets): Rename to ...
14996 (_initialize_target): ... this.
14997 * target.h: Include "gdbsupport/refcounted-object.h".
14998 (struct target_ops): Inherit refcounted_object.
14999 (target_ops::shortname, target_ops::longname): Make const.
15000 (target_ops::async_wait_fd): New method.
15001 (decref_target): Declare.
15002 (struct target_ops_ref_policy): New.
15003 (target_ops_ref): New typedef.
15004 (get_dummy_target): Declare function.
15005 (target_is_pushed): Return bool.
15006 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15007 (all_matching_threads_iterator::all_matching_threads_iterator):
15008 Handle filter target.
15009 * thread-iter.h (struct all_matching_threads_iterator, struct
15010 all_matching_threads_range, class all_non_exited_threads_range):
15011 Filter by target too. Remove explicit.
15012 * thread.c (threads_executing): Delete.
15013 (inferior_thread): Pass down current inferior.
15014 (clear_thread_inferior_resources): Pass down thread pointer
15015 instead of ptid_t.
15016 (add_thread_silent, add_thread_with_info, add_thread): Add
15017 process_stratum_target parameter. Use it for thread and inferior
15018 searches.
15019 (is_current_thread): New.
15020 (thread_info::deletable): Use it.
15021 (find_thread_ptid, thread_count, in_thread_list)
15022 (thread_change_ptid, set_resumed, set_running): New
15023 process_stratum_target parameter. Pass it down.
15024 (set_executing): New process_stratum_target parameter. Pass it
15025 down. Adjust reference to 'threads_executing'.
15026 (threads_are_executing): New process_stratum_target parameter.
15027 Adjust reference to 'threads_executing'.
15028 (set_stop_requested, finish_thread_state): New
15029 process_stratum_target parameter. Pass it down.
15030 (switch_to_thread): Also match inferior.
15031 (switch_to_thread): New process_stratum_target parameter. Pass it
15032 down.
15033 (update_threads_executing): Reimplement.
15034 * top.c (quit_force): Pop targets from all inferior.
15035 (gdb_init): Don't call initialize_targets.
15036 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15037 Declare.
15038 (windows_add_thread, windows_delete_thread): Adjust.
15039 (get_windows_debug_event): Rename to ...
15040 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15041 * tracefile-tfile.c (tfile_target_open): Pass down target.
15042 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15043 Forward declare.
15044 (switch_to_thread): Add process_stratum_target parameter.
15045 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15046 parameter. Use it.
15047 (mi_on_resume): Pass target down.
15048 * nat/fork-inferior.c (startup_inferior): Add
15049 process_stratum_target parameter. Pass it down.
15050 * nat/fork-inferior.h (startup_inferior): Add
15051 process_stratum_target parameter.
15052 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15053
75c6c844
PA
150542020-01-10 Pedro Alves <palves@redhat.com>
15055
15056 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15057 directly. Instead find the first thread in the thread list and
15058 use switch_to_thread.
15059
78f2c40a
PA
150602020-01-10 Pedro Alves <palves@redhat.com>
15061
15062 * remote.c (remote_target::remote_add_inferior): Don't bind a
15063 process to the current inferior if the current inferior is already
15064 bound to a process.
15065
e7af6c70
TBA
150662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15067 Pedro Alves <palves@redhat.com>
15068
15069 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15070 If no process is specified, return null_ptid instead of
15071 inferior_ptid.
15072 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15073 TARGET_WAITKIND_SIGNALLED with no pid.
15074
31ba933e
PA
150752020-01-10 Pedro Alves <palves@redhat.com>
15076
15077 * remote.c (first_remote_resumed_thread): New.
15078 (remote_target::wait_as): Use it as default event_ptid instead of
15079 inferior_ptid.
15080
735fc2ca
PA
150812020-01-10 Pedro Alves <palves@redhat.com>
15082
15083 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15084
c17e02e1
PA
150852020-01-10 Pedro Alves <palves@redhat.com>
15086
15087 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15088 not -1.
15089
ab1ddbcf
PA
150902020-01-10 Pedro Alves <palves@redhat.com>
15091
15092 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15093 ptid to get_last_target_status.
15094 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15095 ptid to get_last_target_status.
15096 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15097 get_last_target_status.
15098 (info_program_command): Don't pass a target_waitstatus to
15099 get_last_target_status.
15100 * infrun.c (init_wait_for_inferior): Use
15101 nullify_last_target_wait_ptid.
15102 (get_last_target_status): Handle nullptr arguments.
15103 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15104 (print_stop_event): Don't pass a ptid to get_last_target_status.
15105 (normal_stop): Don't pass a ptid to get_last_target_status.
15106 * infrun.h (get_last_target_status, set_last_target_status): Move
15107 comments here and update.
15108 (nullify_last_target_wait_ptid): Declare.
15109 * linux-fork.c (fork_load_infrun_state): Remove local extern
15110 declaration of nullify_last_target_wait_ptid.
15111 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15112 to get_last_target_status.
15113
f3f8ece4
PA
151142020-01-10 Pedro Alves <palves@redhat.com>
15115
15116 * gdbthread.h (scoped_restore_current_thread)
15117 <dont_restore, restore, m_dont_restore>: Declare.
15118 * thread.c (thread_alive): Add assertion. Return bool.
15119 (switch_to_thread_if_alive): New.
15120 (prune_threads): Switch inferior/thread.
15121 (print_thread_info_1): Switch thread before calling target methods.
15122 (scoped_restore_current_thread::restore): New, factored out from
15123 ...
15124 (scoped_restore_current_thread::~scoped_restore_current_thread):
15125 ... this.
15126 (scoped_restore_current_thread::scoped_restore_current_thread):
15127 Add assertion.
15128 (thread_apply_all_command, thread_select): Use
15129 switch_to_thread_if_alive.
15130 * infrun.c (proceed, restart_threads, handle_signal_stop)
15131 (switch_back_to_stepped_thread): Switch current thread before
15132 calling target methods.
15133
db2d40f7
PA
151342020-01-10 Pedro Alves <palves@redhat.com>
15135
15136 * inferior.c (switch_to_inferior_no_thread): New function,
15137 factored out from ...
15138 (inferior_command): ... here.
15139 * inferior.h (switch_to_inferior_no_thread): Declare.
15140 * mi/mi-main.c (run_one_inferior): Use
15141 switch_to_inferior_no_thread.
15142
bd420a2d
PA
151432020-01-10 Pedro Alves <palves@redhat.com>
15144
15145 * infcmd.c (kill_command): Remove dead code.
15146
ddf5db90
PA
151472020-01-10 Pedro Alves <palves@redhat.com>
15148
15149 * remote.c (remote_target::mourn_inferior): No longer check
15150 whether the target is running.
15151
5018ce90
PA
151522020-01-10 Pedro Alves <palves@redhat.com>
15153
15154 * corelow.c (core_target::has_execution): Change parameter type to
15155 inferior pointer.
15156 * inferior.c (number_of_live_inferiors): Use
15157 inferior::has_execution instead of target_has_execution_1.
15158 * inferior.h (inferior::has_execution): New.
15159 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15160 inferior::has_execution instead of target_has_execution_1.
15161 * process-stratum-target.c
15162 (process_stratum_target::has_execution): Change parameter type to
15163 inferior pointer. Check the inferior's PID instead of
15164 inferior_ptid.
15165 * process-stratum-target.h
15166 (process_stratum_target::has_execution): Change parameter type to
15167 inferior pointer.
15168 * record-full.c (record_full_core_target::has_execution): Change
15169 parameter type to inferior pointer.
15170 * target.c (target_has_execution_1): Change parameter type to
15171 inferior pointer.
15172 (target_has_execution_current): Adjust.
15173 * target.h (target_ops::has_execution): Change parameter type to
15174 inferior pointer.
15175 (target_has_execution_1): Change parameter type to inferior
15176 pointer. Change return type to bool.
15177 * tracefile.h (tracefile_target::has_execution): Change parameter
15178 type to inferior pointer.
15179
74375d18
PA
151802020-01-10 Pedro Alves <palves@redhat.com>
15181
15182 * exceptions.c (print_flush): Remove current_top_target() check.
15183
acdf84a6
PA
151842020-01-10 Pedro Alves <palves@redhat.com>
15185
15186 * remote.c (show_remote_exec_file): Show the current inferior's
15187 exec-file instead of the command variable's value.
15188
ec506636
PA
151892020-01-10 Pedro Alves <palves@redhat.com>
15190
15191 * record-full.c (record_full_resume_ptid): New global.
15192 (record_full_target::resume): Set it.
15193 (record_full_wait_1): Use record_full_resume_ptid instead of
15194 inferior_ptid.
15195
873657b9
PA
151962020-01-10 Pedro Alves <palves@redhat.com>
15197
15198 * gdbthread.h (scoped_restore_current_thread)
15199 <dont_restore, restore, m_dont_restore>: Declare.
15200 * thread.c (thread_alive): Add assertion. Return bool.
15201 (switch_to_thread_if_alive): New.
15202 (prune_threads): Switch inferior/thread.
15203 (print_thread_info_1): Switch thread before calling target methods.
15204 (scoped_restore_current_thread::restore): New, factored out from
15205 ...
15206 (scoped_restore_current_thread::~scoped_restore_current_thread):
15207 ... this.
15208 (scoped_restore_current_thread::scoped_restore_current_thread):
15209 Add assertion.
15210 (thread_apply_all_command, thread_select): Use
15211 switch_to_thread_if_alive.
15212
7f0ae84c
GB
152132020-01-10 George Barrett <bob@bob131.so>
15214
15215 * stap-probe.c (stap_modify_semaphore): Don't check for null
15216 semaphores.
15217 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15218 for null semaphores.
15219
f5a7c406
AB
152202020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15221
15222 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15223 all source windows, and maintain horizontal scroll status while
15224 doing so.
15225
9ae6bf64
TT
152262020-01-09 Tom Tromey <tom@tromey.com>
15227
15228 PR tui/18932:
15229 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15230 update_source_window, not print_source_lines.
15231
b2efe70c
AB
152322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15233
15234 * tui/tui.c (tui_enable): Register tui hooks after calling
15235 tui_display_main.
15236
5f23a082
CB
152372020-01-09 Christian Biesinger <cbiesinger@google.com>
15238
15239 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15240
3061113b
SM
152412020-01-08 Simon Marchi <simon.marchi@efficios.com>
15242
15243 * thread.c (print_thread_info_1): Fix indentation.
15244
57d75002
CB
152452020-01-09 Christian Biesinger <cbiesinger@google.com>
15246
15247 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15248 unique_xmalloc_ptr outside the if to always free the demangled name.
15249
6a053cb1
TT
152502020-01-08 Tom Tromey <tromey@adacore.com>
15251
15252 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15253 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15254 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15255 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15256 Remove.
15257 (section_offsets): New typedef.
15258 * symtab.c (fixup_section, get_msymbol_address): Update.
15259 * symmisc.c (dump_msymbols): Update.
15260 * symfile.h (relative_addr_info_to_section_offsets)
15261 (symfile_map_offsets_to_segments): Update.
15262 * symfile.c (build_section_addr_info_from_objfile)
15263 (init_objfile_sect_indices): Update.
15264 (struct place_section_arg): Change type of "offsets".
15265 (place_section): Update.
15266 (relative_addr_info_to_section_offsets): Change type of
15267 "section_offsets". Remove "num_sections" parameter.
15268 (default_symfile_offsets, syms_from_objfile_1)
15269 (set_objfile_default_section_offset): Update.
15270 (reread_symbols): No need to preserve section offsets by hand.
15271 (symfile_map_offsets_to_segments): Change type of "offsets".
15272 * stap-probe.c (relocate_address): Update.
15273 * stabsread.h (process_one_symbol): Update.
15274 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15275 (solib_target_relocate_section_addresses): Update.
15276 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15277 Update.
15278 * solib-frv.c (frv_relocate_main_executable): Update.
15279 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15280 * solib-aix.c (solib_aix_get_section_offsets): Change return
15281 type.
15282 (solib_aix_solib_create_inferior_hook): Update.
15283 * remote.c (remote_target::get_offsets): Update.
15284 * psymtab.c (find_pc_sect_psymtab): Update.
15285 * psympriv.h (struct partial_symbol) <address, text_low,
15286 text_high>: Update.
15287 * objfiles.h (obj_section_offset): Update.
15288 (struct objfile) <section_offsets>: Change type.
15289 <num_sections>: Remove.
15290 (objfile_relocate): Update.
15291 * objfiles.c (entry_point_address_query): Update
15292 (relocate_one_symbol): Change type of "section_offsets".
15293 (objfile_relocate1, objfile_relocate1): Change type of
15294 "new_offsets".
15295 (objfile_rebase1): Update.
15296 * mipsread.c (mipscoff_symfile_read): Update.
15297 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15298 parameter.
15299 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15300 (parse_external, psymtab_to_symtab_1): Update.
15301 * machoread.c (macho_symfile_offsets): Update.
15302 * ia64-tdep.c (ia64_find_unwind_table): Update.
15303 * hppa-tdep.c (read_unwind_info): Update.
15304 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15305 * dwarf2read.c (create_addrmap_from_index)
15306 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15307 (process_psymtab_comp_unit_reader, add_partial_symbol)
15308 (add_partial_subprogram, process_full_comp_unit)
15309 (read_file_scope, read_func_scope, read_lexical_block_scope)
15310 (read_call_site_scope, dwarf2_rnglists_process)
15311 (dwarf2_ranges_process, dwarf2_ranges_read)
15312 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15313 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15314 Update.
15315 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15316 Update.
15317 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15318 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15319 (process_one_symbol): Change type of "section_offsets".
15320 * ctfread.c (get_objfile_text_range): Update.
15321 * coffread.c (coff_symtab_read, enter_linenos)
15322 (process_coff_symbol): Update.
15323 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15324 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15325
456e800a
TT
153262020-01-08 Tom Tromey <tromey@adacore.com>
15327
15328 * dwarf2read.c (parse_macro_definition): Use std::string.
15329 (parse_macro_definition): Likewise.
15330
6dfa2fc2
TT
153312020-01-08 Tom Tromey <tromey@adacore.com>
15332
15333 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15334 (ATTR_ALLOC_CHUNK): Remove.
15335
421d1616
TT
153362020-01-08 Tom Tromey <tromey@adacore.com>
15337
15338 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15339
43816ebc
TT
153402020-01-08 Tom Tromey <tromey@adacore.com>
15341
15342 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15343 (dwarf2_compute_name, open_dwo_file): Likewise.
15344 (process_enumeration_scope): Use std::vector.
15345 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15346 (partial_die_info::fixup, dwarf2_start_subfile)
15347 (guess_full_die_structure_name, dwarf2_name): Likewise.
15348 (determine_prefix): Update.
15349 (guess_full_die_structure_name): Make return type const.
15350 (partial_die_full_name): Return unique_xmalloc_ptr.
15351 (DW_FIELD_ALLOC_CHUNK): Remove.
15352
4212d509
TT
153532020-01-07 Tom Tromey <tromey@adacore.com>
15354
15355 PR build/24937:
15356 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15357
06a6207a
JT
153582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15359
15360 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15361
153d79c4
AB
153622020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15363
15364 * stack.c (print_frame_info): Move disassemble_next_line code
15365 inside source_print block.
15366
66182876
EZ
153672020-01-06 Eli Zaretskii <eliz@gnu.org>
15368
15369 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15370 gdb/signals.h, as we are now using native signal symbols.
15371
cbfa8581
SV
153722020-01-06 Shahab Vahedi <shahab@synopsys.com>
15373
15374 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15375 overflow by an early check of content vs threshold.
aac66a4c 15376 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15377 Likewise.
15378
3f602821
EZ
153792020-01-06 Eli Zaretskii <eliz@gnu.org>
15380
15381 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15382
a08c904d
JT
153832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15384
15385 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15386 export table if no section contains it's RVA.
15387
89a65580
EZ
153882020-01-06 Eli Zaretskii <eliz@gnu.org>
15389
15390 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15391
8b7fcda2
HD
153922020-01-06 Hannes Domani <ssbssa@yahoo.de>
15393
15394 * source.c (print_source_lines_base): Set last_line_listed.
15395
a61b4f69
SV
153962020-01-06 Shahab Vahedi <shahab@synopsys.com>
15397
15398 * tui/tui-disasm.c: Remove trailing spaces.
15399
559e7e50
EZ
154002020-01-06 Eli Zaretskii <eliz@gnu.org>
15401 Pedro Alves <palves@redhat.com>
15402
15403 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15404 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15405 (windows_gdb_signal_to_target): New function, uses the above
15406 enumeration to convert GDB internal signal codes to equivalent
15407 Windows codes.
15408 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15409 * windows-nat.c: Include "gdb_wait.h".
15410 (get_windows_debug_event): Extract the fatal exception from the
15411 exit status and convert to the equivalent Posix signal number.
15412 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15413 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15414 * gdbsupport/gdb_wait.c: New file, implements
15415 windows_status_to_termsig.
15416 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15417 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15418
f2302a34
AB
154192020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15420
15421 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15422 show_layout.
15423
6a5206eb
LM
154242020-01-05 Luis Machado <luis.machado@linaro.org>
15425
15426 * aarch64-linux-nat.c
15427 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15428 and bfd_mach_aarch64.
15429
6ec1d75e
PW
154302020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15431
15432 * ui-file.c (stdio_file::can_emit_style_escape)
15433 (tee_file::can_emit_style_escape): Ensure style is used also on
15434 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15435 to gdb_stdout.
15436 * main.c (set_gdb_data_directory): Use file style to output the
15437 warning that the given pathname is not a directory.
15438 * top.c (show_history_filename, gdb_safe_append_history)
15439 (show_gdb_datadir): Use file style.
15440
44f81a76
HD
154412020-01-03 Hannes Domani <ssbssa@yahoo.de>
15442
15443 * solib-target.c (struct lm_info_target):
15444 Change offsets to be a unique_xmalloc_ptr.
15445 (solib_target_relocate_section_addresses): Update.
15446
25057eb0
HD
154472020-01-03 Hannes Domani <ssbssa@yahoo.de>
15448
15449 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15450
6e2118f5
BE
154512020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15452
15453 * MAINTAINERS (Write After Approval): Add myself.
15454
8133c7dc
LM
154552020-01-02 Luis Machado <luis.machado@linaro.org>
15456
15457 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15458 Cell BE architecture.
15459 * target.h (struct target_ops) <thread_architecture>: Likewise.
15460
48189bec
HD
154612020-01-01 Hannes Domani <ssbssa@yahoo.de>
15462
15463 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15464
ead1063b
HD
154652020-01-01 Hannes Domani <ssbssa@yahoo.de>
15466
15467 * MAINTAINERS (Write After Approval): Add myself.
15468
e5d78223
JB
154692020-01-01 Joel Brobecker <brobecker@adacore.com>
15470
15471 * gdbarch.sh: Update copyright year range of generated files.
15472
b811d2c2
JB
154732020-01-01 Joel Brobecker <brobecker@adacore.com>
15474
15475 Update copyright year range in all GDB files.
15476
5f4def5c
JB
154772020-01-01 Joel Brobecker <brobecker@adacore.com>
15478
15479 * copyright.py: Convert to Python 3.
15480
51fd4002
JB
154812020-01-01 Joel Brobecker <brobecker@adacore.com>
15482
15483 * copyright.py: Adapt after move of gnulib directory from gdb
15484 directory to toplevel directory.
15485
5fb651f2
JB
154862020-01-01 Joel Brobecker <brobecker@adacore.com>
15487
15488 * copyright.py (main): Exit if run from the wrong directory.
15489
5dd8bf88
JB
154902020-01-01 Joel Brobecker <brobecker@adacore.com>
15491
15492 * top.c (print_gdb_version): Change copyright year to 2020.
15493
9f71dacb 154942020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15495
9f71dacb 15496 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15497
9f71dacb 15498For older changes see ChangeLog-2019.
c906108c
SS
15499\f
15500Local Variables:
15501mode: change-log
15502left-margin: 8
15503fill-column: 74
15504version-control: never
57da7796 15505coding: utf-8
c906108c 15506End: