gdb: make gdbarch_displaced_step_hw_singlestep return bool
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
07fbbd01
SM
12020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
4 * gdbarch.c: Re-generate.
5 * gdbarch.h: Re-generate.
6 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
7 bool.
8 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
9 Likewise.
10 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
11 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
12 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
13 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
14
39535193
SM
152020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * gdbarch.sh: Make generated predicates return bool.
18 * gdbarch.c: Re-generate.
19 * gdbarch.h: Re-generate.
20
ad523d01
TT
212020-10-20 Tom Tromey <tom@tromey.com>
22
23 * varobj-iter.h (struct varobj_item): Remove typedef.
24
c4464ade
SM
252020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * infrun.c (currently_stepping): Change int to bool
28 (maybe_software_singlestep): Likewise.
29 (show_stop_on_solib_events): Likewise.
30 (stepping_past_nonsteppable_watchpoint): Likewise.
31 (displaced_step_in_progress_any_inferior): Likewise.
32 (displaced_step_in_progress_thread): Likewise.
33 (keep_going_stepped_thread): Likewise.
34 (thread_still_needs_step_over): Likewise.
35 (start_step_over): Likewise.
36 (do_target_resume): Likewise.
37 (resume_1): Likewise.
38 (clear_proceed_status): Likewise.
39 (thread_still_needs_step_over_bp): Likewise.
40 (proceed): Likewise.
41 (switch_back_to_stepped_thread): Likewise.
42 (adjust_pc_after_break): Likewise.
43 (stepped_in_from): Likewise.
44 (handle_stop_requested): Likewise.
45 (handle_syscall_event): Likewise.
46 (handle_no_resumed): Likewise.
47 (handle_inferior_event): Likewise.
48 (finish_step_over): Likewise.
49 (handle_signal_stop): Likewise.
50 (process_event_stop_test): Likewise.
51
2eb20436
SM
522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * infrun.c (get_displaced_stepping_state): Fix comment.
55
e0c45ded
AS
562020-10-20 Andreas Schwab <schwab@linux-m68k.org>
57
58 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
59
22cc388e
TT
602020-10-19 Tom Tromey <tromey@adacore.com>
61
62 PR tui/26719
63 * tui/tui-winsource.h (struct tui_source_window_base)
64 <refresh_window>: Rename from refresh_pad.
65 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
66 Rename from refresh_pad.
67 (tui_source_window_base::show_source_content)
68 (tui_source_window_base::do_scroll_horizontal): Update.
69
3c6eb4d4
TBA
702020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
71
72 * thread.c (_initialize_thread): Fine-tune the help text of
73 'info threads'.
74
26703721
TBA
752020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
76
77 * frame.c: Remove the unused 'uinteger_option_def' type alias.
78
61c26be8
MS
792020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
80
81 * breakpoint.c (handle_jit_event): Add an argument, change how
82 `jit_event_handler` is called.
83
932539d7
TT
842020-10-17 Tom Tromey <tom@tromey.com>
85
86 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
87 (scan_xcoff_symtab): Update.
88 * psymtab.h (class psymtab_storage) <global_psymbols,
89 static_psymbols, current_global_psymbols,
90 current_static_psymbols>: Remove.
91 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
92 (match_partial_symbol, lookup_partial_symbol): Update.
93 (print_partial_symbols): Change parameters.
94 (dump_psymtab, recursively_search_psymtabs)
95 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
96 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
97 (concat): Remove.
98 (end_psymtab_common): Simplify.
99 (append_psymbol_to_list): Change parameters.
100 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
101 (init_psymbol_list): Simplify.
102 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
103 * psympriv.h (struct partial_symtab) <empty>: New method.
104 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
105 Remove.
106 <global_psymbols, static_psymbols>: New members.
107 <add_psymbol>: New methods.
108 (add_psymbol_to_list): Don't declare.
109 (psymbol_placement): Move earlier.
110 * mdebugread.c (parse_partial_symbols): Update.
111 (handle_psymbol_enumerators): Change parameters.
112 (mdebug_expand_psymtab): Update.
113 * dwarf2/read.c (process_psymtab_comp_unit_reader)
114 (add_partial_symbol): Update.
115 * dwarf2/index-write.c (write_psymbols): Change parameters.
116 (write_one_signatured_type): Update.
117 (recursively_count_psymbols): Update.
118 (recursively_write_psymbols): Update.
119 (class debug_names) <recursively_write_psymbols>: Update.
120 <write_psymbols>: Change parameters.
121 <write_one_signatured_type>: Update.
122 * dbxread.c (read_dbx_symtab): Update.
123 (dbx_end_psymtab): Use partial_symtab::empty.
124 * ctfread.c (struct ctf_context) <pst>: New member.
125 (create_partial_symtab): Set it.
126 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
127 (scan_partial_symbols): Use the psymtab's context. Update.
128
cfabbd35
TT
1292020-10-17 Tom Tromey <tom@tromey.com>
130
131 * valprint.c (generic_value_print): Remove comment.
132 * m2-valprint.c (m2_value_print_inner): Remove comment.
133 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
134 type.
135
520596f2
TV
1362020-10-17 Tom de Vries <tdevries@suse.de>
137
138 PR symtab/26317
139 * source.c (select_source_symtab): Handling sal.symtab == NULL for
140 symbol main.
141
76547ab3
TV
1422020-10-14 Tom de Vries <tdevries@suse.de>
143
144 PR gdb/26733
145 * solib.c (solib_contains_address_p): Handle
146 'solib->sections == nullptr'.
147
d3a07122
SM
1482020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
149
150 PR gdb/26642
151 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
152 target can't do async.
153 * target.c (target_wait): Assert that we don't pass
154 TARGET_WNOHANG to a target that can't async.
155
1b71cfcf
KR
1562020-10-13 Kamil Rytarowski <n54@gmx.com>
157
158 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
159 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
160 * alpha-bsd-nat.c: Adjust include.
161 * alpha-bsd-tdep.h: Adjust comment.
162 * alpha-nbsd-tdep.c: Rename to ...
163 * alpha-netbsd-tdep.c: ... this, adjust include.
164 * amd64-nbsd-nat.c: Rename to ...
165 * amd64-netbsd-nat.c: ... this, adjust include.
166 * amd64-nbsd-tdep.c: Rename to ...
167 * amd64-netbsd-tdep.c: ... this, adjust include.
168 * amd64-tdep.h: Adjust include.
169 * arm-nbsd-nat.c: Rename to ...
170 * arm-netbsd-nat.c: ... this, adjust include.
171 * arm-nbsd-tdep.c: Rename to ...
172 * arm-netbsd-tdep.c: ... this, adjust include.
173 * arm-nbsd-tdep.h: Rename to ...
174 * arm-netbsd-tdep.h: ... this, adjust include.
175 * configure.nat: Adjust file lists.
176 * configure.tgt: Likewise.
177 * hppa-nbsd-nat.c: Rename to ...
178 * hppa-netbsd-nat.c: ... this, adjust include.
179 * hppa-nbsd-tdep.c: Rename to ...
180 * hppa-netbsd-tdep.c: ... this, adjust include.
181 * i386-nbsd-nat.c: Rename to ...
182 * i386-netbsd-nat.c: ... this, adjust include.
183 * i386-nbsd-tdep.c: Rename to ...
184 * i386-netbsd-tdep.c: ... this, adjust include.
185 * m68k-bsd-nat.c: Adjust include.
186 * mips-nbsd-nat.c: Rename to ...
187 * mips-netbsd-nat.c: ... this, adjust include.
188 * mips-nbsd-tdep.c: Rename to ...
189 * mips-netbsd-tdep.c: ... this, adjust include.
190 * mips-nbsd-tdep.h: Rename to ...
191 * mips-netbsd-tdep.h: ... this.
192 * nbsd-nat.c: Rename to ...
193 * netbsd-nat.c: ... this, adjust include.
194 * nbsd-nat.h: Rename to ...
195 * netbsd-nat.h: ... this, adjust include.
196 * nbsd-tdep.c: Rename to ...
197 * netbsd-tdep.c: ... this, adjust include.
198 * nbsd-tdep.h: Rename to ...
199 * netbsd-tdep.h: ... this.
200 * ppc-nbsd-nat.c: Rename to ...
201 * ppc-netbsd-nat.c: ... this, adjust include.
202 * ppc-nbsd-tdep.c: Rename to ...
203 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
204 * ppc-nbsd-tdep.h: Rename to ...
205 * ppc-netbsd-tdep.h: ... this.
206 * sh-nbsd-nat.c: Rename to ...
207 * sh-netbsd-nat.c: ... this, adjust include.
208 * sh-nbsd-tdep.c: Rename to ...
209 * sh-netbsd-tdep.c: ... this, adjust include.
210 * sparc-nbsd-nat.c: Rename to ...
211 * sparc-netbsd-nat.c: ... this.
212 * sparc-nbsd-tdep.c: Rename to ...
213 * sparc-netbsd-tdep.c: ... this, adjust include.
214 * sparc64-nbsd-nat.c: Rename to ...
215 * sparc64-netbsd-nat.c: ... this.
216 * sparc64-nbsd-tdep.c: Rename to ...
217 * sparc64-netbsd-tdep.c: ... this, adjust include.
218 * sparc64-tdep.h: Adjust comment.
219 * vax-bsd-nat.c: Adjust include.
220 * vax-nbsd-tdep.c: Rename to ...
221 * vax-netbsd-tdep.c: ... this, adjust include.
222
d7a78e5c
TT
2232020-10-12 Tom Tromey <tom@tromey.com>
224
225 * target.h (struct target_ops) <get_section_table>: Update.
226 (target_get_section_table): Update.
227 * target.c (target_get_section_table, target_section_by_addr)
228 (memory_xfer_partial_1): Update.
229 * target-section.h (target_section_table): Now an alias.
230 * target-delegates.c: Rebuild.
231 * target-debug.h (target_debug_print_target_section_table_p):
232 Rename from target_debug_print_struct_target_section_table_p.
233 * symfile.c (build_section_addr_info_from_section_table): Update.
234 * solib.c (solib_map_sections, solib_contains_address_p): Update.
235 * solib-svr4.c (scan_dyntag): Update.
236 * solib-dsbt.c (scan_dyntag): Update.
237 * remote.c (remote_target::remote_xfer_live_readonly_partial):
238 Update.
239 * record-full.c (record_full_core_target::xfer_partial): Update.
240 * progspace.h (struct program_space) <target_sections>: Update.
241 * exec.h (print_section_info): Update.
242 * exec.c (exec_target::close, build_section_table)
243 (add_target_sections, add_target_sections_of_objfile)
244 (remove_target_sections, exec_on_vfork)
245 (section_table_available_memory)
246 (section_table_xfer_memory_partial)
247 (exec_target::get_section_table, exec_target::xfer_partial)
248 (print_section_info, set_section_command)
249 (exec_set_section_address, exec_target::has_memory): Update.
250 * corelow.c (core_target::build_file_mappings)
251 (core_target::xfer_partial, core_target::info_proc_mappings)
252 (core_target::info_proc_mappings): Update.
253 * bfd-target.c (class target_bfd): Update
254
eda214ce
TT
2552020-10-12 Tom Tromey <tom@tromey.com>
256
257 * progspace.c (program_space::~program_space): Don't call
258 clear_section_table.
259 * exec.h (clear_section_table): Don't declare.
260 * exec.c (exec_target::close): Update.
261 (clear_section_table): Remove.
262
91840ee3
TT
2632020-10-12 Tom Tromey <tom@tromey.com>
264
265 * exec.c (add_target_sections_of_objfile): Simplify.
266
2d128614
TT
2672020-10-12 Tom Tromey <tom@tromey.com>
268
269 * solib.c (solib_map_sections): Update.
270 * record-full.c (record_full_core_open_1): Update.
271 * exec.h (build_section_table): Return a target_section_table.
272 * exec.c (exec_file_attach): Update.
273 (build_section_table): Return a target_section_table.
274 * corelow.c (core_target::core_target): Update.
275 * bfd-target.c (target_bfd::target_bfd): Update.
276
bb2a6777
TT
2772020-10-12 Tom Tromey <tom@tromey.com>
278
279 * target.c (target_section_by_addr, memory_xfer_partial_1):
280 Update.
281 * target-section.h (struct target_section_table): Use
282 std::vector.
283 * symfile.h (build_section_addr_info_from_section_table): Take a
284 target_section_table.
285 * symfile.c (build_section_addr_info_from_section_table): Take a
286 target_section_table.
287 * solist.h (struct so_list) <sections>: Change type.
288 <sections_end>: Remove.
289 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
290 (solib_contains_address_p): Update.
291 * solib-svr4.c (scan_dyntag): Update.
292 * solib-dsbt.c (scan_dyntag): Update.
293 * remote.c (remote_target::remote_xfer_live_readonly_partial):
294 Update.
295 * record-full.c (record_full_core_start, record_full_core_end):
296 Remove.
297 (record_full_core_sections): New global.
298 (record_full_core_open_1, record_full_core_target::xfer_partial):
299 Update.
300 * exec.h (build_section_table, section_table_xfer_memory_partial)
301 (add_target_sections): Take a target_section_table.
302 * exec.c (exec_file_attach, clear_section_table): Update.
303 (resize_section_table): Remove.
304 (build_section_table, add_target_sections): Take a
305 target_section_table.
306 (add_target_sections_of_objfile, remove_target_sections)
307 (exec_on_vfork): Update.
308 (section_table_available_memory): Take a target_section_table.
309 (section_table_read_available_memory): Update.
310 (section_table_xfer_memory_partial): Take a target_section_table.
311 (print_section_info, set_section_command)
312 (exec_set_section_address, exec_target::has_memory): Update.
313 * corelow.c (class core_target) <m_core_section_table,
314 m_core_file_mappings>: Remove braces.
315 <~core_target>: Remove.
316 (core_target::core_target): Update.
317 (core_target::~core_target): Remove.
318 (core_target::build_file_mappings)
319 (core_target::xfer_memory_via_mappings)
320 (core_target::xfer_partial, core_target::info_proc_mappings):
321 Update.
322 * bfd-target.c (target_bfd::xfer_partial): Update.
323 (target_bfd::target_bfd): Update.
324 (target_bfd::~target_bfd): Remove.
325
7b466b10
TT
3262020-10-12 Tom Tromey <tom@tromey.com>
327
328 * target.h (struct target_section, struct target_section_table):
329 Move to target-section.h.
330 * target-section.h: New file.
331
87a37e5e
PA
3322020-10-12 Pedro Alves <pedro@palves.net>
333
334 PR exp/26602
335 * valops.c (struct struct_field_searcher): New.
336 (update_search_result): Rename to ...
337 (struct_field_searcher::update_result): ... this. Simplify
338 prototype. Record all found fields.
339 (do_search_struct_field): Rename to ...
340 (struct_field_searcher::search): ... this. Simplify prototype.
341 Maintain stack of visited baseclass path. Call update_result for
342 fields too. Keep searching fields in baseclasses instead of
343 stopping at the first found field.
344 (search_struct_field): Use struct_field_searcher. When looking
345 for fields, report ambiguous access attempts.
346
9370fd51
AB
3472020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * frame.c (inside_main_func): Check full symbols as well as
350 minimal symbols.
351
59c8a30b
JB
3522020-10-09 Joel Brobecker <brobecker@adacore.com>
353
354 * ada-lang.c (advance_wild_match): Rewrite the function's
355 description. Change the type of target0, t0 and t1 to char.
356
7c184d33
TT
3572020-10-09 Tom Tromey <tromey@adacore.com>
358
359 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
360
5c4258f4
TT
3612020-10-09 Tom Tromey <tromey@adacore.com>
362
363 * ada-lang.h (ada_encode): Return std::string.
364 * ada-lang.c (ada_encode_1): Return std::string.
365 (ada_encode): Likewise.
366 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
367 Update.
368 * ada-exp.y (block_lookup, write_var_or_type): Update.
369
3d87245c
HD
3702020-10-09 Hannes Domani <ssbssa@yahoo.de>
371
372 PR exp/26714
373 * printcmd.c (print_formatted): Handle void results as
374 unformatted prints.
375
bbb826f5
AB
3762020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
377
378 * arch/aarch32.c (aarch32_create_target_description): Release the
379 target_desc_up as late as possible.
380 * arch/aarch64.c (aarch64_create_target_description): Likewise.
381 * arch/amd64.c (amd64_create_target_description): Likewise.
382 * arch/arc.c (arc_create_target_description): Return a
383 target_desc_up, don't release it.
384 * arch/arc.h (arc_create_target_description): Update declaration.
385 (arc_lookup_target_description): Move target_desc_up into the
386 cache, and return a borrowed pointer.
387 * arch/arm.c (arm_create_target_description): Release the
388 target_desc_up as late as possible.
389 * arch/i386.c (i386_create_target_description): Likewise.
390 * arch/riscv.h (riscv_create_target_description): Update
391 declaration to match definition.
392 * arch/tic6x.c (tic6x_create_target_description): Release the
393 target_desc_up as late as possible.
394
361cb219
AB
3952020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
398 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
399
f5c4b229
JV
4002020-10-09 Jan Vrany <jan.vrany@labware.com>
401
402 * source.c (directory_command): Notify observers that "directories"
403 parameter has changed.
404
b2701685
TT
4052020-10-08 Tom Tromey <tom@tromey.com>
406
407 * cli/cli-cmds.c (print_disassembly): Style function name and
408 addresses. Add _() wrappers.
409
ada508b6
SV
4102020-10-08 Shahab Vahedi <shahab@synopsys.com>
411
412 * NEWS: Mention ARC support in GDBserver.
413
51a948fd
AB
4142020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * arch/aarch32.c (aarch32_create_target_description): Release
417 unique_ptr returned from allocate_target_description.
418 * arch/aarch64.c (aarch64_create_target_description): Likewise.
419 * arch/amd64.c (amd64_create_target_description): Likewise.
420 * arch/arc.c (arc_create_target_description): Likewise.
421 * arch/arm.c (arm_create_target_description): Likewise.
422 * arch/i386.c (i386_create_target_description): Likewise.
423 * arch/riscv.c (riscv_create_target_description): Update return
424 type. Handle allocate_target_description returning a unique_ptr.
425 (riscv_lookup_target_description): Update to handle unique_ptr.
426 * arch/tic6x.c (tic6x_create_target_description): Release
427 unique_ptr returned from allocate_target_description.
428 * features/microblaze-with-stack-protect.c: Regenerate.
429 * features/microblaze.c: Regenerate.
430 * features/mips-dsp-linux.c: Regenerate.
431 * features/mips-linux.c: Regenerate.
432 * features/mips64-dsp-linux.c: Regenerate.
433 * features/mips64-linux.c: Regenerate.
434 * features/nds32.c: Regenerate.
435 * features/nios2.c: Regenerate.
436 * features/or1k.c: Regenerate.
437 * features/rs6000/powerpc-32.c: Regenerate.
438 * features/rs6000/powerpc-32l.c: Regenerate.
439 * features/rs6000/powerpc-403.c: Regenerate.
440 * features/rs6000/powerpc-403gc.c: Regenerate.
441 * features/rs6000/powerpc-405.c: Regenerate.
442 * features/rs6000/powerpc-505.c: Regenerate.
443 * features/rs6000/powerpc-601.c: Regenerate.
444 * features/rs6000/powerpc-602.c: Regenerate.
445 * features/rs6000/powerpc-603.c: Regenerate.
446 * features/rs6000/powerpc-604.c: Regenerate.
447 * features/rs6000/powerpc-64.c: Regenerate.
448 * features/rs6000/powerpc-64l.c: Regenerate.
449 * features/rs6000/powerpc-7400.c: Regenerate.
450 * features/rs6000/powerpc-750.c: Regenerate.
451 * features/rs6000/powerpc-860.c: Regenerate.
452 * features/rs6000/powerpc-altivec32.c: Regenerate.
453 * features/rs6000/powerpc-altivec32l.c: Regenerate.
454 * features/rs6000/powerpc-altivec64.c: Regenerate.
455 * features/rs6000/powerpc-altivec64l.c: Regenerate.
456 * features/rs6000/powerpc-e500.c: Regenerate.
457 * features/rs6000/powerpc-e500l.c: Regenerate.
458 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
459 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
460 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
461 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
462 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
463 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
464 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
465 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
466 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
467 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
468 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
469 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
470 * features/rs6000/powerpc-vsx32.c: Regenerate.
471 * features/rs6000/powerpc-vsx32l.c: Regenerate.
472 * features/rs6000/powerpc-vsx64.c: Regenerate.
473 * features/rs6000/powerpc-vsx64l.c: Regenerate.
474 * features/rs6000/rs6000.c: Regenerate.
475 * features/rx.c: Regenerate.
476 * features/s390-gs-linux64.c: Regenerate.
477 * features/s390-linux32.c: Regenerate.
478 * features/s390-linux32v1.c: Regenerate.
479 * features/s390-linux32v2.c: Regenerate.
480 * features/s390-linux64.c: Regenerate.
481 * features/s390-linux64v1.c: Regenerate.
482 * features/s390-linux64v2.c: Regenerate.
483 * features/s390-te-linux64.c: Regenerate.
484 * features/s390-tevx-linux64.c: Regenerate.
485 * features/s390-vx-linux64.c: Regenerate.
486 * features/s390x-gs-linux64.c: Regenerate.
487 * features/s390x-linux64.c: Regenerate.
488 * features/s390x-linux64v1.c: Regenerate.
489 * features/s390x-linux64v2.c: Regenerate.
490 * features/s390x-te-linux64.c: Regenerate.
491 * features/s390x-tevx-linux64.c: Regenerate.
492 * features/s390x-vx-linux64.c: Regenerate.
493 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
494 from allocate_target_description.
495 * target-descriptions.c (allocate_target_description): Update
496 return type.
497 (print_c_tdesc::visit_pre): Release unique_ptr returned from
498 allocate_target_description.
499
485c47e5
TT
5002020-10-07 Tom Tromey <tromey@adacore.com>
501
502 * unittests/search-memory-selftests.c: New file.
503 * Makefile.in (SELFTESTS_SRCS): Add
504 unittests/search-memory-selftests.c.
505
3a135a91
TT
5062020-10-07 Tom Tromey <tromey@adacore.com>
507
508 PR gdb/16930:
509 * findcmd.c (_initialize_mem_search): Mention that the range is
510 inclusive.
511
4a72de73
TT
5122020-10-07 Tom Tromey <tromey@adacore.com>
513
514 * target.h (simple_search_memory): Don't declare.
515 * target.c (simple_search_memory): Move to gdbsupport.
516 (default_search_memory): Update.
517 * remote.c (remote_target::search_memory): Update.
518
a038ffd8
SM
5192020-10-07 Simon Marchi <simon.marchi@efficios.com>
520
521 * Makefile.in (COMPILE): Add CXXFLAGS.
522 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
523 (check-headers): Add CXXFLAGS.
524
cc463201
AK
5252020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
526
527 * arc-linux-tdep.h: New file.
528 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
529 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
530 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
531 arc_linux_gregset, arc_linux_v2_regset,
532 arc_linux_iterate_over_regset_sections,
533 arc_linux_core_read_description): Implement.
534 (arc_linux_init_osabi): Set iterate_over_regset_sections.
535 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
536 (arc_gdbarch_features_create): Add.
537 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
538
e4bd363f
SV
5392020-10-07 Shahab Vahedi <shahab@synopsys.com>
540
541 * arch/arc.h: Rename "arc_gdbarch_features" to
542 "arc_arch_features".
543 * arc-tdep.h: Likewise.
544 * arc-tdep.c: Likewise.
545
b68bef99
TBA
5462020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
547
548 * infcmd.c (attach_command): Remove the redundant call to
549 `clear_proceed_status`.
550
4641551a
KR
5512020-10-07 Kamil Rytarowski <n54@gmx.com>
552
553 * nat/netbsd-nat.c (write_memory, read_memory): Update.
554
91e5e8db
KR
5552020-10-07 Kamil Rytarowski <n54@gmx.com>
556
557 * nat/netbsd-nat.c (write_memory, read_memory): Add.
558 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
559 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
560
64c03bdb
SM
5612020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
564 (_initialize_break_catch_sig): Don't allocate array.
565
31a8f60f
AB
5662020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
567
568 * symtab.c (find_pc_line): Return unmapped addresses when the
569 requested address is also unmapped.
570
9e6dbd8b
SM
5712020-10-05 Simon Marchi <simon.marchi@efficios.com>
572
573 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
574 tui/tui-out.h.
575
a1d217e8
SM
5762020-10-05 Simon Marchi <simon.marchi@efficios.com>
577
578 * amd64-windows-tdep.c (amd64_windows_return_value): Use
579 type::is_vector instead of TYPE_VECTOR.
580
7d144117
SM
5812020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * auto-load.c (auto_load_objfile_script_1): Don't use
584 debugfile_holder as temporary variable when stripping drive
585 letter.
586
cd096ec8
HD
5872020-10-05 Hannes Domani <ssbssa@yahoo.de>
588
589 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
590 Add TYPE_CODE_COMPLEX.
591 (amd64_windows_return_value): Fix types returned via XMM0.
592
b58e7f72
AH
5932020-10-05 Alan Hayward <alan.hayward@arm.com>
594
595 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
596 AArch64/ARM maintainers.
597
8d378f27
SM
5982020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * NEWS: Mention set/show debug event-loop.
601
d5519913
TT
6022020-10-02 Tom Tromey <tromey@adacore.com>
603
604 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
605 REG_EXTENDED.
606
18b67edc
SM
6072020-10-02 Simon Marchi <simon.marchi@efficios.com>
608
609 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
610 * procfs.c (procfs_inferior_created): Remove.
611 (_initialize_procfs): Don't register procfs_inferior_created.
612
6b01403b
SM
6132020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * async-event.c (invoke_async_signal_handlers): Add debug
616 print.
617 (check_async_event_handlers): Likewise.
618 * event-top.c (show_debug_event_loop): New function.
619 (_initialize_event_top): Register "set debug event-loop"
620 setting.
621
ba988419
SM
6222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
625 * debug.h: Remove.
626 * infrun.c: Include gdbsupport/common-debug.h.
627 * linux-nat.c: Likewise.
628
db20ebdf
SM
6292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
630
631 * async-event.h (create_async_signal_handler): Add name
632 parameter.
633 (create_async_event_handler): Likewise.
634 * async-event.c (struct async_signal_handler) <name>: New field.
635 (struct async_event_handler) <name>: New field.
636 (create_async_signal_handler): Assign name.
637 (create_async_event_handler): Assign name.
638 * event-top.c (async_init_signals): Pass name when creating
639 handler.
640 * infrun.c (_initialize_infrun): Likewise.
641 * record-btrace.c (record_btrace_push_target): Likewise.
642 * record-full.c (record_full_open): Likewise.
643 * remote-notif.c (remote_notif_state_allocate): Likewise.
644 * remote.c (remote_target::open_1): Likewise.
645 * tui/tui-win.c (tui_initialize_win): Likewise.
646
2554f6f5
SM
6472020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
648
649 * async-event.c (initialize_async_signal_handlers): Pass name to
650 add_file_handler
651 * event-top.c (ui_register_input_event_handler): Likewise.
652 * linux-nat.c (linux_nat_target::async): Likewise.
653 * run-on-main-thread.c (_initialize_run_on_main_thread):
654 Likewise
655 * ser-base.c (reschedule): Likewise.
656 (ser_base_async): Likewise.
657 * tui/tui-io.c: Likewise.
658 * top.h (struct ui) <num>: New field.
659 * top.c (highest_ui_num): New variable.
660 (ui::ui): Initialize num.
661
a7aba266
SM
6622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * observable.h <inferior_created>: Remove parameters. Update all
665 listeners.
666 * inferior.h (post_create_inferior): Remove target parameter.
667 Update all callers.
668
048fde1e 6692020-10-02 Nitika Achra <Nitika.Achra@amd.com>
670
671 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
672 and DW_MACRO_undef_strx.
673 (dwarf_decode_macros): Likewise
674 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
675 which is the value of DW_AT_str_offsets_base.
676 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
677 str_offsets_base.
678
064280be
KR
6792020-10-01 Kamil Rytarowski <n54@gmx.com>
680
681 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
682
6ff33035
KR
6832020-10-01 Kamil Rytarowski <n54@gmx.com>
684
685 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
686 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
687
1eb6eb79
KR
6882020-10-01 Kamil Rytarowski <n54@gmx.com>
689
690 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
691
95eb9e54
TV
6922020-09-30 Tom de Vries <tdevries@suse.de>
693
694 PR symtab/26683
695 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
696
cae21f8e
TT
6972020-09-30 Tom Tromey <tromey@adacore.com>
698
699 * dwarf2/read.c (handle_variant): Use constant_value.
700
529908cb
TT
7012020-09-29 Tom Tromey <tom@tromey.com>
702
703 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
704 (read_file_scope, dwarf2_get_pc_bounds)
705 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
706 (read_structure_type, handle_struct_member_die)
707 (read_enumeration_type, read_array_type, read_set_type)
708 (read_tag_pointer_type, read_tag_reference_type)
709 (read_subroutine_type, read_base_type, read_subrange_type)
710 (read_full_die_1, partial_die_info::read)
711 (partial_die_info::read, by, new_symbol)
712 (dwarf2_const_value_data, dwarf2_const_value_attr)
713 (dump_die_shallow, dwarf2_fetch_constant_bytes)
714 (prepare_one_comp_unit): Update.
715 * dwarf2/attribute.h (DW_UNSND): Remove.
716
c45bc3f8
TT
7172020-09-29 Tom Tromey <tom@tromey.com>
718
719 * dwarf2/read.c (read_func_scope, prototyped_function_p)
720 (read_subroutine_type, partial_die_info::read)
721 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
722 (dwarf2_add_member_fn): Update.
723 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
724 * dwarf2/attribute.c (attribute::as_boolean): New method.
725
23dca5c3
TT
7262020-09-29 Tom Tromey <tom@tromey.com>
727
728 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
729 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
730 method.
731 * dwarf2/attribute.c (attribute::as_virtuality): New method.
732
52c14d11
TT
7332020-09-29 Tom Tromey <tom@tromey.com>
734
735 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
736 the attribute's form.
737
e8e5c158
TT
7382020-09-29 Tom Tromey <tom@tromey.com>
739
740 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
741 (dwarf2_add_member_fn): Update.
742 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
743 * dwarf2/attribute.c (attribute::defaulted): New method, from
744 is_valid_DW_AT_defaulted.
745
d4df075e
TT
7462020-09-29 Tom Tromey <tom@tromey.com>
747
748 * dwarf2/read.c (dw2_get_file_names_reader)
749 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
750 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
751 (dwarf2_symbol_mark_computed): Use as_unsigned.
752 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
753 method.
754 <form_is_section_offset>: Update comment.
755
bf23a268
TT
7562020-09-29 Tom Tromey <tom@tromey.com>
757
758 * dwarf2/read.c (dwarf2_access_attribute): Rename from
759 dwarf2_default_access_attribute. Look up attribute.
760 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
761 Update.
762
7a5f294d
TT
7632020-09-29 Tom Tromey <tom@tromey.com>
764
765 * dwarf2/read.c (skip_one_die): Update.
766 (read_full_die_1): Change how reprocessing is done.
767 (partial_die_info::read): Update.
768 (read_attribute_value): Remove need_reprocess parameter.
769 (read_attribute): Likewise.
770 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
771 New method.
772
36d378cf
TT
7732020-09-29 Tom Tromey <tom@tromey.com>
774
775 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
776 (dwarf2_const_value_attr, dump_die_shallow)
777 (dwarf2_fetch_constant_bytes): Update.
778 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
779 comment.
780 <set_address>: New method.
781 (DW_ADDR): Remove.
782 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
783 (attribute::as_string, attribute::as_address): Add assert.
784
fe56917a
TT
7852020-09-29 Tom Tromey <tom@tromey.com>
786
787 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
788 (read_attribute_reprocess, read_attribute_value): Update.
789 (read_attribute): Clear requires_reprocessing.
790 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
791 form_requires_reprocessing>: New methods.
792 <string_init>: Clear requires_reprocessing.
793 <set_unsigned_reprocess>: New method.
794 <name>: Shrink by one bit.
795 <requires_reprocessing>: New member.
796 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
797 method.
798
414ad644
TT
7992020-09-29 Tom Tromey <tom@tromey.com>
800
801 * dwarf2/read.c (read_attribute_value): Update.
802 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
803 set_unsigned>: New methods.
804 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
805
1bc397c5
TT
8062020-09-29 Tom Tromey <tom@tromey.com>
807
808 * dwarf2/read.c (get_alignment, read_array_order)
809 (read_attribute_value, dwarf2_const_value_attr)
810 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
811 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
812 New methods.
813 (DW_SND): Remove.
814
630ed6b9
TT
8152020-09-29 Tom Tromey <tom@tromey.com>
816
817 * dwarf2/read.c (read_attribute_value, lookup_die_type)
818 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
819 Update.
820 * dwarf2/attribute.h (struct attribute) <as_signature,
821 set_signature>: New methods.
822 (DW_SIGNATURE): Remove.
823
9d2246fc
TT
8242020-09-29 Tom Tromey <tom@tromey.com>
825
826 * dwarf2/read.c (read_call_site_scope)
827 (handle_data_member_location, dwarf2_add_member_fn)
828 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
829 (partial_die_info::read, read_attribute_value)
830 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
831 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
832 (dwarf2_symbol_mark_computed): Update.
833 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
834 methods.
835 (DW_BLOCK): Remove.
836 * dwarf2/attribute.c (attribute::form_is_block): Add
837 DW_FORM_data16.
838
c6481205
TT
8392020-09-29 Tom Tromey <tom@tromey.com>
840
841 * dwarf2/read.c (read_cutu_die_from_dwo)
842 (read_attribute_reprocess, read_attribute_value, read_attribute)
843 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
844 (dwarf2_fetch_constant_bytes): Update.
845 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
846 <set_string_noncanonical, set_string_canonical>: New methods.
847 <string_is_canonical>: Update comment.
848 <canonical_string_p>: Add assert.
849 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
850 * dwarf2/attribute.c (attribute::form_is_string): New method.
851 (attribute::string): Use it.
852
3b64bf15
TT
8532020-09-29 Tom Tromey <tom@tromey.com>
854
855 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
856 (dump_die_shallow): Use canonical_string_p.
857 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
858 method.
859
2c830f54
TT
8602020-09-29 Tom Tromey <tom@tromey.com>
861
862 * dwarf2/read.c (partial_die_info::read)
863 (dwarf2_const_value_attr, anonymous_struct_prefix, )
864 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
865 attribute::as_string.
866
6c412691
TT
8672020-09-29 Tom Tromey <tom@tromey.com>
868
869 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
870 DW_ADDR.
871 (attribute::string): Don't use DW_STRING.
872 (attribute::get_ref_die_offset): Don't use DW_UNSND.
873 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
874
95f982e5
TT
8752020-09-29 Tom Tromey <tom@tromey.com>
876
877 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
878 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
879 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
880 * dwarf2/attribute.h (struct attribute): Rename methods.
881 * dwarf2/attribute.c (attribute::as_address): Rename from
882 value_as_address.
883 (attribute::as_string): Rename from value_as_string.
884
f800b00e
TT
8852020-09-29 Tom Tromey <tom@tromey.com>
886
887 * dwarf2/read.c (partial_die_info::read) <case
888 DW_AT_linkage_name>: Use value_as_string.
889 (dwarf2_string_attr): Use value_as_string.
890 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
891 method.
892 * dwarf2/attribute.c (attribute::value_as_string): New method.
893
de38d64a
PA
8942020-09-29 Pedro Alves <pedro@palves.net>
895
896 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
897 defined before using '#pragma GCC diagnostic' instead of checking
898 __clang__.
899
9aed480c
TT
9002020-09-28 Tom Tromey <tom@tromey.com>
901
902 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
903 (handle_signal_stop): Update.
904 * procfs.c (procfs_target::insert_watchpoint): Update.
905 * target.h (target_have_steppable_watchpoint): Now a function.
906
8a3ecb79
TT
9072020-09-28 Tom Tromey <tom@tromey.com>
908
909 * infrun.c (set_schedlock_func): Update.
910 * target.h (target_can_lock_scheduler): Now a function.
911
55f6301a
TT
9122020-09-28 Tom Tromey <tom@tromey.com>
913
914 * inferior.h (class inferior) <has_execution>: Update.
915 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
916 * valops.c (find_function_in_inferior)
917 (value_allocate_space_in_inferior): Update.
918 * top.c (kill_or_detach): Update.
919 * target.c (target_preopen, set_target_permissions): Update.
920 (target_has_execution_current): Remove.
921 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
922 Update.
923 * solib.c (update_solib_list, reload_shared_libraries): Update.
924 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
925 * solib-dsbt.c (enable_break): Update.
926 * score-tdep.c (score7_fetch_inst): Update.
927 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
928 Update.
929 * remote.c (remote_target::start_remote)
930 (remote_target::remote_check_symbols, remote_target::open_1)
931 (remote_target::remote_detach_1, remote_target::verify_memory)
932 (remote_target::xfer_partial, remote_target::read_description)
933 (remote_target::get_min_fast_tracepoint_insn_len): Update.
934 * record-full.c (record_full_open_1): Update.
935 * record-btrace.c (record_btrace_target_open): Update.
936 * objc-lang.c (lookup_objc_class, lookup_child_selector)
937 (value_nsstring): Update.
938 * linux-thread-db.c (add_thread_db_info)
939 (thread_db_find_new_threads_silently, check_thread_db_callback)
940 (try_thread_db_load_1, record_thread): Update.
941 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
942 Update.
943 * linux-fork.c (checkpoint_command): Update.
944 * infrun.c (set_non_stop, set_observer_mode)
945 (check_multi_target_resumption, for_each_just_stopped_thread)
946 (maybe_remove_breakpoints, normal_stop)
947 (class infcall_suspend_state): Update.
948 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
949 (info_program_command, attach_command): Update.
950 * infcall.c (call_function_by_hand_dummy): Update.
951 * inf-loop.c (inferior_event_handler): Update.
952 * gcore.c (gcore_command, derive_heap_segment): Update.
953 * exec.c (exec_file_command): Update.
954 * eval.c (evaluate_subexp): Update.
955 * compile/compile.c (compile_to_object): Update.
956 * cli/cli-dump.c (restore_command): Update.
957 * breakpoint.c (update_watchpoint)
958 (update_inserted_breakpoint_locations)
959 (insert_breakpoint_locations, get_bpstat_thread): Update.
960 * target.h (target_has_execution): Remove macro.
961 (target_has_execution_current): Don't declare.
962 (target_has_execution): Rename from target_has_execution_1. Add
963 argument default.
964
05374cfd
TT
9652020-09-28 Tom Tromey <tom@tromey.com>
966
967 * mi/mi-main.c (exec_reverse_continue)
968 (mi_cmd_list_target_features): Update.
969 * infrun.c (set_exec_direction_func): Update.
970 * target.c (default_execution_direction): Update.
971 * reverse.c (exec_reverse_once): Update.
972 * target.h (target_can_execute_reverse): Now a function.
973
9dccd06e
TT
9742020-09-28 Tom Tromey <tom@tromey.com>
975
976 * tui/tui-regs.c (tui_get_register)
977 (tui_data_window::show_registers): Update.
978 * thread.c (scoped_restore_current_thread::restore)
979 (scoped_restore_current_thread::scoped_restore_current_thread):
980 Update.
981 * regcache-dump.c (regcache_print): Update.
982 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
983 Update.
984 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
985 * mep-tdep.c (current_me_module, current_options): Update.
986 * linux-thread-db.c (thread_db_load): Update.
987 * infcmd.c (registers_info, info_vector_command)
988 (info_float_command): Update.
989 * ia64-tdep.c (ia64_frame_prev_register)
990 (ia64_sigtramp_frame_prev_register): Update.
991 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
992 * gcore.c (derive_stack_segment): Update.
993 * frame.c (get_current_frame, has_stack_frames): Update.
994 * findvar.c (language_defn::read_var_value): Update.
995 * arm-tdep.c (arm_pc_is_thumb): Update.
996 * target.c (target_has_registers): Rename from
997 target_has_registers_1.
998 * target.h (target_has_registers): Remove macro.
999 (target_has_registers): Rename from target_has_registers_1.
1000
841de120
TT
10012020-09-28 Tom Tromey <tom@tromey.com>
1002
1003 * windows-tdep.c (tlb_make_value): Update.
1004 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1005 * thread.c (scoped_restore_current_thread::restore)
1006 (scoped_restore_current_thread::scoped_restore_current_thread)
1007 (thread_command): Update.
1008 * stack.c (backtrace_command_1, frame_apply_level_command)
1009 (frame_apply_all_command, frame_apply_command): Update.
1010 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1011 Update.
1012 * gcore.c (derive_stack_segment): Update.
1013 * frame.c (get_current_frame, has_stack_frames): Update.
1014 * auxv.c (info_auxv_command): Update.
1015 * ada-tasks.c (ada_build_task_list): Update.
1016 * target.c (target_has_stack): Rename from target_has_stack_1.
1017 * target.h (target_has_stack): Remove macro.
1018 (target_has_stack): Rename from target_has_stack_1.
1019
a739972c
TT
10202020-09-28 Tom Tromey <tom@tromey.com>
1021
1022 * target.c (target_has_memory): Rename from target_has_memory_1.
1023 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1024 * thread.c (scoped_restore_current_thread::restore)
1025 (scoped_restore_current_thread::scoped_restore_current_thread):
1026 Update.
1027 * frame.c (get_current_frame, has_stack_frames): Update.
1028 * target.h (target_has_memory): Remove macro.
1029 (target_has_memory): Rename from target_has_memory_1.
1030
5b8a4776
TT
10312020-09-28 Tom Tromey <tom@tromey.com>
1032
1033 * target.c (target_has_all_memory_1): Remove.
1034 * target.h (target_has_all_memory): Remove define.
1035 (target_has_all_memory_1): Don't declare.
1036
bd356ec6
SM
10372020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1038
1039 * ser-base.c: Adjust comments formatting.
1040
2c72d5e5
TT
10412020-09-27 Tom Tromey <tom@tromey.com>
1042
1043 PR tui/25342:
1044 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1045
35a98237
TT
10462020-09-27 Tom Tromey <tom@tromey.com>
1047
1048 PR tui/25342:
1049 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1050
9e820dec
TT
10512020-09-27 Tom Tromey <tom@tromey.com>
1052
1053 * unittests/tui-selftests.c: Update.
1054 * tui/tui-winsource.h (struct tui_source_window_base)
1055 <extra_margin, show_line_number, refresh_pad>: New methods.
1056 <m_max_length, m_pad>: New members.
1057 (tui_copy_source_line): Update.
1058 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1059 first_col, line_width, ndigits parameters. Add length.
1060 (tui_source_window_base::show_source_line): Write to pad. Line
1061 number now 0-based.
1062 (tui_source_window_base::refresh_pad): New method.
1063 (tui_source_window_base::show_source_content): Write to pad. Call
1064 refresh_pad.
1065 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1066 not refill.
1067 (tui_source_window_base::update_exec_info): Call
1068 show_line_number.
1069 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1070 method.
1071 <m_digits>: New member.
1072 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1073 and m_max_length.
1074 (tui_source_window::show_line_number): New method.
1075 * tui/tui-io.h (tui_puts): Fix comment.
1076 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1077 m_max_length.
1078
c15c15c8
TT
10792020-09-27 Tom Tromey <tom@tromey.com>
1080
1081 * tui/tui-winsource.c
1082 (tui_source_window_base::set_is_exec_point_at): Don't call
1083 show_source_line.
1084
149830c1
TT
10852020-09-27 Tom Tromey <tom@tromey.com>
1086
1087 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1088 method.
1089 <erase>: Update.
1090 <cursor_x, cursor_y>: Remove.
1091 <m_inner_window>: New member.
1092 (tui_py_window::rerender): Create inner window.
1093 (tui_py_window::output): Write to inner window.
1094
8f9929bb
GR
10952020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1096
1097 PR python/26586
1098 * cli/cli-script.c (execute_control_commands): don't set
1099 instream to nullptr here as this breaks the from_tty argument
1100 to gdb.execute in Python.
1101 (execute_user_command): set instream to nullptr here instead.
1102
956bdb59
SM
11032020-09-25 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * infrun.h (infrun_debug_printf): Fix formatting.
1106 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1107
3b93626b
SJ
11082020-09-25 Saagar Jha <saagar@saagarjha.com>
1109
1110 * compile/compile-object-load.h (struct munmap_list): Add
1111 explicitly-defined move constructor.
1112
b551a89f
TT
11132020-09-24 Tom Tromey <tromey@adacore.com>
1114
1115 PR tui/26638:
1116 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1117 method.
1118 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1119 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1120 (tui_prev_win): Rewrite.
1121
99bb393f
HD
11222020-09-23 Hannes Domani <ssbssa@yahoo.de>
1123
1124 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1125 in WOW64 processes as SIGINT.
1126 * nat/windows-nat.h: Make wow64_process a shared variable.
1127 * windows-nat.c: Remove static wow64_process variable.
1128
20a5fcbd
TT
11292020-09-23 Tom Tromey <tom@tromey.com>
1130
1131 PR symtab/25470:
1132 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1133 offset and bit size.
1134 * printcmd.c (print_scalar_formatted): Handle zero-length
1135 integer.
1136 (print_scalar_formatted): Use bit_size_differs_p.
1137 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1138 constant.
1139 (union type_specific): <int_stuff>: New member.
1140 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1141 methods.
1142 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1143 TYPE_SPECIFIC_FIELD.
1144 (recursive_dump_type, copy_type_recursive): Update.
1145 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1146 DW_AT_data_bit_offset.
1147
bac51ab7
TT
11482020-09-23 Tom Tromey <tom@tromey.com>
1149
1150 * utils.h (class gdb_argv): Add move operators.
1151 <append>: New methods.
1152 * compile/compile.c (build_argc_argv): Remove.
1153 (compile_args_argc): Remove.
1154 (compile_args_argv): Change type.
1155 (set_compile_args): Simplify.
1156 (append_args): Remove.
1157 (filter_args): Remove argcp parameter.
1158 (get_args): Return gdb_argv. Simplify.
1159 (compile_to_object): Update.
1160
92677124
TT
11612020-09-23 Tom Tromey <tom@tromey.com>
1162
1163 * compile/compile-object-run.c (do_module_cleanup)
1164 <~do_module_cleanup> :Remove.
1165 (do_module_cleanup): Update.
1166 * compile/compile-object-load.h (struct munmap_list): Add move
1167 assignment operator.
1168 <source_file>: Now a std::string.
1169 <munmap_list>: Rename. No longer a pointer.
1170 * compile/compile-object-load.c (struct setup_sections_data): Add
1171 constructor.
1172 <setup_one_section>: Declare.
1173 <munmap_list>: Move earlier.
1174 <m_bfd>: New member.
1175 <m_last_size, m_last_section_first, m_last_prot,
1176 m_last_max_alignment>: Rename, add initializers where needed.
1177 (setup_sections_data::setup_one_section): Rename from
1178 setup_sections. Update.
1179 (compile_object_load): Update. Don't use bfd_map_over_sections.
1180
e616f60a
TT
11812020-09-23 Tom Tromey <tom@tromey.com>
1182
1183 * compile/compile-object-run.c (struct do_module_cleanup): Add
1184 parameters to constructor. Update destructor.
1185 <source_file, scope, scope_data, out_value_type, out_value_addr,
1186 munmap_list_head, objfile_name_string>: Remove.
1187 <module>: New member.
1188 (do_module_cleanup): Update.
1189 (compile_object_run): Update.
1190
e947a848
TT
11912020-09-23 Tom Tromey <tom@tromey.com>
1192
1193 * compile/compile.c (eval_compile_command): Update.
1194 * compile/compile-object-run.h (compile_object_run): Take a
1195 compile_module_up.
1196 * compile/compile-object-run.c (compile_object_run): Take a
1197 compile_module_up.
1198 * compile/compile-object-load.h (struct compile_module): Add
1199 constructor, destructor.
1200 (compile_module_up): New typedef.
1201 (compile_object_load): Return compile_object_up.
1202 * compile/compile-object-load.c (compile_object_load): Return
1203 compile_module_up.
1204
0dbf6ee6
TT
12052020-09-23 Tom Tromey <tom@tromey.com>
1206
1207 * compile/compile-object-run.c (struct do_module_cleanup): Add
1208 constructor, destructor.
1209 <objfile_name_string>: Don't use struct hack.
1210 (do_module_cleanup): Use delete.
1211 (compile_object_run): Use new.
1212
ebe824f5
TT
12132020-09-23 Tom Tromey <tom@tromey.com>
1214
1215 * compile/compile-cplus-types.c
1216 (compile_cplus_convert_struct_or_union): Use std::vector.
1217 (compile_cplus_convert_func): Likewise.
1218 * compile/compile-c-types.c (convert_func): Use std::vector.
1219
5dd918d9
TT
12202020-09-21 Tom Tromey <tromey@adacore.com>
1221
1222 * sparc-tdep.c (sparc32_skip_prologue): Use
1223 skip_prologue_using_sal.
1224
5486c517
TT
12252020-09-19 Tom Tromey <tom@tromey.com>
1226
1227 * symfile.c (add_section_size_callback): Remove.
1228 (load_one_section): Rename from load_section_callback. Change
1229 parameters.
1230 (generic_load): Use foreach.
1231
8a6bb1d1
TT
12322020-09-19 Tom Tromey <tom@tromey.com>
1233
1234 * exec.c (add_to_section_table): Remove.
1235 (build_section_table): Use foreach.
1236
08f93a1a
TT
12372020-09-19 Tom Tromey <tom@tromey.com>
1238
1239 * elfread.c (elf_locate_sections): Change parameters.
1240 (elf_symfile_read): Use foreach.
1241
03cd72b8
TT
12422020-09-19 Tom Tromey <tom@tromey.com>
1243
1244 * cli/cli-dump.c (struct callback_data): Remove.
1245 (restore_one_section): Rename from restore_section_callback.
1246 Change parameters.
1247 (restore_binary_file): Change parameters.
1248 (restore_command): Use foreach.
1249
f4f2b85f
TT
12502020-09-19 Tom Tromey <tom@tromey.com>
1251
1252 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1253 (gcore_copy_callback): Likewise.
1254 (gcore_memory_sections): Use foreach.
1255
b35c1d1c
TT
12562020-09-19 Tom Tromey <tom@tromey.com>
1257
1258 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1259 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1260 parameters.
1261 (generic_elf_osabi_sniffer): Use foreach.
1262 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1263 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1264
5bb6e9dd
TT
12652020-09-19 Tom Tromey <tom@tromey.com>
1266
1267 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1268 (dwarf2_get_dwz_file): Use foreach.
1269 (dwarf2_locate_dwo_sections): Change parameters.
1270 (open_and_init_dwo_file): Use foreach.
1271 (dwarf2_locate_common_dwp_sections): Change parameters.
1272 (open_and_init_dwp_file): Use foreach.
1273
ad7277da
TT
12742020-09-19 Tom Tromey <tom@tromey.com>
1275
1276 * symfile.h: (find_lowest_section): Don't declare.
1277 * symfile.c (find_lowest_section): Now static. Change
1278 parameters.
1279 (struct place_section_arg): Remove.
1280 (place_section): Change parameters.
1281 (addr_info_make_relative): Use foreach.
1282 (symfile_dummy_outputs): Remove.
1283 (default_symfile_relocate): Use foreach.
1284
cb814f2e
TT
12852020-09-19 Tom Tromey <tom@tromey.com>
1286
1287 * objfiles.c (add_to_objfile_sections): Rename from
1288 add_to_objfile_sections_full.
1289 (add_to_objfile_sections): Remove.
1290 (build_objfile_section_table): Use foreach.
1291
3cabfd26
TT
12922020-09-19 Tom Tromey <tom@tromey.com>
1293
1294 * stap-probe.c (get_stap_base_address_1): Remove.
1295 (get_stap_base_address): Use foreach.
1296
1ce51eb5
TT
12972020-09-19 Tom Tromey <tom@tromey.com>
1298
1299 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1300 parameters.
1301 (gdb_bfd_close_or_warn): Use foreach.
1302
a190fabb
TT
13032020-09-19 Tom Tromey <tom@tromey.com>
1304
1305 * corelow.c (add_to_thread_list): Change parameters.
1306 (core_target_open): Use foreach.
1307
cafb0d81
TT
13082020-09-19 Tom Tromey <tom@tromey.com>
1309
1310 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1311 existing function.
1312
c8d5abea
AB
13132020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1316 for arrays.
1317
6d816919
AB
13182020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * eval.c: Remove 'f-lang.h' include.
1321 (value_f90_subarray): Moved to f-lang.c.
1322 (eval_call): Renamed to...
1323 (evaluate_subexp_do_call): ...this, is no longer static, header
1324 comment moved into header file.
1325 (evaluate_funcall): Update call to eval_call.
1326 (skip_undetermined_arglist): Moved to f-lang.c.
1327 (fortran_value_subarray): Likewise.
1328 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1329 moved to evaluate_subexp_f.
1330 (calc_f77_array_dims): Moved to f-lang.c
1331 * expprint.c (print_subexp_funcall): New function.
1332 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1333 moved to print_subexp_f, OP_FUNCALL uses new function.
1334 (dump_subexp_body_funcall): New function.
1335 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1336 moved to dump_subexp_f, OP_FUNCALL uses new function.
1337 * expression.h (evaluate_subexp_do_call): Declare.
1338 * f-lang.c (value_f90_subarray): Moved from eval.c.
1339 (skip_undetermined_arglist): Likewise.
1340 (calc_f77_array_dims): Likewise.
1341 (fortran_value_subarray): Likewise.
1342 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1343 (operator_length_f): Likewise.
1344 (print_subexp_f): Likewise.
1345 (dump_subexp_body_f): Likewise.
1346 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1347 declaration of this operation to here.
1348 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1349 support moved to operator_length_f.
1350 * parser-defs.h (dump_subexp_body_funcall): Declare.
1351 (print_subexp_funcall): Declare.
1352 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1353 fortran-operator.def.
1354
8c37706a
AB
13552020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1356
1357 * eval.c (fortran_value_subarray): New function, content is taken
1358 from...
1359 (evaluate_subexp_standard): ...here, in two places. Now arrays
1360 and strings both call the new function.
1361 (calc_f77_array_dims): Add header comment, handle strings.
1362
14f9473c
VC
13632020-09-18 Victor Collod <vcollod@nvidia.com>
1364
1365 PR gdb/26635
1366 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1367 (i386_analyze_prologue): Call i386_skip_endbr.
1368
b60cea74
TT
13692020-09-18 Tom Tromey <tromey@adacore.com>
1370
1371 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1372 (windows_nat_target::wait): Update.
1373 * target/wait.h (enum target_wait_flag): New. Use
1374 DEF_ENUM_FLAGS_TYPE.
1375 * target/target.h (target_wait): Change type of options.
1376 * target.h (target_options_to_string, default_target_wait):
1377 Update.
1378 (struct target_ops) <wait>: Change type of options.
1379 * target.c (target_wait, default_target_wait, do_option): Change
1380 type of "options".
1381 (target_options_to_string): Likewise.
1382 * target-delegates.c: Rebuild.
1383 * target-debug.h (target_debug_print_target_wait_flags): Rename
1384 from target_debug_print_options.
1385 * sol-thread.c (class sol_thread_target) <wait>: Update.
1386 (sol_thread_target::wait): Update.
1387 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1388 (rs6000_nat_target::wait): Update.
1389 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1390 Update.
1391 (remote_target::wait_ns, remote_target::wait_as): Change type of
1392 "options".
1393 (remote_target::wait): Update.
1394 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1395 (gdbsim_target::wait): Update.
1396 * record-full.c (class record_full_base_target) <wait>: Update.
1397 (record_full_wait_1): Change type of "options".
1398 (record_full_base_target::wait): Update.
1399 * record-btrace.c (class record_btrace_target) <wait>: Update.
1400 (record_btrace_target::wait): Update.
1401 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1402 Update.
1403 (ravenscar_thread_target::wait): Update.
1404 * procfs.c (class procfs_target) <wait>: Update.
1405 (procfs_target::wait): Update.
1406 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1407 * obsd-nat.c (obsd_nat_target::wait): Update.
1408 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1409 (nto_procfs_target::wait): Update.
1410 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1411 * nbsd-nat.c (nbsd_wait): Change type of "options".
1412 (nbsd_nat_target::wait): Update.
1413 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1414 (thread_db_target::wait): Update.
1415 * linux-nat.h (class linux_nat_target) <wait>: Update.
1416 * linux-nat.c (linux_nat_target::wait): Update.
1417 (linux_nat_wait_1): Update.
1418 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1419 "options".
1420 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1421 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1422 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1423 (go32_nat_target::wait): Update.
1424 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1425 * gnu-nat.c (gnu_nat_target::wait): Update.
1426 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1427 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1428 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1429 * darwin-nat.c (darwin_nat_target::wait): Update.
1430 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1431 (bsd_uthread_target::wait): Update.
1432 * aix-thread.c (class aix_thread_target) <wait>: Update.
1433 (aix_thread_target::wait): Update.
1434
0295dde6
AB
14352020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * compile/compile-object-run.c (create_copied_type_recursive): New
1438 function.
1439 (compile_object_run): Use new function.
1440
d3483b43
JT
14412020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1442
1443 * NEWS: Mention x86_64 Cygwin core file support.
1444
e7d612ad
JT
14452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1446
1447 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1448 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1449
aff9d387
JT
14502020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1451
62a5151b
JT
1452 * windows-tdep.h: Add prototypes.
1453 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1454 (i386_windows_core_pid_to_str): Move and rename ...
1455 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1456 (windows_core_pid_to_str): ... and here.
1457 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1458
14592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1460 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1461 (amd64_windows_init_abi_common): ... and register.
1462
7d155da3
JT
14632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1464
1465 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1466 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1467
e8ef12b9
PA
14682020-09-18 Pedro Alves <pedro@palves.net>
1469
1470 PR gdb/26631
1471 * thread.c (thread_find_command): Switch inferior before calling
1472 target methods.
1473
c1e1314d
TT
14742020-09-17 Tom Tromey <tromey@adacore.com>
1475
1476 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1477 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1478 (tdesc_arch_data_up): New typedef.
1479 (tdesc_use_registers, tdesc_data_alloc): Update.
1480 (tdesc_data_cleanup): Don't declare.
1481 * target-descriptions.c (tdesc_data_alloc): Return a
1482 tdesc_arch_data_up.
1483 (tdesc_arch_data_deleter::operator()): Rename from
1484 tdesc_data_cleanup. Change argument type.
1485 (tdesc_use_registers): Change early_data to an rvalue reference.
1486 (tdesc_use_registers): Don't use delete.
1487 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1488 * s390-tdep.c (s390_gdbarch_init): Update.
1489 * rx-tdep.c (rx_gdbarch_init): Update.
1490 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1491 * riscv-tdep.c (riscv_gdbarch_init): Update.
1492 * or1k-tdep.c (or1k_gdbarch_init): Update.
1493 * nios2-tdep.c (nios2_gdbarch_init): Update.
1494 * nds32-tdep.c (nds32_gdbarch_init): Update.
1495 * mips-tdep.c (mips_gdbarch_init): Update.
1496 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1497 * m68k-tdep.c (m68k_gdbarch_init): Update.
1498 * i386-tdep.c (i386_gdbarch_init): Update.
1499 * arm-tdep.c (arm_gdbarch_init): Update.
1500 * arc-tdep.c (arc_tdesc_init): Update.
1501 (arc_gdbarch_init): Update.
1502 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1503
0363df3d
HD
15042020-09-17 Hannes Domani <ssbssa@yahoo.de>
1505
1506 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1507 for WOW64 processes.
1508
280a9412
TT
15092020-09-17 Tom Tromey <tom@tromey.com>
1510
1511 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1512
6108fd18
TT
15132020-09-17 Tom Tromey <tom@tromey.com>
1514
1515 * value.c (preserve_values): Update.
1516 * python/py-type.c (save_objfile_types): Update.
1517 * guile/scm-type.c (save_objfile_types): Update.
1518 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1519 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1520 * compile/compile-object-run.c (compile_object_run): Update.
1521
fa9b1164
TT
15222020-09-17 Tom Tromey <tom@tromey.com>
1523
1524 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1525 Remove.
1526 <m_table>: Now htab_up.
1527 * typeprint.c (typedef_hash_table::recursively_update)
1528 (typedef_hash_table::add_template_parameters)
1529 (typedef_hash_table::typedef_hash_table): Update.
1530 (typedef_hash_table::~typedef_hash_table): Remove.
1531 (typedef_hash_table::typedef_hash_table)
1532 (typedef_hash_table::find_global_typedef)
1533 (typedef_hash_table::find_typedef): Update.
1534
eb53f105
TT
15352020-09-17 Tom Tromey <tom@tromey.com>
1536
1537 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1538
7a8a5d47
TT
15392020-09-17 Tom Tromey <tom@tromey.com>
1540
1541 * linespec.c (class decode_compound_collector)
1542 <~decode_compound_collector>: Remove.
1543 <m_unique_syms>: Now htab_up.
1544 (decode_compound_collector::operator ()): Update.
1545 (class symtab_collector) <~symtab_collector>: Remove.
1546 <m_symtab_table>: Now htab_up.
1547 (symtab_collector::operator ()): Update.
1548
99032cfc
TT
15492020-09-17 Tom Tromey <tom@tromey.com>
1550
1551 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1552 (filename_seen_cache::clear): Update.
1553 (~filename_seen_cache): Remove.
1554 (filename_seen_cache::seen): Update.
1555 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1556 htab_up.
1557 <~filename_seen_cache>: Remove.
1558 <traverse>: Update.
1559
32580f6d
TT
15602020-09-17 Tom Tromey <tom@tromey.com>
1561
1562 * completer.c (completion_tracker::discard_completions)
1563 (completion_tracker::~completion_tracker)
1564 (completion_tracker::maybe_add_completion)
1565 (completion_tracker::remove_completion)
1566 (completion_tracker::recompute_lowest_common_denominator)
1567 (completion_tracker::build_completion_result): Update.
1568 * completer.h (class completion_tracker) <have_completions>:
1569 Update.
1570 <m_entries_hash>: Now htab_up.
1571
c1fb9836
TT
15722020-09-17 Tom Tromey <tom@tromey.com>
1573
1574 * breakpoint.c (ambiguous_names_p): Use htab_up.
1575
88f07206
TT
15762020-09-17 Tom Tromey <tom@tromey.com>
1577
1578 * auto-load.c (struct auto_load_pspace_info)
1579 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1580 <loaded_script_files, loaded_script_texts>: Change type to
1581 htab_up.
1582 (~auto_load_pspace_info) Remove.
1583 (init_loaded_scripts_info, maybe_add_script_file)
1584 (maybe_add_script_text, auto_load_info_scripts): Update.
1585
9519b2ee
TT
15862020-09-17 Tom Tromey <tromey@adacore.com>
1587
1588 * c-exp.y (name_obstack): Now static.
1589
d2cd4113
CC
15902020-09-17 Chungyi Chi <demonic@csie.io>
1591
1592 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1593
b650a282
SM
15942020-09-16 Simon Marchi <simon.marchi@efficios.com>
1595
1596 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1597 (add_solib_catchpoint): Likewise.
1598 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1599 to bool.
1600 (add_solib_catchpoint): Change int parameter/variable to bool.
1601 (catch_load_or_unload): Likewise.
1602 (init_catchpoint): Likewise.
1603 (create_fork_vfork_event_catchpoint): Likewise.
1604 (catch_fork_command_1): Likewise.
1605 (catch_exec_command_1): Likewise.
1606
4d0bcfcf
SM
16072020-09-16 Simon Marchi <simon.marchi@efficios.com>
1608
1609 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1610 Change instance_flags to m_instance_flags.
1611
fe830662
TT
16122020-09-16 Tom Tromey <tromey@adacore.com>
1613
1614 PR gdb/26598:
1615 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1616
fe5ddfc3
JB
16172020-09-16 John Baldwin <jhb@FreeBSD.org>
1618
1619 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1620 PL_FLAG_EXEC.
1621 (fbsd_nat_target::insert_exec_catchpoint)
1622 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1623 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1624 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1625
e911c666
JB
16262020-09-16 John Baldwin <jhb@FreeBSD.org>
1627
1628 * configure.ac: Remove check for kinfo_getvmmap().
1629 * configure, config.in: Regenerate.
1630 * fbsd-nat.c (fbsd_read_mapping): Remove
1631 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1632 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1633 kinfo_get_vmmap() are always present.
1634
1f17d372
JB
16352020-09-16 John Baldwin <jhb@FreeBSD.org>
1636
1637 * fbsd-nat.c: Always include support for
1638 TARGET_OBJECT_SIGNAL_INFO.
1639
bcb1da7f
JB
16402020-09-16 John Baldwin <jhb@FreeBSD.org>
1641
1642 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1643 sysctl and remove procfs fallback.
1644
5515f729
JB
16452020-09-16 John Baldwin <jhb@FreeBSD.org>
1646
1647 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1648 * fbsd-nat.h: Likewise.
1649
da1df1db
TBA
16502020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1651
1652 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1653 argument.
1654
0e25e767
AB
16552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1656
1657 * ada-lang.c (ada_language_data): Delete.
1658 (ada_language): Remove references to ada_language_data.
1659 * c-lang.c (c_language_data): Delete.
1660 (c_language): Remove references to c_language_data.
1661 (cplus_language_data): Delete.
1662 (cplus_language): Remove references to cplus_language_data.
1663 (asm_language_data): Delete.
1664 (asm_language): Remove references to asm_language_data.
1665 (minimal_language_data): Delete.
1666 (minimal_language): Remove references to minimal_language_data.
1667 * d-lang.c (d_language_data): Delete.
1668 (d_language): Remove references to d_language_data.
1669 * f-lang.c (f_language_data): Delete.
1670 (f_language): Remove references to f_language_data.
1671 * go-lang.c (go_language_data): Delete.
1672 (go_language): Remove references to go_language_data.
1673 * language.c (unknown_language_data): Delete.
1674 (unknown_language): Remove references to unknown_language_data.
1675 (auto_language_data): Delete.
1676 (auto_language): Remove references to auto_language_data.
1677 * language.h (language_data): Delete struct.
1678 (language_defn): No longer inherit from language_data.
1679 * m2-lang.c (m2_language_data): Delete.
1680 (m2_language): Remove references to m2_language_data.
1681 * objc-lang.c (objc_language_data): Delete.
1682 (objc_language): Remove references to objc_language_data.
1683 * opencl-lang.c (opencl_language_data): Delete.
1684 (opencl_language): Remove references to opencl_language_data.
1685 * p-lang.c (pascal_language_data): Delete.
1686 (pascal_language): Remove references to pascal_language_data.
1687 * rust-lang.c (rust_language_data): Delete.
1688 (rust_language): Remove references to rust_language_data.
1689
b7c6e27d
AB
16902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1693 initializer.
1694 (ada_language::opcode_print_table): New member function.
1695 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1696 (c_language::opcode_print_table): New member function.
1697 (cplus_language_data): Remove la_op_print_tab initializer.
1698 (cplus_language::opcode_print_table): New member function.
1699 (asm_language_data): Remove la_op_print_tab initializer.
1700 (asm_language::opcode_print_table): New member function.
1701 (minimal_language_data): Remove la_op_print_tab initializer.
1702 (minimal_language::opcode_print_table): New member function.
1703 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1704 (d_language::opcode_print_table): New member function.
1705 * expprint.c (print_subexp_standard): Update call to
1706 opcode_print_table.
1707 (op_string): Likewise.
1708 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1709 (f_language::opcode_print_table): New member function.
1710 * go-lang.c (go_language_data): Remove la_op_print_tab
1711 initializer.
1712 (go_language::opcode_print_table): New member function.
1713 * language.c (unknown_language_data): Remove la_op_print_tab
1714 initializer.
1715 (unknown_language::opcode_print_table): New member function.
1716 (auto_language_data): Remove la_op_print_tab initializer.
1717 (auto_language::opcode_print_table): New member function.
1718 * language.h (language_data): Remove la_op_print_tab field.
1719 (language_defn::opcode_print_table): Declare new member function.
1720 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1721 initializer.
1722 (m2_language::opcode_print_table): New member function.
1723 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1724 initializer.
1725 (objc_language::opcode_print_table): New member function.
1726 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1727 initializer.
1728 (opencl_language::opcode_print_table): New member function.
1729 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1730 initializer.
1731 (pascal_language::opcode_print_table): New member function.
1732 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1733 initializer.
1734 (rust_language::opcode_print_table): New member function.
1735
5aba6ebe
AB
17362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1739 (ada_language::expression_ops): New member function.
1740 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1741 (c_language::expression_ops): New member function.
1742 (cplus_language_data): Remove la_exp_desc initializer.
1743 (cplus_language::expression_ops): New member function.
1744 (asm_language_data): Remove la_exp_desc initializer.
1745 (asm_language::expression_ops): New member function.
1746 (minimal_language_data): Remove la_exp_desc initializer.
1747 (minimal_language::expression_ops): New member function.
1748 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1749 (d_language::expression_ops): New member function.
1750 * eval.c (evaluate_subexp): Update call to expression_ops.
1751 * expprint.c (print_subexp): Likewise.
1752 (op_name): Likewise.
1753 (dump_subexp_body): Likewise.
1754 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1755 (f_language::expression_ops): New member function.
1756 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1757 (go_language::expression_ops): New member function.
1758 * language.c (language_defn::expression_ops): New function.
1759 (unknown_language_data): Remove la_exp_desc initializer.
1760 (auto_language_data): Likewise.
1761 * language.h (language_data): Remove la_exp_desc field.
1762 (language_defn::expression_ops): Declare new member function.
1763 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1764 (m2_language::expression_ops): New member function.
1765 * objc-lang.c (objc_language_data): Remove la_exp_desc
1766 initializer.
1767 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1768 initializer.
1769 (opencl_language::expression_ops): New member function.
1770 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1771 * parse.c (operator_length): Update call to expression_ops.
1772 (exp_iterate): Likewise.
1773 * rust-lang.c (rust_language_data): Remove la_exp_desc
1774 initializer.
1775 (ruse_language::expression_ops): New member function.
1776
b63a3f3f
AB
17772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1780 initializer.
1781 (ada_language::varobj_ops): New member function.
1782 * c-lang.c (c_language_data): Remove la_varobj_ops
1783 initializer.
1784 (cplus_language_data): Likewise.
1785 (cplus_language::varobj_ops): New member function.
1786 (asm_language_data): Remove la_varobj_ops initializer.
1787 (minimal_language_data): Likewise.
1788 * d-lang.c (d_language_data): Likewise.
1789 * f-lang.c (f_language_data): Likewise.
1790 * go-lang.c (go_language_data): Likewise.
1791 * language.c (language_defn::varobj_ops): New function.
1792 (unknown_language_data): Remove la_varobj_ops
1793 initializer.
1794 (auto_language_data): Likewise.
1795 * language.h (language_data): Remove la_varobj_ops field.
1796 (language_defn::varobj_ops): Declare new member function.
1797 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1798 * objc-lang.c (objc_language_data): Likewise.
1799 * opencl-lang.c (opencl_language_data): Likewise.
1800 * p-lang.c (pascal_language_data): Likewise.
1801 * rust-lang.c (rust_language_data): Likewise.
1802 * varobj.c (varobj_create): Update call to varobj_ops.
1803 * varobj.h (default_varobj_ops): Delete define.
1804
1ac14a04
AB
18052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1808 initializer.
1809 * c-lang.c (c_language_data): Likewise.
1810 (c_language::macro_expansion): New member function.
1811 (cplus_language_data): Likewise.
1812 (cplus_language::macro_expansion): New member function.
1813 (asm_language_data): Likewise.
1814 (asm_language::macro_expansion): New member function.
1815 (minimal_language_data): Likewise.
1816 (minimal_language::macro_expansion): New member function.
1817 * d-lang.c (d_language_data): Remove la_macro_expansion
1818 initializer.
1819 * f-lang.c (f_language_data): Likewise.
1820 * go-lang.c (go_language_data): Likewise.
1821 * language.c (unknown_language_data): Likewise.
1822 (auto_language_data): Likewise.
1823 * language.h (language_data): Remove la_macro_expansion field.
1824 (language_defn::macro_expansion): New member function.
1825 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1826 initializer.
1827 * objc-lang.c (objc_language_data): Likewise.
1828 (objc_language::macro_expansion): New member function.
1829 * opencl-lang.c (opencl_language_data): Likewise.
1830 (opencl_language::macro_expansion): New member function.
1831 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1832 initializer.
1833 * rust-lang.c (rust_language_data): Likewise.
1834 * symtab.c (default_collect_symbol_completion_matches_break_on):
1835 Update call to macro_expansion.
1836
3a3440fb
AB
18372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * ada-lang.c (ada_language_data): Remove la_array_ordering
1840 initializer.
1841 * c-lang.c (c_language_data): Likewise.
1842 (cplus_language_data): Likewise.
1843 (asm_language_data): Likewise.
1844 (minimal_language_data): Likewise.
1845 * d-lang.c (d_language_data): Likewise.
1846 * dwarf2/read.c (read_array_order): Update for call to
1847 array_ordering.
1848 * f-lang.c (f_language_data): Remove la_array_ordering
1849 initializer.
1850 (f_language::array_ordering): New member function.
1851 * go-lang.c (go_language_data): Remove la_array_ordering
1852 initializer.
1853 * language.c (unknown_language_data): Likewise.
1854 (auto_language_data): Likewise.
1855 * language.h (language_data): Delete la_array_ordering field.
1856 (language_defn::array_ordering): New member function.
1857 * m2-lang.c (m2_language_data): Remove la_array_ordering
1858 initializer.
1859 * objc-lang.c (objc_language_data): Likewise.
1860 * opencl-lang.c (opencl_language_data): Likewise.
1861 * p-lang.c (pascal_language_data): Likewise.
1862 * rust-lang.c (rust_language_data): Likewise.
1863
0d201fa4
AB
18642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1867 initializer.
1868 * c-lang.c (c_language_data): Likewise.
1869 (cplus_language_data): Likewise.
1870 (asm_language_data): Likewise.
1871 (minimal_language_data): Likewise.
1872 * d-lang.c (d_language_data): Likewise.
1873 * f-lang.c (f_language_data): Likewise.
1874 (f_language::case_sensitivity): New member function.
1875 * go-lang.c (go_language_data): Remove la_case_sensitivity
1876 initializer.
1877 * language.c (enum case_mode): Moved here from language.h.
1878 (case_mode): Make static.
1879 (show_case_command): Update for case_sensitivity being a method.
1880 (set_case_command): Likewise.
1881 (set_range_case): Likewise.
1882 (unknown_language_data): Remove la_case_sensitivity initializer.
1883 (auto_language_data): Likewise.
1884 * language.h (case_mode): Delete, move enum declaration to
1885 language.c.
1886 (language_data): Delete la_case_sensitivity field.
1887 (language_defn::case_sensitivity): New member function.
1888 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1889 initializer.
1890 * objc-lang.c (objc_language_data): Likewise.
1891 * opencl-lang.c (opencl_language_data): Likewise.
1892 * p-lang.c (pascal_language_data): Likewise.
1893 * rust-lang.c (rust_language_data): Likewise.
1894
efdf6a73
AB
18952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * ada-lang.c (ada_language_data): Remove la_range_check
1898 initializer.
1899 * c-lang.c (c_language_data): Likewise.
1900 (cplus_language_data): Likewise.
1901 (asm_language_data): Likewise.
1902 (minimal_language_data): Likewise.
1903 * d-lang.c (d_language_data): Likewise.
1904 * f-lang.c (f_language_data): Likewise.
1905 (f_language::range_checking_on_by_default): New member function.
1906 * go-lang.c (go_language_data): Remove la_range_check initializer.
1907 * language.c (enum range_mode): Moved here from language.h.
1908 (range_mode): Made static.
1909 (show_range_command): Update to use
1910 range_checking_on_by_default.
1911 (set_range_command): Likewise.
1912 (set_range_case): Likewise.
1913 (unknown_language_data): Remove la_range_check initializer.
1914 (auto_language_data): Likewise.
1915 * language.h (range_mode): Delete. Enum definition moved to
1916 language.c.
1917 (language_data): Remove la_range_check field.
1918 (language_defn::range_checking_on_by_default): New member
1919 function.
1920 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1921 (m2_language::range_checking_on_by_default): New member function.
1922 * objc-lang.c (objc_language_data): Remove la_range_check
1923 initializer.
1924 * opencl-lang.c (opencl_language_data): Likewise.
1925 * p-lang.c (pascal_language_data): Likewise.
1926 (pascal_language::range_checking_on_by_default): New member
1927 function.
1928 * rust-lang.c (rust_language_data): Remove la_range_check
1929 initializer.
1930 (rust_language::range_checking_on_by_default): New member
1931 function.
1932
bf92aec5
AB
19332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * dwarf2/read.c (dwarf2_physname): Remove special case for
1936 language_go.
1937 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1938 member function.
1939
d3355e4d
AB
19402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * ada-lang.c (ada_language_data): Remove
1943 la_store_sym_names_in_linkage_form_p initializer.
1944 (ada_language::store_sym_names_in_linkage_form_p): New member
1945 function.
1946 * c-lang.c (c_language_data): Remove
1947 la_store_sym_names_in_linkage_form_p initializer.
1948 (c_language::store_sym_names_in_linkage_form_p): New member
1949 function.
1950 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1951 initializer.
1952 (asm_language_data): Likewise.
1953 (asm_language::store_sym_names_in_linkage_form_p): New member
1954 function.
1955 (minimal_language_data): Remove
1956 la_store_sym_names_in_linkage_form_p initializer.
1957 (minimal_language::store_sym_names_in_linkage_form_p): New member
1958 function.
1959 * d-lang.c (d_language_data): Remove
1960 la_store_sym_names_in_linkage_form_p initializer.
1961 * dwarf2/read.c (dwarf2_physname): Update call to
1962 store_sym_names_in_linkage_form_p.
1963 * f-lang.c (f_language_data): Remove
1964 la_store_sym_names_in_linkage_form_p initializer.
1965 * go-lang.c (go_language_data): Remove
1966 la_store_sym_names_in_linkage_form_p initializer.
1967 * language.c (unknown_language_data): Remove
1968 la_store_sym_names_in_linkage_form_p initializer.
1969 (unknown_language::store_sym_names_in_linkage_form_p): New member
1970 function.
1971 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1972 initializer.
1973 (auto_language::store_sym_names_in_linkage_form_p): New member
1974 function.
1975 * language.h (language_data): Remove
1976 la_store_sym_names_in_linkage_form_p member variable.
1977 (language_defn::store_sym_names_in_linkage_form_p): New member
1978 function.
1979 * m2-lang.c (m2_language_data): Remove
1980 la_store_sym_names_in_linkage_form_p initializer.
1981 * objc-lang.c (objc_language_data): Likewise.
1982 * opencl-lang.c (opencl_language_data): Likewise.
1983 * p-lang.c (pascal_language_data): Likewise.
1984 * rust-lang.c (rust_language_data): Likewise.
1985
22c12a6c
AB
19862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * ada-lang.c (ada_language_data): Remove string_lower_bound
1989 initializer.
1990 * c-lang.c (c_language_data): Likewise.
1991 (cplus_language_data): Likewise.
1992 (asm_language_data): Likewise.
1993 (minimal_language_data): Likewise.
1994 * d-lang.c (d_language_data): Likewise.
1995 * f-lang.c (f_language_data): Likewise.
1996 * go-lang.c (go_language_data): Likewise.
1997 * language.c (unknown_language_data): Likewise.
1998 (auto_language_data): Likewise.
1999 * language.h (language_data): Remove string_lower_bound field.
2000 (language_defn::string_lower_bound): New member function.
2001 * m2-lang.c (m2_language_data): Remove string_lower_bound
2002 initializer.
2003 (m2_language::string_lower_bound): New member function.
2004 * objc-lang.c (objc_language_data): Remove string_lower_bound
2005 initializer.
2006 * opencl-lang.c (opencl_language_data): Likewise.
2007 * p-lang.c (pascal_language_data): Likewise.
2008 * rust-lang.c (rust_language_data): Likewise.
2009 * valops.c (value_cstring): Update call to string_lower_bound.
2010 (value_string): Likewise.
2011 * value.c (allocate_repeated_value): Likewise.
2012
1c236ddd
AB
20132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * valops.c (value_repeat): Fix incorrect argument name in comment.
2016
67bd3fd5
AB
20172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2018
2019 * ada-lang.c (ada_language_data): Remove c_style_arrays
2020 initializer.
2021 (ada_language::c_style_arrays_p): New member fuction.
2022 * c-lang.c (c_language_data): Remove c_style_arrays
2023 initializer.
2024 (cplus_language_data): Likewise.
2025 (asm_language_data): Likewise.
2026 (minimal_language_data): Likewise.
2027 * d-lang.c (d_language_data): Likewise.
2028 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2029 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2030 (f_language::c_style_arrays_p): New member function.
2031 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2032 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2033 * language.c (unknown_language_data): Remove c_style_arrays
2034 initializer.
2035 (auto_language_data): Likewise.
2036 * language.h (language_data): Remove c_style_arrays field.
2037 (language_defn::c_style_arrays_p): New member function.
2038 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2039 (m2_language::c_style_arrays_p): New member function.
2040 * objc-lang.c (objc_language_data): Remove c_style_arrays
2041 initializer.
2042 * opencl-lang.c (opencl_language_data): Likewise.
2043 * p-lang.c (pascal_language_data): Likewise.
2044 * rust-lang.c (rust_language_data): Likewise.
2045 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2046 and update local variable to a bool.
2047 * valops.c (value_cast): Update call to c_style_arrays_p.
2048 (value_array): Likewise.
2049 * value.c (coerce_array): Likewise.
2050
85967615
AB
20512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 * ada-lang.c (ada_language_data): Remove la_language initializer.
2054 * c-lang.c (c_language_data): Likewise.
2055 (cplus_language_data): Likewise.
2056 (asm_language_data): Likewise.
2057 (minimal_language_data): Likewise.
2058 * d-lang.c (d_language_data): Likewise.
2059 * f-lang.c (f_language_data): Likewise.
2060 * go-lang.c (go_language_data): Likewise.
2061 * language.c (unknown_language_data): Likewise.
2062 (auto_language_data): Likewise.
2063 * language.h (language_data): Remove la_language field.
2064 (language_defn::language_defn): Initialise la_language field.
2065 (language_defn::la_language): New member variable.
2066 * m2-lang.c (m2_language_data): Remove la_language field.
2067 * objc-lang.c (objc_language_data): Likewise.
2068 * opencl-lang.c (opencl_language_data): Likewise.
2069 * p-lang.c (pascal_language_data): Likewise.
2070 * rust-lang.c (rust_language_data): Likewise.
2071
e171d6f1
AB
20722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * ada-lang.c (ada_extensions): Delete, moved into
2075 ada_language::filename_extensions.
2076 (ada_language_data): Remove la_filename_extensions initializer.
2077 (ada_language::filename_extensions): New member function.
2078 * c-lang.c (c_extensions): Delete, moved into
2079 c_language::filename_extensions.
2080 (c_language_data): Remove la_filename_extensions initializer.
2081 (c_language::filename_extensions): New member function.
2082 (cplus_extensions): Delete, moved into
2083 cplus_language::filename_extensions.
2084 (cplus_language_data): Remove la_filename_extensions initializer.
2085 (cplus_language::filename_extensions): New member function.
2086 (asm_extensions): Delete, moved into
2087 asm_language::filename_extensions.
2088 (asm_language_data): Remove la_filename_extensions initializer.
2089 (asm_language::filename_extensions): New member function.
2090 (minimal_language_data): Remove la_filename_extensions
2091 initializer.
2092 * d-lang.c (d_extensions): Delete, moved into
2093 d_language::filename_extensions.
2094 (d_language_data): Remove la_filename_extensions initializer.
2095 (d_language::filename_extensions): New member function.
2096 * f-lang.c (f_extensions): Delete, moved into
2097 f_language::filename_extensions.
2098 (f_language_data): Remove la_filename_extensions initializer.
2099 (f_language::filename_extensions): New member function.
2100 * go-lang.c (go_language_data): Remove la_filename_extensions
2101 initializer.
2102 * language.c (add_set_language_command): Update now that
2103 filename_extensions returns a vector.
2104 (unknown_language_data): Remove la_filename_extensions
2105 initializer.
2106 (auto_language_data): Likewise.
2107 * language.h (language_data): Remove la_filename_extensions field.
2108 (language_defn::filename_extensions): New member function.
2109 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2110 initializer.
2111 * objc-lang.c (objc_extensions): Delete, moved into
2112 objc_language::filename_extensions.
2113 (objc_language_data): Remove la_filename_extensions initializer.
2114 (objc_language::filename_extensions): New member function.
2115 * opencl-lang.c (opencl_language_data): Remove
2116 la_filename_extensions initializer.
2117 * p-lang.c (pascal_extensions): Delete, moved into
2118 pascal_language::filename_extensions.
2119 (pascal_language_data): Remove la_filename_extensions initializer.
2120 (pascal_language::filename_extensions): New member function.
2121 * rust-lang.c (rust_extensions): Delete, moved into
2122 rust_language::filename_extensions.
2123 (rust_language_data): Remove la_filename_extensions initializer.
2124 (rust_language::filename_extensions): New member function.
2125 * symfile.c (add_filename_language): Add new assert.
2126
6f7664a9
AB
21272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * ada-lang.c (ada_language_data): Remove la_name and
2130 la_natural_name initializers.
2131 (ada_language::name): New member function.
2132 (ada_language::natural_name): New member function.
2133 * c-lang.c (c_language_data): Remove la_name and
2134 la_natural_name initializers.
2135 (c_language::name): New member function.
2136 (c_language::natural_name): New member function.
2137 (cplus_language_data): Remove la_name and
2138 la_natural_name initializers.
2139 (cplus_language::name): New member function.
2140 (cplus_language::natural_name): New member function.
2141 (asm_language_data): Remove la_name and
2142 la_natural_name initializers.
2143 (asm_language::name): New member function.
2144 (asm_language::natural_name): New member function.
2145 (minimal_language_data): Remove la_name and
2146 la_natural_name initializers.
2147 (minimal_language::name): New member function.
2148 (minimal_language::natural_name): New member function.
2149 * compile/compile.c (compile_to_object): Update call to
2150 lanugage_defn::name.
2151 * d-lang.c (d_language_data): Remove la_name and
2152 la_natural_name initializers.
2153 (d_language::name): New member function.
2154 (d_language::natural_name): New member function.
2155 * expprint.c (print_subexp_standard): Update call to
2156 language_defn::name.
2157 (dump_raw_expression): Likewise
2158 (dump_prefix_expression): Likewise.
2159 * f-lang.c (f_language_data): Remove la_name and
2160 la_natural_name initializers.
2161 (f_language::name): New member function.
2162 (f_language::natural_name): New member function.
2163 * go-lang.c (go_language_data): Remove la_name and
2164 la_natural_name initializers.
2165 (go_language::name): New member function.
2166 (go_language::natural_name): New member function.
2167 * language.c (show_language_command): Update call to
2168 language_defn::name.
2169 (set_language_command): Likewise.
2170 (language_enum): Likewise.
2171 (language_str): Likewise.
2172 (add_set_language_command): Likewise, use
2173 language_defn::natural_name in the doc string.
2174 (unknown_language_data): Remove la_name and
2175 la_natural_name initializers.
2176 (unknown_language::name): New member function.
2177 (unknown_language::natural_name): New member function.
2178 (auto_language_data): Remove la_name and
2179 la_natural_name initializers.
2180 (auto_language::name): New member function.
2181 (auto_language::natural_name): New member function.
2182 (language_lookup_primitive_type_as_symbol): Update call to
2183 language_defn::name.
2184 * language.h (language_data): Remove la_name and la_natural_name
2185 member variables.
2186 (language_defn::name): New member function.
2187 (language_defn::natural_name): New member function.
2188 * m2-lang.c (m2_language_data): Remove la_name and
2189 la_natural_name initializers.
2190 (m2_language::name): New member function.
2191 (m2_language::natural_name): New member function.
2192 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2193 language_defn::natural_name.
2194 * objc-lang.c (objc_language_data): Remove la_name and
2195 la_natural_name initializers.
2196 (objc_language::name): New member function.
2197 (objc_language::natural_name): New member function.
2198 * opencl-lang.c (opencl_language_data): Remove la_name and
2199 la_natural_name initializers.
2200 (opencl_language::name): New member function.
2201 (opencl_language::natural_name): New member function.
2202 * p-lang.c (pascal_language_data): Remove la_name and
2203 la_natural_name initializers.
2204 (pascal_language::name): New member function.
2205 (pascal_language::natural_name): New member function.
2206 * rust-lang.c (rust_language_data): Remove la_name and
2207 la_natural_name initializers.
2208 (rust_language::name): New member function.
2209 (rust_language::natural_name): New member function.
2210 * symtab.c (lookup_language_this): Update call to
2211 language_defn::name.
2212
5bae7c4e
AB
22132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * ada-lang.c (ada_language_data): Remove la_name_of_this
2216 initializer.
2217 * ax-gdb.c (gen_expr): Update call to name_of_this.
2218 * c-exp.y (classify_name): Likewise.
2219 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2220 (cplus_language_data): Likewise.
2221 (cplus_language::name_of_this): New member function.
2222 (asm_language_data): Remove la_name_of_this initializer.
2223 (minimal_language_data): Likewise.
2224 * d-lang.c (d_language_data): Likewise.
2225 (d_language::name_of_this): New member function.
2226 * expprint.c (print_subexp_standard): Update call to name_of_this.
2227 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2228 * go-lang.c (go_language_data): Likewise.
2229 * language.c (unknown_language_data): Likewise.
2230 (unknown_language::name_of_this): New member function.
2231 (auto_language_data): Remove la_name_of_this initializer.
2232 (auto_language::name_of_this): New member function.
2233 * language.h (language_data): Delete la_name_of_this member
2234 variable.
2235 (language_defn::name_of_this): New member function.
2236 * m2-lang.c (m2_language_data): Remove la_name_of_this
2237 initializer.
2238 * objc-lang.c (objc_language_data): Likewise.
2239 (objc_language::name_of_this): New member function.
2240 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2241 initializer.
2242 * p-lang.c (pascal_language_data): Likewise.
2243 (pascal_language::name_of_this): New member function.
2244 * rust-lang.c (rust_language_data): Remove la_name_of_this
2245 initializer.
2246 * symtab.c (lookup_language_this): Update call to name_of_this.
2247 (lookup_symbol_aux): Likewise.
2248 * valops.c (value_of_this): Likewise.
2249
22e3f3ed
AB
22502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2251
2252 * ada-lang.c (ada_language_data): Remove
2253 la_struct_too_deep_ellipsis initializer.
2254 (ada_language::struct_too_deep_ellipsis): New member function.
2255 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2256 initializer.
2257 (cplus_language_data): Likewise.
2258 (asm_language_data): Likewise.
2259 (minimal_language_data): Likewise.
2260 * cp-valprint.c (cp_print_value): Update call to
2261 struct_too_deep_ellipsis.
2262 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2263 initializer.
2264 * f-lang.c (f_language_data): Likewise.
2265 (f_language::struct_too_deep_ellipsis): New member function.
2266 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2267 initializer.
2268 * language.c (unknown_language_data): Likewise.
2269 (auto_language_data): Likewise.
2270 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2271 member variable.
2272 (language_defn::struct_too_deep_ellipsis): New member function.
2273 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2274 initializer.Q
2275 * objc-lang.c (objc_language_data): Likewise.
2276 * opencl-lang.c (opencl_language_data): Likewise.
2277 * p-lang.c (pascal_language_data): Likewise.
2278 * rust-lang.c (rust_language_data): Likewise.
2279 * valprint.c (val_print_check_max_depth): Update call to
2280 struct_too_deep_ellipsis.
2281
ed29e1c7
FW
22822020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2283
2284 * MAINTAINERS (Write After Approval): Add myself.
2285
12d8f940
TT
22862020-09-15 Tom Tromey <tom@tromey.com>
2287
2288 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2289 Remove.
2290
6b5a7bc7
TT
22912020-09-15 Tom Tromey <tom@tromey.com>
2292
2293 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2294 and TYPE_CODE_METHODPTR cases.
2295 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2296 (c_value_print_inner): Update.
2297 * valprint.c (generic_value_print_memberptr): New function, from
2298 c_value_print_memberptr.
2299 (generic_value_print): Use it. Call cplus_print_method_ptr.
2300
47f0e2ff
TT
23012020-09-15 Tom Tromey <tromey@adacore.com>
2302
2303 * python/python-internal.h (PyInt_FromLong): Remove define.
2304 * python/py-value.c (convert_value_from_python): Use
2305 gdb_py_object_from_longest.
2306 * python/py-type.c (typy_get_code): Use
2307 gdb_py_object_from_longest.
2308 * python/py-symtab.c (salpy_get_line): Use
2309 gdb_py_object_from_longest.
2310 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2311 gdb_py_object_from_longest.
2312 * python/py-record.c (recpy_gap_reason_code): Use
2313 gdb_py_object_from_longest.
2314 * python/py-record-btrace.c (recpy_bt_insn_size)
2315 (recpy_bt_func_level, btpy_list_count): Use
2316 gdb_py_object_from_longest.
2317 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2318 gdb_py_object_from_longest. Fix error handling.
2319 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2320 gdb_py_object_from_longest.
2321 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2322 gdb_py_object_from_longest.
2323 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2324 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2325 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2326
512116ce
TT
23272020-09-15 Tom Tromey <tromey@adacore.com>
2328
2329 * python/python.c (gdbpy_parameter_value): Use
2330 gdb_py_object_from_ulongest.
2331
4ab1029c
TT
23322020-09-15 Tom Tromey <tromey@adacore.com>
2333
2334 * python/py-infevents.c (create_register_changed_event_object):
2335 Use gdb_py_object_from_longest.
2336 * python/py-exitedevent.c (create_exited_event_object): Use
2337 gdb_py_object_from_longest.
2338
062534d4
TT
23392020-09-15 Tom Tromey <tromey@adacore.com>
2340
2341 * python/python.c (gdbpy_parameter_value): Use
2342 gdb_py_object_from_longest.
2343 * python/py-type.c (convert_field, typy_range): Use
2344 gdb_py_object_from_longest.
2345 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2346 gdb_py_object_from_longest.
2347 * python/py-lazy-string.c (stpy_get_length): Use
2348 gdb_py_object_from_longest.
2349 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2350 gdb_py_object_from_longest.
2351 * python/py-infevents.c (create_memory_changed_event_object): Use
2352 gdb_py_object_from_longest.
2353 * python/py-inferior.c (infpy_get_num): Use
2354 gdb_py_object_from_longest.
2355 (infpy_get_pid): Likewise.
2356
d1cab987
TT
23572020-09-15 Tom Tromey <tromey@adacore.com>
2358
2359 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2360 defines.
2361 * python/py-value.c (valpy_long): Use
2362 gdb_py_object_from_ulongest.
2363 * python/py-symtab.c (salpy_get_pc): Use
2364 gdb_py_object_from_ulongest.
2365 (salpy_get_last): Likewise.
2366 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2367 gdb_py_object_from_ulongest.
2368 * python/py-lazy-string.c (stpy_get_address): Use
2369 gdb_py_object_from_ulongest.
2370 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2371 * python/py-arch.c (archpy_disassemble): Use
2372 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2373 error handling.
2374
4bde49dc
TT
23752020-09-15 Tom Tromey <tromey@adacore.com>
2376
2377 * python/python-internal.h (gdb_py_long_from_longest): Remove
2378 defines.
2379 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2380 * python/py-type.c (convert_field, typy_get_sizeof): Use
2381 gdb_py_object_from_longest.
2382 * python/py-record-btrace.c (btpy_list_index): Use
2383 gdb_py_object_from_longest.
2384
37431074
TT
23852020-09-15 Tom Tromey <tromey@adacore.com>
2386
2387 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2388 * python/py-record.c (recpy_element_number): Use
2389 gdb_py_object_from_longest.
2390 (recpy_gap_number): Likewise.
2391
cbe25684
TT
23922020-09-15 Tom Tromey <tromey@adacore.com>
2393
2394 * top.c (ui::ui): Update.
2395 (highest_ui_num): Remove.
2396 * top.h (struct ui) <num>: Remove.
2397
db92ac45
TT
23982020-09-15 Tom Tromey <tromey@adacore.com>
2399
2400 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2401 * ui-style.c (ansi_regex_text): Now array.
2402 * rust-exp.y (number_regex_text): Now array.
2403 * linespec.c (linespec_quote_characters): Now array.
2404 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2405 Now arrays.
2406
d2b31b67
SM
24072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2408
2409 * debuginfod-support.c (debuginfod_client_deleter): New.
2410 (debuginfod_client_up): New.
2411 (debuginfod_init): Return debuginfod_client_up.
2412 (debuginfod_source_query): Adjust.
2413 (debuginfod_debuginfo_query): Adjust.
2414
3246bd8e
SM
24152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * debuginfod-support.c (debuginfod_source_query): Use
2418 make_unique_xstrdup.
2419
10242f36
SM
24202020-09-14 Simon Marchi <simon.marchi@efficios.com>
2421
2422 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2423 with `type::instance_flags`.
2424
e1044e6a
MM
24252020-09-14 Michael Mullin <masmullin@gmail.com>
2426
2427 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2428 Remove baton parameter.
2429
04902b09
PA
24302020-09-14 Pedro Alves <pedro@palves.net>
2431
2432 * Makefile.in (SELFTESTS_SRCS): Add
2433 unittests/enum-flags-selftests.c.
2434 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2435 btrace_function_flags instead of enum btrace_function_flag.
2436 * compile/compile-c-types.c (convert_qualified): Use
2437 enum_flags::raw.
2438 * compile/compile-cplus-symbols.c (convert_one_symbol)
2439 (convert_symbol_bmsym):
2440 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2441 (compile_cplus_convert_struct_or_union_methods)
2442 (compile_cplus_instance::convert_qualified_base):
2443 * go-exp.y (parse_string_or_char): Add cast to int.
2444 * unittests/enum-flags-selftests.c: New file.
2445 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2446 type to btrace_thread_flags from btrace_thread_flag.
2447 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2448 local's type to btrace_thread_flags from btrace_thread_flag. Add
2449 cast in DEBUG call.
2450
69896a2c
PA
24512020-09-14 Pedro Alves <pedro@palves.net>
2452
2453 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2454 * gdbtypes.c (address_space_name_to_int): Rename to ...
2455 (address_space_name_to_type_instance_flags): ... this.
2456 (address_space_int_to_name): Rename to ...
2457 (address_space_type_instance_flags_to_name): ... this.
2458 * gdbtypes.h (address_space_name_to_int): Rename to ...
2459 (address_space_name_to_type_instance_flags): ... this.
2460 (address_space_int_to_name): Rename to ...
2461 (address_space_type_instance_flags_to_name): ... this.
2462 * type-stack.c (type_stack::insert): Adjust to rename.
2463 * type-stack.h (type_stack::insert): Likewise.
2464
314ad88d
PA
24652020-09-14 Pedro Alves <pedro@palves.net>
2466 Andrew Burgess <andrew.burgess@embecosm.com>
2467
2468 * avr-tdep.c (avr_address_class_type_flags): Return
2469 type_instance_flags.
2470 (avr_address_class_type_flags_to_name): Take a
2471 type_instance_flags.
2472 (avr_address_class_name_to_type_flags): Return bool and take a
2473 type_instance_flags.
2474 * d-lang.c (build_d_types): Use type::set_instance_flags.
2475 * ft32-tdep.c (ft32_address_class_type_flags): Return
2476 type_instance_flags.
2477 (ft32_address_class_type_flags_to_name): Take a
2478 type_instance_flags.
2479 (ft32_address_class_name_to_type_flags): Return bool and take a
2480 type_instance_flags.
2481 (ft32_gdbarch_init): Use type::set_instance_flags.
2482 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2483 * gdbarch.h, gdbarch.c: Regenerate.
2484 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2485 (address_class_name_to_type_flags): Use type_instance_flags and
2486 bool.
2487 * gdbtypes.c (address_space_name_to_int)
2488 (address_space_int_to_name, make_qualified_type): Use
2489 type_instance_flags.
2490 (make_qualified_type): Use type_instance_flags and
2491 type::set_instance_flags.
2492 (make_type_with_address_space, make_cv_type, make_vector_type)
2493 (check_typedef): Use type_instance_flags.
2494 (recursive_dump_type): Cast type_instance_flags to unsigned for
2495 printing.
2496 (copy_type_recursive): Use type::set_instance_flags.
2497 (gdbtypes_post_init): Use type::set_instance_flags.
2498 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2499 <m_instance_flags>: ... this.
2500 <instance_flags, set_instance_flags>: New methods.
2501 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2502 (SET_TYPE_INSTANCE_FLAGS): New.
2503 (address_space_name_to_int, address_space_int_to_name)
2504 (make_type_with_address_space): Pass flags using
2505 type_instance_flags instead of int.
2506 * stabsread.c (cleanup_undefined_types_noname): Use
2507 type::set_instance_flags.
2508 * s390-tdep.c (s390_address_class_type_flags): Return
2509 type_instance_flags.
2510 (s390_address_class_type_flags_to_name): Take a
2511 type_instance_flags.
2512 (s390_address_class_name_to_type_flags): Return bool and take a
2513 type_instance_flags.
2514 * type-stack.c (type_stack::follow_types): Use
2515 type_instance_flags.
2516 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2517
27087b7f
TT
25182020-09-14 Tom Tromey <tromey@adacore.com>
2519
2520 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2521 * x86-tdep.c (x86_is_thunk_register_name)
2522 (x86_in_indirect_branch_thunk): Update.
2523 * sparc64-tdep.c (sparc64_fpu_register_names)
2524 (sparc64_cp0_register_names, sparc64_register_names)
2525 (sparc64_pseudo_register_names): Now const.
2526 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2527 cp0_registers_num>: Now const.
2528 * sparc-tdep.c (sparc_core_register_names)
2529 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2530 (sparc32_pseudo_register_names): Now const.
2531 (validate_tdesc_registers): Update.
2532 * rust-lang.c (rust_extensions): Now const.
2533 * p-lang.c (p_extensions): Now const.
2534 * objc-lang.c (objc_extensions): Now const.
2535 * nto-tdep.c (nto_thread_state_str): Now const.
2536 * moxie-tdep.c (moxie_register_names): Now const.
2537 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2538 Now const.
2539 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2540 (mips_linux_reg_names): Now const.
2541 (mips_gdbarch_init): Update.
2542 * microblaze-tdep.c (microblaze_register_names): Now const.
2543 * m68k-tdep.c (m68k_register_names): Now const.
2544 * m32r-tdep.c (m32r_register_names): Now const.
2545 * ia64-tdep.c (ia64_register_names): Now const.
2546 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2547 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2548 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2549 ymm_avx512_register_names, pkeys_register_names>: Now const.
2550 * i386-tdep.c (i386_register_names, i386_zmm_names)
2551 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2552 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2553 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2554 * f-lang.c (f_extensions): Now const.
2555 * d-lang.c (d_extensions): Now const.
2556 * csky-tdep.c (csky_register_names): Now const.
2557 * charset.c (default_charset_names, charset_enum): Now const.
2558 (_initialize_charset): Update.
2559 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2560 const.
2561 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2562 (bsd_uthread_solib_loaded): Update.
2563 (bsd_uthread_state): Now const.
2564 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2565 (amd64_ymm_avx512_names, amd64_ymmh_names)
2566 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2567 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2568 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2569 (amd64_dword_names): Now const.
2570 * agent.c (can_use_agent_enum): Now const.
2571 * ada-tasks.c (task_states, long_task_states): Now const.
2572 * ada-lang.c (known_runtime_file_name_patterns)
2573 (known_auxiliary_function_name_patterns, attribute_names)
2574 (standard_exc, ada_extensions): Now const.
2575
89806626
SM
25762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * bcache.h (struct bcache) <bcache>: Remove constructor.
2579 <m_hash_function, m_compare_function>: Remove.
2580 <~bcache>: Make virtual.
2581 <compare>: Remove static method, introduce virtual method.
2582 <default_hash>: Remove.
2583 <hash>: New virtual method.
2584 * bcache.c (bcache::expand_hash_table): Update.
2585 (bcache::insert): Update.
2586 (bcache::hash): New.
2587 (bcache::compare): Update comment and parameter names.
2588 * gdbtypes.c (types_deeply_equal): Update.
2589 * psymtab.h (struct psymbol_bcache): New struct.
2590 (class psymtab_storage) <psymtab_storage>: Make default.
2591 <psymbol_cache>: Change type to psymbol_bcache.
2592 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2593 (psymbol_hash): Change to...
2594 (psymbol_bcache::hash): ... this.
2595 (psymbol_compare): Change to...
2596 (psymbol_bcache::compare): ... this.
2597
677c92fe
SM
25982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2599
2600 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2601 checking for initial lwp.
2602
3eba3a01
TT
26032020-09-14 Tom Tromey <tromey@adacore.com>
2604
2605 * m68k-tdep.c (m68k_extract_return_value): Use
2606 pointer_result_regnum.
2607 (m68k_store_return_value): Likewise.
2608 (m68k_reg_struct_return_p): Handle vectors and arrays.
2609 (m68k_return_value): Handle arrays.
2610 (m68k_svr4_return_value): Fix single-element aggregate handling.
2611 Handle long double. Adjust for embedded ABI.
2612 (m68k_svr4_init_abi): Set pointer_result_regnum.
2613 (m68k_embedded_init_abi): New function.
2614 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2615 (m68k_osabi_sniffer): New function.
2616 (_initialize_m68k_tdep): Register osabi sniffer.
2617 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2618 member.
2619
33f4dd48
SM
26202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2621
2622 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2623 with gdb::unique_xmalloc_ptr<char>.
2624
8400a90d
SM
26252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * xml-support.h (xml_fetch_another): Change type to be a
2628 function_view.
2629 (xml_process_xincludes): Remove baton parameter.
2630 (xml_fetch_content_from_file): Change baton parameter to
2631 dirname.
2632 * xml-support.c (struct xinclude_parsing_data)
2633 <xinclude_parsing_data>: Remove baton parameter.
2634 <fetcher_baton>: Remove.
2635 (xinclude_start_include): Adjust.
2636 (xml_process_xincludes): Adjust.
2637 (xml_fetch_content_from_file): Replace baton parameter with
2638 dirname.
2639 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2640 (xml_init_syscalls_info): Use a lambda.
2641 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2642 (file_read_description_xml): Use a lambda.
2643 (fetch_available_features_from_target): Change baton parameter
2644 to target_ops.
2645 (target_read_description_xml): Use a lambda.
2646 (target_fetch_description_xml): Use a lambda.
2647 (string_read_description_xml): Update.
2648
04f5bab2
SM
26492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2652 uses with type::endianity_is_not_default.
2653
db558e34
SM
26542020-09-14 Simon Marchi <simon.marchi@efficios.com>
2655
2656 * gdbtypes.h (struct type) <endianity_is_not_default,
2657 set_endianity_is_not_default>: New methods.
2658 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2659 type::endianity_is_not_default, change all write call sites to
2660 use type::set_endianity_is_not_default.
2661
22c4c60c
SM
26622020-09-14 Simon Marchi <simon.marchi@efficios.com>
2663
2664 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2665 uses with type::is_fixed_instance.
2666
9cdd0d12
SM
26672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2668
2669 * gdbtypes.h (struct type) <is_fixed_instance,
2670 set_is_fixed_instance>: New methods.
2671 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2672 write call sites to use type::set_is_fixed_instance.
2673
0becda7a
SM
26742020-09-14 Simon Marchi <simon.marchi@efficios.com>
2675
2676 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2677 uses with type::is_gnu_ifunc.
2678
03cc7249
SM
26792020-09-14 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2682 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2683 use type::set_is_gnu_ifunc.
2684
3f46044c
SM
26852020-09-14 Simon Marchi <simon.marchi@efficios.com>
2686
2687 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2688 uses with type::stub_is_supported.
2689
9baccff6
SM
26902020-09-14 Simon Marchi <simon.marchi@efficios.com>
2691
2692 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2693 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2694 use type::set_stub_is_supported.
2695
bd63c870
SM
26962020-09-14 Simon Marchi <simon.marchi@efficios.com>
2697
2698 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2699 uses with type::is_vector.
2700
2062087b
SM
27012020-09-14 Simon Marchi <simon.marchi@efficios.com>
2702
2703 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2704 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2705 use type::set_is_vector.
2706
a409645d
SM
27072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2708
2709 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2710 uses with type::has_varargs.
2711
1d6286ed
SM
27122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2713
2714 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2715 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2716 use type::set_has_varargs.
2717
7f9f399b
SM
27182020-09-14 Simon Marchi <simon.marchi@efficios.com>
2719
2720 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2721 uses with type::is_prototyped.
2722
27e69b7a
SM
27232020-09-14 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2726 New methods.
2727 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2728 call sites to use type::set_is_prototyped.
2729
d2183968
SM
27302020-09-14 Simon Marchi <simon.marchi@efficios.com>
2731
2732 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2733 uses with type::target_is_stub.
2734
8f53807e
SM
27352020-09-14 Simon Marchi <simon.marchi@efficios.com>
2736
2737 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2738 New methods.
2739 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2740 sites to use type::set_target_is_stub.
2741
e46d3488
SM
27422020-09-14 Simon Marchi <simon.marchi@efficios.com>
2743
2744 * gdbtypes.h (TYPE_STUB): Remove, replace all
2745 uses with type::is_stub.
2746
b4b73759
SM
27472020-09-14 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2750 (TYPE_STUB): Use type::is_stub, change all write call sites to
2751 use type::set_is_stub.
2752
20ce4123
SM
27532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2754
2755 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2756 type::has_no_signedness.
2757
15152a54
SM
27582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * gdbtypes.h (struct type) <has_no_signedness,
2761 set_has_no_signedness>: New methods.
2762 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2763 call sites to use type::set_has_no_signedness.
2764
c6d940a9
SM
27652020-09-14 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2768 type::is_unsigned.
2769
653223d3
SM
27702020-09-14 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2773 methods.
2774 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2775 sites to use type::set_is_unsigned.
2776
55ea94da 27772020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2778 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2779
e851246a
SM
2780 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2781 pointer and stack frame offset when unwinding.
55ea94da 2782
6791b117
PA
27832020-09-13 Pedro Alves <pedro@palves.net>
2784
2785 * NEWS: Document "-break-insert --qualified".
2786 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2787
77f2120b
PA
27882020-09-13 Pedro Alves <pedro@palves.net>
2789
2790 * linespec.c (classify_mtype, compare_msyms): Delete.
2791 (search_minsyms_for_name): Remove classification logic. Instead
2792 filter out trampoline symbols if we also found an external
2793 function of the same name.
2794
ed6a896c
JB
27952020-09-13 Joel Brobecker <brobecker@adacore.com>
2796
2797 * NEWS: Create a new section for the next release branch.
2798 Rename the section of the current branch, now that it has
2799 been cut.
2800
32aea73e
JB
28012020-09-13 Joel Brobecker <brobecker@adacore.com>
2802
2803 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2804 * version.in: Bump version to 11.0.50.DATE-git.
2805
8087c3fa
JB
28062020-09-12 Joel Brobecker <brobecker@adacore.com>
2807
2808 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2809
2a67f09d
FW
28102020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2811 Felix Willgerodt <Felix.Willgerodt@intel.com>
2812
2813 * gdbarch.sh: Added bfloat16 type.
2814 * gdbarch.c: Regenerated.
2815 * gdbarch.h: Regenerated.
2816 * gdbtypes.c (floatformats_bfloat16): New struct.
2817 (gdbtypes_post_init): Add builtin_bfloat16.
2818 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2819 (floatformats_bfloat16): New struct.
2820 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2821 (i386_ymm_type): Add field "v16_bfloat16"
2822 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2823 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2824 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2825 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2826 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2827 * features/i386/64bit-avx512.c: Regenerated.
2828 * features/i386/64bit-sse.xml: Add bfloat16 type.
2829 * features/i386/64bit-sse.c: Regenerated.
2830
1347d111
FW
28312020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2832
2833 * i386-tdep.c (i386_zmm_type): Fix field names.
2834 (i386_ymm_type): Fix field names.
2835
7a4e8e7d
TBA
28362020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 * breakpoint.c: Fix typo in the help message of the
2839 "set breakpoint condition-evaluation" command.
2840
cf4ac4be
KR
28412020-09-10 Kamil Rytarowski <n54@gmx.com>
2842
2843 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2844 * (nbsd_nat_target::pid_to_exec_file)
2845 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2846 (nbsd_nat_target::post_startup_inferior)
2847 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2848 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2849 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2850 * (nbsd_thread_lister): Remove.
2851
f404573e
KR
28522020-09-10 Kamil Rytarowski <n54@gmx.com>
2853
2854 * fork-inferior.c (startup_inferior): Avoid double free.
2855
1ccb2c17
KR
28562020-09-10 Kamil Rytarowski <n54@gmx.com>
2857
2858 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2859 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2860
feedfcc7
KR
28612020-09-10 Kamil Rytarowski <n54@gmx.com>
2862
2863 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2864 * netbsd-nat.c: Include <sys/ptrace.h>.
2865 * (netbsd_nat::enable_proc_events): Add.
2866
c489f8c6
KR
28672020-09-10 Kamil Rytarowski <n54@gmx.com>
2868
2869 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2870 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2871 (netbsd_nat::for_each_thread): Add.
2872 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2873 "gdbsupport/common-debug.h".
2874 * (netbsd_nat::netbsd_thread_lister)
2875 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2876 (netbsd_nat::for_each_thread): Add.
2877
330662f6
KR
28782020-09-10 Kamil Rytarowski <n54@gmx.com>
2879
2880 * netbsd-nat.h: Include <unistd.h>.
2881 * (netbsd_nat::pid_to_exec_file): Add.
2882 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2883 * (netbsd_nat::pid_to_exec_file) Add.
2884
70b67307
KR
28852020-09-10 Kamil Rytarowski <n54@gmx.com>
2886
2887 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2888
99cf6da6
KR
28892020-09-10 Kamil Rytarowski <n54@gmx.com>
2890
2891 * netbsd-nat.h: New file.
2892 * netbsd-nat.c: Likewise.
2893
1b788fb6
TT
28942020-09-09 Tom Tromey <tromey@adacore.com>
2895
2896 * ada-lang.c (remove_extra_symbols): Do not increment when
2897 removing an element
2898
03b0a45f
TT
28992020-09-08 Tom Tromey <tromey@adacore.com>
2900
2901 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2902
3cae4447
TT
29032020-09-08 Tom Tromey <tromey@adacore.com>
2904
2905 PR win32/25302:
2906 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2907 (gdb_bfd_init_data): New function.
2908 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2909
7f08fd51
TBA
29102020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2911
2912 * infrun.c (fetch_inferior_event): Use
2913 `switch_to_target_no_thread` to switch the target.
2914
3e6ff933
TT
29152020-09-06 Tom Tromey <tom@tromey.com>
2916
2917 * symfile.h (dwarf2_free_objfile): Don't declare.
2918
e56798df
AKS
29192020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2920
2921 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2922 to match 16 byte real/complex type generated by Flang compiler.
2923
8f5c6526
TV
29242020-09-03 Tom de Vries <tdevries@suse.de>
2925
2926 PR breakpoint/26546
2927 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2928 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2929
c5065df0
SM
29302020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2931
2932 * maint.c (index_digits): New function.
2933 (struct maint_print_section_data): Remove.
2934 (print_bfd_section_info): Remove print_data parameter, add arg
2935 and index_digits.
2936 (print_objfile_section_info): Likewise.
2937 (print_bfd_section_info_maybe_relocated): Likewise (plus
2938 objfile).
2939 (maintenance_info_sections): Adjust calls.
2940
02c6f3f1
TT
29412020-09-02 Tom Tromey <tromey@adacore.com>
2942
2943 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2944 for null pointers.
2945 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2946
ef5e5b0b
SM
29472020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2948
2949 * bcache.h (struct bcache) <insert>: Change type of `added` to
2950 pointer to bool.
2951 * bcache.c (bcache::insert): Likewise.
2952 * gdbtypes.c (check_types_worklist): Adjust.
2953 * psymtab.c (add_psymbol_to_bcache): Adjust.
2954
973695d6
KB
29552020-08-31 Kevin Buettner <kevinb@redhat.com>
2956
2957 * corelow.c (unordered_set): Include.
2958 (class core_target): Add field 'm_core_unavailable_mappings'.
2959 (core_target::build_file_mappings): Print only one warning
2960 per inaccessible file. Add unavailable/broken mappings
2961 to m_core_unavailable_mappings.
2962 (core_target::xfer_partial): Call...
2963 (core_target::xfer_memory_via_mappings): New method.
2964
264fc0e2
SM
29652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2968 type to bool.
2969
2de01bdb
SM
29702020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * dwarf2/read.c (struct field_info): Fix indentation.
2973
f3bd50f1
SM
29742020-08-31 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2977 ordering in comment.
2978 * frame.c (frame_id_eq): Fix indentation.
2979
22b9b4b0
SL
29802020-08-31 Scott Linder <scott@scottlinder.com>
2981 Simon Marchi <simon.marchi@efficios.com>
2982
2983 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2984 inline frame ids in outer frame.
2985
84154d16
SM
29862020-08-31 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2989 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2990 (outer_frame_id): Use FID_STACK_OUTER instead of
2991 FID_STACK_INVALID.
2992 (frame_id_p): Don't check for outer_frame_id.
2993
8efaf6b3
SM
29942020-08-31 Simon Marchi <simon.marchi@efficios.com>
2995
2996 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2997 regnum/frame in value. Call allocate_value_lazy.
2998 * frame.c (frame_unwind_register_value): Use
2999 val_print_not_saved.
3000
fe1fe7ea
SM
30012020-08-31 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3004
f7c7700d
PA
30052020-08-29 Pedro Alves <pedro@palves.net>
3006
3007 * progspace.c (print_program_space): Use all_inferiors. Switch to
3008 the inferior before calling target_pid_to_str.
3009
e0814aae
TT
30102020-08-28 Tom Tromey <tom@tromey.com>
3011
3012 * xcoffread.c (xcoff_end_psymtab): Update comment.
3013 * dbxread.c (dbx_end_psymtab): Update comment.
3014
626d2320
TV
30152020-08-28 Tom de Vries <tdevries@suse.de>
3016
3017 PR breakpoint/26544
3018 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3019 event_location.
3020 (create_breakpoint): Same.
3021 (base_breakpoint_decode_location): Same.
3022 (bkpt_create_sals_from_location): Same.
3023 (bkpt_decode_location): Same.
3024 (bkpt_probe_create_sals_from_location): Same.
3025 (bkpt_probe_decode_location): Same.
3026 (tracepoint_create_sals_from_location): Same.
3027 (tracepoint_decode_location): Same.
3028 (tracepoint_probe_decode_location): Same.
3029 (strace_marker_create_sals_from_location): Same.
3030 (strace_marker_decode_location): Same.
3031 (create_sals_from_location_default): Same.
3032 (decode_location_default): Same.
3033 * breakpoint.h (struct breakpoint_ops): Same.
3034 (create_breakpoint): Same.
3035 * linespec.h (decode_line_full): Same.
3036 * linespec.c (decode_line_full): Same. Throw error if
3037 result.size () == 0.
3038
df631783
PA
30392020-08-27 Pedro Alves <pedro@palves.net>
3040
3041 PR gdb/26524
3042 * breakpoint.c (until_break_fsm) <location_breakpoint,
3043 caller_breakpoint>: Delete fields.
3044 <breakpoints>: New field.
3045 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3046 two individual breakpoints.
3047 (until_break_fsm::should_stop): Loop over breakpoints in the
3048 breakpoint vector.
3049 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3050 vector.
3051 (until_break_command): Handle location expanding into multiple
3052 sals.
3053
b2b38aa4
PA
30542020-08-27 Pedro Alves <pedro@palves.net>
3055
3056 PR gdb/26523
3057 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3058 bp_until breakpoints user-specified locations. Update intro
3059 comment.
3060
b886559f
SM
30612020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3064 gdb_bfd_sections): New.
3065 * maint.c (print_bfd_section_info): Change param type to
3066 maint_print_section_data.
3067 (print_objfile_section_info): Likewise.
3068 (print_bfd_section_info_maybe_relocated): Likewise.
3069 (maintenance_info_sections): Use gdb_bfd_sections.
3070
4c6e63bf
SV
30712020-08-25 Shahab Vahedi <shahab@synopsys.com>
3072
3073 * MAINTAINERS: Add ARC target and maintainer.
3074
8d7f0635
AK
30752020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3076
3077 * configure.tgt: ARC support for GNU/Linux.
3078 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3079 * arc-linux-tdep.c: New file.
3080 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3081 * arc-tdep.c (arc_write_pc): Use it.
3082
fdd8731b
SV
30832020-08-25 Shahab Vahedi <shahab@synopsys.com>
3084
3085 * arc-tdep.c (arc_check_for_hardware_loop): New.
3086 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3087
22459524
SV
30882020-08-25 Shahab Vahedi <shahab@synopsys.com>
3089
3090 * arc-tdep.h: Include "gdbarch.h".
3091
995d3a19
SV
30922020-08-25 Shahab Vahedi <shahab@synopsys.com>
3093
3094 * arch/arc.h
3095 (arc_gdbarch_features): New class to stir the selection of target XML.
3096 (arc_create_target_description): Use FEATURES to choose XML target.
3097 (arc_lookup_target_description): Use arc_create_target_description
3098 to create _new_ target descriptions or return the already created
3099 ones if the FEATURES is the same.
3100 * arch/arc.c: Implementation of prototypes described above.
3101 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3102 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3103 * arc-tdep.c (*_feature_name): Make feature names consistent.
3104 (arc_register_feature): A new struct to hold information about
3105 registers of a particular target/feature.
3106 (arc_check_tdesc_feature): Check if XML provides registers in
3107 compliance with ARC_REGISTER_FEATURE structs.
3108 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3109 (determine_*_reg_feature_set): Which feature name to look for.
3110 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3111 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3112 to expected ISA enums to be used in arc_gdbarch_features structs.
3113 * features/Makefile (FEATURE_XMLFILES): Add new files.
3114 * gdb/features/arc/v1-aux.c: New file.
3115 * gdb/features/arc/v1-aux.xml: Likewise.
3116 * gdb/features/arc/v1-core.c: Likewise.
3117 * gdb/features/arc/v1-core.xml: Likewise.
3118 * gdb/features/arc/v2-aux.c: Likewise.
3119 * gdb/features/arc/v2-aux.xml: Likewise.
3120 * gdb/features/arc/v2-core.c: Likewise.
3121 * gdb/features/arc/v2-core.xml: Likewise.
3122 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3123
3945d2d7
GM
31242020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3125 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 PR m2/26372
fc5d6901 3128 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3129 an assert. Remove single element array indexing pattern as the
3130 MULTI_SUBSCRIPT support will handle this case too.
3131
2677f2d3
SM
31322020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * value.h (valprint_check_validity): Move declaration from
3135 here...
3136 * valprint.h (valprint_check_validity): ... to here.
3137
c426fddb
SM
31382020-08-24 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * debug.h: New file.
3141 * debug.c (debug_prefixed_vprintf): New function.
3142 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3143 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3144
1eb8556f
SM
31452020-08-24 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * infrun.h (infrun_debug_printf_1): New function declaration.
3148 (infrun_debug_printf): New macro.
3149 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3150 throughout.
3151 (infrun_debug_printf): New function.
3152 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3153 (handle_jit_event): Likewise.
3154
b8fff44e
MW
31552020-08-21 Mark Wielaard <mark@klomp.org>
3156
3157 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3158
d19c3068
SM
31592020-08-22 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * frame.c (enum class frame_id_status): New.
3162 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3163 (fprintf_frame): Update.
3164 (compute_frame_id): Set frame id status to "computing" on entry.
3165 Set it back to "not_computed" on failure and to "computed" on
3166 success.
3167 (get_frame_id): Assert the frame id is not being computed.
3168 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3169 (create_new_frame): Likewise.
3170 (frame_cleanup_after_sniffer): Update assert.
3171
b70e516e
SM
31722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3173
3174 * regcache.c (pid_ptid_regcache_map): New type.
3175 (target_ptid_regcache_map): Remove.
3176 (target_pid_ptid_regcache_map): New type.
3177 (regcaches): Change type to target_pid_ptid_regcache_map.
3178 (get_thread_arch_aspace_regcache): Update.
3179 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3180 case.
3181 (regcaches_size): Update.
3182 (regcache_count): Update.
3183 (registers_changed_ptid_target_pid_test): New.
3184 (_initialize_regcache): Register new test.
3185
cdd9148a
SM
31862020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3187
3188 * regcache.c (regcache_count): New.
3189 (struct regcache_test_data): New.
3190 (regcache_test_data_up): New.
3191 (populate_regcaches_for_test): New.
3192 (regcaches_test): Remove.
3193 (get_thread_arch_aspace_regcache_test): New.
3194 (registers_changed_ptid_all_test): New.
3195 (registers_changed_ptid_target_test): New.
3196 (registers_changed_ptid_target_ptid_test): New.
3197 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3198 (_initialize_regcache): Register new tests.
3199
dd125343
SM
32002020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3203 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3204 gdbarch and aspace parameter. Use current inferior's aspace.
3205 Validate regcache's arch value.
3206 (regcaches_test): Update.
3207
3ee93972
SM
32082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3209
3210 * regcache.c (regcaches_test): Call registers_changed.
3211
33bf4c5c
TBA
32122020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3213
3214 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3215
c2fd7fae
AKS
32162020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3217
3218 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3219 to find the end of prologue for flang compiled binaries.
3220 * arm-tdep.c (arm_skip_prologue): Likewise.
3221 * i386-tdep.c (i386_skip_prologue): Likewise.
3222 * producer.c (producer_is_llvm): New function.
3223 (producer_parsing_tests): Added new tests for clang/flang.
3224 * producer.h (producer_is_llvm): New declaration.
3225
9327494e
SM
32262020-08-18 Simon Marchi <simon.marchi@efficios.com>
3227
3228 * linux-nat.c (linux_nat_debug_printf): New function.
3229 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3230
d138725a
AM
32312020-08-18 Aaron Merey <amerey@redhat.com>
3232
3233 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3234 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3235 (CLIBS): Add DEBUGINFOD_LIBS.
3236
f9b11e6b
ST
32372020-08-17 Sergei Trofimovich <siarheit@google.com>
3238
3239 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3240 'gdbarch_num_regs'.
3241
3ae7ab99
TT
32422020-08-17 Tom Tromey <tromey@adacore.com>
3243
3244 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3245 ada_get_decoded_value returns NULL.
3246
b017825f
TT
32472020-08-17 Tom Tromey <tromey@adacore.com>
3248
3249 * python/py-inferior.c (infpy_search_memory): Use
3250 gdb_py_object_from_ulongest.
3251 * python/py-infevents.c (create_inferior_call_event_object)
3252 (create_memory_changed_event_object): Use
3253 gdb_py_object_from_ulongest.
3254 * python/py-linetable.c (ltpy_entry_get_pc): Use
3255 gdb_py_object_from_ulongest.
3256
7635cf79
SM
32572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3258
3259 * loc.c (class symbol_needs_eval_context): Fix indentation.
3260
f54be24b
SM
32612020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3264 bool.
3265
53d5a2a5
TV
32662020-08-17 Tom de Vries <tdevries@suse.de>
3267
3268 PR gdb/26393
3269 * gdbtypes.c (dump_dynamic_prop): New function.
3270 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3271
547ce8f0
TV
32722020-08-15 Tom de Vries <tdevries@suse.de>
3273
3274 PR backtrace/26390
3275 * stack.c (print_frame_args): Temporarily set the selected
3276 frame to FRAME while printing the frame's arguments.
3277
6ea815e7
PFC
32782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3279
3280 PR breakpoints/26385
3281 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3282 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3283
6e562fa3
PFC
32842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3285
3286 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3287 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3288 and >= to check return value instead of == -1 and != -1.
3289
d369b608
SM
32902020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3291
3292 * utils.h (class gdb_argv) <as_array_view>: New method.
3293 * utils.c (gdb_argv_as_array_view_test): New.
3294 (_initialize_utils): Register selftest.
3295 * maint.c (maintenance_selftest): Use the new method.
3296
b31488a3
KR
32972020-08-13 Kamil Rytarowski <n54@gmx.com>
3298
3299 * target.h (supports_dumpcore, dumpcore): New
3300 function declarations.
3301 * target.c (supports_dumpcore, dumpcore): New
3302 functions.
3303 * target-delegates.c: Rebuild.
3304 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3305 and target_dumpcore ().
3306
002a3166
AM
33072020-08-13 Aaron Merey <amerey@redhat.com>
3308
3309 * debuginfod-support.c: Replace global variables with user_data.
3310
ece5bc8a
SM
33112020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * maint.c (maintenance_selftest): Split args and pass array_view
3314 to run_tests.
3315
6d8a0a5e
LM
33162020-08-12 Luis Machado <luis.machado@linaro.org>
3317
3318 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3319 type's length.
3320 Use %s and pulongest to print the length.
3321
7cf663a9
PA
33222020-08-12 Pedro Alves <palves@redhat.com>
3323
3324 * NEWS: Move "Multi-target debugging support" item to the
3325 "Changes since GDB 9" section.
3326
27c7b875
PA
33272020-08-12 Pedro Alves <palves@redhat.com>
3328
3329 PR gdb/26336
3330 * progspace.c (program_space::remove_objfile): Invalidate the
3331 frame cache.
3332
1796a2a1
TV
33332020-08-11 Tom de Vries <tdevries@suse.de>
3334
3335 * MAINTAINERS: Mark ms1 as deleted.
3336
f8e3fe0d
LM
33372020-08-10 Luis Machado <luis.machado@linaro.org>
3338
3339 PR gdb/26310
3340
3341 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3342 act accordingly.
3343 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3344 movz/str/stur/stp skipping behavior.
3345
cc308722
LM
33462020-08-10 Luis Machado <luis.machado@linaro.org>
3347
3348 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3349 struct user_sve_header instead of struct sve_context.
3350
041d9819
SM
33512020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * read.h (dwarf2_fetch_die_loc_sect_off,
3354 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3355 `void *` parameter with function_view.
3356 * read.c (dwarf2_fetch_die_loc_sect_off,
3357 dwarf2_fetch_die_loc_cu_off): Likewise.
3358 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3359 (per_cu_dwarf_call): Adjust.
3360 (get_frame_address_in_block_wrapper): Remove.
3361 (indirect_synthetic_pointer): Adjust.
3362 (get_ax_pc): Remove.
3363 (dwarf2_compile_expr_to_ax): Adjust.
3364
38f8aa06
TV
33652020-08-08 Tom de Vries <tdevries@suse.de>
3366
3367 PR build/26344
3368 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3369 constructor.
3370 * regcache.c (get_thread_arch_aspace_regcache): Same.
3371
a52b3ae2
TT
33722020-08-07 Tom Tromey <tromey@adacore.com>
3373
3374 * ravenscar-thread.c
3375 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3376 New method.
3377 (ravenscar_thread_target::wait): Check
3378 runtime_initialized.
3379 (ravenscar_thread_target::prepare_to_store)
3380 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3381 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3382 (ravenscar_thread_target::stopped_by_watchpoint)
3383 (ravenscar_thread_target::stopped_data_address)
3384 (ravenscar_thread_target::core_of_thread): Use
3385 scoped_restore_current_thread and
3386 set_base_thread_from_ravenscar_task.
3387
0e29517d
TT
33882020-08-07 Tom Tromey <tromey@adacore.com>
3389
3390 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3391
592f9bd7
TT
33922020-08-07 Tom Tromey <tromey@adacore.com>
3393
3394 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3395 update_inferior_ptid before update_thread_list.
3396 (temporarily_change_regcache_ptid): New class.
3397 (ravenscar_thread_target::fetch_registers)
3398 (ravenscar_thread_target::store_registers)
3399 (ravenscar_thread_target::prepare_to_store): Use base thread when
3400 forwarding operation.
3401
39e2018a
TT
34022020-08-07 Tom Tromey <tromey@adacore.com>
3403
3404 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3405 "is_pid" case.
3406
2080266b
TT
34072020-08-07 Tom Tromey <tromey@adacore.com>
3408
3409 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3410 New methods.
3411 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3412 first.
3413 (ravenscar_thread_target::add_thread): Rename from
3414 ravenscar_add_thread.
3415 (ravenscar_thread_target::update_thread_list): Use a lambda.
3416 (ravenscar_thread_target::xfer_partial): New method.
3417
78c02f21
TT
34182020-08-07 Tom Tromey <tromey@adacore.com>
3419
3420 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3421 gdb::function_view.
3422 (iterate_over_live_ada_tasks): Change type of argument.
3423 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3424 of argument.
3425
d5d833af
TT
34262020-08-07 Tom Tromey <tromey@adacore.com>
3427
3428 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3429 Remove.
3430 (ravenscar_thread_target::extra_thread_info): Remove.
3431 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3432 defer to target beneath for non-Ravenscar threads.
3433
a8ac85bb
TT
34342020-08-07 Tom Tromey <tromey@adacore.com>
3435
3436 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3437 get_base_thread_from_ravenscar_task>: Now methods.
3438 <m_cpu_map>: New member.
3439 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3440 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3441 (ravenscar_thread_target::task_is_currently_active): Update.
3442 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3443 Now a method.
3444 (ravenscar_thread_target::add_active_thread): Put initial thread
3445 into the m_cpu_map.
3446
550ab58d
TT
34472020-08-07 Tom Tromey <tromey@adacore.com>
3448
3449 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3450 event_ptid.
3451
e9546579
TT
34522020-08-07 Tom Tromey <tromey@adacore.com>
3453
3454 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3455 runtime_initialized.
3456
3d4470e5
TT
34572020-08-07 Tom Tromey <tromey@adacore.com>
3458
3459 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3460 add_active_thread.
3461 (ravenscar_thread_target::add_active_thread): Now public.
3462 (ravenscar_inferior_created): Call add_active_thread after pushing
3463 the target.
3464
888bdb2b
SM
34652020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * regcache.c (ptid_regcache_map): New type.
3468 (target_ptid_regcache_map): New type.
3469 (regcaches): Change type to target_ptid_regcache_map.
3470 (get_thread_arch_aspace_regcache): Update to regcaches' new
3471 type.
3472 (regcache_thread_ptid_changed): Likewise.
3473 (registers_changed_ptid): Likewise.
3474 (regcaches_size): Likewise.
3475 (regcaches_test): Update.
3476 (regcache_thread_ptid_changed): Update.
3477 * regcache.h (regcache_up): New type.
3478 * gdbsupport/ptid.h (hash_ptid): New struct.
3479
b161a60d
SM
34802020-08-07 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * observable.h (thread_ptid_changed): Add parameter
3483 `process_stratum_target *`.
3484 * infrun.c (infrun_thread_ptid_changed): Add parameter
3485 `process_stratum_target *` and use it.
3486 (selftests): New namespace.
3487 (infrun_thread_ptid_changed): New function.
3488 (_initialize_infrun): Register selftest.
3489 * regcache.c (regcache_thread_ptid_changed): Add parameter
3490 `process_stratum_target *` and use it.
3491 (regcache_thread_ptid_changed): New function.
3492 (_initialize_regcache): Register selftest.
3493 * thread.c (thread_change_ptid): Pass target to
3494 thread_ptid_changed observable.
3495
d2854d8d
CT
34962020-08-06 Caroline Tice <cmtice@google.com>
3497
fe4c3d43
SM
3498 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3499 (struct dwp_sections): Update field comments. Add loclists and
3500 rnglists fields.
3501 (struct virtual_v2_dwo_sections): Rename struct to
3502 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3503 size & offset fields for loclists and rnglists.
3504 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3505 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3506 skipping dummy type units.
3507 (create_dwp_hash_table): Update the large comment above the function to
3508 discuss Version 5 DWP files as well, with references. Update all the
3509 version checks in the function to check for version 5 as well. Add new
3510 section at the end to create dwp hash table for version 5.
3511 (create_dwp_v2_section): Rename function to
3512 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3513 Add V5 to error message text.
3514 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3515 into calls to create_dwp_v2_or_v5_section.
3516 (create_dwo_unit_in_dwp_v5): New function.
3517 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3518 check for version2; add else clause to handle version 5.
3519 (open_and_init_dwo_file): Add code to check dwarf version & only call
3520 create_debug_types_hash_table (with sections.types) if version is not 5;
3521 else call create_debug_type_hash_table, with sections.info.
3522 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3523 version 5.
3524 (dwarf2_locate_v5_dwp_sections): New function.
3525 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3526 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3527
159ed7d9
SM
35282020-08-06 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * regcache.h (class regcache): Remove friend
3531 registers_changed_ptid.
3532 <regcache_thread_ptid_changed>: Remove.
3533 <regcaches>: Remove.
3534 * regcache.c (regcache::regcaches): Rename to...
3535 (regcaches): ... this. Make static.
3536 (get_thread_arch_aspace_regcache): Update.
3537 (regcache::regcache_thread_ptid_changed): Rename to...
3538 (regcache_thread_ptid_changed): ... this. Update.
3539 (class regcache_access): Remove.
3540 (regcaches_test): Update.
3541 (_initialize_regcache): Update.
3542 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3543 <forward_list>.
3544
174981ae
SM
35452020-08-06 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * regcache.h (class regcache) <current_regcache>: Rename to...
3548 <regcaches>: ... this. Move doc here.
3549 * regcache.c (regcache::current_regcache) Rename to...
3550 (regcache::regcaches): ... this. Move doc to header.
3551 (get_thread_arch_aspace_regcache): Update.
3552 (regcache::regcache_thread_ptid_changed): Update.
3553 (registers_changed_ptid): Update.
3554 (class regcache_access) <current_regcache_size>: Rename to...
3555 <regcaches_size>: ... this.
3556 (current_regcache_test): Rename to...
3557 (regcaches_test): ... this.
3558 (_initialize_regcache): Update.
3559
ed908db6
VC
35602020-08-06 Victor Collod <vcollod@nvidia.com>
3561
3562 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3563
b5582ab7
KB
35642020-08-05 Kevin Buettner <kevinb@redhat.com>
3565
3566 * corelow.c (core_target::build_file_mappings): Don't output
3567 null pathname in warning.
3568
ea946b86
SM
35692020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3570
3571 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3572 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3573 gdb.dwarf2/dw2-single-line-discriminators.exp,
3574 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3575
57d02173
TT
35762020-08-05 Tom Tromey <tromey@adacore.com>
3577
3578 PR rust/26197:
3579 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3580 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3581 Fix off-by-one and type size errors in ordinary case.
3582
5555c86d
TV
35832020-08-05 Tom de Vries <tdevries@suse.de>
3584
3585 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3586 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3587
97916bfe
SM
35882020-08-04 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * frame.h (frame_id_p): Return bool.
3591 (frame_id_artificial_p): Return bool.
3592 (frame_id_eq): Return bool.
3593 (has_stack_frames): Return bool.
3594 (get_selected_frame): Fix typo in comment.
3595 (get_frame_pc_if_available): Return bool.
3596 (get_frame_address_in_block_if_available): Return bool.
3597 (get_frame_func_if_available): Return bool.
3598 (read_frame_register_unsigned): Return bool.
3599 (get_frame_register_bytes): Return bool.
3600 (safe_frame_unwind_memory): Return bool.
3601 (deprecated_frame_register_read): Return bool.
3602 (frame_unwinder_is): Return bool.
3603 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3604 bool.
3605 <this_id::p>: Likewise.
3606 <prev_p>: Likewise.
3607 (frame_stash_add): Return bool.
3608 (get_frame_id): Use bool.
3609 (frame_id_build_special) Use bool.
3610 (frame_id_build_unavailable_stack): Use bool.
3611 (frame_id_build): Use bool.
3612 (frame_id_p): Return bool, use true/false instead of 1/0.
3613 (frame_id_artificial_p): Likewise.
3614 (frame_id_eq): Likewise.
3615 (frame_id_inner): Likewise.
3616 (get_frame_func_if_available): Likewise.
3617 (read_frame_register_unsigned): Likewise.
3618 (deprecated_frame_register_read): Likewise.
3619 (get_frame_register_bytes): Likewise.
3620 (has_stack_frames): Likewise.
3621 (inside_main_func): Likewise.
3622 (inside_entry_func): Likewise.
3623 (get_frame_pc_if_available): Likewise.
3624 (get_frame_address_in_block_if_available): Likewise.
3625 (frame_unwinder_is): Likewise.
3626 (safe_frame_unwind_memory): Likewise.
3627 (frame_unwind_arch): Likewise.
3628
fedfee88
SM
36292020-08-04 Simon Marchi <simon.marchi@efficios.com>
3630
3631 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3632 type to cached_copy_status.
3633 (fprintf_frame): Adjust.
3634 (get_frame_func_if_available): Adjust.
3635 (frame_cleanup_after_sniffer): Adjust.
3636
6cfa9b59
MW
36372020-08-04 Mark Wielaard <mark@klomp.org>
3638
3639 * MAINTAINERS (Write After Approval): Update email address.
3640
66d6346b
SM
36412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3642
3643 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3644 dynamic_prop::const_val.
3645
8a6d5e35
SM
36462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3647
3648 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3649 dynamic_prop::kind.
3650
51d6067d
SM
36512020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3652
3653 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3654
b26e2ae7
JM
36552020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3656
3657 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3658
39791af2
JM
36592020-08-04 Weimin Pan <weimin.pan@oracle.com>
3660 Jose E. Marchesi <jose.marchesi@oracle.com>
3661
3662 * configure.tgt: Add entry for bpf-*-*.
3663 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3664 (ALLDEPFILES): Add bpf-tdep.c.
3665 * bpf-tdep.c: New file.
3666 * MAINTAINERS: Add bpf target and maintainer.
3667 * NEWS: Mention the support for the new target.
3668
521894aa
TV
36692020-08-04 Tom de Vries <tdevries@suse.de>
3670
3671 PR symtab/23270
3672 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3673 Error.
3674
5d6356e9
JB
36752020-08-03 John Baldwin <jhb@FreeBSD.org>
3676
3677 * syscalls/freebsd.xml: Regenerate.
3678
0cf82b81
JB
36792020-08-03 John Baldwin <jhb@FreeBSD.org>
3680
3681 * syscalls/update-freebsd.sh: Fix usage and year range.
3682
8f34b746
TV
36832020-08-03 Tom de Vries <tdevries@suse.de>
3684
3685 PR symtab/26333
3686 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3687 DW_LNE_lo_user/DW_LNE_hi_user range.
3688
5e500d33
SM
36892020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3690
3691 PR ada/26318
3692 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3693 kind.
3694
78319c15
TBA
36952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3696
3697 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3698
4c55e970
TBA
36992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3700
3701 * breakpoint.c (set_breakpoint_condition): Update the condition
3702 expressions after checking that the input condition string parses
3703 successfully and does not contain junk at the end.
3704
1e620590
TBA
37052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3706
3707 * breakpoint.c (set_breakpoint_condition): Update the
3708 condition string after parsing the new condition successfully.
3709
c8693053
RO
37102020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3711
3712 * proc-api.c (_STRUCTURED_PROC): Don't define.
3713 * proc-events.c: Likewise.
3714 * proc-flags.c: Likewise.
3715 * proc-why.c: Likewise.
3716 * procfs.c: Likewise.
3717
3718 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3719 * configure, config.in: Regenerate.
3720
5a99adb8
TV
37212020-07-30 Tom de Vries <tdevries@suse.de>
3722
3723 PR build/26320
3724 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3725 m_red/m_green/m_blue in a union.
3726
8ba83e91
TV
37272020-07-29 Tom de Vries <tdevries@suse.de>
3728
3729 PR tdep/26280
3730 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3731
f75a0693
AB
37322020-07-28 Tom Tromey <tromey@adacore.com>
3733
3734 PR symtab/26270:
3735 * symtab.h (find_pc_partial_function_sym): Declare.
3736 * cli/cli-cmds.c (disassemble_command): Use
3737 find_pc_partial_function_sym. Check asm_demangle.
3738 * blockframe.c (cache_pc_function_sym): New global.
3739 (cache_pc_function_name): Remove.
3740 (clear_pc_function_cache): Update.
3741 (find_pc_partial_function_sym): New function, from
3742 find_pc_partial_function.
3743 (find_pc_partial_function): Rewrite using
3744 find_pc_partial_function_sym.
3745
16f3242c
TT
37462020-07-28 Tom Tromey <tromey@adacore.com>
3747
3748 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3749 help. Add usage.
3750
4888741a
TT
37512020-07-28 Tom Tromey <tromey@adacore.com>
3752
3753 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3754 <DW_OP_GNU_variable_value>: Cast to address type.
3755
4d46f402
KR
37562020-07-28 Kamil Rytarowski <n54@gmx.com>
3757
3758 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3759 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3760 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3761 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3762 (nbsd_get_siginfo_type): New.
3763 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3764 (_initialize_nbsd_tdep): New.
3765
d70f978b
L
37662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3767
3768 PR binutils/26301
3769 * configure: Regenerated.
3770
377170fa
L
37712020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3772
3773 PR binutils/26301
3774 * configure: Regenerated.
3775
43d5901d
AB
37762020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * python/py-frame.c: Remove 'user-regs.h' include.
3779 (frapy_read_register): Rewrite to make use of
3780 gdbpy_parse_register_id.
3781 * python/py-registers.c (gdbpy_parse_register_id): New function,
3782 moved here from python/py-unwind.c. Updated the return type, and
3783 also accepts register descriptor objects.
3784 * python/py-unwind.c: Remove 'user-regs.h' include.
3785 (pyuw_parse_register_id): Moved to python/py-registers.c.
3786 (unwind_infopy_add_saved_register): Update to use
3787 gdbpy_parse_register_id.
3788 (pending_framepy_read_register): Likewise.
3789 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3790
14fa8fb3
AB
37912020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3792
3793 * python/py-registers.c: Add 'user-regs.h' include.
3794 (register_descriptor_iter_find): New function.
3795 (register_descriptor_iterator_object_methods): New static global
3796 methods array.
3797 (register_descriptor_iterator_object_type): Add pointer to methods
3798 array.
3799
ddce1758
JB
38002020-07-27 John Baldwin <jhb@FreeBSD.org>
3801
3802 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3803 for all architectures on FreeBSD 11.3 and later.
3804
a4089f52
TT
38052020-07-27 Tom Tromey <tromey@adacore.com>
3806
3807 * gcore.h (load_corefile): Don't declare.
3808
95420d30
TV
38092020-07-27 Tom de Vries <tdevries@suse.de>
3810
3811 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3812 * config.in: Regenerate.
3813 * configure: Regenerate.
3814
05a6b8c2
EZ
38152020-07-26 Eli Zaretskii <eliz@gnu.org>
3816
3817 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3818 ws2tcpip.h. When checking whether socklen_t type is defined, use
3819 ws2tcpip.h if it is available and sys/socket.h isn't.
3820 * configure: Regenerate.
3821 * config.in: Regenerate.
3822
e79eb02f
AB
38232020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3824
3825 PR fortran/23051
3826 PR fortran/26139
3827 * valops.c (value_ind): Pass address to
3828 readjust_indirect_value_type.
3829 * value.c (readjust_indirect_value_type): Make parameter
3830 non-const, and add extra address parameter. Resolve original type
3831 before using it.
3832 * value.h (readjust_indirect_value_type): Update function
3833 signature and comment.
3834
876518dd
TV
38352020-07-25 Tom de Vries <tdevries@suse.de>
3836
3837 PR symtab/26243
3838 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3839 entries.
3840
f6720b1c
AM
38412020-07-24 Aaron Merey <amerey@redhat.com>
3842
3843 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3844 * configure: Rebuild.
3845
513487e1
KB
38462020-07-23 Kevin Buettner <kevinb@redhat.com>
3847
3848 PR corefiles/26294
3849 * corelow.c (_initialize_corelow): Add period to help text
3850 for "maintenance print core-file-backed-mappings".
3851
e7bc9db8
PA
38522020-07-23 Pedro Alves <pedro@palves.net>
3853
3854 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3855 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3856 meanwhile.
3857 * frame.c (frame_cache_generation, get_frame_cache_generation):
3858 New.
3859 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3860 (get_prev_frame_if_no_cycle): On exception, don't touch
3861 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3862 * frame.h (get_frame_cache_generation): Declare.
3863
90fcc466
TV
38642020-07-23 Tom de Vries <tdevries@suse.de>
3865
3866 PR tui/26282
3867 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3868 New default constructor.
3869
78344df7
AB
38702020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3871
3872 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3873 exclude non-statement entries.
3874
b089853a
KB
38752020-07-22 Kevin Buettner <kevinb@redhat.com>
3876
3877 * NEWS (New commands): Mention new command
3878 "maintenance print core-file-backed-mappings".
3879
09c2f5d4
KB
38802020-07-22 Kevin Buettner <kevinb@redhat.com>
3881
3882 * corelow.c (gdbcmd.h): Include.
3883 (core_target::info_proc_mappings): New method.
3884 (get_current_core_target): New function.
3885 (maintenance_print_core_file_backed_mappings): New function.
3886 (_initialize_corelow): Add core-file-backed-mappings to
3887 "maint print" commands.
3888
9c5ec5c2 38892020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3890
9c5ec5c2
KB
3891 * linux-tdep.c (dump_note_entry_p): New function.
3892 (linux_dump_mapping_p_ftype): New typedef.
3893 (linux_find_memory_regions_full): Add new parameter,
3894 should_dump_mapping_p.
3895 (linux_find_memory_regions): Adjust call to
3896 linux_find_memory_regions_full.
3897 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3898 call to linux_find_memory_regions_full.
3899
db082f59
KB
39002020-07-22 Kevin Buettner <kevinb@redhat.com>
3901
3902 * corelow.c (solist.h, unordered_map): Include.
3903 (class core_target): Add field m_core_file_mappings and
3904 method build_file_mappings.
3905 (core_target::core_target): Call build_file_mappings.
3906 (core_target::~core_target): Free memory associated with
3907 m_core_file_mappings.
3908 (core_target::build_file_mappings): New method.
3909 (core_target::xfer_partial): Use m_core_file_mappings
3910 for memory transfers.
3911 * linux-tdep.c (linux_read_core_file_mappings): New
3912 function.
3913 (linux_core_info_proc_mappings): Rewrite to use
3914 linux_read_core_file_mappings.
3915 (linux_init_abi): Register linux_read_core_file_mappings.
3916
7e183d27
KB
39172020-07-22 Kevin Buettner <kevinb@redhat.com>
3918
3919 * arch-utils.c (default_read_core_file_mappings): New function.
3920 * arch-utils.c (default_read_core_file_mappings): Declare.
3921 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3922 * gdbarch.h, gdbarch.c: Regenerate.
3923
2735d421
KB
39242020-07-22 Kevin Buettner <kevinb@redhat.com>
3925
3926 PR corefiles/25631
3927 * corelow.c (core_target:xfer_partial): Revise
3928 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3929 case after first checking the stratum beneath the core
3930 target.
3931 (has_all_memory): Return true.
3932 * target.c (raw_memory_xfer_partial): Revise comment
3933 regarding use of has_all_memory.
3934
e56cb451
KB
39352020-07-22 Kevin Buettner <kevinb@redhat.com>
3936
3937 * exec.h (section_table_xfer_memory): Revise declaration,
3938 replacing section name parameter with an optional callback
3939 predicate.
3940 * exec.c (section_table_xfer_memory): Likewise.
3941 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3942 of section_table_xfer_memory.
3943
32fa152e
TT
39442020-07-22 Tom Tromey <tromey@adacore.com>
3945
3946 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3947 lookup_symbol_search_name.
3948
a67a1c41
AB
39492020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3952 redundant local variable.
3953 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3954 reference, not pointer, update code accordingly.
3955
a7b4ff4f
SM
39562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3957 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3958
3959 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3960 * jit.c (jit_breakpoint_re_set_internal): Use the
3961 `skip_jit_symbol_lookup` field.
3962
2340e834
SM
39632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3964 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3965
3966 * jit.c (jit_read_descriptor): Define the descriptor address once,
3967 use twice.
3968 (jit_breakpoint_deleted): Move the declaration of the loop variable
3969 `iter` into the loop header.
3970 (jit_breakpoint_re_set_internal): Move the declaration of the local
3971 variable `objf_data` to the first point of definition.
3972 (jit_event_handler): Move the declaration of local variables
3973 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3974 Rename `objf` to `jited`.
3975
c1072906
SM
39762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3979 Remove.
3980 * jit.c (get_jiter_objfile_data): Update.
3981
c8474dc3
TBA
39822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3983 Simon Marchi <simon.marchi@polymtl.ca>
3984
3985 * jit.c (struct jit_program_space_data): Remove.
3986 (jit_program_space_key): Remove.
3987 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3988 stuff.
3989 (get_jit_program_space_data): Remove.
3990 (jit_breakpoint_deleted): Iterate on all of the program space's
3991 objfiles.
3992 (jit_inferior_init): Likewise.
3993 (jit_breakpoint_re_set_internal): Likewise. Also change return
3994 type to void.
3995 (jit_breakpoint_re_set): Pass current_program_space to
3996 jit_breakpoint_re_set_internal.
3997
77208eb7
SM
39982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * jit.h (struct jiter_objfile_data) <cached_code_address,
4001 jit_breakpoint>: Move to here from ...
4002 * jit.c (jit_program_space_data): ... here.
4003 (jiter_objfile_data::~jiter_objfile_data): Update.
4004 (jit_breakpoint_deleted): Update.
4005 (jit_breakpoint_re_set_internal): Update.
4006
8c1c720f
SM
40072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4008
4009 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4010 checks.
4011 (jit_read_descriptor): Remove NULL check.
4012 (jit_event_handler): Add an assertion.
4013
0e74a041
SM
40142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4015
4016 * jit.h (struct jit_objfile_data): Split into...
4017 (struct jiter_objfile_data): ... this ...
4018 (struct jited_objfile_data): ... and this.
4019 * objfiles.h (struct objfile) <jit_data>: Remove.
4020 <jiter_data, jited_data>: New fields.
4021 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4022 (jiter_objfile_data::~jiter_objfile_data): ... this.
4023 (get_jit_objfile_data): Rename to ...
4024 (get_jiter_objfile_data): ... this.
4025 (add_objfile_entry): Update.
4026 (jit_read_descriptor): Use get_jiter_objfile_data.
4027 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4028 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4029 (jit_inferior_exit_hook): Use objfile's jited_data field.
4030
238b5c9f
SM
40312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4032
4033 * jit.h: Forward-declare `struct minimal_symbol`.
4034 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4035 constructor, destructor, and an objfile* field.
4036 * jit.c (jit_objfile_data): Remove.
4037 (struct jit_objfile_data): Migrate from here to jit.h.
4038 (jit_objfile_data::~jit_objfile_data): New destructor
4039 implementation with code moved from free_objfile_data.
4040 (free_objfile_data): Delete.
4041 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4042 (jit_find_objf_with_entry_addr): Ditto.
4043 (jit_inferior_exit_hook): Ditto.
4044 (_initialize_jit): Remove the call to
4045 register_objfile_data_with_cleanup.
4046 * objfiles.h (struct objfile) <jit_data>: New field.
4047
fe053b9e
TBA
40482020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4049
4050 * jit.h: Forward-declare `struct objfile`.
4051 (jit_event_handler): Add a second parameter, the JITer objfile.
4052 * jit.c (jit_read_descriptor): Change the signature to take the
4053 JITer objfile as an argument instead of the jit_program_space_data.
4054 (jit_inferior_init): Update the call to jit_read_descriptor.
4055 (jit_event_handler): Use the new JITer objfile argument when calling
4056 jit_read_descriptor.
4057 * breakpoint.c (handle_jit_event): Update the call to
4058 jit_event_handler to pass the JITer objfile.
4059
4cec0c66
JB
40602020-07-21 John Baldwin <jhb@FreeBSD.org>
4061
4062 * gdbarch.c: Regenerate.
4063 * gdbarch.h: Regenerate.
4064 * gdbarch.sh (handle_segmentation_fault): Remove method.
4065 * infrun.c (handle_segmentation_fault): Remove.
4066 (print_signal_received_reason): Remove call to
4067 handle_segmentation_fault.
4068
0e42f66a
JB
40692020-07-21 John Baldwin <jhb@FreeBSD.org>
4070
4071 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4072 Rename to sparc64_linux_report_signal_info and add siggnal
4073 argument.
4074 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4075 instead of sparc64_linux_handle_segmentation_fault.
4076
77bdfeb2
JB
40772020-07-21 John Baldwin <jhb@FreeBSD.org>
4078
4079 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4080 i386_linux_report_signal_info instead of
4081 i386_linux_handle_segmentation_fault.
4082 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4083 to i386_linux_report_signal_info and add siggnal argument.
4084 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4085 of i386_linux_handle_segmentation_fault.
4086 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4087 to i386_linux_report_signal_info and add siggnal argument.
4088
ad97bfc5
JB
40892020-07-21 John Baldwin <jhb@FreeBSD.org>
4090
4091 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4092 hook if present.
4093
272bb05c
JB
40942020-07-21 John Baldwin <jhb@FreeBSD.org>
4095
4096 * gdbarch.c: Regenerate.
4097 * gdbarch.h: Regenerate.
4098 * gdbarch.sh (report_signal_info): New method.
4099 * infrun.c (print_signal_received_reason): Invoke gdbarch
4100 report_signal_info hook if present.
4101
baf8791e
AB
41022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4103
4104 * python/py-registers.c : Add 'unordered_map' include.
4105 (gdbpy_new_reggroup): Renamed to...
4106 (gdbpy_get_reggroup): ...this. Update to only create register
4107 group descriptors when needed.
4108 (gdbpy_reggroup_iter_next): Update.
4109
f7306dac
AB
41102020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4111
4112 * python/py-registers.c (gdbpy_register_object_data): New static
4113 global.
4114 (gdbpy_register_object_data_init): New function.
4115 (gdbpy_new_register_descriptor): Renamed to...
4116 (gdbpy_get_register_descriptor): ...this, and update to reuse
4117 existing register descriptors where possible.
4118 (gdbpy_register_descriptor_iter_next): Update.
4119 (gdbpy_initialize_registers): Register new gdbarch data.
4120
05c309a8
SM
41212020-07-21 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * linux-nat.c (stopped_pids): Make static.
4124
d1fd641e
SM
41252020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4126
4127 PR ada/26235
4128 * gdbtypes.c (ada_discrete_type_low_bound,
4129 ada_discrete_type_high_bound): Handle undefined bounds.
4130
1de14d77
KR
41312020-07-21 Kamil Rytarowski <n54@gmx.com>
4132
4133 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4134 declaration.
4135 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4136 function.
4137
ed810cc7
JB
41382020-07-20 John Baldwin <jhb@FreeBSD.org>
4139
4140 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4141 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4142 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4143 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4144 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4145 method.
4146
ae5369e7
LC
41472020-07-20 Ludovic Courtès <ludo@gnu.org>
4148
4149 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4150 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4151 which are deprecated in Guile 3.0.
4152 * configure.ac (try_guile_versions): Add "guile-3.0".
4153 * configure (try_guile_versions): Regenerate.
4154 * NEWS: Update entry.
4155
68cf161c
LC
41562020-07-20 Ludovic Courtès <ludo@gnu.org>
4157 Doug Evans <dje@google.com>
4158
4159 PR gdb/21104
4160 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4161 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4162 USING_GUILE_BEFORE_2_2.
4163 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4164 Change type to 'scm_t_port_type *'.
4165 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4166 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4167 parameter and honor it. Update callers.
4168 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4169 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4170 functions.
4171 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4172 USING_GUILE_BEFORE_2_2.
4173 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4174 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4175 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4176 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4177 and 'SCM_PORT_TYPE'.
4178 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4179 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4180 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4181 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4182 [!USING_GUILE_BEFORE_2_2]: New functions.
4183 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4184 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4185 'gdbscm_memory_port_read'.
4186 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4187 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4188 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4189 function.
4190 (ioscm_init_memory_port): Remove.
4191 (ioscm_init_memory_port_stream): New function
4192 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4193 function.
4194 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4195 Return scm_from_uint (0).
4196 (gdbscm_set_memory_port_read_buffer_size_x)
4197 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4198 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4199 Return scm_from_uint (0).
4200 (gdbscm_set_memory_port_write_buffer_size_x)
4201 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4202 * configure.ac (try_guile_versions): Add "guile-2.2".
4203 * configure: Regenerate.
4204 * NEWS: Add entry.
4205
aee91db3
TT
42062020-07-18 Tom Tromey <tom@tromey.com>
4207
4208 * linux-nat.c (linux_multi_process): Remove.
4209 (linux_nat_target::supports_multi_process): Return true.
4210
0e267416
AB
42112020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4212
4213 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4214 (riscv_lookup_target_description): Return pointer out of
4215 unique_ptr.
4216 * target-descriptions.c (allocate_target_description): Add
4217 comment.
4218 (target_desc_deleter::operator()): Likewise.
4219 * target-descriptions.h (struct target_desc_deleter): Moved to
4220 gdbsupport/tdesc.h.
4221 (target_desc_up): Likewise.
4222
f80c8ec4
TT
42232020-07-17 Tom Tromey <tromey@adacore.com>
4224
4225 * linux-nat.c (linux_nat_target::supports_non_stop)
4226 (linux_nat_target::always_non_stop_p): Use "true".
4227 (linux_nat_target::supports_disable_randomization): Use "true" and
4228 "false".
4229
d0ce17d8
CT
42302020-07-16 Caroline Tice <cmtice@google.com>
4231
4232 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4233 (RNGLIST_HEADER_SIZE64): New constant definition.
4234 (struct dwop_section_names): Add rnglists_dwo.
4235 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4236 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4237 (struct dwo_sections): Add rnglists field.
4238 (read_attribut_reprocess): Add tag parameter.
4239 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4240 (cu_debug_rnglists_section): New function (decl & definition).
4241 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4242 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4243 die whose range is being checked; get rnglist section from
4244 cu_debug_rnglists_section, to get from either objfile or dwo file as
4245 appropriate. Add cases for DW_RLE_base_addressx,
4246 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4247 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4248 test inside if-condition and updating complaint message.
4249 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4250 dwarf2_rnglists_process.
4251 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4252 dwarf2_ranges_process.
4253 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4254 need_ranges_base and update comment appropriately. Also pass die tag
4255 to dwarf2_ranges_read.
4256 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4257 need_ranges_base and update comment appropriately. Also pass die tag
4258 to dwarf2_ranges_process.
4259 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4260 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4261 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4262 need_ranges_base and update comment appropriately. Also pass die tag
4263 to read_attribute_reprocess and dwarf2_ranges_read.
4264 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4265 and update function comment appropriately.
4266 (read_loclist_index): Call read_loclists_rnglists_header instead of
4267 read_loclist_header.
4268 (read_rnglist_index): New function.
4269 (read_attribute_reprocess): Add tag parameter. Add code for
4270 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4271 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4272
3dcc261c
AB
42732020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4274
4275 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4276 being resolved.
4277
ccb9eba6
AB
42782020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4279
4280 * arch-utils.c (show_architecture): Update formatting of messages.
4281
cf88be68
SM
42822020-07-12 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * gdbtypes.h (struct type) <bounds>: Handle array and string
4285 types.
4286 * ada-lang.c (assign_aggregate): Use type::bounds on
4287 array/string type.
4288 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4289 * c-varobj.c (c_number_of_children): Likewise.
4290 (c_describe_child): Likewise.
4291 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4292 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4293 (f_type_print_base): Likewise.
4294 * f-valprint.c (f77_array_offset_tbl): Likewise.
4295 (f77_get_upperbound): Likewise.
4296 (f77_print_array_1): Likewise.
4297 * guile/scm-type.c (gdbscm_type_range): Likewise.
4298 * m2-typeprint.c (m2_array): Likewise.
4299 (m2_is_long_set_of_type): Likewise.
4300 * m2-valprint.c (get_long_set_bounds): Likewise.
4301 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4302 * python/py-type.c (typy_range): Likewise.
4303 * rust-lang.c (rust_internal_print_type): Likewise.
4304 * type-stack.c (type_stack::follow_types): Likewise.
4305 * valarith.c (value_subscripted_rvalue): Likewise.
4306 * valops.c (value_cast): Likewise.
4307
509971ae
SM
43082020-07-12 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4311 callers to use the equivalent accessor methods.
4312
107406b7
SM
43132020-07-12 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4316 (struct type) <bit_stride>: New method.
4317 (TYPE_BIT_STRIDE): Remove.
4318 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4319
bb789949
SM
43202020-07-12 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4323 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4324 callers to use the equivalent accessor methods instead.
4325
39498edb
SM
43262020-07-12 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4329 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4330 callers to use the equivalent accessor methods instead.
4331
3b606f38
SM
43322020-07-12 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4335 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4336 to use dynamic_prop::kind.
4337
064d9cb9
SM
43382020-07-12 Simon Marchi <simon.marchi@efficios.com>
4339
4340 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4341 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4342 to get the bound property's kind and check against
4343 PROP_UNDEFINED.
4344
5537ddd0
SM
43452020-07-12 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4348 all callers to use type::range_bounds followed by
4349 dynamic_prop::{low,high}.
4350
8c2e4e06
SM
43512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4352
4353 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4354 const_val, set_const_val, baton, set_locexpr, set_loclist,
4355 set_addr_offset, variant_parts, set_variant_parts,
4356 original_type, set_original_type>: New methods.
4357 <kind>: Rename to...
4358 <m_kind>: ... this. Update all users to use the new methods
4359 instead.
4360 <data>: Rename to...
4361 <m_data>: ... this. Update all users to use the new methods
4362 instead.
4363
7c6f2712
SM
43642020-07-12 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * gdbtypes.c (get_discrete_bounds): Return failure if
4367 the range type's bounds are not both defined and constant
4368 values.
4369 (get_array_bounds): Update comment. Remove undefined bound check.
4370
599088e3
SM
43712020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4372
4373 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4374 the type::bounds method directly.
4375
c4dfcb36
SM
43762020-07-12 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4379 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4380 are used to set the range type's bounds to use set_bounds.
4381
0a278aa7
PW
43822020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4383
4384 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4385
cce20f10
PA
43862020-07-10 Pedro Alves <pedro@palves.net>
4387
4388 * gdbthread.h (inferior_ref): Define.
4389 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4390 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4391 * thread.c
4392 (scoped_restore_current_thread::restore):
4393 Adjust to gdb::ref_ptr.
4394 (scoped_restore_current_thread::~scoped_restore_current_thread):
4395 Remove manual decref handling.
4396 (scoped_restore_current_thread::scoped_restore_current_thread):
4397 Adjust to use
4398 inferior_ref::new_reference/thread_info_ref::new_reference.
4399 Incref the thread before calling get_frame_id instead of after.
4400 Let TARGET_CLOSE_ERROR propagate.
4401
6d7aa592
PA
44022020-07-10 Pedro Alves <pedro@palves.net>
4403
4404 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4405 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4406 NOT_AVAILABLE_ERROR.
4407 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4408 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4409
b3e3a4c1
SM
44102020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4411 Pedro Alves <pedro@palves.net>
4412
4413 PR gdb/26199
4414 * infrun.c (threads_are_resumed_pending_p): Delete.
4415 (do_target_wait): Remove threads_are_executing and
4416 threads_are_resumed_pending_p checks from the inferior_matches
4417 lambda. Update comments.
4418
d6cc5d98
PA
44192020-07-10 Pedro Alves <pedro@palves.net>
4420
4421 PR gdb/26199
4422 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4423 executing threads.
4424
7d3badc6
PA
44252020-07-10 Pedro Alves <pedro@palves.net>
4426
4427 PR gdb/26199
4428 * infrun.c (handle_no_resumed): Handle multiple targets.
4429
42bd97a6
PA
44302020-07-10 Pedro Alves <pedro@palves.net>
4431
4432 PR gdb/26199
4433 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4434 target_is_async_p.
4435
43667cc6
PA
44362020-07-10 Pedro Alves <pedro@palves.net>
4437
4438 PR gdb/26199
4439 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4440 threads, not all threads.
4441
96118d11
PA
44422020-07-10 Pedro Alves <pedro@palves.net>
4443
4444 PR gdb/26199
4445 * remote.c (remote_target::open_1): Pass remote target pointer as
4446 data to create_async_event_handler.
4447 (remote_async_inferior_event_handler): Mark async event handler
4448 before returning if the remote target still has either pending
4449 events or unacknowledged notifications.
4450
54904d81
JB
44512020-07-10 John Baldwin <jhb@FreeBSD.org>
4452
4453 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4454 declaration.
4455 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4456 function.
4457
f37e5866
JB
44582020-07-09 John Baldwin <jhb@FreeBSD.org>
4459
4460 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4461 inferior_ptid.
4462
fc238d4a
JB
44632020-07-09 John Baldwin <jhb@FreeBSD.org>
4464
4465 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4466 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4467 AT_FREEBSD_PS_STRINGS.
4468
6e2469ff
HD
44692020-07-08 Hannes Domani <ssbssa@yahoo.de>
4470
4471 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4472 of debugfile path on Windows.
4473
d1076c41
JB
44742020-07-08 John Baldwin <jhb@FreeBSD.org>
4475
4476 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4477 argument to 'data'.
4478
15f3b077
TT
44792020-07-08 Tom Tromey <tromey@adacore.com>
4480
4481 * ada-lang.c (ada_exception_message_1): Use read_memory.
4482
9fc501fd
AB
44832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4484
4485 PR python/22748
4486 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4487 special handling for inline frames.
4488 * findvar.c (value_of_register_lazy): Skip inline frames when
4489 creating lazy register values.
4490 * frame.c (frame_id_computed_p): Delete definition.
4491 * frame.h (frame_id_computed_p): Delete declaration.
4492
64cb3757
AB
44932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4494
4495 * NEWS: Mention additions to Python API.
4496 * python/py-arch.c (archpy_register_groups): New function.
4497 (arch_object_methods): Add 'register_groups' method.
4498 * python/py-registers.c (reggroup_iterator_object): New struct.
4499 (reggroup_object): New struct.
4500 (gdbpy_new_reggroup): New function.
4501 (gdbpy_reggroup_to_string): New function.
4502 (gdbpy_reggroup_name): New function.
4503 (gdbpy_reggroup_iter): New function.
4504 (gdbpy_reggroup_iter_next): New function.
4505 (gdbpy_new_reggroup_iterator): New function
4506 (gdbpy_initialize_registers): Register new types.
4507 (reggroup_iterator_object_type): Define new Python type.
4508 (gdbpy_reggroup_getset): New static global.
4509 (reggroup_object_type): Define new Python type.
4510 * python/python-internal.h
4511
0f767f94
AB
45122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4515 * python/py-arch.c (archpy_registers): New function.
4516 (arch_object_methods): Add 'registers' method.
4517 * python/py-registers.c: New file.
4518 * python/python-internal.h
4519 (gdbpy_new_register_descriptor_iterator): Declare.
4520 (gdbpy_initialize_registers): Declare.
4521 * python/python.c (do_start_initialization): Call
4522 gdbpy_initialize_registers.
4523 * NEWS: Mention additions to the Python API.
4524
87dbc774
AB
45252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4526
4527 * NEWS: Mention new Python API method.
4528 * python/py-unwind.c (pending_framepy_architecture): New function.
4529 (pending_frame_object_methods): Add architecture method.
4530
3bc98c0c
AB
45312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 * gdbarch.c: Regenerate.
4534 * gdbarch.h: Regenerate.
4535 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4536 (gdbarch_data): Use internal_error for the case where
4537 deprecated_set_gdbarch_data was originally needed.
4538 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4539 and use passed in obstack.
4540 (libunwind_frame_set_descr): Should no longer get back NULL from
4541 gdbarch_data.
4542 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4543 type.
4544 * user-regs.c (user_regs_init): Update parameters, and use passed
4545 in obstack.
4546 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4547 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4548
d8cc8af6
TV
45492020-07-06 Tom de Vries <tdevries@suse.de>
4550
4551 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4552 End-Of-Sequence in lte_is_less_than.
4553 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4554 "gdb: Don't reorder line table entries too much when sorting".
4555
947f7597
TV
45562020-07-06 Tom de Vries <tdevries@suse.de>
4557
4558 PR tui/26205
4559 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4560
1e7c1b22
TV
45612020-07-05 Tom de Vries <tdevries@suse.de>
4562
4563 PR build/26187
4564 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4565 std::uncaught_exceptions instead of deprecated
4566 std::uncaught_exception.
4567
a36158ec
SM
45682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4569
4570 * macroexp.h (macro_stringify): Return
4571 gdb::unique_xmalloc_ptr<char>.
4572 * macroexp.c (macro_stringify): Likewise.
4573 * macrotab.c (fixup_definition): Update.
4574
14d960c8
SM
45752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4576
4577 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4578 (lex_one_token): Update.
4579 * macroexp.c (struct macro_buffer) <release>: Return
4580 gdb::unique_xmalloc_ptr<char>.
4581 (macro_stringify): Update.
4582 (macro_expand): Update.
4583 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4584 * macroexp.h (macro_expand_next): Likewise.
4585
211d5b1c
SM
45862020-07-02 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * macroexp.h (macro_lookup_ftype): Remove.
4589 (macro_expand, macro_expand_once, macro_expand_next): Remove
4590 lookup function parameters, add scope parameter.
4591 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4592 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4593 * macroscope.h (standard_macro_lookup): Change parameter type
4594 to macro_scope.
4595 * macroscope.c (standard_macro_lookup): Likewise.
4596 * c-exp.y (lex_one_token): Update.
4597 * macrocmd.c (macro_expand_command): Likewise.
4598 (macro_expand_once_command): Likewise.
4599
b1a35af2
SM
46002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4601
4602 * inf-loop.c (inferior_event_handler): Remove client_data param.
4603 * inf-loop.h (inferior_event_handler): Likewise.
4604 * infcmd.c (step_1): Adjust.
4605 * infrun.c (proceed): Adjust.
4606 (fetch_inferior_event): Remove client_data param.
4607 (infrun_async_inferior_event_handler): Adjust.
4608 * infrun.h (fetch_inferior_event): Remove `void *` param.
4609 * linux-nat.c (handle_target_event): Adjust.
4610 * record-btrace.c (record_btrace_handle_async_inferior_event):
4611 Adjust.
4612 * record-full.c (record_full_async_inferior_event_handler):
4613 Adjust.
4614 * remote.c (remote_async_inferior_event_handler): Adjust.
4615
1cdf9e33
TT
46162020-07-01 Tom Tromey <tom@tromey.com>
4617
4618 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4619 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4620
32c1e210
TT
46212020-07-01 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4624 tui_gen_win_info.
4625 (tui_win_info::make_window): Merge with
4626 tui_gen_win_info::make_window.
4627 (tui_win_info::make_visible): Move from tui_gen_win_info.
4628 * tui/tui-win.c (tui_win_info::max_width): Move from
4629 tui_gen_win_info.
4630 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4631 type.
4632 <window_factory>: Likewise.
4633 * tui/tui-layout.c (tui_win_info::resize): Move from
4634 tui_gen_win_info.
4635 (make_standard_window): Change return type.
4636 (get_locator_window, tui_get_window_by_name): Likewise.
4637 (tui_layout_window::apply): Remove a cast.
4638 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4639 (struct tui_win_info): Merge with tui_gen_win_info.
4640 (struct tui_gen_win_info): Remove.
4641
a30cb6da
TT
46422020-07-01 Tom Tromey <tom@tromey.com>
4643
4644 * tui/tui-stack.h (struct tui_locator_window): Derive from
4645 tui_win_info.
4646 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4647 <can_box>: New method.
4648
1eb2161f
TT
46492020-07-01 Tom Tromey <tom@tromey.com>
4650
4651 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4652
7134f2eb
TT
46532020-07-01 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui-regs.c (tui_data_window::display_registers_from)
4656 (tui_data_window::display_registers_from)
4657 (tui_data_window::first_data_item_displayed)
4658 (tui_data_window::delete_data_content_windows): Update.
4659 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4660 Remove.
4661 (tui_data_window::check_register_values): Update.
4662 (tui_data_item_window::rerender): Add parameters. Update.
4663 (tui_data_item_window::refresh_window): Remove.
4664 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4665 virtual.
4666 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4667 tui_gen_win_info.
4668 <refresh_window, max_height, min_height>: Remove.
4669 <rerender>: Add parameters.
4670 <x, y, visible>: New members.
4671 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4672 <m_item_width>: New member.
4673
22b7b041
TT
46742020-07-01 Tom Tromey <tom@tromey.com>
4675
4676 * tui/tui-regs.c (tui_data_window::show_register_group)
4677 (tui_data_window::check_register_values): Update.
4678 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4679 from item_no.
4680
c9753adb
TT
46812020-07-01 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4684 useless "if".
4685
9ab26b4a
TT
46862020-07-01 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4689 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4690
e555083f
TT
46912020-07-01 Tom Tromey <tom@tromey.com>
4692
4693 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4694 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4695 (struct tui_line_or_address): Move from tui-data.h.
4696 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4697 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4698 (tui_cmd_window, tui_source_window_base, tui_source_window)
4699 (tui_disasm_window): Don't declare.
4700 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4701 to tui-winsource.h.
4702 (SINGLE_KEY): Move to tui-stack.c.
4703
7a02bab7
TT
47042020-07-01 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4707 std::string.
4708 * tui/tui-regs.c (class tab_expansion_file): New.
4709 (tab_expansion_file::write): New method.
4710 (tui_register_format): Change return type. Use
4711 tab_expansion_file.
4712 (tui_get_register, tui_data_window::display_registers_from)
4713 (tui_data_item_window::rerender): Update.
4714 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4715 * tui/tui-io.c (tui_expand_tabs): Remove.
4716
ea68593b
TT
47172020-07-01 Tom Tromey <tom@tromey.com>
4718
4719 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4720
a8caed5d
FS
47212020-07-01 Fangrui Song <maskray@google.com>
4722
4723 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4724
9cdf9820
AKS
47252020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4726
4727 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4728 forms for DW_AT_associated and DW_AT_allocated attributes,
4729 which is already checked in function attr_to_dynamic_prop.
4730
a1520ad8
TT
47312020-06-30 Tom Tromey <tromey@adacore.com>
4732
4733 * dwarf2/read.c (quirk_rust_enum): Correctly call
4734 alloc_rust_variant for default-less enum.
4735
5ac58899
TT
47362020-06-30 Tom Tromey <tromey@adacore.com>
4737
4738 PR build/26183:
4739 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4740 gdb::to_string.
4741
19b187a9
SM
47422020-06-29 Simon Marchi <simon.marchi@efficios.com>
4743
4744 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4745 * gdbarch.h: Re-generate.
4746
cd4c4c07
TT
47472020-06-28 Tom Tromey <tom@tromey.com>
4748
4749 * command.h (cmd_types): Remove.
4750 (cmd_type): Don't declare.
4751 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4752 typedef.
4753 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4754 * cli/cli-decode.c (cmd_type): Remove.
4755
05779d57
PA
47562020-06-27 Pedro Alves <palves@redhat.com>
4757
4758 * fork-child.c (prefork_hook): Adjust.
4759 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4760 Delete.
4761 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4762 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4763 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4764 Remove declarations.
4765 (struct inferior) <set_tty, tty>: New methods.
4766 (struct inferior) <terminal>: Rename to ...
4767 (struct inferior) <m_terminal>: ... this and make private.
4768 * main.c (captured_main_1): Adjust.
4769 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4770 (mi_cmd_inferior_tty_show): Adjust.
4771 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4772 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4773
1776e3e5
NA
47742020-06-26 Nick Alcock <nick.alcock@oracle.com>
4775
4776 * configure.ac: Add --enable-libctf: handle --disable-static
4777 properly.
4778 * acinclude.m4: sinclude ../config/enable.m4.
4779 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4780 (LIBCTF): Substitute in.
4781 (CTF_DEPS): New, likewise.
4782 (CLIBS): libctf needs symbols from libbfd: move earlier.
4783 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4784 flags.
4785 * ctfread.c: Surround in ENABLE_LIBCTF.
4786 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4787 * configure: Regenerate.
4788 * config.in: Likewise.
4789
58373b80
SM
47902020-06-25 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4793
277474ee
SM
47942020-06-25 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * inferior.h (struct inferior) <terminal>: Change type to
4797 gdb::unique_xmalloc_ptr<char>.
4798 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4799 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4800 field, adjust to unique pointer.
4801 (get_inferior_io_terminal): Adjust to unique pointer.
4802
6d74da72
AB
48032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4806 registers, not just the known core set of registers.
4807
2e52d038
AB
48082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4811 fflags, frm, and fcsr registers.
4812 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4813 restore groups.
4814 (riscv_tdesc_unknown_reg): New function.
4815 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4816 tdesc_use_registers.
4817 * riscv-tdep.h (struct gdbarch_tdep): Add
4818 unknown_csrs_first_regnum, unknown_csrs_count,
4819 duplicate_fflags_regnum, duplicate_frm_regnum, and
4820 duplicate_fcsr_regnum fields.
4821
be64fd07
AB
48222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4823
4824 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4825 callback, use the callback (when not null) to help number unknown
4826 registers.
4827 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4828 (tdesc_use_registers): Add extra parameter to declaration.
4829
3b9fce96
AB
48302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4833 in the file.
4834 (class riscv_pending_register_alias): Likewise.
4835 (riscv_register_feature::register_info): Change 'required_p' field
4836 to 'required', and change its type. Add 'check' member function.
4837 (riscv_register_feature::register_info::check): Define new member
4838 function.
4839 (riscv_xreg_feature): Change initialisation of 'required' field.
4840 (riscv_freg_feature): Likewise.
4841 (riscv_virtual_feature): Likewise.
4842 (riscv_csr_feature): Likewise.
4843 (riscv_check_tdesc_feature): Take extra parameter, the csr
4844 tdesc_feature, rewrite the function to use the new
4845 riscv_register_feature::register_info::check function.
4846 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4847
865bad26
AB
48482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 * features/Makefile: Remove all references to the deleted files
4851 below.
4852 * features/riscv/32bit-csr.c: Deleted.
4853 * features/riscv/32bit-csr.xml: Deleted.
4854 * features/riscv/64bit-csr.c: Deleted.
4855 * features/riscv/64bit-csr.xml: Deleted.
4856 * features/riscv/rebuild-csr-xml.sh: Deleted.
4857
ed69cbc8
AB
48582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4859
4860 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4861 whitespace error for declaration of names member variable.
4862 (struct riscv_register_feature): Add new prefer_first_name member
4863 variable, and fix whitespace error in declaration of registers.
4864 (riscv_xreg_feature): Initialize prefer_first_name field.
4865 (riscv_freg_feature): Likewise.
4866 (riscv_virtual_feature): Likewise.
4867 (riscv_csr_feature): Likewise.
4868 (riscv_register_name): Expand on comments. Remove register name
4869 modifications for CSR and virtual registers.
4870
4445e8f5
AB
48712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4874 errors.
4875
767a879e
AB
48762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4877
4878 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4879 riscv-opc.h.
4880 (class riscv_pending_register_alias): New class.
4881 (riscv_check_tdesc_feature): Take vector of pending aliases and
4882 populate it as appropriate.
4883 (riscv_setup_register_aliases): Delete.
4884 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4885 to riscv_check_tdesc_feature in all cases. Use the vector to
4886 create the register aliases.
4887
bb6e55f3
RO
48882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4889
4890 * sol2-tdep.c (sol2_static_transform_name): Remove.
4891 (sol2_init_abi): Don't register it.
4892 * gdbarch.sh (static_transform_name): Remove.
4893 * gdbarch.c, gdbarch.h: Regenerate.
4894
4895 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4896 gdbarch_static_transform_name.
4897 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4898 * stabsread.c (define_symbol) <'X'>: Remove.
4899 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4900 handling.
4901 <'V'>: Likewise.
4902 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4903 <'S'>: Remove call to gdbarch_static_transform_name.
4904
c6d36836
RO
49052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4906
4907 * procfs.c (procfs_pre_trace): New function.
4908 (procfs_target::create_inferior): Pass it to fork_inferior.
4909
a7e6196b
RO
49102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4911
4912 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4913 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4914 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4915 sol2-tdep.o, sparc-sol2-tdep.o.
4916 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4917 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4918 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4919 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4920
d412e696
RO
49212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4922
4923 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4924 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4925 Call sol2_init_abi.
4926 Remove calls to set_gdbarch_skip_solib_resolver,
4927 set_gdbarch_core_pid_to_str.
4928 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4929 (i386_sol2_static_transform_name): Remove.
4930 (i386_sol2_init_abi): Call sol2_init_abi.
4931 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4932 set_gdbarch_static_transform_name,
4933 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4934 Use sol2_sigtramp_p.
4935 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4936 (sol2_sigtramp_p): New function.
4937 (sol2_static_transform_name): New function.
4938 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4939 (sol2_init_abi): New function.
4940 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4941 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4942 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4943 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4944 (sparc_sol2_static_transform_name): Remove.
4945 (sparc32_sol2_init_abi): Call sol2_init_abi.
4946 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4947 set_gdbarch_static_transform_name,
4948 set_gdbarch_skip_solib_resolver,
4949 set_gdbarch_core_pid_to_str.
4950 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4951 (sparc_sol2_static_transform_name): Remove
4952 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4953 call sol2_sigtramp_p.
4954 (sparc64_sol2_init_abi): Call sol2_init_abi.
4955 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4956 set_gdbarch_static_transform_name,
4957 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4958
a8654e7d
PW
49592020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4960
4961 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4962 * exec.c (validate_exec_file): If from_tty, set both
4963 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4964 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4965 and from_tty, unconditionally ask a confirmation.
4966
caa7fd04
AB
49672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * target-descriptions.c (tdesc_architecture_name): Protect against
4970 NULL pointer dereference.
4971 (maint_print_xml_tdesc_cmd): New function.
4972 (_initialize_target_descriptions): Register new 'maint print
4973 xml-tdesc' command and give it the filename completer.
4974 * NEWS: Mention new 'maint print xml-tdesc' command.
4975
fbf42f4e
AB
49762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4977
4978 * target-descriptions.c (class tdesc_compatible_info): New class.
4979 (struct target_desc): Change type of compatible vector.
4980 (tdesc_compatible_p): Update for change in type of
4981 target_desc::compatible.
4982 (tdesc_compatible_info_list): New function.
4983 (tdesc_compatible_info_arch_name): New function.
4984 (tdesc_add_compatible): Update for change in type of
4985 target_desc::compatible.
4986 (print_c_tdesc::visit_pre): Likewise.
4987
20821f4e
AB
49882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4989
4990 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4991 whitespace to underscore.
4992 (maint_print_c_tdesc_cmd): Use fake filename for target
4993 descriptions that came from the target.
4994 (_initialize_target_descriptions): Add filename command completion
4995 for 'maint print c-tdesc'.
4996
1fb5ee62
SM
49972020-06-23 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5000 lines.
5001
fc3ecb3e
SM
50022020-06-23 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5005 lines.
5006 (dwarf2_find_location_expression): Likewise.
5007 (call_site_parameter_matches): Likewise.
5008 (dwarf2_compile_expr_to_ax): Likewise.
5009 (disassemble_dwarf_expression): Likewise.
5010 (loclist_describe_location): Likewise.
5011
236ef034
PA
50122020-06-23 Pedro Alves <palves@redhat.com>
5013
5014 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5015 progspace-and-thread.h. Include scoped-mock-context.h instead.
5016 (register_to_value_test): Use scoped_mock_context.
5017 * regcache.c: Include "scoped-mock-context.h".
5018 (cooked_read_test): Don't error out if a target is already pushed.
5019 Use scoped_mock_context. Adjust.
5020 * scoped-mock-context.h: New file.
5021
39e7ecca
AB
50222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5023
5024 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5025 initializer.
5026 (ada_language::is_string_type_p): New member function.
5027 * c-lang.c (c_language_data): Delete la_is_string_type_p
5028 initializer.
5029 (cplus_language_data): Likewise.
5030 (asm_language_data): Likewise.
5031 (minimal_language_data): Likewise.
5032 * d-lang.c (d_language_data): Likewise.
5033 * f-lang.c (f_is_string_type_p): Delete function, implementation
5034 moved to f_language::is_string_type_p.
5035 (f_language_data): Delete la_is_string_type_p initializer.
5036 (f_language::is_string_type_p): New member function,
5037 implementation from f_is_string_type_p.
5038 * go-lang.c (go_is_string_type_p): Delete function, implementation
5039 moved to go_language::is_string_type_p.
5040 (go_language_data): Delete la_is_string_type_p initializer.
5041 (go_language::is_string_type_p): New member function,
5042 implementation from go_is_string_type_p.
5043 * language.c (language_defn::is_string_type_p): Define new member
5044 function.
5045 (default_is_string_type_p): Make static, add comment copied from
5046 header file.
5047 (unknown_language_data): Delete la_is_string_type_p initializer.
5048 (unknown_language::is_string_type_p): New member function.
5049 (auto_language_data): Delete la_is_string_type_p initializer.
5050 (auto_language::is_string_type_p): New member function.
5051 * language.h (language_data): Delete la_is_string_type_p field.
5052 (language_defn::is_string_type_p): Declare new function.
5053 (default_is_string_type_p): Delete desclaration, move comment to
5054 definition.
5055 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5056 moved to m2_language::is_string_type_p.
5057 (m2_language_data): Delete la_is_string_type_p initializer.
5058 (m2_language::is_string_type_p): New member function,
5059 implementation from m2_is_string_type_p.
5060 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5061 initializer.
5062 * opencl-lang.c (opencl_language_data): Likewise.
5063 * p-lang.c (pascal_is_string_type_p): Delete function,
5064 implementation moved to pascal_language::is_string_type_p.
5065 (pascal_language_data): Delete la_is_string_type_p initializer.
5066 (pascal_language::is_string_type_p): New member function,
5067 implementation from pascal_is_string_type_p.
5068 * rust-lang.c (rust_is_string_type_p): Delete function,
5069 implementation moved to rust_language::is_string_type_p.
5070 (rust_language_data): Delete la_is_string_type_p initializer.
5071 (rust_language::is_string_type_p): New member function,
5072 implementation from rust_is_string_type_p.
5073 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5074 is_string_type_p.
5075
4ffc13fb
AB
50762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5077
5078 * ada-lang.c (ada_language_data): Delete la_print_typedef
5079 initializer.
5080 (ada_language::print_typedef): New member function.
5081 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5082 (cplus_language_data): Likewise.
5083 (asm_language_data): Likewise.
5084 (minimal_language_data): Likewise.
5085 * d-lang.c (d_language_data): Likewise.
5086 * f-lang.c (f_language_data): Likewise.
5087 (f_language::print_typedef): New member function.
5088 * go-lang.c (go_language_data): Delete la_print_typedef
5089 initializer.
5090 * language.c (language_defn::print_typedef): Define member
5091 function.
5092 (unknown_language_data): Delete la_print_typedef initializer.
5093 (unknown_language::print_typedef): New member function.
5094 (auto_language_data): Delete la_print_typedef initializer.
5095 (auto_language::print_typedef): New member function.
5096 * language.h (language_data): Delete la_print_typedef field.
5097 (language_defn::print_typedef): Declare new member function.
5098 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5099 (default_print_typedef): Delete declaration.
5100 * m2-lang.c (m2_language_data): Delete la_print_typedef
5101 initializer.
5102 (m2_language::print_typedef): New member function.
5103 * objc-lang.c (objc_language_data): Delete la_print_typedef
5104 initializer.
5105 * opencl-lang.c (opencl_language_data): Likewise.
5106 * p-lang.c (pascal_language_data): Likewise.
5107 (pascal_language::print_typedef): New member function.
5108 * rust-lang.c (rust_print_typedef): Delete function,
5109 implementation moved to rust_language::print_typedef.
5110 (rust_language): Delete la_print_typedef initializer.
5111 (rust_language::print_typedef): New member function,
5112 implementation from rust_print_typedef.
5113 * typeprint.c (default_print_typedef): Delete.
5114
d711ee67
AB
51152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5118 (ada_language::printstr): New member function.
5119 * c-lang.c (c_language_data): Delete la_printstr initializer.
5120 (cplus_language_data): Likewise.
5121 (asm_language_data): Likewise.
5122 (minimal_language_data): Likewise.
5123 * d-lang.c (d_language_data): Likewise.
5124 * f-lang.c (f_printstr): Rename to f_language::printstr.
5125 (f_language_data): Delete la_printstr initializer.
5126 (f_language::printstr): New member function, implementation from
5127 f_printstr.
5128 * go-lang.c (go_language_data): Delete la_printstr initializer.
5129 * language.c (language_defn::printstr): Define new member
5130 function.
5131 (unk_lang_printstr): Delete.
5132 (unknown_language_data): Delete la_printstr initializer.
5133 (unknown_language::printstr): New member function.
5134 (auto_language_data): Delete la_printstr initializer.
5135 (auto_language::printstr): New member function.
5136 * language.h (language_data): Delete la_printstr field.
5137 (language_defn::printstr): Declare new member function.
5138 (LA_PRINT_STRING): Update call to printstr.
5139 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5140 (m2_language_data): Delete la_printstr initializer.
5141 (m2_language::printstr): New member function, implementation from
5142 m2_printstr.
5143 * objc-lang.c (objc_language_data): Delete la_printstr
5144 initializer.
5145 * opencl-lang.c (opencl_language_data): Likewise.
5146 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5147 (pascal_language_data): Delete la_printstr initializer.
5148 (pascal_language::printstr): New member function, implementation
5149 from pascal_printstr.
5150 * p-lang.h (pascal_printstr): Delete declaration.
5151 * rust-lang.c (rust_printstr): Update header comment.
5152 (rust_language_data): Delete la_printstr initializer.
5153 (rust_language::printstr): New member function.
5154
52b50f2c
AB
51552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5156
5157 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5158 (ada_language::printchar): New member function.
5159 * c-lang.c (c_language_data): Delete la_printchar initializer.
5160 (cplus_language_data): Likewise.
5161 (asm_language_data): Likewise.
5162 (minimal_language_data): Likewise.
5163 * d-lang.c (d_language_data): Likewise.
5164 * f-lang.c (f_printchar): Rename to f_language::printchar.
5165 (f_language_data): Delete la_printchar initializer.
5166 (f_language::printchar): New member function, implementation from
5167 f_printchar.
5168 * go-lang.c (go_language_data): Delete la_printchar initializer.
5169 * language.c (unk_lang_printchar): Delete.
5170 (language_defn::printchar): Define new member function.
5171 (unknown_language_data): Delete la_printchar initializer.
5172 (unknown_language::printchar): New member function.
5173 (auto_language_data): Delete la_printchar initializer.
5174 (auto_language::printchar): New member function.
5175 * language.h (language_data): Delete la_printchar field.
5176 (language_defn::printchar): Declare new member function.
5177 (LA_PRINT_CHAR): Update call to printchar.
5178 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5179 (m2_language::printchar): New member function.
5180 * objc-lang.c (objc_language_data): Delete la_printchar
5181 initializer.
5182 * opencl-lang.c (opencl_language_data): Likewise.
5183 * p-lang.c (pascal_language_data): Delete la_printchar
5184 initializer.
5185 (pascal_language::printchar): New member function.
5186 * rust-lang.c (rust_printchar): Rename to
5187 rust_language::printchar.
5188 (rust_language_data): Delete la_printchar initializer.
5189 (rust_language::printchar): New member function, implementation
5190 from rust_printchar.
5191
ec8cec5b
AB
51922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5193
5194 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5195 (ada_language_data): Delete la_emitchar initializer.
5196 (ada_language::emitchar): New member function, implementation from
5197 emit_char.
5198 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5199 (cplus_language_data): Likewise.
5200 (asm_language_data): Likewise.
5201 (minimal_language_data): Likewise.
5202 * d-lang.c (d_language_data): Likewise.
5203 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5204 (f_language_data): Delete la_emitchar initializer.
5205 (f_language::emitchar): New member function, implementation from
5206 f_emit_char.
5207 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5208 * language.c (unk_lang_emit_char): Delete.
5209 (language_defn::emitchar): New member function definition.
5210 (unknown_language_data): Delete la_emitchar initializer.
5211 (unknown_language::emitchar): New member function.
5212 (auto_language_data): Delete la_emitchar initializer.
5213 (auto_language::emitchar): New member function.
5214 * language.h (language_data): Delete la_emitchar field.
5215 (language_defn::emitchar): New member field declaration.
5216 (LA_EMIT_CHAR): Update call to emitchar.
5217 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5218 (m2_language_data): Delete la_emitchar initializer.
5219 (m2_language::emitchar): New member function, implementation from
5220 m2_emit_char.
5221 * objc-lang.c (objc_language_data): Delete la_emitchar
5222 initializer.
5223 * opencl-lang.c (opencl_language_data): Likewise.
5224 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5225 (pascal_language_data): Delete la_emitchar initializer.
5226 (pascal_language::emitchar): New member function, implementation
5227 from pascal_emit_char.
5228 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5229 (rust_language_data): Delete la_emitchar initializer.
5230 (rust_language::emitchar): New member function, implementation
5231 from rust_emitchar.
5232
1bf9c363
AB
52332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5234
5235 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5236 (ada_language_data): Delete la_post_parser initializer.
5237 (ada_language::post_parser): New member function.
5238 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5239 (cplus_language_data): Likewise.
5240 (asm_language_data): Likewise.
5241 (minimal_language_data): Likewise.
5242 * d-lang.c (d_language_data): Likewise.
5243 * f-lang.c (f_language_data): Likewise.
5244 * go-lang.c (go_language_data): Likewise.
5245 * language.c (unknown_language_data): Likewise.
5246 (auto_language_data): Likewise.
5247 * language.h (language_data): Delete la_post_parser field.
5248 (language_defn::post_parser): New member function.
5249 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5250 * objc-lang.c (objc_language_data): Likewise.
5251 * opencl-lang.c (opencl_language_data): Likewise.
5252 * p-lang.c (pascal_language_data): Likewise.
5253 * parse.c (parse_exp_in_context): Update call to post_parser.
5254 (null_post_parser): Delete definition.
5255 * parser-defs.h (null_post_parser): Delete declaration.
5256 * rust-lang.c (rust_language_data): Delete la_post_parser
5257 initializer.
5258
87afa652
AB
52592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5260
5261 * ada-lang.c (parse): Rename to ada_language::parser.
5262 (ada_language_data): Delete la_parser initializer.
5263 (ada_language::parser): New member function, implementation from
5264 parse.
5265 * c-lang.c (c_language_data): Delete la_parser initializer.
5266 (cplus_language_data): Likewise.
5267 (asm_language_data): Likewise.
5268 (minimal_language_data): Likewise.
5269 * d-lang.c (d_language_data): Likewise.
5270 (d_language::parser): New member function.
5271 * f-lang.c (f_language_data): Delete la_parser initializer.
5272 (f_language::parser): New member function.
5273 * go-lang.c (go_language_data): Delete la_parser initializer.
5274 (go_language::parser): New member function.
5275 * language.c (unk_lang_parser): Delete.
5276 (language_defn::parser): Define new member function.
5277 (unknown_language_data): Delete la_parser initializer.
5278 (unknown_language::parser): New member function.
5279 (auto_language_data): Delete la_parser initializer.
5280 (auto_language::parser): New member function.
5281 * language.h (language_data): Delete la_parser field.
5282 (language_defn::parser): Declare new member function.
5283 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5284 (m2_language::parser): New member function.
5285 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5286 * opencl-lang.c (opencl_language_data): Likewise.
5287 * p-lang.c (pascal_language_data): Likewise.
5288 (pascal_language::parser): New member function.
5289 * parse.c (parse_exp_in_context): Update call to parser.
5290 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5291 (rust_language::parser): New member function.
5292
37825800
AB
52932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * top.c (print_gdb_configuration): Print --with-python-libdir
5296 configuration value.
5297
5b860c93
PW
52982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5299
5300 * NEWS: Mention change to the alias command.
5301
cf00cd6f
PW
53022020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5303
5304 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5305 (alias_command_completer)
5306 (make_alias_options_def_group): New functions.
5307 (alias_opts, alias_option_defs): New struct and array.
5308 (alias_usage_error): Update usage.
5309 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5310 Use option framework.
5311 (_initialize_cli_cmds): Update alias command help.
5312 Update aliases command help.
5313 (show_user):
5314 Add NULL for new default_args lookup_cmd argument.
5315 (valid_command_p): Rename to validate_aliased_command.
5316 Add NULL for new default_args lookup_cmd argument. Verify that the
5317 aliased_command has no default args.
5318 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5319 (lookup_cmd_1, lookup_cmd): New argument default_args.
5320 (add_alias_cmd):
5321 Add NULL for new default_args lookup_cmd argument.
5322 (print_help_for_command): Show default args under the layout
5323 alias some_alias = some_aliased_cmd some_alias_default_arg.
5324 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5325 xfree default_args in destructor.
5326 * cli/cli-script.c (process_next_line, do_define_command):
5327 Add NULL for new default_args lookup_cmd argument.
5328 * command.h: Declare new default_args argument in lookup_cmd
5329 and lookup_cmd_1.
5330 * completer.c (complete_line_internal_1):
5331 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5332 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5333 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5334 Likewise.
5335 * infcmd.c (_initialize_infcmd): Likewise.
5336 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5337 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5338 * python/py-param.c (add_setshow_generic): Likewise.
5339 * remote.c (_initialize_remote): Likewise.
5340 * top.c (execute_command): Prepend default_args if command has some.
5341 (set_verbose):
5342 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5343 * tracepoint.c (validate_actionline, encode_actions_1):
5344 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5345
bd920864
TBA
53462020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5347
5348 * jit.c (jit_read_descriptor): Use bool as the return type.
5349 (jit_breakpoint_re_set_internal): Use bool as the return type.
5350 Invert the return value logic; return true if the jit breakpoint
5351 has been successfully initialized.
5352 (jit_inferior_init): Update the call to
5353 jit_breakpoint_re_set_internal.
5354
f8098322
PA
53552020-06-22 Pedro Alves <palves@redhat.com>
5356
5357 PR gdb/25939
5358 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5359 Use the current inferior instead. Don't return
5360 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5361 wait again.
5362 * sol-thread.c (sol_thread_target::wait): Don't reference
5363 inferior_ptid.
5364 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5365 (sol_update_thread_list_callback): Use the current inferior's pid
5366 instead of inferior_ptid.
5367
196535a6
RO
53682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5369
5370 * procfs.c: Cleanup many comments.
5371
5372 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5373 (AFTER_WATCHFLAG): Replace by value.
5374
5375 (MAIN_PROC_NAME_FORMAT): Inline ...
5376 (create_procinfo): ... here.
5377
5378 (procfs_debug_inferior): Remove SYS_exec handling.
5379 (syscall_is_exec): Likewise.
5380 (procfs_set_exec_trap): Likewise.
5381
5382 (syscall_is_lwp_exit): Inline in callers.
5383 (syscall_is_exit): Likewise.
5384 (syscall_is_exec): Likewise.
5385 (syscall_is_lwp_create): Likewise.
5386
5387 (invalidate_cache): Remove #if 0 code.
5388
5389 (make_signal_thread_runnable): Remove.
5390 (procfs_target::resume): Remove #if 0 code.
5391
cf6f3e86
RO
53922020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5393
5394 PR gdb/25939
5395 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5396 call ...
5397 (procfs_target::create_inferior): ... here.
5398
48e9cc84
PW
53992020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5400
5401 * exec.c (validate_exec_file): Ensure the build-id is up to
5402 date by calling reopen_exec_file (that checks file timestamp
5403 to decide to re-read the file).
5404
3922b302
PA
54052020-06-18 Pedro Alves <palves@redhat.com>
5406
5407 PR gdb/25412
5408 * gdbthread.h (delete_thread, delete_thread_silent)
5409 (find_thread_ptid): Update comments.
5410 * thread.c (current_thread_): New global.
5411 (is_current_thread): Move higher, and reimplement.
5412 (inferior_thread): Reimplement.
5413 (set_thread_exited): Use bool. Add assertions.
5414 (add_thread_silent): Simplify thread-reuse handling by always
5415 calling delete_thread.
5416 (delete_thread): Remove intro comment.
5417 (find_thread_ptid): Skip exited threads.
5418 (switch_to_thread_no_regs): Write to current_thread_.
5419 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5420 INFERIOR_PTID. Clear current_thread_.
5421
6dbdab44
PA
54222020-06-18 Pedro Alves <palves@redhat.com>
5423
5424 * aix-thread.c (pd_update): Use switch_to_thread.
5425
2da4b788
PA
54262020-06-18 Pedro Alves <palves@redhat.com>
5427
5428 * ravenscar-thread.c (ravenscar_thread_target): Update.
5429 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5430 (ravenscar_thread_target::add_active_thread): ... this. Don't
5431 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5432 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5433
50838d1b
PA
54342020-06-18 Pedro Alves <palves@redhat.com>
5435
5436 * nat/windows-nat.c (current_windows_thread): Remove.
5437 * nat/windows-nat.h (current_windows_thread): Remove.
5438 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5439 Adjust.
5440 (display_selectors): Adjust to fetch the current
5441 windows_thread_info based on inferior_ptid.
5442 (fake_create_process): No longer write to current_windows_thread.
5443 (windows_nat_target::get_windows_debug_event):
5444 Don't set inferior_ptid or current_windows_thread.
5445 (windows_nat_target::wait): Adjust to not rely on
5446 current_windows_thread.
5447 (do_initial_windows_stuff): Now a method of windows_nat_target.
5448 Switch to the last_ptid thread.
5449 (windows_nat_target::attach): Adjust.
5450 (windows_nat_target::detach): Use switch_to_no_thread instead of
5451 writing to inferior_ptid directly.
5452 (windows_nat_target::create_inferior): Adjust.
5453
31ce04e9
PA
54542020-06-18 Pedro Alves <palves@redhat.com>
5455
5456 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5457
1ee1a363
PA
54582020-06-18 Pedro Alves <palves@redhat.com>
5459
5460 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5461 after creating it, instead of writing to inferior_ptid. Don't
5462 write to inferior_ptid.
5463
6d350754
PA
54642020-06-18 Pedro Alves <palves@redhat.com>
5465
5466 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5467
5d971d48
PA
54682020-06-18 Pedro Alves <palves@redhat.com>
5469
5470 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5471 it, instead of writing to inferior_ptid.
5472
86e57d1b
PA
54732020-06-18 Pedro Alves <palves@redhat.com>
5474
5475 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5476 to inferior_ptid.
5477
f2e1c129
PA
54782020-06-18 Pedro Alves <palves@redhat.com>
5479
5480 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5481 instead of writing to inferior_ptid directly.
5482
60db1b85
PA
54832020-06-18 Pedro Alves <palves@redhat.com>
5484
5485 * corelow.c (core_target::close): Use switch_to_no_thread instead
5486 of writing to inferior_ptid directly.
5487 (add_to_thread_list, core_target_open): Use switch_to_thread
5488 instead of writing to inferior_ptid directly.
5489
fe7d6a8d
PA
54902020-06-18 Pedro Alves <palves@redhat.com>
5491
5492 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5493 inferior_ptid.
5494 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5495 inferior_ptid.
5496 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5497 inferior_ptid directly.
5498 (darwin_nat_target::init_thread_list): Switch to thread, instead
5499 of writing to inferior_ptid.
5500 (darwin_nat_target::attach): Don't write to inferior_ptid.
5501 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5502
975f8708
PA
55032020-06-18 Pedro Alves <palves@redhat.com>
5504
5505 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5506 thread.
5507 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5508 Instead use switch_to_thread.
5509 (gnu_nat_target::detach): Use switch_to_no_thread
5510 instead of writing to inferior_ptid directly. Used passed-in
5511 inferior instead of looking up the inferior by pid.
5512
1a204730
PA
55132020-06-18 Pedro Alves <palves@redhat.com>
5514
5515 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5516 inferior_ptid.
5517
ebe84f23
PA
55182020-06-18 Pedro Alves <palves@redhat.com>
5519
5520 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5521 inferior_ptid.
5522 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5523 thread.
5524 (nto_procfs_target::detach): Avoid referencing
5525 inferior_ptid. Use switch_to_no_thread instead of writing to
5526 inferior_ptid directly.
5527 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5528 instead of writing to inferior_ptid directly.
5529 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5530 to thread.
5531
191f02e5
PA
55322020-06-18 Pedro Alves <palves@redhat.com>
5533
5534 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5535 after creating it, instead of writing to inferior_ptid.
5536 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5537 to inferior_ptid directly.
5538 (gdbsim_target::wait): Don't write to inferior_ptid.
5539
0ac55310
PA
55402020-06-18 Pedro Alves <palves@redhat.com>
5541
5542 * remote.c (remote_target::remote_notice_new_inferior): Use
5543 switch_to_thread instead of writing to inferior_ptid directly.
5544 (remote_target::add_current_inferior_and_thread): Use
5545 switch_to_no_thread instead of writing to inferior_ptid directly.
5546 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5547 and switch_to_thread instead of using set_current_inferior or
5548 writing to inferior_ptid directly.
5549
5233f39b
PA
55502020-06-18 Pedro Alves <palves@redhat.com>
5551
5552 * tracectf.c (ctf_target_open): Switch to added thread instead of
5553 writing to inferior_ptid directly.
5554 (ctf_target::close): Use switch_to_no_thread instead of writing to
5555 inferior_ptid directly.
5556
087e161b
PA
55572020-06-18 Pedro Alves <palves@redhat.com>
5558
5559 * tracefile-tfile.c (tfile_target_open): Don't write to
5560 inferior_ptid directly, instead switch to added thread.
5561 (tfile_target::close): Use switch_to_no_thread instead of writing
5562 to inferior_ptid directly.
5563
7fb43e53
PA
55642020-06-18 Pedro Alves <palves@redhat.com>
5565
5566 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5567 (procfs_target::detach): Use switch_to_no_thread
5568 instead of writing to inferior_ptid directly.
5569 (do_attach): Change return type to void. Switch to the added
5570 thread.
5571 (procfs_target::create_inferior): Switch to the added thread.
5572 (procfs_do_thread_registers): Don't write to inferior_ptid.
5573
18493a00
PA
55742020-06-18 Pedro Alves <palves@redhat.com>
5575
5576 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5577 of writing to inferior_ptid.
5578 (scoped_restore_exited_inferior): Delete.
5579 (handle_vfork_child_exec_or_exit): Simplify using
5580 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5581 instead of writing to inferior_ptid.
5582 (THREAD_STOPPED_BY): Delete.
5583 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5584 (thread_stopped_by_hw_breakpoint): Delete.
5585 (save_waitstatus): Use
5586 scoped_restore_current_thread+switch_to_thread, and call
5587 target_stopped_by_watchpoint instead of
5588 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5589 instead of thread_stopped_by_sw_breakpoint, and
5590 target_stopped_by_hw_breakpoint instead of
5591 thread_stopped_by_hw_breakpoint.
5592 (handle_inferior_event)
5593 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5594 inferior_ptid directly, nor
5595 set_current_inferior/set_current_program_space. Use
5596 switch_to_thread / switch_to_inferior_no_thread instead.
5597
a0776b13
PA
55982020-06-18 Pedro Alves <palves@redhat.com>
5599
5600 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5601 instead of writing to inferior_ptid.
5602
6155c136
PA
56032020-06-18 Pedro Alves <palves@redhat.com>
5604
5605 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5606 added thread.
5607 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5608 to the added thread.
5609 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5610 instead of writing to inferior_ptid.
5611
c5316fc6
PA
56122020-06-18 Pedro Alves <palves@redhat.com>
5613
5614 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5615 (register_to_value_test): Mock a program_space too. Heap-allocate
5616 the address space. Don't write to inferior_ptid. Use
5617 switch_to_thread instead.
5618
8df01799
PA
56192020-06-18 Pedro Alves <palves@redhat.com>
5620
5621 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5622 Delete.
5623 (find_signalled_thread()): New, factored out from
5624 linux_make_corefile_notes and adjusted to handle exited threads.
5625 (linux_make_corefile_notes): Adjust to use the new
5626 find_signalled_thread.
5627
41792d68
PA
56282020-06-18 Pedro Alves <palves@redhat.com>
5629
5630 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5631 of saving/restoring inferior_ptid.
5632
612f258a
TT
56332020-06-17 Tom Tromey <tom@tromey.com>
5634
5635 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5636 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5637 declare.
5638 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5639
efb763a5
SM
56402020-06-15 Simon Marchi <simon.marchi@efficios.com>
5641
5642 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5643 of partial symtabs.
5644
2951f6c0
SM
56452020-06-17 Simon Marchi <simon.marchi@efficios.com>
5646
5647 * regformats/reg-arm.dat: Remove.
5648 * regformats/reg-bfin.dat: Remove.
5649 * regformats/reg-cris.dat: Remove.
5650 * regformats/reg-crisv32.dat: Remove.
5651 * regformats/reg-m32r.dat: Remove.
5652 * regformats/reg-tilegx.dat: Remove.
5653 * regformats/reg-tilegx32.dat: Remove.
5654
7d458ea5
SM
56552020-06-17 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * features/Makefile (WHICH): Remove arm files.
5658 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5659 * regformats/arm/arm-with-neon.dat: Remove.
5660 * regformats/arm/arm-with-vfpv2.dat: Remove.
5661 * regformats/arm/arm-with-vfpv3.dat: Remove.
5662
3af96c0d
SM
56632020-06-17 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * features/Makefile (XMLTOC): Remove rx.xml.
5666
b25e22fd
PA
56672020-06-17 Pedro Alves <palves@redhat.com>
5668
5669 * gdbthread.h (thread_control_state) <trap_expected> Update
5670 comments.
5671
a78a19b1
AB
56722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5673
5674 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5675 ada_language::lookup_symbol_nonlocal.
5676 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5677 (ada_language::lookup_symbol_nonlocal): New member function,
5678 implementation from ada_lookup_symbol_nonlocal.
5679 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5680 initializer.
5681 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5682 initializer.
5683 (cplus_language::lookup_symbol_nonlocal): New member function.
5684 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5685 (minimal_language_data) Likewise.
5686 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5687 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5688 initializer.
5689 (d_language::lookup_symbol_nonlocal): New member function.
5690 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5691 initializer.
5692 (f_language::lookup_symbol_nonlocal): New member function.
5693 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5694 initializer.
5695 * language.c (unknown_language_data): Likewise.
5696 (auto_language_data): Likewise.
5697 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5698 field.
5699 (language_defn::lookup_symbol_nonlocal): New member function.
5700 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5701 initializer.
5702 * objc-lang.c (objc_language_data): Likewise.
5703 * opencl-lang.c (opencl_language_data): Likewise.
5704 * p-lang.c (pascal_language_data): Likewise.
5705 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5706 rust_language::lookup_symbol_nonlocal.
5707 (rust_language_data): Delete la_lookup_symbol_nonlocal
5708 initializer.
5709 (rust_language::lookup_symbol_nonlocal): New member function,
5710 implementation from rust_lookup_symbol_nonlocal.
5711 * symtab.c (lookup_symbol_aux): Update call to
5712 lookup_symbol_nonlocal.
5713 (basic_lookup_symbol_nonlocal): Rename to...
5714 (language_defn::lookup_symbol_nonlocal): ...this, and update
5715 header comment. Remove language_defn parameter, and replace with
5716 uses of `this'.
5717 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5718
ebe2334e
AB
57192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5722 initializer.
5723 (ada_language::value_print_inner): New member function.
5724 * c-lang.c (c_language_data): Delete la_value_print_inner
5725 initializer.
5726 (cplus_language_data): Likewise.
5727 (asm_language_data): Likewise.
5728 (minimal_language_data): Likewise.
5729 * d-lang.c (d_language_data): Likewise.
5730 (d_language::value_print_inner): New member function.
5731 * f-lang.c (f_language_data): Delete la_value_print_inner
5732 initializer.
5733 (f_language::value_print_inner): New member function.
5734 * f-lang.h (f_value_print_innner): Rename to...
5735 (f_value_print_inner): ...this (note spelling of 'inner').
5736 * f-valprint.c (f_value_print_innner): Rename to...
5737 (f_value_print_inner): ...this (note spelling of 'inner').
5738 * go-lang.c (go_language_data): Delete la_value_print_inner
5739 initializer.
5740 (go_language::value_print_inner): New member function.
5741 * language.c (language_defn::value_print_inner): Define new member
5742 function.
5743 (unk_lang_value_print_inner): Delete.
5744 (unknown_language_data): Delete la_value_print_inner initializer.
5745 (unknown_language::value_print_inner): New member function.
5746 (auto_language_data): Delete la_value_print_inner initializer.
5747 (auto_language::value_print_inner): New member function.
5748 * language.h (language_data): Delete la_value_print_inner field.
5749 (language_defn::value_print_inner): Delcare new member function.
5750 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5751 initializer.
5752 (m2_language::value_print_inner): New member function.
5753 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5754 initializer.
5755 * opencl-lang.c (opencl_language_data): Likewise.
5756 * p-lang.c (pascal_language_data): Likewise.
5757 (pascal_language::value_print_inner): New member function.
5758 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5759 initializer.
5760 (rust_language::value_print_inner): New member function.
5761 * valprint.c (do_val_print): Update call to value_print_inner.
5762
a1d1fa3e
AB
57632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * ada-lang.c (ada_language_data): Delete la_value_print
5766 initializer.
5767 (ada_language::value_print): New member function.
5768 * c-lang.c (c_language_data): Delete la_value_print initializer.
5769 (cplus_language_data): Likewise.
5770 (asm_language_data): Likewise.
5771 (minimal_language_data): Likewise.
5772 * d-lang.c (d_language_data): Likewise.
5773 * f-lang.c (f_language_data): Likewise.
5774 * go-lang.c (go_language_data): Likewise.
5775 * language.c (unk_lang_value_print): Delete.
5776 (language_defn::value_print): Define new member function.
5777 (unknown_language_data): Delete la_value_print initializer.
5778 (unknown_language::value_print): New member function.
5779 (auto_language_data): Delete la_value_print initializer.
5780 (auto_language::value_print): New member function.
5781 * language.h (language_data): Delete la_value_print field.
5782 (language_defn::value_print): Declare new member function.
5783 (LA_VALUE_PRINT): Update call to value_print.
5784 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5785 * objc-lang.c (objc_language_data): Likewise.
5786 * opencl-lang.c (opencl_language_data): Likewise.
5787 * p-lang.c (pascal_language_data): Likewise.
5788 (pascal_language::value_print): New member function.
5789 * rust-lang.c (rust_language_data): Delete la_value_print
5790 initializer.
5791
f16a9f57
AB
57922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * ada-lang.c (ada_watch_location_expression): Rename to
5795 ada_language::watch_location_expression.
5796 (ada_language_data): Delete la_watch_location_expression
5797 initializer.
5798 (ada_language::watch_location_expression): New member function,
5799 implementation from ada_watch_location_expression.
5800 * breakpoint.c (watch_command_1): Update call to
5801 watch_location_expression.
5802 * c-lang.c (c_watch_location_expression): Rename to
5803 language_defn::watch_location_expression.
5804 (c_language_data): Delete la_watch_location_expression
5805 initializer.
5806 (cplus_language_data): Likewise.
5807 (asm_language_data): Likewise.
5808 (minimal_language_data): Likewise.
5809 * c-lang.h (c_watch_location_expression): Delete declaration.
5810 * d-lang.c (d_language_data): Delete la_watch_location_expression
5811 initializer.
5812 * f-lang.c (f_language_data): Likewise.
5813 * go-lang.c (go_language_data): Likewise.
5814 * language.c (language_defn::watch_location_expression): Member
5815 function implementation from c_watch_location_expression.
5816 (unknown_language_data): Delete la_watch_location_expression
5817 initializer.
5818 (auto_language_data): Likewise.
5819 * language.h (language_data): Delete la_watch_location_expression
5820 field.
5821 (language_defn::watch_location_expression): Declare new member
5822 function.
5823 * m2-lang.c (m2_language_data): Delete
5824 la_watch_location_expression initializer.
5825 * objc-lang.c (objc_language_data): Likewise.
5826 * opencl-lang.c (opencl_language_data): Likewise.
5827 * p-lang.c (pascal_language_data): Likewise.
5828 * rust-lang.c (rust_watch_location_expression): Rename to
5829 rust_language::watch_location_expression.
5830 (rust_language_data): Delete la_watch_location_expression
5831 initializer.
5832 (rust_language::watch_location_expression): New member function,
5833 implementation from rust_watch_location_expression.
5834
7e56227d
AB
58352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5838 ada_language::collect_symbol_completion_matches.
5839 (ada_language_data): Delete la_collect_symbol_completion_matches
5840 initializer.
5841 (ada_language::collect_symbol_completion_matches): New member
5842 function, implementation from
5843 ada_collect_symbol_completion_matches.
5844 * c-lang.c (c_language_data): Delete
5845 la_collect_symbol_completion_matches initializer.
5846 (cplus_language_data): Likewise.
5847 (asm_language_data): Likewise.
5848 (minimal_language_data): Likewise.
5849 * d-lang.c (d_language_data): Likewise.
5850 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5851 f_language::collect_symbol_completion_matches.
5852 (f_language_data): Delete la_collect_symbol_completion_matches
5853 initializer.
5854 (f_language::collect_symbol_completion_matches) New member
5855 function, implementation from f_collect_symbol_completion_matches.
5856 * go-lang.c (go_language_data): Delete
5857 la_collect_symbol_completion_matches initializer.
5858 * language.c (unknown_language_data): Likewise.
5859 (auto_language_data): Likewise.
5860 * language.h (language_data): Delete
5861 la_collect_symbol_completion_matches field.
5862 (language_defn::collect_symbol_completion_matches): New member
5863 function.
5864 * m2-lang.c (m2_language_data): Delete
5865 la_collect_symbol_completion_matches initializer.
5866 * objc-lang.c (objc_language_data): Likewise.
5867 * opencl-lang.c (opencl_language_data): Likewise.
5868 * p-lang.c (pascal_language_data): Likewise.
5869 * rust-lang.c (rust_language_data): Likewise.
5870 * symtab.c (default_collect_symbol_completion_matches): Delete.
5871 (collect_symbol_completion_matches): Update call to
5872 collect_symbol_completion_matches.
5873 (collect_symbol_completion_matches_type): Likewise.
5874 * symtab.h (default_collect_symbol_completion_matches): Delete
5875 declaration.
5876
53fc67f8
AB
58772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5880 (ada_language_data): Delete la_word_break_characters initializer.
5881 (ada_language::word_break_characters): New member function.
5882 * c-lang.c (c_language_data): Delete la_word_break_characters
5883 initializer.
5884 (cplus_language_data): Likewise.
5885 (asm_language_data): Likewise.
5886 (minimal_language_data): Likewise.
5887 * completer.c: Update global comment.
5888 (advance_to_expression_complete_word_point): Update call to
5889 word_break_characters.
5890 (complete_files_symbols): Likewise.
5891 (complete_line_internal_1): Likewise.
5892 (default_completer_handle_brkchars): Likewise.
5893 (skip_quoted_chars): Likewise.
5894 * d-lang.c (d_language_data): Delete la_word_break_characters
5895 initializer.
5896 * f-lang.c (f_word_break_characters): Delete.
5897 (f_language_data): Delete la_word_break_characters initializer.
5898 (f_language::word_break_characters): New member function.
5899 * go-lang.c (go_language_data): Delete la_word_break_characters
5900 initializer.
5901 * language.c (unknown_language_data): Likewise.
5902 (auto_language_data): Likewise.
5903 * language.h (default_word_break_characters): Move declaration to
5904 earlier in the file.
5905 (language_data): Delete la_word_break_characters field.
5906 (language_defn::word_break_characters): New member function.
5907 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5908 initializer.
5909 * objc-lang.c (objc_language_data): Likewise.
5910 * opencl-lang.c (opencl_language_data): Likewise.
5911 * p-lang.c (pascal_language_data): Likewise.
5912 * rust-lang.c (rust_language_data): Likewise.
5913
c9debfb9
AB
59142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5915
5916 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5917 (ada_language_data): Delete la_get_symbol_name_matcher
5918 initializer.
5919 (language_defn::get_symbol_name_matcher_inner): New member
5920 function.
5921 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5922 initializer.
5923 (cplus_language_data): Likewise.
5924 (cplus_language::get_symbol_name_matcher_inner): New member
5925 function.
5926 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5927 (minimal_language_data): Likewise.
5928 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5929 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5930 initializer.
5931 * dictionary.c (iter_match_first_hashed): Update call to
5932 get_symbol_name_matcher.
5933 (iter_match_next_hashed): Likewise.
5934 (iter_match_next_linear): Likewise.
5935 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5936 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5937 initializer.
5938 (f_language::get_symbol_name_matcher_inner): New member function.
5939 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5940 initializer.
5941 * language.c (default_symbol_name_matcher): Update header comment,
5942 make static.
5943 (language_defn::get_symbol_name_matcher): New definition.
5944 (language_defn::get_symbol_name_matcher_inner): Likewise.
5945 (get_symbol_name_matcher): Delete.
5946 (unknown_language_data): Delete la_get_symbol_name_matcher
5947 initializer.
5948 (auto_language_data): Likewise.
5949 * language.h (language_data): Delete la_get_symbol_name_matcher
5950 field.
5951 (language_defn::get_symbol_name_matcher): New member function.
5952 (language_defn::get_symbol_name_matcher_inner): Likewise.
5953 (default_symbol_name_matcher): Delete declaration.
5954 * linespec.c (find_methods): Update call to
5955 get_symbol_name_matcher.
5956 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5957 initializer.
5958 * minsyms.c (lookup_minimal_symbol): Update call to
5959 get_symbol_name_matcher.
5960 (iterate_over_minimal_symbols): Likewise.
5961 * objc-lang.c (objc_language_data): Delete
5962 la_get_symbol_name_matcher initializer.
5963 * opencl-lang.c (opencl_language_data): Likewise.
5964 * p-lang.c (pascal_language_data): Likewise.
5965 * psymtab.c (psymbol_name_matches): Update call to
5966 get_symbol_name_matcher.
5967 * rust-lang.c (rust_language_data): Delete
5968 la_get_symbol_name_matcher initializer.
5969 * symtab.c (symbol_matches_search_name): Update call to
5970 get_symbol_name_matcher.
5971 (compare_symbol_name): Likewise.
5972
9a49ad8c
AB
59732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5974
5975 * ada-lang.c (ada_language_data): Delete la_compute_program
5976 initializer.
5977 * c-lang.c (c_language_data): Likewise.
5978 (c_language::compute_program): New member function.
5979 (cplus_language_data): Delete la_compute_program initializer.
5980 (cplus_language::compute_program): New member function.
5981 (asm_language_data): Delete la_compute_program initializer.
5982 (minimal_language_data): Likewise.
5983 * c-lang.h (c_compute_program): Update comment.
5984 (cplus_compute_program): Likewise.
5985 * compile/compile-c-support.c (c_compute_program): Likewise.
5986 (cplus_compute_program): Likewise.
5987 * compile/compile.c (compile_to_object): Update call to
5988 la_compute_program.
5989 * d-lang.c (d_language_data): Delete la_compute_program
5990 initializer.
5991 * f-lang.c (f_language_data): Likewise.
5992 * go-lang.c (go_language_data): Likewise.
5993 * language.c (unknown_language_data): Likewise.
5994 (auto_language_data): Likewise.
5995 * language.h (language_data): Delete la_compute_program field.
5996 (language_defn::compute_program): New member function.
5997 * m2-lang.c (m2_language_data): Delete la_compute_program
5998 initializer.
5999 * objc-lang.c (objc_language_data): Likewise.
6000 * opencl-lang.c (opencl_language_data): Likewise.
6001 * p-lang.c (pascal_language_data): Likewise.
6002 * rust-lang.c (rust_language_data): Likewise.
6003
eff93b4d
AB
60042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6005
6006 * ada-lang.c (ada_language_data) Delete
6007 la_class_name_from_physname initializer.
6008 * c-lang.c (c_language_data): Likewise.
6009 (cplus_language_data): Likewise.
6010 (cplus_language::class_name_from_physname): New member function.
6011 (asm_language_data): Delete la_class_name_from_physname
6012 initializer.
6013 (minimal_language_data): Likewise.
6014 * d-lang.c (d_language_data): Likewise.
6015 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6016 method on language_defn class.
6017 (guess_full_die_structure_name): Likewise.
6018 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6019 initializer.
6020 * go-lang.c (go_language_data): Likewise.
6021 * language.c (language_class_name_from_physname): Delete.
6022 (unk_lang_class_name): Delete.
6023 (unknown_language_data): Delete la_class_name_from_physname
6024 initializer.
6025 (auto_language_data): Likewise.
6026 * language.h (language_data): Delete la_class_name_from_physname
6027 field.
6028 (language_defn::class_name_from_physname): New function.
6029 (language_class_name_from_physname): Delete declaration.
6030 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6031 initializer.
6032 * objc-lang.c (objc_language_data): Likewise.
6033 * opencl-lang.c (opencl_language_data): Likewise.
6034 * p-lang.c (pascal_language_data): Likewise.
6035 * rust-lang.c (rust_language_data): Likewise.
6036
de543742
TT
60372020-06-16 Tom Tromey <tom@tromey.com>
6038
6039 * tui/tui-data.h (STATUS_NAME): New macro.
6040 * tui/tui-layout.c (tui_remove_some_windows)
6041 (initialize_known_windows, tui_register_window)
6042 (tui_layout_split::remove_windows, initialize_layouts)
6043 (tui_new_layout_command): Don't use hard-coded window names.
6044
a350efd4
TT
60452020-06-16 Tom Tromey <tom@tromey.com>
6046
6047 PR tui/25348:
6048 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6049 tui_initialize_readline. Only run once. Call rl_initialize.
6050 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6051 tui_initialize_readline.
6052 * tui/tui-io.c (tui_setup_io): Call
6053 tui_ensure_readline_initialized.
6054 * tui/tui-interp.c (tui_interp::init): Update.
6055
39ec0490
TT
60562020-06-16 Tom Tromey <tom@tromey.com>
6057
6058 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6059 Also preserve the status window.
6060
d2d1ea20
TT
60612020-06-16 Tom Tromey <tom@tromey.com>
6062
6063 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6064 where m_window==nullptr.
6065
66920317
TT
60662020-06-15 Tom Tromey <tromey@adacore.com>
6067
6068 * windows-nat.c (windows_nat::handle_output_debug_string):
6069 Update.
6070 (windows_nat::handle_ms_vc_exception): Update.
6071 * target.h (target_read_string): Change API.
6072 * target.c (target_read_string): Change API.
6073 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6074 Update.
6075 * solib-frv.c (frv_current_sos): Update.
6076 * solib-dsbt.c (dsbt_current_sos): Update.
6077 * solib-darwin.c (darwin_current_sos): Update.
6078 * linux-thread-db.c (inferior_has_bug): Update.
6079 * expprint.c (print_subexp_standard): Update.
6080 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6081 (ada_exception_message_1): Update.
6082
a5d871dd
TT
60832020-06-15 Tom Tromey <tromey@adacore.com>
6084
6085 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6086
670e35fa
TT
60872020-06-15 Tom Tromey <tromey@adacore.com>
6088
6089 * valprint.c (read_string): Update comment.
6090 * target.c (MIN): Remove.
6091 (target_read_string): Rewrite.
6092
f5272a3b
TT
60932020-06-15 Tom Tromey <tromey@adacore.com>
6094
6095 * corefile.c (read_memory_string): Remove.
6096 * ada-valprint.c (ada_value_print_ptr): Update.
6097 * ada-lang.h (ada_tag_name): Change return type.
6098 * ada-lang.c (type_from_tag): Update.
6099 (ada_tag_name_from_tsd): Change return type. Use
6100 target_read_string.
6101 (ada_tag_name): Likewise.
6102 * gdbcore.h (read_memory_string): Don't declare.
6103
2c074f49
HD
61042020-06-14 Hannes Domani <ssbssa@yahoo.de>
6105
6106 * symtab.c (rbreak_command): Ignore Windows drive colon.
6107
6a17d503
SM
61082020-06-12 Simon Marchi <simon.marchi@efficios.com>
6109
6110 * NEWS: Mention removed GDBserver host support.
6111
453c733f
NC
61122020-06-12 Nelson Chu <nelson.chu@sifive.com>
6113
6114 * features/riscv/rebuild-csr-xml.sh: Updated.
6115
2b4e6a3f
TT
61162020-06-11 Tom Tromey <tom@tromey.com>
6117
6118 PR gdb/18318:
6119 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6120
4412332f
JG
61212020-06-09 Jonny Grant <jg@jguk.org>
61222020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6123
6124 * main.c (captured_main_1): Don't print new line after help.
6125 (print_gdb_help): add mailing list and IRC channel information
6126 to --help. Add new lines between items in the footer. Remove
6127 quotes around bug url.
6128
2f33032a
KS
61292020-06-11 Keith Seitz <keiths@redhat.com>
6130
6131 PR gdb/21356
6132 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6133 Resolve typedefs for type length calculations.
6134
7ab96794
TV
61352020-06-10 Tom de Vries <tdevries@suse.de>
6136
6137 PR ada/24713
6138 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6139 (write_psymbols): Enable .gdb_index for ada.
6140 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6141 ada.
6142
e5f3ece2
TV
61432020-06-10 Tom de Vries <tdevries@suse.de>
6144
6145 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6146 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6147 namei" instead of "const char *name" argument.
6148 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6149 dw2_symtab_iter_init.
6150
940da03e
SM
61512020-06-08 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6154 to use type::field and field::type instead.
6155
b6cdac4b
SM
61562020-06-08 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6159 to use field::type instead.
6160
5d14b6e5
SM
61612020-06-08 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * gdbtypes.h (struct field) <type, set_type>: New methods.
6164 Rename `type` field to...
6165 <m_type>: ... this. Change references throughout to use type or
6166 set_type methods.
6167 (FIELD_TYPE): Use field::type. Change call sites that modify
6168 the field's type to use field::set_type instead.
6169
3d967001
SM
61702020-06-08 Simon Marchi <simon.marchi@efficios.com>
6171
6172 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6173 to use type::index_type instead.
6174
262abc0d
SM
61752020-06-08 Simon Marchi <simon.marchi@efficios.com>
6176
6177 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6178 methods.
6179 (TYPE_INDEX_TYPE): Use type::index_type.
6180 * gdbtypes.c (create_array_type_with_stride): Likewise.
6181
82836c92
TT
61822020-06-07 Tom Tromey <tom@tromey.com>
6183
6184 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6185 parameter.
6186 (generic_value_print): Update.
6187
940dace9
AB
61882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6189
6190 Revert commit 982a38f60b0.
6191 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6192
982a38f6
AB
61932020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6194
6195 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6196 avoid use after free.
6197
82f06518
TV
61982020-06-05 Tom de Vries <tdevries@suse.de>
6199
6200 * NEWS: Fix typos.
6201
f8c41851
SM
62022020-06-04 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6205 the per_bfd object.
6206 (dwarf2_read_debug_names): Likewise.
6207 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6208 object when re-using a per_bfd object with an index.
6209
f9b5d5ea
TV
62102020-06-03 Tom de Vries <tdevries@suse.de>
6211
6212 PR symtab/26046
6213 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6214 children for C++.
6215 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6216 DW_TAG_subprogram.
6217
f6eee2d0
AB
62182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6219
6220 * ada-lang.c (ada_language_data): Delete skip_trampoline
6221 initializer.
6222 * c-lang.c (c_language_data): Likewise.
6223 (cplus_language_data): Likewise.
6224 (cplus_language::skip_trampoline): New member function.
6225 (asm_language_data): Delete skip_trampoline initializer.
6226 (minimal_language_data): Likewise.
6227 * d-lang.c (d_language_data): Likewise.
6228 * f-lang.c (f_language_data): Likewise.
6229 * go-lang.c (go_language_data): Likewise.
6230 * language.c (unk_lang_trampoline): Delete function.
6231 (skip_language_trampoline): Update.
6232 (unknown_language_data): Delete skip_trampoline initializer.
6233 (auto_language_data): Likewise.
6234 * language.h (language_data): Delete skip_trampoline field.
6235 (language_defn::skip_trampoline): New function.
6236 * m2-lang.c (m2_language_data): Delete skip_trampoline
6237 initializer.
6238 * objc-lang.c (objc_skip_trampoline): Delete function, move
6239 implementation to objc_language::skip_trampoline.
6240 (objc_language_data): Delete skip_trampoline initializer.
6241 (objc_language::skip_trampoline): New member function with
6242 implementation from objc_skip_trampoline.
6243 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6244 initializer.
6245 * p-lang.c (pascal_language_data): Likewise.
6246 * rust-lang.c (rust_language_data): Likewise.
6247
0a50df5d
AB
62482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6249
6250 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6251 (ada_language::demangle): New member function.
6252 * c-lang.c (c_language_data): Delete la_demangle initializer.
6253 (cplus_language_data): Delete la_demangle initializer.
6254 (cplus_language::demangle): New member function.
6255 (asm_language_data): Delete la_demangle initializer.
6256 (minimal_language_data): Delete la_demangle initializer.
6257 * d-lang.c (d_language_data): Delete la_demangle initializer.
6258 (d_language::demangle): New member function.
6259 * f-lang.c (f_language_data): Delete la_demangle initializer.
6260 (f_language::demangle): New member function.
6261 * go-lang.c (go_language_data): Delete la_demangle initializer.
6262 (go_language::demangle): New member function.
6263 * language.c (language_demangle): Update.
6264 (unk_lang_demangle): Delete.
6265 (unknown_language_data): Delete la_demangle initializer.
6266 (unknown_language::demangle): New member function.
6267 (auto_language_data): Delete la_demangle initializer.
6268 (auto_language::demangle): New member function.
6269 * language.h (language_data): Delete la_demangle field.
6270 (language_defn::demangle): New function.
6271 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6272 * objc-lang.c (objc_language_data): Delete la_demangle
6273 initializer.
6274 (objc_language::demangle): New member function.
6275 * opencl-lang.c (opencl_language_data): Delete la_demangle
6276 initializer.
6277 * p-lang.c (pascal_language_data): Likewise.
6278 * rust-lang.c (rust_language_data): Likewise.
6279 (rust_language::demangle): New member function.
6280
fbfb0a46
AB
62812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6282
6283 * ada-lang.c (ada_language_data): Delete la_print_type
6284 initializer.
6285 (ada_language::print_type): New member function.
6286 * c-lang.c (c_language_data): Delete la_print_type initializer.
6287 (c_language::print_type): New member function.
6288 (cplus_language_data): Delete la_print_type initializer.
6289 (cplus_language::print_type): New member function.
6290 (asm_language_data): Delete la_print_type initializer.
6291 (asm_language::print_type): New member function.
6292 (minimal_language_data): Delete la_print_type initializer.
6293 (minimal_language::print_type): New member function.
6294 * d-lang.c (d_language_data): Delete la_print_type initializer.
6295 (d_language::print_type): New member function.
6296 * f-lang.c (f_language_data): Delete la_print_type initializer.
6297 (f_language::print_type): New member function.
6298 * go-lang.c (go_language_data): Delete la_print_type initializer.
6299 (go_language::print_type): New member function.
6300 * language.c (unk_lang_print_type): Delete.
6301 (unknown_language_data): Delete la_print_type initializer.
6302 (unknown_language::print_type): New member function.
6303 (auto_language_data): Delete la_print_type initializer.
6304 (auto_language::print_type): New member function.
6305 * language.h (language_data): Delete la_print_type field.
6306 (language_defn::print_type): New function.
6307 (LA_PRINT_TYPE): Update.
6308 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6309 (m2_language::print_type): New member function.
6310 * objc-lang.c (objc_language_data): Delete la_print_type
6311 initializer.
6312 (objc_language::print_type): New member function.
6313 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6314 to opencl_language::print_type.
6315 (opencl_language_data): Delete la_print_type initializer.
6316 (opencl_language::print_type): New member function, implementation
6317 from opencl_print_type.
6318 * p-lang.c (pascal_language_data): Delete la_print_type
6319 initializer.
6320 (pascal_language::print_type): New member function.
6321 * rust-lang.c (rust_print_type): Delete, implementation moved to
6322 rust_language::print_type.
6323 (rust_language_data): Delete la_print_type initializer.
6324 (rust_language::print_type): New member function, implementation
6325 from rust_print_type.
6326
6f827019
AB
63272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6328
6329 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6330 implementation moves to...
6331 (ada_language::sniff_from_mangled_name): ...here. Update return
6332 type.
6333 (ada_language_data): Delete la_sniff_from_mangled_name
6334 initializer.
6335 * c-lang.c (c_language_data): Likewise.
6336 (cplus_language_data): Likewise.
6337 (cplus_language::sniff_from_mangled_name): New member function,
6338 implementation taken from gdb_sniff_from_mangled_name.
6339 (asm_language_data): Delete la_sniff_from_mangled_name
6340 initializer.
6341 (minimal_language_data): Likewise.
6342 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6343 implementation moves to cplus_language::sniff_from_mangled_name.
6344 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6345 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6346 moves to...
6347 (d_language::sniff_from_mangled_name): ...here.
6348 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6349 * f-lang.c (f_language_data): Likewise.
6350 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6351 moves to...
6352 (go_language::sniff_from_mangled_name): ...here.
6353 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6354 * language.c (language_sniff_from_mangled_name): Delete.
6355 (unknown_language_data): Delete la_sniff_from_mangled_name
6356 initializer.
6357 (auto_language_data): Likewise.
6358 * language.h (language_data): Delete la_sniff_from_mangled_name
6359 field.
6360 (language_defn::sniff_from_mangled_name): New function.
6361 (language_sniff_from_mangled_name): Delete declaration.
6362 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6363 field.
6364 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6365 implementation moves to...
6366 (objc_language::sniff_from_mangled_name): ...here.
6367 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6368 * opencl-lang.c (opencl_language_data): Likewise.
6369 * p-lang.c (pascal_language_data): Likewise.
6370 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6371 implementation moves to...
6372 (rust_language::sniff_from_mangled_name): ...here.
6373 (rust_language_data): Delete la_sniff_from_mangled_name
6374 initializer.
6375 * symtab.c (symbol_find_demangled_name): Call
6376 sniff_from_mangled_name member function.
6377
fb8006fd
AB
63782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6379
6380 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6381 initializer.
6382 * c-lang.c (c_language_data): Likewise.
6383 (cplus_language_data): Likewise.
6384 (cplus_language::search_name_hash): New member function.
6385 (asm_language_data): Delete la_search_name_hash initializer.
6386 (minimal_language_data): Likewise.
6387 * d-lang.c (d_language_data): Likewise.
6388 * dictionary.c (default_search_name_hash): Rename to...
6389 (language_defn::search_name_hash): ...this.
6390 * f-lang.c (f_language_data): Likewise.
6391 (f_language::search_name_hash): New member function.
6392 * go-lang.c (go_language_data): Delete la_search_name_hash
6393 initializer.
6394 * language.c (unknown_language_data): Likewise.
6395 (auto_language_data): Likewise.
6396 * language.h (struct language_data): Delete la_search_name_hash
6397 field.
6398 (language_defn::search_name_hash): Declare new member function.
6399 (default_search_name_hash): Delete declaration.
6400 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6401 initializer.
6402 * objc-lang.c (objc_language_data): Likewise.
6403 * opencl-lang.c (opencl_language_data): Likewise.
6404 * p-lang.c (pascal_language_data): Likewise.
6405 * rust-lang.c (rust_language_data): Likewise.
6406 * symtab.c (search_name_hash): Update call.
6407
8e25bafe
AB
64082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6409
6410 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6411 initializer.
6412 * c-lang.c (class compile_instance): Declare.
6413 (c_language_data): Delete la_get_compile_instance initializer.
6414 (c_language::get_compile_instance): New member function.
6415 (cplus_language_data): Delete la_get_compile_instance initializer.
6416 (cplus_language::get_compile_instance): New member function.
6417 (asm_language_data): Delete la_get_compile_instance initializer.
6418 (minimal_language_data): Likewise.
6419 * c-lang.h (c_get_compile_context): Update comment.
6420 (cplus_get_compile_context): Update comment.
6421 * compile/compile.c (compile_to_object): Update calls, don't rely
6422 on function pointer being NULL.
6423 * d-lang.c (d_language_data): Delete la_get_compile_instance
6424 initializer.
6425 * f-lang.c (f_language_data): Likewise.
6426 * go-lang.c (go_language_data): Likewise.
6427 * language.c (unknown_language_data): Likewise.
6428 (auto_language_data): Likewise.
6429 * language.h (language_data): Delete la_get_compile_instance field.
6430 (language_defn::get_compile_instance): New member function.
6431 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6432 initializer.
6433 * objc-lang.c (objc_language_data): Likewise.
6434 * opencl-lang.c (opencl_language_data): Likewise.
6435 * p-lang.c (pascal_language_data): Likewise.
6436 * rust-lang.c (rust_language_data): Likewise.
6437
4009ee92
AB
64382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6439
6440 * ada-lang.c (ada_add_all_symbols): Update comment.
6441 (ada_iterate_over_symbols): Delete, move implementation to...
6442 (ada_language::iterate_over_symbols): ...here, a new member
6443 function, rewrite to use range based for loop.
6444 (ada_language_data): Delete la_iterate_over_symbols initializer.
6445 * c-lang.c (c_language_data): Likewise.
6446 (cplus_language_data): Likewise.
6447 (asm_language_data): Likewise.
6448 (minimal_language_data): Likewise.
6449 * d-lang.c (d_language_data): Likewise.
6450 * f-lang.c (f_language_data): Likewise.
6451 * go-lang.c (go_language_data): Likewise.
6452 * language.c (unknown_language_data): Likewise.
6453 (auto_language_data): Likewise.
6454 * language.h (language_data): Delete la_iterate_over_symbols field.
6455 (language_defn::iterate_over_symbols): New member function.
6456 (LA_ITERATE_OVER_SYMBOLS): Update.
6457 * linespec.c (iterate_over_all_matching_symtabs): Update.
6458 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6459 initializer.
6460 * objc-lang.c (objc_language_data): Likewise.
6461 * opencl-lang.c (opencl_language_data): Likewise.
6462 * p-lang.c (pascal_language_data): Likewise.
6463 * rust-lang.c (rust_language_data): Likewise.
6464
54f4ca46
AB
64652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6466
6467 * ada-lang.c (ada_language_data): Delete
6468 la_lookup_transparent_type initializer.
6469 * c-lang.c (c_language_data): Likewise.
6470 (cplus_language_data): Likewise.
6471 (cplus_language::lookup_transparent_type): New member function.
6472 (asm_language_data): Delete la_lookup_transparent_type
6473 initializer.
6474 (minimal_language_data): Likewise.
6475 * d-lang.c (d_language_data): Likewise.
6476 * f-lang.c (f_language_data): Likewise.
6477 * go-lang.c (go_language_data): Likewise.
6478 * language.c (unknown_language_data): Likewise.
6479 (auto_language_data): Likewise.
6480 * language.h (struct language_data): Delete
6481 la_lookup_transparent_type field.
6482 (language_defn::lookup_transparent_type): New member function.
6483 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6484 initializer.
6485 * objc-lang.c (objc_language_data): Likewise.
6486 * opencl-lang.c (opencl_language_data): Likewise.
6487 * p-lang.c (pascal_language_data): Likewise.
6488 * rust-lang.c (rust_language_data): Likewise.
6489 * symtab.c (symbol_matches_domain): Update call.
6490
1fb314aa
AB
64912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * ada-lang.c (ada_language_arch_info): Delete function, move
6494 implementation to...
6495 (ada_language::language_arch_info): ...here, a new member
6496 function.
6497 (ada_language_data): Delete la_language_arch_info.
6498 * c-lang.c (c_language_data): Likewise.
6499 (c_language::language_arch_info): New member function.
6500 (cplus_language_arch_info): Delete function, move
6501 implementation to...
6502 (cplus_language::language_arch_info): ...here, a new member
6503 function.
6504 (cplus_language_data): Delete la_language_arch_info.
6505 (asm_language_data): Likewise.
6506 (asm_language::language_arch_info): New member function.
6507 (minimal_language_data): Delete la_language_arch_info.
6508 (minimal_language::language_arch_info): New member function.
6509 * d-lang.c (d_language_arch_info): Delete function, move
6510 implementation to...
6511 (d_language::language_arch_info): ...here, a new member
6512 function.
6513 (d_language_data): Delete la_language_arch_info.
6514 * f-lang.c (f_language_arch_info): Delete function, move
6515 implementation to...
6516 (f_language::language_arch_info): ...here, a new member
6517 function.
6518 (f_language_data): Delete la_language_arch_info.
6519 * go-lang.c (go_language_arch_info): Delete function, move
6520 implementation to...
6521 (go_language::language_arch_info): ...here, a new member
6522 function.
6523 (go_language_data): Delete la_language_arch_info.
6524 * language.c (unknown_language_data): Likewise.
6525 (unknown_language::language_arch_info): New member function.
6526 (auto_language_data): Delete la_language_arch_info.
6527 (auto_language::language_arch_info): New member function.
6528 (language_gdbarch_post_init): Update call to
6529 la_language_arch_info.
6530 * language.h (language_data): Delete la_language_arch_info
6531 function pointer.
6532 (language_defn::language_arch_info): New function.
6533 * m2-lang.c (m2_language_arch_info): Delete function, move
6534 implementation to...
6535 (m2_language::language_arch_info): ...here, a new member
6536 function.
6537 (m2_language_data): Delete la_language_arch_info.
6538 * objc-lang.c (objc_language_arch_info): Delete function, move
6539 implementation to...
6540 (objc_language::language_arch_info): ...here, a new member
6541 function.
6542 (objc_language_data): Delete la_language_arch_info.
6543 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6544 implementation to...
6545 (opencl_language::language_arch_info): ...here, a new member
6546 function.
6547 (opencl_language_data): Delete la_language_arch_info.
6548 * p-lang.c (pascal_language_arch_info): Delete function, move
6549 implementation to...
6550 (pascal_language::language_arch_info): ...here, a new member
6551 function.
6552 (pascal_language_data): Delete la_language_arch_info.
6553 * rust-lang.c (rust_language_arch_info): Delete function, move
6554 implementation to...
6555 (rust_language::language_arch_info): ...here, a new member
6556 function.
6557 (rust_language_data): Delete la_language_arch_info.
6558
48448202
AB
65592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6560
6561 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6562 initializer.
6563 * c-lang.c (c_language_data): Likewise.
6564 (cplus_language_data): Likewise.
6565 (cplus_language::pass_by_reference_info): New method.
6566 (asm_language_data): Delete la_pass_by_reference initializer.
6567 (minimal_language_data): Likewise.
6568 * cp-abi.c (cp_pass_by_reference): Remove use of
6569 default_pass_by_reference.
6570 * d-lang.c (d_language_data): Likewise.
6571 * f-lang.c (f_language_data): Likewise.
6572 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6573 default_pass_by_reference.
6574 * go-lang.c (go_language_data): Likewise.
6575 * language.c (language_pass_by_reference): Update.
6576 (default_pass_by_reference): Delete.
6577 (unknown_language_data): Delete la_pass_by_reference
6578 initializer.
6579 (auto_language_data): Likewise.
6580 * language.h (struct language_data): Delete la_pass_by_reference
6581 field.
6582 (language_defn::pass_by_reference_info): New member function.
6583 (default_pass_by_reference): Delete declaration.
6584 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6585 initializer.
6586 * objc-lang.c (objc_language_data): Likewise.
6587 * opencl-lang.c (opencl_language_data): Likewise.
6588 * p-lang.c (pascal_language_data): Likewise.
6589 * rust-lang.c (rust_language_data): Likewise.
6590
15e5fd35
AB
65912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6592
6593 * ada-lang.c (ada_read_var_value): Delete function, move
6594 implementation to...
6595 (ada_language::read_var_value): ...here.
6596 (ada_language_data): Delete la_read_var_value initializer.
6597 * c-lang.c (c_language_data): Likewise.
6598 (cplus_language_data): Likewise.
6599 (minimal_language_data): Likewise.
6600 * d-lang.c (d_language_data): Likewise.
6601 * f-lang.c (f_language_data): Likewise.
6602 * findvar.c (default_read_var_value): Rename to...
6603 (language_defn::read_var_value): ...this.
6604 * findvar.c (read_var_value): Update header comment, and change to
6605 call member function instead of function pointer.
6606 * go-lang.c (go_language_data): Likewise.
6607 * language.c (unknown_language_data): Delete la_read_var_value
6608 initializer.
6609 (auto_language_data): Likewise.
6610 * language.h (struct language_data): Delete la_read_var_value
6611 field.
6612 (language_defn::read_var_value): New member function.
6613 (default_read_var_value): Delete declaration.
6614 * m2-lang.c (m2_language_data): Delete la_read_var_value
6615 initializer.
6616 * objc-lang.c (objc_language_data): Likewise.
6617 * opencl-lang.c (opencl_language_data): Likewise.
6618 * p-lang.c (pascal_language_data): Likewise.
6619 * rust-lang.c (rust_language_data): Likewise.
6620 * value.h (default_read_var_value): Delete declaration.
6621
5bd40f2a
AB
66222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6623
6624 * ada-lang.c (ada_print_array_index): Delete function, move
6625 implementation to...
6626 (ada_language::print_array_index): ...here.
6627 (ada_language_data): Delete la_print_array_index initializer.
6628 * c-lang.c (c_language_data): Likewise.
6629 (cplus_language_data): Likewise.
6630 (minimal_language_data): Likewise.
6631 * d-lang.c (d_language_data): Likewise.
6632 * f-lang.c (f_language_data): Likewise.
6633 * go-lang.c (go_language_data): Likewise.
6634 * language.c (default_print_array_index): Delete function, move
6635 implementation to...
6636 (language_defn::print_array_index): ...here.
6637 (unknown_language_data): Delete la_print_array_index initializer.
6638 (auto_language_data): Likewise.
6639 * language.h (struct language_data): Delete la_print_array_index
6640 field.
6641 (language_defn::print_array_index): New member function.
6642 (LA_PRINT_ARRAY_INDEX): Update.
6643 (default_print_array_index): Delete declaration.
6644 * m2-lang.c (m2_language_data): Delete la_print_array_index
6645 initializer.
6646 * objc-lang.c (objc_language_data): Likewise.
6647 * opencl-lang.c (opencl_language_data): Likewise.
6648 * p-lang.c (pascal_language_data): Likewise.
6649 * rust-lang.c (rust_language_data): Likewise.
6650
0874fd07
AB
66512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * gdb/ada-lang.c (ada_language_defn): Convert to...
6654 (ada_language_data): ...this.
6655 (class ada_language): New class.
6656 (ada_language_defn): New static global.
6657 * gdb/c-lang.c (c_language_defn): Convert to...
6658 (c_language_data): ...this.
6659 (class c_language): New class.
6660 (c_language_defn): New static global.
6661 (cplus_language_defn): Convert to...
6662 (cplus_language_data): ...this.
6663 (class cplus_language): New class.
6664 (cplus_language_defn): New static global.
6665 (asm_language_defn): Convert to...
6666 (asm_language_data): ...this.
6667 (class asm_language): New class.
6668 (asm_language_defn): New static global.
6669 (minimal_language_defn): Convert to...
6670 (minimal_language_data): ...this.
6671 (class minimal_language): New class.
6672 (minimal_language_defn): New static global.
6673 * gdb/d-lang.c (d_language_defn): Convert to...
6674 (d_language_data): ...this.
6675 (class d_language): New class.
6676 (d_language_defn): New static global.
6677 * gdb/f-lang.c (f_language_defn): Convert to...
6678 (f_language_data): ...this.
6679 (class f_language): New class.
6680 (f_language_defn): New static global.
6681 * gdb/go-lang.c (go_language_defn): Convert to...
6682 (go_language_data): ...this.
6683 (class go_language): New class.
6684 (go_language_defn): New static global.
6685 * gdb/language.c (unknown_language_defn): Remove declaration.
6686 (current_language): Initialize to nullptr, real initialization is
6687 moved to _initialize_language.
6688 (languages): Delete global.
6689 (language_defn::languages): Define.
6690 (set_language_command): Use language_defn::languages.
6691 (set_language): Likewise.
6692 (range_error): Likewise.
6693 (language_enum): Likewise.
6694 (language_def): Likewise.
6695 (add_set_language_command): Use language_def::languages for the
6696 language list, and language_def to lookup language pointers.
6697 (skip_language_trampoline): Use language_defn::languages.
6698 (unknown_language_defn): Convert to...
6699 (unknown_language_data): ...this.
6700 (class unknown_language): New class.
6701 (unknown_language_defn): New static global.
6702 (auto_language_defn): Convert to...
6703 (auto_language_data): ...this.
6704 (class auto_language): New class.
6705 (auto_language_defn): New static global.
6706 (language_gdbarch_post_init): Use language_defn::languages.
6707 (_initialize_language): Initialize current_language.
6708 * gdb/language.h (struct language_defn): Rename to...
6709 (struct language_data): ...this.
6710 (struct language_defn): New.
6711 (auto_language_defn): Delete.
6712 (unknown_language_defn): Delete.
6713 (minimal_language_defn): Delete.
6714 (ada_language_defn): Delete.
6715 (asm_language_defn): Delete.
6716 (c_language_defn): Delete.
6717 (cplus_language_defn): Delete.
6718 (d_language_defn): Delete.
6719 (f_language_defn): Delete.
6720 (go_language_defn): Delete.
6721 (m2_language_defn): Delete.
6722 (objc_language_defn): Delete.
6723 (opencl_language_defn): Delete.
6724 (pascal_language_defn): Delete.
6725 (rust_language_defn): Delete.
6726 * gdb/m2-lang.c (m2_language_defn): Convert to...
6727 (m2_language_data): ...this.
6728 (class m2_language): New class.
6729 (m2_language_defn): New static global.
6730 * gdb/objc-lang.c (objc_language_defn): Convert to...
6731 (objc_language_data): ...this.
6732 (class objc_language): New class.
6733 (objc_language_defn): New static global.
6734 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6735 (opencl_language_data): ...this.
6736 (class opencl_language): New class.
6737 (opencl_language_defn): New static global.
6738 * gdb/p-lang.c (pascal_language_defn): Convert to...
6739 (pascal_language_data): ...this.
6740 (class pascal_language): New class.
6741 (pascal_language_defn): New static global.
6742 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6743 language pointer, update comment format.
6744 * gdb/rust-lang.c (rust_language_defn): Convert to...
6745 (rust_language_data): ...this.
6746 (class rust_language): New class.
6747 (rust_language_defn): New static global.
6748
1313c56e
AB
67492020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6750
6751 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6752 member variable.
6753 <m_stmt_at_address>: New member variable.
6754 (lnp_state_machine::record_line): Don't record some lines, update
6755 tracking of is_stmt at the same address.
6756 (lnp_state_machine::lnp_state_machine): Initialise new member
6757 variables.
6758
b7ed9f3d
ST
67592020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6760
6761 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6762 "-include gnu-nat-mig.h".
6763 * gnu-nat-mig.h: New file.
6764 * gnu-nat.c: Include "gnu-nat-mig.h".
6765 (exc_server, msg_reply_server, notify_server,
6766 process_reply_server): Remove declarations.
6767
14a8ad62
ST
67682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6769
6770 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6771 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6772 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6773 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6774 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6775 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6776 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6777 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6778 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6779 to gnu_nat_target class.
6780 * gnu-nat.c: Likewise.
6781 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6782 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6783 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6784 object.
6785 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6786 instead of `gnu_target'.
6787
0af5e106
ST
67882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6789
6790 * i386-gnu-tdep.c: Include "gdbcore.h"
6791 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6792 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6793 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6794 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6795 i386_gnu_sigcontext_addr): New functions
6796 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6797 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6798 tdep.
6799
078f2fc9
ST
68002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6801
6802 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6803 before fork_inferior call. Avoid calling it if target_is_pushed returns
6804 true.
6805
53dff92c
ST
68062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6807
6808 * gnu-nat.h (gnu_target): New variable declaration.
6809 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6810 gnu_target.
6811 * gnu-nat.c (gnu_target): New variable.
6812 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6813 add_thread_silent, and add_thread calls.
6814 (gnu_nat_target::create_inferior): Pass gnu_target to
6815 add_thread_silent, thread_change_ptid call.
6816 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6817 call.
6818
5a8b8627
ST
68192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6820
6821 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6822 (gnu_nat_target::find_memory_regions): Remove unused
6823 `old_address' variable.
6824
366f550a
ST
68252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6826
6827 * gnu-nat.c: Include "gdbarch.h".
6828
f14871bf
ST
68292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6830
6831 * reply_mig_hack.awk (Error return): Cast function through
6832 void *, to bypass compiler function call check.
6833
c6887cfb
ST
68342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6835
6836 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6837 $(srcdir)/reply_mig_hack.awk.
6838
6930bffe
ST
68392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6840
6841 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6842
112c22ed
JG
68432020-05-30 Jonny Grant <jg@jguk.org>
6844
6845 * configure.ac (ACX_BUGURL): change bug URL to https.
6846
f68f85b5
PA
68472020-05-30 Pedro Alves <palves@redhat.com>
6848
6849 * cp-support.c (replace_typedefs_template): New.
6850 (replace_typedefs_qualified_name): Handle
6851 DEMANGLE_COMPONENT_TEMPLATE.
6852
976ca316
SM
68532020-05-29 Simon Marchi <simon.marchi@efficios.com>
6854
6855 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6856 dwarf2/index-cache.h, dwarf2/index-write.c,
6857 dwarf2/index-write.h, dwarf2/line-header.c,
6858 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6859 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6860 variables and fields from `dwarf2_per_objfile` to just
6861 `per_objfile` throughout.
6862
989ade05
SM
68632020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6864
6865 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6866 <push_dwarf_reg_entry_value>: Add comment.
6867
c47bae85
KB
68682020-05-28 Kevin Buettner <kevinb@redhat.com>
6869 Keith Seitz <keiths@redhat.com>
6870
6871 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6872 instead of PyEval_ReleaseLock.
6873 (class gdbpy_gil): Move to earlier in file.
6874 (finalize_python): Set gdb_python_initialized.
6875 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6876 when not initialized.
6877
44486dcf
SM
68782020-05-28 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6881 <push_dwarf_reg_entry_value>: Remove assert. Override
6882 per_objfile with caller_per_objfile.
6883
f030440d
TV
68842020-05-28 Tom de Vries <tdevries@suse.de>
6885
6886 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6887 PR gold/15646 workaround to symbol kind "type".
6888
f0fbb768
TT
68892020-05-27 Tom Tromey <tromey@adacore.com>
6890
6891 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6892
af0b2a3e
TT
68932020-05-27 Tom Tromey <tromey@adacore.com>
6894
6895 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6896 Use htab_find_with_hash.
6897 <add_abbrev>: Remove "abbrev_number" parameter.
6898 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6899 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6900 (hash_abbrev): Add comment.
6901 (abbrev_table::lookup_abbrev): Move to header file.
6902 (abbrev_table::read): Update.
6903
7d00ffec
TT
69042020-05-27 Tom Tromey <tromey@adacore.com>
6905
6906 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6907 method.
6908 <canonical_name>: New member.
6909 <raw_name>: Rename from "name".
6910 (partial_die_info): Initialize canonical_name.
6911 (scan_partial_symbols): Check raw_name.
6912 (partial_die_parent_scope, partial_die_full_name)
6913 (add_partial_symbol, add_partial_subprogram)
6914 (add_partial_enumeration, load_partial_dies): Use "name" method.
6915 (partial_die_info::name): New method.
6916 (partial_die_info::read, guess_partial_die_structure_name)
6917 (partial_die_info::fixup): Update.
6918
697bba18
TT
69192020-05-27 Tom Tromey <tromey@adacore.com>
6920
6921 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6922 <get_ref_die_offset>: Inline.
6923 <get_ref_die_offset_complaint>: New method.
6924 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6925 (attribute::get_ref_die_offset_complaint): Rename from
6926 get_ref_die_offset. Just issue complaint.
6927
c17ace43
HD
69282020-05-27 Hannes Domani <ssbssa@yahoo.de>
6929
6930 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6931
96445f0b
HD
69322020-05-27 Hannes Domani <ssbssa@yahoo.de>
6933
6934 * exec.c (exec_file_attach): Use errno value of first openp failure.
6935
ac637ec3
HD
69362020-05-27 Hannes Domani <ssbssa@yahoo.de>
6937
6938 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6939 Don't close thread handle.
6940
17ee85fc
TT
69412020-05-27 Tom Tromey <tom@tromey.com>
6942 Simon Marchi <simon.marchi@efficios.com>
6943
6944 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6945 shared_ptr.
6946 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6947 member.
6948 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6949 dwarf2_per_bfd_objfile_data_key>: New globals.
6950 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6951 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6952 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6953 shared.
6954 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6955 short-circuit when sharing.
6956 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6957 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6958
39b16f87
SM
69592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6962 to...
6963 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6964 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6965
fcf23d5b
SM
69662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6967
6968 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6969 build_name_components, find_name_components_bounds>:
6970 Add per_objfile parameter.
6971 (struct mapped_index) <symbol_name_at>: Likewise.
6972 (struct mapped_debug_names): Remove constructor.
6973 <dwarf2_per_objfile>: Remove field.
6974 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6975 (mapped_index_base::find_name_components_bounds,
6976 mapped_index_base::build_name_components,
6977 dw2_expand_symtabs_matching_symbol): Likewise.
6978 (class mock_mapped_index) <symbol_name_at>: Likewise.
6979 (check_match): Likewise.
6980 (check_find_bounds_finds): Likewise.
6981 (test_mapped_index_find_name_component_bounds): Update.
6982 (CHECK_MATCH): Update.
6983 (dw2_expand_symtabs_matching): Update.
6984 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6985 per_objfile parameter.
6986 <find_vec_in_debug_names>: Likewise.
6987 <m_per_objfile>: New field.
6988 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6989 parameter.
6990 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6991 (dw2_debug_names_iterator::next): Update.
6992 (dw2_debug_names_lookup_symbol): Update.
6993 (dw2_debug_names_expand_symtabs_for_function): Update.
6994 (dw2_debug_names_map_matching_symbols): Update.
6995 (dw2_debug_names_expand_symtabs_matching): Update.
6996 (dwarf2_read_debug_names): Update.
6997
7188ed02
SM
69982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7001 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7002 move to dwarf2_per_objfile.
7003 <read_in_chain>: Remove.
7004 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7005 remove_all_cus, age_comp_units>: New methods.
7006 <m_dwarf2_cus>: New member.
7007 (struct dwarf2_per_cu_data) <cu>: Remove.
7008 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7009 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7010 moved to methods of dwarf2_per_objfile.
7011 (dwarf2_clear_marks): Remove.
7012 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7013 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7014 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7015 (dwarf2_per_objfile::remove_all_cus): New.
7016 (class free_cached_comp_units) <~free_cached_comp_units>:
7017 Update.
7018 (load_cu): Update.
7019 (dw2_do_instantiate_symtab): Adjust.
7020 (fill_in_sig_entry_from_dwo_entry): Adjust.
7021 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7022 (cutu_reader::cutu_reader): Likewise.
7023 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7024 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7025 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7026 and dwarf2_per_objfile::age_comp_units.
7027 (load_partial_comp_unit): Update.
7028 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7029 (process_queue): Likewise.
7030 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7031 backlink.
7032 (dwarf2_read_addr_index): Likewise.
7033 (follow_die_offset): Likewise.
7034 (dwarf2_fetch_die_loc_sect_off): Likewise.
7035 (dwarf2_fetch_constant_bytes): Likewise.
7036 (dwarf2_fetch_die_type_sect_off): Likewise.
7037 (follow_die_sig_1): Likewise.
7038 (load_full_type_unit): Likewise.
7039 (read_signatured_type): Likewise.
7040 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7041 (dwarf2_cu::~dwarf2_cu): Remove.
7042 (dwarf2_per_objfile::get_cu): New.
7043 (dwarf2_per_objfile::set_cu): New.
7044 (age_cached_comp_units): Rename to...
7045 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7046 to std::unordered_map.
7047 (free_one_cached_comp_unit): Rename to...
7048 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7049 to std::unordered_map.
7050 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7051 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7052 a dwarf2_per_objfile in data.
7053 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7054 (dwarf2_clear_marks): Remove.
7055
2e671100
SM
70562020-05-27 Simon Marchi <simon.marchi@efficios.com>
7057
7058 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7059 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7060 (init_tu_and_read_dwo_dies): Likewise.
7061 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7062 (cutu_reader::cutu_reader): Likewise.
7063 (load_partial_comp_unit): Likewise.
7064 (process_psymtab_comp_unit): Update.
7065 (build_type_psymtabs_1): Update.
7066 (process_skeletonless_type_unit): Update.
7067 (load_full_comp_unit): Update.
7068 (find_partial_die): Update.
7069 (dwarf2_read_addr_index): Update.
7070 (read_signatured_type): Update.
7071
2e6a9f79
SM
70722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7073
7074 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7075 m_header_read_in>: New fields.
7076 <get_header>: New method.
7077 * dwarf2/read.c (per_cu_header_read_in): Remove.
7078 (dwarf2_per_cu_data::get_header): New.
7079 (dwarf2_per_cu_data::addr_size): Update.
7080 (dwarf2_per_cu_data::offset_size): Update.
7081 (dwarf2_per_cu_data::ref_addr_size): Update.
7082
1b555f17
SM
70832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7084
7085 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7086 (dw2_do_instantiate_symtab): Update.
7087 (queue_and_load_all_dwo_tus): Change parameter from
7088 dwarf2_per_cu_data to dwarf2_cu.
7089 (dwarf2_fetch_die_loc_sect_off): Update.
7090 (dwarf2_fetch_constant_bytes): Update.
7091 (dwarf2_fetch_die_type_sect_off): Update.
7092
8fc0b21d
SM
70932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7094
7095 * dwarf2/read.c (process_full_comp_unit,
7096 process_full_type_unit): Remove per_cu, per_objfile paramters.
7097 Add dwarf2_cu parameter.
7098 (process_queue): Update.
7099
168c9250
SM
71002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7101
7102 * dwarf2/read.c (create_cu_from_index_list): Replace
7103 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7104 (create_cus_from_index_list): Likewise.
7105 (create_cus_from_index): Likewise.
7106 (create_signatured_type_table_from_index): Likewise.
7107 (create_cus_from_debug_names_list): Likewise.
7108 (create_cus_from_debug_names): Likewise.
7109 (dwarf2_read_gdb_index): Update.
7110 (dwarf2_read_debug_names): Update.
7111
e286671b
TT
71122020-05-27 Tom Tromey <tom@tromey.com>
7113 Simon Marchi <simon.marchi@efficios.com>
7114
7115 * dwarf2/read.h (struct dwarf2_per_objfile)
7116 <get_type_for_signatured_type, set_type_for_signatured_type>:
7117 New methods.
7118 <m_type_map>: New member.
7119 (struct signatured_type) <type>: Remove.
7120 * dwarf2/read.c
7121 (dwarf2_per_objfile::get_type_for_signatured_type,
7122 dwarf2_per_objfile::set_type_for_signatured_type): New.
7123 (get_signatured_type): Use new methods.
7124
8adb8487
TT
71252020-05-27 Tom Tromey <tom@tromey.com>
7126 Simon Marchi <simon.marchi@efficios.com>
7127
7128 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7129 (struct dwarf2_per_objfile) <type_units>: New member.
7130 <get_type_unit_group_unshareable>: New method.
7131 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7132 num_symtabs, symtabs>: Remove; move to
7133 type_unit_group_unshareable.
7134 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7135 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7136 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7137
127bbf4b
SM
71382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7139
7140 * dwarf2/read.h (struct dwarf2_per_cu_data):
7141 <dwarf2_per_objfile>: Remove.
7142 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7143 dwarf2_per_objfile.
7144 (create_signatured_type_table_from_index): Likewise.
7145 (create_signatured_type_table_from_debug_names): Likewise.
7146 (create_debug_type_hash_table): Likewise.
7147 (fill_in_sig_entry_from_dwo_entry): Likewise.
7148 (create_type_unit_group): Likewise.
7149 (read_comp_units_from_section): Likewise.
7150 (create_cus_hash_table): Likewise.
7151
f6e649dd
SM
71522020-05-27 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7155 dwarf2_per_cu_data::dwarf2_per_objfile.
7156 (compute_compunit_symtab_includes): Likewise.
7157 (dwarf2_cu::start_symtab): Likewise.
7158
aa66c379
SM
71592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7160
7161 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7162 parameter.
7163 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7164 (read_namespace_alias): Update.
7165 (lookup_die_type): Update.
7166 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7167 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7168 Update.
7169 (disassemble_dwarf_expression): Update.
7170
120ce1b5
SM
71712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7172
7173 * dwarf2/read.h (struct dwarf2_queue_item): Add
7174 dwarf2_per_objfile parameter, assign new parameter.
7175 <per_objfile>: New field.
7176 * dwarf2/read.c (free_one_cached_comp_unit): Add
7177 dwarf2_per_objfile parameter.
7178 (queue_comp_unit): Likewise.
7179 (dw2_do_instantiate_symtab): Update.
7180 (process_psymtab_comp_unit): Update.
7181 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7182 (process_imported_unit_die): Update.
7183 (queue_and_load_dwo_tu): Update.
7184 (follow_die_offset): Update.
7185 (follow_die_sig_1): Update.
7186
9f47c707
SM
71872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7188
7189 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7190 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7191 (read_call_site_scope): Assign per_objfile.
7192 (dwarf2_per_cu_data::objfile): Remove.
7193 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7194 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7195 dwarf2_per_objfile parameter.
7196 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7197 dwarf2_per_objfile parameter.
7198 (dwarf_expr_reg_to_entry_parameter): Add output
7199 dwarf2_per_objfile parameter.
7200 (locexpr_get_frame_base): Update.
7201 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7202 <push_dwarf_reg_entry_value>: Update.
7203 <call_site_to_target_addr>: Update.
7204 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7205 parameter.
7206 (value_of_dwarf_reg_entry): Update.
7207 (rw_pieced_value): Update.
7208 (indirect_synthetic_pointer): Update.
7209 (dwarf2_evaluate_property): Update.
7210 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7211 parameter.
7212 (locexpr_read_variable): Update.
7213 (locexpr_get_symbol_read_needs): Update.
7214 (loclist_read_variable): Update.
7215
14095eb3
SM
72162020-05-27 Simon Marchi <simon.marchi@efficios.com>
7217
7218 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7219 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7220 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7221 parameter.
7222 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7223 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7224 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7225 parameter.
7226 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7227 sect_variable_value): Add dwarf2_per_objfile parameter.
7228 (class dwarf_evaluate_loc_desc) <dwarf_call,
7229 dwarf_variable_value>: Update.
7230 (fetch_const_value_from_synthetic_pointer): Add
7231 dwarf2_per_objfile parameter.
7232 (fetch_const_value_from_synthetic_pointer): Update.
7233 (coerced_pieced_ref): Update.
7234 (class symbol_needs_eval_context) <dwarf_call,
7235 dwarf_variable_value>: Update.
7236 (dwarf2_compile_expr_to_ax): Update.
7237
3c3cd3d4
SM
72382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7239
7240 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7241 parameter.
7242 (dwarf2_evaluate_loc_desc_full): Update.
7243
82ca3f51
SM
72442020-05-27 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7247 parameter.
7248 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7249 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7250 dwarf2_per_objfile parameter.
7251 (decode_debug_loc_dwo_addresses): Likewise.
7252 (dwarf2_find_location_expression): Update.
7253 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7254 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7255 parameter.
7256 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7257 parameter.
7258 (locexpr_describe_location_1): Likewise.
7259 (locexpr_describe_location): Update.
7260
4b167ea1
SM
72612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7262
7263 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7264 Remove.
7265 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7266 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7267 (dwarf2_compile_property_to_c): Update.
7268 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7269 use text offset from objfile.
7270 (locexpr_tracepoint_var_ref): Update.
7271 (locexpr_generate_c_location): Update.
7272 (loclist_describe_location): Update.
7273 (loclist_tracepoint_var_ref): Update.
7274 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7275 dwarf2_per_objfile parameter.
7276 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7277 use text offset from objfile.
7278 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7279
89b07335
SM
72802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * dwarf2/expr.h (struct dwarf_expr_context)
7283 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7284 <offset>: Remove.
7285 <per_objfile>: New member.
7286 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7287 dwarf2_per_objfile parameter. Don't set offset, set
7288 per_objfile.
7289 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7290 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7291 a dwarf2_per_objfile object instead of an offset.
7292 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7293 constructor.
7294 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7295 to dwarf2_expr_executor constructor. Don't set offset.
7296 (dwarf2_fetch_cfa_info): Update.
7297 (struct dwarf2_frame_cache) <text_offset>: Remove.
7298 <per_objfile>: New field.
7299 (dwarf2_frame_cache): Update.
7300 (dwarf2_frame_prev_register): Update.
7301 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7302 <dwarf_evaluate_loc_desc>: Add constructor.
7303 (dwarf2_evaluate_loc_desc_full): Update.
7304 (dwarf2_locexpr_baton_eval): Update.
7305 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7306 Add constructor.
7307 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7308
293e7e51
SM
73092020-05-27 Simon Marchi <simon.marchi@efficios.com>
7310
7311 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7312 addr_sized_int_type>: Move to dwarf2_cu.
7313 <int_type>: Move to dwarf2_per_objfile.
7314 (struct dwarf2_per_objfile) <int_type>: Move here.
7315 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7316 addr_sized_int_type>: Move here.
7317 (read_func_scope): Update.
7318 (read_array_type): Update.
7319 (read_tag_string_type): Update.
7320 (attr_to_dynamic_prop): Update.
7321 (dwarf2_per_cu_data::int_type): Rename to...
7322 (dwarf2_per_objfile::int_type): ... this.
7323 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7324 (dwarf2_cu::addr_sized_int_type): ... this.
7325 (read_subrange_type): Update.
7326 (dwarf2_per_cu_data::addr_type): Rename to...
7327 (dwarf2_cu::addr_type): ... this.
7328 (set_die_type): Update.
7329
64874a40
SM
73302020-05-27 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7333 data through per_cu->cu.
7334
4ab09049
SM
73352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7338 dwarf2_per_cu_data parameter fo dwarf2_cu.
7339 (lookup_dwo_type_unit): Likewise.
7340 (read_cutu_die_from_dwo): Likewise.
7341 (lookup_dwo_unit): Likewise.
7342 (open_and_init_dwo_file): Likewise.
7343 (lookup_dwo_cutu): Likewise.
7344 (lookup_dwo_comp_unit): Likewise.
7345 (lookup_dwo_type_unit): Likewise.
7346 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7347 (cutu_reader::cutu_reader): Update.
7348
47b14e86
SM
73492020-05-27 Simon Marchi <simon.marchi@efficios.com>
7350
7351 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7352 parameter.
7353 (process_full_type_unit): Likewise.
7354 (process_queue): Update.
7355
43182c09
SM
73562020-05-27 Simon Marchi <simon.marchi@efficios.com>
7357
7358 * dwarf2/read.c (recursively_compute_inclusions): Add
7359 dwarf2_per_objfile parameter.
7360 (compute_compunit_symtab_includes): Likewise.
7361 (process_cu_includes): Update.
7362
7aa104c4
SM
73632020-05-27 Simon Marchi <simon.marchi@efficios.com>
7364
7365 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7366 parameter.
7367 (create_type_unit_group): Update.
7368 (process_psymtab_comp_unit_reader): Update.
7369 (build_type_psymtabs_reader): Update.
7370
e3beb21d
SM
73712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7372
7373 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7374 object through m_this_cu->cu.
7375
d460f660
SM
73762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7377
7378 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7379 the info parameter.
7380 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7381
ab432490
SM
73822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7383
7384 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7385 per_objfile parameter.
7386 (load_full_type_unit): Add per_objfile parameter.
7387 (read_signatured_type): Likewise.
7388 (load_full_comp_unit): Likewise.
7389 (load_cu): Likewise.
7390 (dw2_do_instantiate_symtab): Likewise.
7391 (dw2_get_file_names): Likewise.
7392 (dw2_map_symtabs_matching_filename): Update.
7393 (dw_expand_symtabs_matching_file_matcher): Update.
7394 (dw2_map_symbol_filenames): Update.
7395 (process_psymtab_comp_unit): Add per_objfile parameter.
7396 (build_type_psymtabs_1): Update.
7397 (process_skeletonless_type_unit): Update.
7398 (dwarf2_build_psymtabs_hard): Update.
7399 (load_partial_comp_unit): Add per_objfile parameter.
7400 (scan_partial_symbols): Update.
7401 (load_full_comp_unit): Add per_objfile parameter.
7402 (process_imported_unit_die): Update.
7403 (create_cus_hash_table): Update.
7404 (find_partial_die): Update.
7405 (dwarf2_read_addr_index): Update.
7406 (follow_die_offset): Update.
7407 (dwarf2_fetch_die_loc_sect_off): Update.
7408 (dwarf2_fetch_constant_bytes): Update.
7409 (dwarf2_fetch_die_type_sect_off): Update.
7410 (follow_die_sig_1): Update.
7411 (load_full_type_unit): Add per_objfile parameter.
7412 (read_signatured_type): Likewise.
7413
313bad1b
SM
74142020-05-27 Simon Marchi <simon.marchi@efficios.com>
7415
7416 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7417 of objfile_name.
7418
c3699833
SM
74192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7420
7421 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7422 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7423 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7424 field.
7425 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7426 (create_cus_from_index): Update.
7427 (dwarf2_read_gdb_index): Update.
7428 (create_cus_from_debug_names): Update.
7429 (dwarf2_read_debug_names): Update.
7430 (get_abbrev_section_for_cu): Update.
7431 (create_all_comp_units): Update.
7432 (read_attribute_value): Update.
7433 (get_debug_line_section): Update.
7434 * dwarf2/index-cache.c (index_cache::store): Update.
7435 * dwarf2/index-write.c (save_gdb_index_command): Update.
7436 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7437
1859c670
SM
74382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7441 member.
7442 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7443 dwarf2_per_cu_data::per_bfd.
7444 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7445 (create_type_unit_group): Likewise.
7446 (queue_comp_unit): Remove reference to
7447 per_cu->dwarf2_per_objfile.
7448 (maybe_queue_comp_unit): Likewise.
7449 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7450 (create_cus_hash_table): Assign new field.
7451
5e22e966
SM
74522020-05-27 Simon Marchi <simon.marchi@efficios.com>
7453
7454 * dwarf2/read.c: Replace
7455 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7456 dwarf2_cu->per_objfile throughout.
7457
97a1449a
SM
74582020-05-27 Simon Marchi <simon.marchi@efficios.com>
7459
7460 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7461 parameter, don't use per_cu->dwarf2_per_objfile.
7462 (dw2_instantiate_symtab): Likewise.
7463 (dw2_find_last_source_symtab): Update.
7464 (dw2_map_expand_apply): Update.
7465 (dw2_lookup_symbol): Update.
7466 (dw2_expand_symtabs_for_function): Update.
7467 (dw2_expand_all_symtabs): Update.
7468 (dw2_expand_symtabs_with_fullname): Update.
7469 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7470 don't use per_cu->dwarf2_per_objfile.
7471 (dw2_expand_marked_cus): Update.
7472 (dw2_find_pc_sect_compunit_symtab): Update.
7473 (dw2_debug_names_lookup_symbol): Update.
7474 (dw2_debug_names_expand_symtabs_for_function): Update.
7475 (dw2_debug_names_map_matching_symbols): Update.
7476 (dwarf2_psymtab::expand_psymtab): Update.
7477
9e021579
SM
74782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7481 <per_objfile>: New member.
7482 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7483 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7484 call to dwarf2_cu.
7485 (cutu_reader::cutu_reader): Update.
7486 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7487
ae090bdb
SM
74882020-05-27 Simon Marchi <simon.marchi@efficios.com>
7489
7490 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7491 struct dwarf2_per_objfile.
7492 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7493 dwarf2_per_bfd.
7494 * dwarf2/read.c (set_die_type): Update.
7495 (get_die_type_at_offset): Update.
7496
af758d11
SM
74972020-05-27 Tom Tromey <tom@tromey.com>
7498 Simon Marchi <simon.marchi@efficios.com>
7499
7500 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7501 method.
7502 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7503 get_symtab, set_symtab>: New methods.
7504 <m_symtabs>: New field.
7505 (struct dwarf2_psymtab): Derive from partial_symtab.
7506 <readin_p, get_compunit_symtab>: Declare methods.
7507 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7508 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7509 New methods.
7510 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7511 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7512 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7513 (dw2_symtab_iter_next, dw2_print_stats)
7514 (dw2_expand_symtabs_with_fullname)
7515 (dw2_expand_symtabs_matching_one)
7516 (dw_expand_symtabs_matching_file_matcher)
7517 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7518 (dw2_debug_names_iterator::next)
7519 (dw2_debug_names_map_matching_symbols)
7520 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7521 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7522 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7523 New methods.
7524 (get_compunit_symtab, process_full_comp_unit)
7525 (process_full_type_unit): Update.
7526 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7527
5989a64e
SM
75282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7529
7530 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7531 then introduce a new dwarf2_per_objfile type.
7532 <read_line_string>: Move to the new dwarf2_per_objfile type.
7533 <objfile>: Likewise.
7534 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7535 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7536 dwarf2_per_objfile->per_bfd.
7537 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7538 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7539 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7540 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7541 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7542 (dwarf2_per_objfile::locate_sections): Rename to...
7543 (dwarf2_per_bfd::locate_sections): ... this.
7544 (dwarf2_per_objfile::get_cutu): Rename to...
7545 (dwarf2_per_bfd::get_cutu): ... this.
7546 (dwarf2_per_objfile::get_cu): Rename to...
7547 (dwarf2_per_bfd::get_cu): ... this.
7548 (dwarf2_per_objfile::get_tu): Rename to...
7549 (dwarf2_per_bfd::get_tu): ... this.
7550 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7551 (dwarf2_per_bfd::allocate_per_cu): ... this.
7552 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7553 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7554 (get_gdb_index_contents_ftype): Change parameter from
7555 dwarf2_per_objfile to dwarf2_per_bfd.
7556 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7557 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7558
a50264ba
TT
75592020-05-27 Tom Tromey <tom@tromey.com>
7560 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7563 (allocate_piece_closure): Set "per_objfile" member.
7564 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7565 (locexpr_describe_location, loclist_describe_location): Use new
7566 member.
7567 * dwarf2/read.c (read_call_site_scope)
7568 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7569 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7570 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7571 handle_data_member_location): Set per_objfile member.
7572 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7573 member.
7574 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7575
d3473f0c
TT
75762020-05-27 Tom Tromey <tom@tromey.com>
7577
7578 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7579 allocate_signatured_type>: Declare new methods.
7580 <m_num_psymtabs>: New member.
7581 (struct dwarf2_per_cu_data) <index>: New member.
7582 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7583 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7584 (create_cu_from_index_list): Use allocate_per_cu.
7585 (create_signatured_type_table_from_index)
7586 (create_signatured_type_table_from_debug_names)
7587 (create_debug_type_hash_table, add_type_unit)
7588 (read_comp_units_from_section): Use allocate_signatured_type.
7589
5717c425
TT
75902020-05-27 Tom Tromey <tom@tromey.com>
7591
7592 * psymtab.c (partial_map_expand_apply)
7593 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7594 (psym_lookup_global_symbol_language)
7595 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7596 (psym_print_stats, psym_expand_symtabs_for_function)
7597 (psym_map_symbol_filenames, psym_map_matching_symbols)
7598 (psym_expand_symtabs_matching)
7599 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7600 (maintenance_check_psymtabs): Update.
7601 * psympriv.h (struct partial_symtab) <readin_p,
7602 get_compunit_symtab>: Add objfile parameter.
7603 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7604 Likewise.
7605 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7606 get_compunit_symtab>: Likewise.
7607 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7608
45940949
TT
76092020-05-27 Tom Tromey <tom@tromey.com>
7610
7611 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7612 member.
7613 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7614 (create_cu_from_index_list)
7615 (create_signatured_type_table_from_index)
7616 (create_signatured_type_table_from_debug_names)
7617 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7618 (dwarf2_create_include_psymtab)
7619 (create_debug_type_hash_table, add_type_unit)
7620 (create_type_unit_group, read_comp_units_from_section)
7621 (dwarf2_compute_name, create_cus_hash_table)
7622 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7623 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7624 obstack.
7625 (dw2_get_real_path): Likewise. Change argument to
7626 dwarf2_per_objfile.
7627
f8c6d152
LM
76282020-05-27 Luis Machado <luis.machado@linaro.org>
7629
7630 PR tdep/26000
7631 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7632 for ldrd (immediate).
7633
e98d2e6d
PW
76342020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7635
7636 * command.h: Add comment giving the name of class_tui.
7637 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7638 create the fake command for the help for class_tui.
7639
53a47a3e
TT
76402020-05-26 Tom Tromey <tromey@adacore.com>
7641
7642 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7643 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7644 (val_atr): New function.
7645 (value_val_atr): Use it.
7646 * ada-valprint.c (print_optional_low_bound): Change low bound
7647 handling for enums.
7648 (val_print_packed_array_elements): Don't call discrete_position.
7649 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7650 discrete_position for enum types.
7651 * language.c (default_print_array_index): Change type.
7652 * language.h (struct language_defn) <la_print_array_index>: Add
7653 index_type parameter, change type of index_value.
7654 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7655 (default_print_array_index): Update.
7656 * valprint.c (maybe_print_array_index): Don't call
7657 value_from_longest. Update.
7658 (value_print_array_elements): Don't call discrete_position.
7659
0bc2354b
TT
76602020-05-26 Tom Tromey <tromey@adacore.com>
7661
7662 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7663 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7664
1218a4bf
CDA
76652020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7666
7667 PR gdb/13519
7668 * avr-tdep.c (avr_integer_to_address): Return data or code
7669 address accordingly to the second 'type' argument of the
7670 function.
7671
92651b1d
MW
76722020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7673
7674 * infcmd.c, inferior.h: (construct_inferior_arguments):
7675 Moved function from here to gdbsupport/common-inferior.{h,cc}
7676
0a4f5f8c
TT
76772020-05-23 Tom Tromey <tom@tromey.com>
7678
7679 Revert commit eca1f90c:
7680 * NEWS: Remove entry for completion styling.
7681 * completer.c (_rl_completion_prefix_display_length): Move
7682 declaration later.
7683 (gdb_fnprint): Revert.
7684 (gdb_display_match_list_1): Likewise.
7685 * cli/cli-style.c (completion_prefix_style)
7686 (completion_difference_style, completion_suffix_style): Remove.
7687 (_initialize_cli_style): Revert.
7688 * cli/cli-style.h (completion_prefix_style)
7689 (completion_difference_style, completion_suffix_style): Don't
7690 declare.
7691
e08bd6c5
PA
76922020-05-24 Pedro Alves <palves@redhat.com>
7693
7694 * symtab.c (completion_list_add_name): Return boolean indication
7695 of whether the symbol matched.
7696 (completion_list_add_symbol): Don't try to remove C++ aliases if
7697 the symbol didn't match in the first place.
7698 * symtab.h (completion_list_add_name): Return bool.
7699
ceacbf6e
SM
77002020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7701
7702 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7703 type::field.
7704
26f16254
JB
77052020-05-23 Joel Brobecker <brobecker@adacore.com>
7706
7707 GDB 9.2 released.
7708
eca1f90c
TT
77092020-05-23 Tom Tromey <tom@tromey.com>
7710
7711 * NEWS: Add entry for completion styling.
7712 * completer.c (_rl_completion_prefix_display_length): Move
7713 declaration earlier.
7714 (gdb_fnprint): Use completion_style.
7715 (gdb_display_match_list_1): Likewise.
7716 * cli/cli-style.c (completion_prefix_style)
7717 (completion_difference_style, completion_suffix_style): New
7718 globals.
7719 (_initialize_cli_style): Register new globals.
7720 * cli/cli-style.h (completion_prefix_style)
7721 (completion_difference_style, completion_suffix_style): Declare.
7722
51e2cfa2
PA
77232020-05-23 Pedro Alves <palves@redhat.com>
7724
7725 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7726 (parse_escape): Use ISDIGIT instead of isdigit.
7727 (puts_debug): Use gdb_isprint instead of isprint.
7728 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7729 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7730 ISSPACE instead of isspace.
7731 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7732 instead of isspace.
7733 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7734 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7735 instead of isxdigit and ISDIGIT instead of isdigit.
7736
80fc5e77
SM
77372020-05-22 Simon Marchi <simon.marchi@efficios.com>
7738
7739 * gdbtypes.h (struct type) <field>: New method.
7740 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7741 or type::field.
7742
3cabb6b0
SM
77432020-05-22 Simon Marchi <simon.marchi@efficios.com>
7744
7745 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7746 (TYPE_FIELDS): Use type::fields. Change all call sites that
7747 modify the propery to use type::set_fields instead.
7748
1f704f76
SM
77492020-05-22 Simon Marchi <simon.marchi@efficios.com>
7750
7751 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7752 type::num_fields instead.
7753
5e33d5f4
SM
77542020-05-22 Simon Marchi <simon.marchi@efficios.com>
7755
7756 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7757 methods.
7758 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7759 that modify the number of fields to use type::set_num_fields
7760 instead.
7761
9392ebb3
TT
77622020-05-22 Tom Tromey <tromey@adacore.com>
7763
7764 * compile/compile-object-load.h (munmap_list_free): Don't
7765 declare.
7766
7c13f4e8
AB
77672020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7768
7769 * annotate.c (annotate_source_line): Update return type, add call
7770 to update current symtab and line.
7771 * annotate.h (annotate_source_line): Update return type, and
7772 extend header comment.
7773 * source.c (info_line_command): Check annotation_level before
7774 calling annotate_source_line.
7775 * stack.c (print_frame_info): If calling annotate_source_line
7776 returns true, then don't print any other source line information.
7777
aa370940
SM
77782020-05-21 Simon Marchi <simon.marchi@efficios.com>
7779
7780 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7781
84d53fa9
SM
77822020-05-21 Simon Marchi <simon.marchi@efficios.com>
7783
7784 * coffread.c (patch_type): Remove NULL check before xfree.
7785 * corefile.c (set_gnutarget): Likewise.
7786 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7787 * exec.c (build_section_table): Likewise.
7788 * remote.c (remote_target::pass_signals): Likewise.
7789 * utils.c (n_spaces): Likewise.
7790 * cli/cli-script.c (document_command): Likewise.
7791 * i386-windows-tdep.c (core_process_module_section): Likewise.
7792 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7793
9d428aae
SM
77942020-05-20 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * symfile.c (reread_symbols): Clear objfile's section_offsets
7797 vector and section indices, re-compute them by calling
7798 sym_offsets.
7799
250106a7
TT
78002020-05-20 Tom Tromey <tromey@adacore.com>
7801
7802 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7803 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7804
9a0bacfb
TV
78052020-05-20 Tom de Vries <tdevries@suse.de>
7806
7807 PR symtab/25833
7808 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7809
7b958a48
AM
78102020-05-20 Alan Modra <amodra@gmail.com>
7811
7812 PR 25993
7813 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7814 bfd_set_filename.
7815 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7816 passed to bfd_set_filename.
7817 * symfile-mem.c (add_vsyscall_page): Likewise for string
7818 passed to symbol_file_add_from_memory.
7819 (symbol_file_add_from_memory): Make name param a const char* and
7820 don't strdup.
7821
c7e97679
AM
78222020-05-20 Alan Modra <amodra@gmail.com>
7823
7824 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7825 rather than accessing bfd->filename directly.
7826 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7827 and use bfd_section_name.
7828 * dwarf2/frame.c (decode_frame_entry): Likewise.
7829 * exec.c (exec_set_section_address): Likewise.
7830 * solib-aix.c (solib_aix_bfd_open): Likewise.
7831 * stap-probe.c (get_stap_base_address): Likewise.
7832 * symfile.c (reread_symbols): Likewise.
7833
563c591b
TT
78342020-05-19 Tom Tromey <tromey@adacore.com>
7835
7836 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7837
f408d82c
SM
78382020-05-19 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7841
98c59b52
PA
78422020-05-19 Pedro Alves <palves@redhat.com>
7843
7844 * NEWS (set exec-file-mismatch): Adjust entry.
7845 * exec.c: Include "build-id.h".
7846 (validate_exec_file): Try to match build IDs instead of filenames.
7847 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7848 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7849 and pass down 'warn_if_slow'.
7850 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7851 gdb_bfd_open_closure to pass it down.
7852 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7853
4111f652
PA
78542020-05-19 Pedro Alves <palves@redhat.com>
7855
7856 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7857 * target.c (target_fileio_open_1): Rename to target_fileio_open
7858 and make extern. Use bool.
7859 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7860 (target_fileio_read_alloc_1): Adjust.
7861 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7862 (target_fileio_open_warn_if_slow): Delete declaration.
7863
ad80db5b
PA
78642020-05-19 Pedro Alves <palves@redhat.com>
7865
7866 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7867 Adjust all callers.
7868
1d6ce4d3
YS
78692020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7870
7871 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7872 whether disp is negative.
7873
9005fbbb
SM
78742020-05-19 Simon Marchi <simon.marchi@efficios.com>
7875
7876 * symfile.h (struct symfile_segment_data)
7877 <~symfile_segment_data>: Remove.
7878 <segment_info>: Change to std::vector.
7879 * symfile.c (default_symfile_segments): Update.
7880 * elfread.c (elf_symfile_segments): Update.
7881
68b888ff
SM
78822020-05-19 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7885 <segments>: New.
7886 <segment_bases, segment_sizes>: Remove.
7887 * symfile.c (default_symfile_segments): Update.
7888 * elfread.c (elf_symfile_segments): Update.
7889 * remote.c (remote_target::get_offsets): Update.
7890 * solib-target.c (solib_target_relocate_section_addresses):
7891 Update.
7892
62982abd
SM
78932020-05-19 Simon Marchi <simon.marchi@efficios.com>
7894
7895 * symfile.h (struct symfile_segment_data): Initialize fields.
7896 <~symfile_segment_data>: Add.
7897 (symfile_segment_data_up): New.
7898 (struct sym_fns) <sym_segments>: Return a
7899 symfile_segment_data_up.
7900 (default_symfile_segments): Return a symfile_segment_data_up.
7901 (free_symfile_segment_data): Remove.
7902 (get_symfile_segment_data): Return a symfile_segment_data_up.
7903 * symfile.c (default_symfile_segments): Likewise.
7904 (get_symfile_segment_data): Likewise.
7905 (free_symfile_segment_data): Remove.
7906 (symfile_find_segment_sections): Update.
7907 * elfread.c (elf_symfile_segments): Return a
7908 symfile_segment_data_up.
7909 * remote.c (remote_target::get_offsets): Update.
7910 * solib-target.c (solib_target_relocate_section_addresses):
7911 Update.
7912 * symfile-debug.c (debug_sym_segments): Return a
7913 symfile_segment_data_up.
7914
7f204339
RO
79152020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7916
e52a0f1b
RO
7917 PR build/25981
7918 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7919 Hardcode register numbers.
7920
7f204339
RO
7921 PR build/25981
7922 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7923 procfs_find_LDT_entry): Remove.
7924 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7925 procfs_find_LDT_entry): Remove.
7926 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7927 Remove.
7928
7f32a4d5
PA
79292020-05-17 Pedro Alves <palves@redhat.com>
7930 Andrew Burgess <andrew.burgess@embecosm.com>
7931 Keno Fischer <keno@juliacomputing.com>
7932
7933 PR gdb/25741
7934 * breakpoint.c (build_target_condition_list): Update comments.
7935 (build_target_command_list): Update comments and skip matching
7936 locations.
7937 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7938 a separate function. Simplify "set breakpoint auto-hw off"
7939 handling.
7940 (insert_breakpoints): Update comment.
7941 (tracepoint_locations_match): New parameter. For breakpoints,
7942 compare location types too, if the caller wants to.
7943 (handle_automatic_hardware_breakpoints): New functions.
7944 (bp_location_is_less_than): Also sort by location type and
7945 hardware breakpoint length.
7946 (update_global_location_list): Handle "set breakpoint auto-hw on"
7947 here.
7948 (update_breakpoint_locations): Ask breakpoint_locations_match to
7949 ignore location types.
7950
7d93a1e0
SM
79512020-05-16 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7954 type::name instead.
7955
d0e39ea2
SM
79562020-05-16 Simon Marchi <simon.marchi@efficios.com>
7957
7958 * gdbtypes.h (struct type) <name, set_name>: New methods.
7959 (TYPE_CODE): Use type::name. Change all call sites used to set
7960 the name to use type::set_name instead.
7961
2dab0c7b
TT
79622020-05-16 Tom Tromey <tom@tromey.com>
7963
7964 * top.c (quit_force): Update.
7965 * infrun.c (handle_no_resumed): Update.
7966 * top.h (all_uis): New function.
7967 (ALL_UIS): Remove.
7968
59f7bd8d
SM
79692020-05-16 Simon Marchi <simon.marchi@efficios.com>
7970
7971 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7972
9bf058f0
PA
79732020-05-16 Pedro Alves <palves@redhat.com>
7974
7975 * ia64-linux-nat.c
7976 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7977 Declare method.
7978 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7979
8f86ae1a
SM
79802020-05-15 Simon Marchi <simon.marchi@efficios.com>
7981
7982 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7983 (sparc64_adi_info): Likewise.
7984
d6bc0792
TT
79852020-05-15 Tom Tromey <tom@tromey.com>
7986
7987 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7988 block_objfile.
7989 (lookup_objfile_from_block): Remove.
7990 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7991 (lookup_global_symbol): Use block_objfile.
7992 * symtab.h (lookup_objfile_from_block): Don't declare.
7993 * printcmd.c (clear_dangling_display_expressions): Use
7994 block_objfile.
7995 * parse.c (operator_check_standard): Use block_objfile.
7996
8c14c3a3
TT
79972020-05-15 Tom Tromey <tom@tromey.com>
7998
7999 * language.c (language_alloc_type_symbol): Set
8000 SYMBOL_SECTION.
8001 * symtab.c (initialize_objfile_symbol): Remove.
8002 (allocate_symbol): Remove.
8003 (allocate_template_symbol): Remove.
8004 * dwarf2/read.c (fixup_go_packaging): Use "new".
8005 (new_symbol): Use "new".
8006 (read_variable): Don't call initialize_objfile_symbol. Use
8007 "new".
8008 (read_func_scope): Use "new".
8009 * xcoffread.c (process_xcoff_symbol): Don't call
8010 initialize_objfile_symbol.
8011 (SYMBOL_DUP): Remove.
8012 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8013 "new".
8014 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8015 (allocate_template_symbol): Don't declare.
8016 (struct symbol): Add copy constructor. Change defaults.
8017 * jit.c (finalize_symtab): Use "new".
8018 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8019 Use "new".
8020 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8021 (common_block_end): Use "new".
8022 * mdebugread.c (parse_symbol): Use "new".
8023 (new_symbol): Likewise.
8024
5b4a1a8d
PW
80252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8026
8027 * NEWS: Mention changes to help and apropos.
8028
57b4f16e
PW
80292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8030
8031 * command.h (enum command_class): Improve comments, document
8032 that class_alias is for user-defined aliases, give the class
8033 name for each class, remove unused class_xdb.
8034 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8035 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8036 by a precise class.
8037 * infcmd.c (_initialize_infcmd): Likewise.
8038 * reverse.c (_initialize_reverse): Likewise.
8039 * stack.c (_initialize_stack): Likewise.
8040 * symfile.c (_initialize_symfile): Likewise.
8041 * tracepoint.c (_initialize_tracepoint): Likewise.
8042
7c05caf7
PW
80432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8044
8045 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8046 when their aliased command is traversed.
8047 (help_cmd): Add fput_command_names_styled call to
8048 output command name and aliases when command has an alias.
8049
3b3aaacb
PW
80502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8051
8052 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8053 * cli/cli-decode.c (help_cmd_list): Declare as static,
8054 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8055 a command together with the command.
8056 (fput_command_name_styled, fput_command_names_styled): New functions.
8057 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8058 fput_command_name_styled.
8059 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8060 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8061
7aa1b46f
PW
80622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8063
8064 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8065 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8066 * command.h (cmd_show_list): Likewise.
8067 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8068 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8069
89bcba74
PW
80702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8071
8072 * unittests/command-def-selftests.c (traverse_command_structure):
8073 Verify all commands of a list have the same prefix command and
8074 that only the top cmdlist commands have a null prefix.
8075
3f4d92eb
PW
80762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8077
8078 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8079 as prefix, not one of its aliases.
8080 (set_cmd_prefix): Remove.
8081 (do_add_cmd): Centralize the setting of the prefix of a command, when
8082 command is defined after its full chain of prefix commands.
8083 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8084 (add_setshow_cmd_full): Likewise.
8085 (update_prefix_field_of_prefixed_commands): New function.
8086 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8087 update_prefix_field_of_prefixed_commands.
8088 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8089 addresses of remote_set_cmdlist and remote_show_cmdlist given
8090 as argument, not the address of an argument.
8091 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8092 * gdb/remote.c (_initialize_remote): Likewise.
8093
0605465f
PW
80942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8095
8096 * cli/cli-cmds.c (alias_command): Check for an existing alias
8097 using lookup_cmd_composition, as valid_command_p is too strict
8098 and forbids aliases that are the prefix of an existing alias
8099 or command.
8100 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8101 command is properly recognised as a valid command.
8102
58e6ac70
PW
81032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8104
8105 * unittests/help-doc-selftests.c: Rename to
8106 unittests/command-def-selftests.c
8107 * unittests/command-def-selftests.c (help_doc_tests): Update some
8108 comments.
8109 (command_structure_tests, traverse_command_structure): New namespace
8110 and function.
8111 (command_structure_invariants_tests): New function.
8112 (_initialize_command_def_selftests) Renamed from
8113 _initialize_help_doc_selftests, register command_structure_invariants
8114 selftest.
8115
a7b9ceb8
PW
81162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8117
8118 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8119 an alias of 'show'.
8120
b2188a06
JB
81212020-05-15 Joel Brobecker <brobecker@adacore.com>
8122
8123 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8124 ada_is_fixed_point_type. Update all callers.
8125 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8126 all callers.
8127 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8128 Update all callers.
8129 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8130 print_fixed_point_type. Update all callers.
8131 * ada-valprint.c (ada_value_print_num): Replace call to
8132 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8133
a51951c2
KB
81342020-05-14 Kevin Buettner <kevinb@redhat.com>
8135
8136 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8137 processors.
8138 (cpu_supports_bts): Add CV_AMD case.
8139
29d6859f
LM
81402020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8141 Simon Marchi <simon.marchi@efficios.com>
8142
8143 * infrun.c (stop_all_threads): Collect multiple wait events at
8144 each pass.
8145
78134374
SM
81462020-05-14 Simon Marchi <simon.marchi@efficios.com>
8147
8148 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8149 type::code instead.
8150
67607e24
SM
81512020-05-14 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * gdbtypes.h (struct type) <code, set_code>: New methods.
8154 (TYPE_CODE): Use type::code. Change all call sites used to set
8155 the code to use type::set_code instead.
8156
a05575d3
TBA
81572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8158 Tom de Vries <tdevries@suse.de>
8159 Pedro Alves <palves@redhat.com>
8160
8161 PR threads/25478
8162 * infrun.c (stop_all_threads): Do NOT ignore
8163 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8164 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8165 received.
8166 (handle_no_resumed): Remove code handling a live inferior with no
8167 threads.
8168 * remote.c (has_single_non_exited_thread): New.
8169 (remote_target::update_thread_list): Do not delete a thread if is
8170 the last thread of the process.
8171 * thread.c (thread_select): Call delete_exited_threads instead of
8172 prune_threads.
8173
6ad82919
TBA
81742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8175
8176 * infrun.c (stop_all_threads): Enable/disable thread events of all
8177 targets. Move a debug message denoting the end of the function
8178 into the SCOPED_EXIT block.
8179
d890404b
TBA
81802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8181
8182 * process-stratum-target.h: Include <set>.
8183 (all_non_exited_process_targets, switch_to_target_no_thread): New
8184 function declarations.
8185 * process-stratum-target.c (all_non_exited_process_targets)
8186 (switch_to_target_no_thread): New function implementations.
8187
293b3ebc
TBA
81882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8189
8190 * infrun.c (handle_inferior_event): Extract out a piece of code
8191 into...
8192 (mark_non_executing_threads): ...this new function.
8193
7ca9b62a
TBA
81942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8195
8196 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8197 use.
8198
fc75c28b
TBA
81992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8200
8201 * regcache.c (regcache_read_pc_protected): New function
8202 implementation that returns 0 if the PC cannot read via
8203 'regcache_read_pc'.
8204 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8205 instead of 'regcache_read_pc'.
8206 (keep_going_pass_signal): Ditto.
8207
a89febbd
TT
82082020-05-13 Tom Tromey <tromey@adacore.com>
8209
8210 * ada-lang.c (align_value): Remove.
8211 (ada_template_to_fixed_record_type_1): Use align_up.
8212
f7e23710
TBA
82132020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8214
8215 * async-event.c: Update the copyright year.
8216 * async-event.h: Update the copyright year.
8217
02ff80c2
SM
82182020-05-12 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * objfiles.h (is_addr_in_objfile,
8221 shared_objfile_contains_address_p): Return bool.
8222 * objfile.c (is_addr_in_objfile,
8223 shared_objfile_contains_address_p): Return bool.
8224
4fd6c7e8
TT
82252020-05-11 Tom Tromey <tromey@adacore.com>
8226
8227 * cli/cli-cmds.c (info_command): Restore.
8228 (_initialize_cli_cmds): Use add_prefix_command for "info".
8229 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8230
5eb68a39
TT
82312020-05-11 Tom Tromey <tromey@adacore.com>
8232
8233 * ada-lang.c (ada_value_primitive_field): Now public.
8234 * ada-lang.h (ada_value_primitive_field): Declare.
8235 * ada-valprint.c (print_field_values): Use
8236 ada_value_primitive_field for wrapper fields.
8237
7666722f
TV
82382020-05-11 Tom de Vries <tdevries@suse.de>
8239
8240 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8241 MODULE_DOMAIN.
8242
3ee6bb11
TV
82432020-05-11 Tom de Vries <tdevries@suse.de>
8244
8245 PR symtab/25941
8246 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8247 with length 0, if not gdb-produced.
8248 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8249
43434996
TV
82502020-05-09 Tom de Vries <tdevries@suse.de>
8251
8252 PR gdb/25955
8253 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8254 calculation.
8255
2f78cffc
TT
82562020-05-09 Tom Tromey <tom@tromey.com>
8257
8258 * top.c (server_command): Now bool.
8259 * top.h (server_command): Now bool.
8260
4f7bc5ed
TT
82612020-05-08 Tom Tromey <tromey@adacore.com>
8262
8263 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8264 already being processed.
8265
8be4b118
TT
82662020-05-08 Tom Tromey <tom@tromey.com>
8267
8268 * printcmd.c (struct display) <next>: Remove.
8269 <display>: New constructor.
8270 <exp_string>: Now a std::string.
8271 <enabled_p>: Now a bool.
8272 (display_number): Move definition earlier.
8273 (displays): Rename from display_chain. Now a std::vector.
8274 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8275 (display_command): Update.
8276 (do_one_display, disable_display)
8277 (enable_disable_display_command, do_enable_disable_display):
8278 Update.
8279 (free_display): Remove.
8280 (clear_displays): Rewrite.
8281 (delete_display): Update.
8282 (map_display_numbers): Use function_view. Remove "data"
8283 parameter. Update.
8284 (do_delete_display): Remove.
8285 (undisplay_command): Update.
8286 (do_one_display, do_displays, disable_display)
8287 (info_display_command): Update.
8288 (do_enable_disable_display): Remove.
8289 (enable_disable_display_command)
8290 (clear_dangling_display_expressions): Update.
8291
94c93c35
TT
82922020-05-08 Tom Tromey <tom@tromey.com>
8293
8294 * symtab.c (set_symbol_cache_size)
8295 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8296 (maintenance_print_symbol_cache_statistics): Update.
8297 * symmisc.c (print_symbol_bcache_statistics)
8298 (print_objfile_statistics, maintenance_print_objfiles)
8299 (maintenance_info_symtabs, maintenance_check_symtabs)
8300 (maintenance_expand_symtabs, maintenance_info_line_tables):
8301 Update.
8302 * symfile-debug.c (set_debug_symfile): Update.
8303 * source.c (forget_cached_source_info): Update.
8304 * python/python.c (gdbpy_progspaces): Update.
8305 * psymtab.c (maintenance_info_psymtabs): Update.
8306 * probe.c (parse_probes): Update.
8307 * linespec.c (iterate_over_all_matching_symtabs)
8308 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8309 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8310 * exec.c (exec_target::close): Update.
8311 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8312 * breakpoint.c (print_one_breakpoint_location)
8313 (create_longjmp_master_breakpoint)
8314 (create_std_terminate_master_breakpoint): Update.
8315 * progspace.c (program_spaces): Now a std::vector.
8316 (maybe_new_address_space): Update.
8317 (add_program_space): Remove.
8318 (program_space::program_space): Update.
8319 (remove_program_space): Update.
8320 (number_of_program_spaces): Remove.
8321 (print_program_space, update_address_spaces): Update.
8322 * progspace.h (program_spaces): Change type.
8323 (ALL_PSPACES): Remove.
8324 (number_of_program_spaces): Don't declare.
8325 (struct program_space) <next>: Remove.
8326
a1fd1ac9
TT
83272020-05-08 Tom Tromey <tom@tromey.com>
8328
8329 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8330 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8331 (enable_break): Update.
8332 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8333 (frv_fdpic_find_canonical_descriptor): Update.
8334 (frv_fetch_objfile_link_map): Update.
8335 * progspace.c (program_space::free_all_objfiles): Update.
8336 (program_space::solibs): New method.
8337 * progspace.h (struct program_space) <solibs>: New method.
8338 * solist.h (master_so_list): Don't declare.
8339 (ALL_SO_LIBS): Remove.
8340 * solib.h (so_list_head): Remove.
8341 (update_solib_list): Update comment.
8342 * solib.c (master_so_list): Remove.
8343 (solib_used, update_solib_list, solib_add)
8344 (info_sharedlibrary_command, clear_solib)
8345 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8346
38eae084
TT
83472020-05-08 Tom Tromey <tom@tromey.com>
8348
8349 * extension.c (extension_languages): Now a std::array.
8350 (ALL_EXTENSION_LANGUAGES): Remove.
8351 (get_ext_lang_defn, get_ext_lang_of_file)
8352 (eval_ext_lang_from_control_command): Update.
8353 (finish_ext_lang_initialization)
8354 (auto_load_ext_lang_scripts_for_objfile)
8355 (ext_lang_type_printers::ext_lang_type_printers)
8356 (apply_ext_lang_type_printers)
8357 (ext_lang_type_printers::~ext_lang_type_printers)
8358 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8359 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8360 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8361 (get_matching_xmethod_workers, ext_lang_colorize)
8362 (ext_lang_before_prompt): Update.
8363 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8364
596dc4ad
TT
83652020-05-08 Tom Tromey <tom@tromey.com>
8366
8367 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8368 overload.
8369 <swap_string, m_string>: Remove.
8370 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8371 Update.
8372 * stabsread.c (define_symbol, read_type): Update.
8373 * linespec.c (find_linespec_symbols): Update.
8374 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8375 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8376 * dbxread.c (read_dbx_symtab): Update.
8377 * cp-support.h (cp_canonicalize_string_full)
8378 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8379 Return unique_xmalloc_ptr.
8380 * cp-support.c (inspect_type): Update.
8381 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8382 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8383 Likewise.
8384 * c-typeprint.c (print_name_maybe_canonical): Update.
8385 * break-catch-throw.c (check_status_exception_catchpoint):
8386 Update.
8387
bf4cb9be
TV
83882020-05-08 Tom de Vries <tdevries@suse.de>
8389
8390 * infrun.c (follow_fork): Copy current_line and current_symtab to
8391 child thread.
8392
a1b68f28
SM
83932020-05-07 Simon Marchi <simon.marchi@efficios.com>
8394
8395 * async-event.c (struct async_signal_handler, struct
8396 async_event_handler): Reformat, remove typedef.
8397
98d48915
SM
83982020-05-07 Simon Marchi <simon.marchi@efficios.com>
8399
8400 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8401 access thistype->main_type->dyn_prop_list directly.
8402
7aa91313
SM
84032020-05-07 Simon Marchi <simon.marchi@efficios.com>
8404
8405 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8406 (remove_dyn_prop): Remove. Update all users to use
8407 type::remove_dyn_prop.
8408 * gdbtypes.c (remove_dyn_prop): Rename to...
8409 (type::remove_dyn_prop): ... this.
8410
5c54719c
SM
84112020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8412
8413 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8414 (add_dyn_prop): Remove. Update all users to use
8415 type::add_dyn_prop.
8416 * gdbtypes.c (add_dyn_prop): Rename to...
8417 (type::add_dyn_prop): ... this.
8418
24e99c6c
SM
84192020-05-07 Simon Marchi <simon.marchi@efficios.com>
8420
8421 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8422 (get_dyn_prop): Remove. Update all users to use
8423 type::dyn_prop.
8424 * gdbtypes.c (get_dyn_prop): Rename to...
8425 (type::dyn_prop): ... this.
8426
0d4bf016
SM
84272020-05-06 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8430
ac4a4f1c
SM
84312020-05-06 Simon Marchi <simon.marchi@efficios.com>
8432
8433 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8434 instruction, skip it if it's there.
8435
a3bbacc1
SM
84362020-05-05 Simon Marchi <simon.marchi@efficios.com>
8437
8438 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8439
c3236f84
SM
84402020-05-04 Simon Marchi <simon.marchi@efficios.com>
8441
8442 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8443 * gdbtypes.c (recursive_dump_type): Remove use of
8444 TYPE_INCOMPLETE.
8445
3b6acaee
TT
84462020-05-03 Tom Tromey <tom@tromey.com>
8447
8448 * breakpoint.c (catch_command, tcatch_command): Remove.
8449 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8450 add_show_prefix_cmd.
8451 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8452 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8453 Remove.
8454 (add_internal_problem_command): Use add_basic_prefix_cmd,
8455 add_show_prefix_cmd.
8456 * mips-tdep.c (set_mipsfpu_command): Remove.
8457 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8458 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8459 (_initialize_index_cache): Use add_basic_prefix_cmd.
8460 * memattr.c (dummy_cmd): Remove.
8461 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8462 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8463 (_initialize_tui_win): Use add_basic_prefix_cmd,
8464 add_show_prefix_cmd.
8465 * cli/cli-logging.c (set_logging_command): Remove.
8466 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8467 add_show_prefix_cmd.
8468 (show_logging_command): Remove.
8469 * target.c (target_command): Remove.
8470 (add_target): Use add_basic_prefix_cmd.
8471
a51119cd
HD
84722020-05-02 Hannes Domani <ssbssa@yahoo.de>
8473
8474 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8475
652fc23a 84762020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8477
652fc23a
PW
8478 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8479 info_command.
8480
117539e6
KR
84812020-04-30 Kamil Rytarowski <n54@gmx.com>
8482
8483 * nbsd-nat.c (nbsd_enable_proc_events)
8484 (nbsd_nat_target::post_startup_inferior): Add.
8485 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8486 (nbsd_nat_target::update_thread_list): Rewrite.
8487 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8488 "PTRACE_LWP_CREATE".
8489 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8490
102e38eb 84912020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8492
102e38eb
PW
8493 * stack.c (_initialize_stack): Remove duplicated creation
8494 of "frame" command and "f" alias.
8495
ee9d1e5f
HD
84962020-04-30 Hannes Domani <ssbssa@yahoo.de>
8497
8498 PR gdb/18706
8499 * gdbtypes.c (check_typedef): Calculate size of array of
8500 stubbed type.
8501
627c7fb8
HD
85022020-04-30 Hannes Domani <ssbssa@yahoo.de>
8503
8504 PR gdb/15559
8505 * i386-tdep.c (i386_push_dummy_call): Call
8506 i386_thiscall_push_dummy_call.
8507 (i386_thiscall_push_dummy_call): New function.
8508 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8509 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8510 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8511
ffc2844e
SM
85122020-04-29 Simon Marchi <simon.marchi@efficios.com>
8513
8514 * gdbarch.sh (do_read): Add shellcheck disable directive for
8515 warning SC2162.
8516
1207375d
SM
85172020-04-29 Simon Marchi <simon.marchi@efficios.com>
8518
8519 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8520 "referenced but not assigned" warning.
8521
9fdb2916
SM
85222020-04-29 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * gdbarch.sh: Remove code that sets fallbackdefault.
8525
759cea5e
SM
85262020-04-29 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * gdbarch.sh: Use shell operators && and || instead of
8529 -a and -o.
8530
cb02ab24
SM
85312020-04-29 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * gdbarch.sh: Use $(...) instead of `...`.
8534
a6fc5ffc
SM
85352020-04-29 Simon Marchi <simon.marchi@efficios.com>
8536
8537 * gdbarch.sh: Use double quotes around variables.
8538
8d113d13
SM
85392020-04-29 Simon Marchi <simon.marchi@efficios.com>
8540
8541 * gdbarch.sh: Use %s with printf, instead of variables in the
8542 format string.
8543
ed6acedd
TT
85442020-04-29 Tom Tromey <tromey@adacore.com>
8545
8546 PR ada/25875:
8547 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8548 type fields here.
8549 (read_enumeration_type): Call
8550 update_enumeration_type_from_children later. Update comments.
8551 (process_enumeration_scope): Don't create type fields.
8552
b68b1b58
KR
85532020-04-29 Kamil Rytarowski <n54@gmx.com>
8554
8555 * nbsd-tdep.c: Include "xml-syscall.h".
8556 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8557
f94b2e03
KR
85582020-04-29 Kamil Rytarowski <n54@gmx.com>
8559
8560 * nbsd-nat.c: Include "sys/wait.h".
8561 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8562 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8563 (nbsd_nat_target::remove_exec_catchpoint)
8564 (nbsd_nat_target::set_syscall_catchpoint): Add.
8565 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8566 (nbsd_nat_target::insert_exec_catchpoint)
8567 (nbsd_nat_target::remove_exec_catchpoint)
8568 (nbsd_nat_target::set_syscall_catchpoint): Add.
8569 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8570 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8571 `nbsd_get_syscall_number'.
8572
fc49bc72
TT
85732020-04-29 Tom Tromey <tom@tromey.com>
8574
8575 * stack.c (print_block_frame_labels): Remove.
8576
d642b692
HD
85772020-04-29 Hannes Domani <ssbssa@yahoo.de>
8578
8579 PR gdb/17320
8580 * ada-valprint.c (val_print_packed_array_elements): Move array
8581 end bracket to new line.
8582 (ada_val_print_string): Remove extra spaces before first array
8583 element.
8584 * c-valprint.c (c_value_print_array): Likewise.
8585 * m2-valprint.c (m2_print_array_contents): Likewise.
8586 (m2_value_print_inner): Likewise.
8587 * p-valprint.c (pascal_value_print_inner): Likewise.
8588 * valprint.c (generic_val_print_array): Likewise.
8589 (value_print_array_elements): Move first array element and array
8590 end bracket to new line.
8591
ea90f227
TV
85922020-04-29 Tom de Vries <tdevries@suse.de>
8593
8594 PR symtab/25889
8595 * linespec.c (find_method): Fix ix calculation.
8596
4498ef4f
KR
85972020-04-28 Kamil Rytarowski <n54@gmx.com>
8598
8599 * syscalls/update-netbsd.sh: New file.
8600 * syscalls/netbsd.xml: Regenerate.
8601 * data-directory/Makefile.in: Register `netbsd.xml' in
8602 `SYSCALLS_FILES'.
8603
a55e30b5
SM
86042020-04-28 Simon Marchi <simon.marchi@efficios.com>
8605
8606 * syscalls/update-freebsd.sh: Add double quotes.
8607
2b2fbab8
TT
86082020-04-28 Tom Tromey <tom@tromey.com>
8609
8610 * NEWS: Update.
8611 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8612 (cmdpy_init): Allow class_tui.
8613
a65189c9
TV
86142020-04-28 Mark Williams <mark@myosotissp.com>
8615
8616 PR gdb/24480
8617 * dwarf2read.c: Add missing assingments to list_in_scope when
8618 start_symtab was already called.
8619
1b95cdb7
SM
86202020-04-28 Simon Marchi <simon.marchi@efficios.com>
8621
8622 PR gdb/25881
8623 * dwarf2/read.c (offset_map_type): Use
8624 gdb:hash_enum<sect_offset> as hash function.
8625
15cd93d0
TV
86262020-04-28 Tom de Vries <tdevries@suse.de>
8627
8628 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8629 with DW_AT_signature.
8630
1eb39914
SM
86312020-04-27 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * configure.ac: Remove check for fs_base/gs_base in
8634 user_regs_struct.
8635 * configure: Re-generate.
8636 * config.in: Re-generate.
8637 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8638 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8639 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8640
991a3e2e
LM
86412020-04-27 Luis Machado <luis.machado@linaro.org>
8642
8643 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8644 problematic inline frame unwinding situation.
8645 * frame.c (frame_id_computed_p): New function.
8646 * frame.h (frame_id_computed_p): New prototype.
8647
361ba0e8
TT
86482020-04-26 Tom Tromey <tom@tromey.com>
8649
8650 * command.h (enum command_class) <class_pseudo>: Remove.
8651
bc3609fd
PW
86522020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8653
8654 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8655 and whitespace.
8656
b9771db7
KR
86572020-04-25 Kamil Rytarowski <n54@gmx.com>
8658
ec16513e
SM
8659 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8660 `PT_GET_PROCESS_STATE' block.
b9771db7 8661
7151c1af
TT
86622020-04-24 Tom Tromey <tom@tromey.com>
8663
8664 * symtab.h (symbol_get_demangled_name): Don't declare.
8665 * symtab.c (symbol_get_demangled_name): Remove.
8666 (general_symbol_info::natural_name)
8667 (general_symbol_info::demangled_name): Update.
8668
906bb4c5
TT
86692020-04-24 Tom Tromey <tom@tromey.com>
8670
8671 PR rust/25025:
8672 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8673
bcfe6157
TT
86742020-04-24 Tom Tromey <tom@tromey.com>
8675
8676 PR symtab/12707:
8677 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8678 exists.
8679 (new_symbol): Likewise.
8680 * compile/compile-object-load.c (get_out_value_type): Use
8681 symbol_matches_search_name.
8682
f049a313
TT
86832020-04-24 Tom Tromey <tom@tromey.com>
8684
8685 * dwarf2/read.c (add_partial_symbol): Do not call
8686 compute_and_set_names.
8687
76e288d1
TT
86882020-04-24 Tom Tromey <tom@tromey.com>
8689
8690 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8691 overload.
8692
2467f4f6
TT
86932020-04-24 Tom Tromey <tom@tromey.com>
8694
8695 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8696 (add_psymbol_to_list): New overload. Make old overload call new
8697 one.
8698 * psympriv.h (add_psymbol_to_list): New overload.
8699
e61108c9
TT
87002020-04-24 Tom Tromey <tom@tromey.com>
8701
8702 * dwarf2/read.c (partial_die_info::read) <case
8703 DW_AT_linkage_name>: Use value_as_string.
8704 (dwarf2_string_attr): Use value_as_string.
8705 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8706 method.
8707 * dwarf2/attribute.c (attribute::value_as_string): New method.
8708
8c87a452
TT
87092020-04-24 Tom Tromey <tom@tromey.com>
8710
8711 * symtab.c (general_symbol_info::natural_name)
8712 (general_symbol_info::demangled_name): Check for language_rust.
8713
787de330
TT
87142020-04-24 Tom Tromey <tom@tromey.com>
8715
8716 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8717 (dwarf2_physname): ... from here.
8718 (partial_die_info::read): Add Rust "{" hack.
8719
ff985671
TT
87202020-04-24 Tom Tromey <tom@tromey.com>
8721
8722 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8723 method.
8724 (symbol_set_demangled_name): Don't declare.
8725 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8726 symbol_set_demangled_name.
8727 (general_symbol_info::set_language)
8728 (general_symbol_info::compute_and_set_names): Update.
8729 * minsyms.c (minimal_symbol_reader::install): Update.
8730 * dwarf2/read.c (new_symbol): Update.
8731
1acda803
TT
87322020-04-24 Tom Tromey <tromey@adacore.com>
8733
8734 PR python/23662:
8735 * python/py-type.c (convert_field): Handle
8736 FIELD_LOC_KIND_DWARF_BLOCK.
8737 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8738 (typy_get_dynamic): Nw function.
8739 (type_object_getset): Add "dynamic".
8740 * NEWS: Add entry.
8741
d656f129
TT
87422020-04-24 Tom Tromey <tromey@adacore.com>
8743
8744 * ada-typeprint.c (print_choices, print_variant_part)
8745 (print_record_field_types_dynamic): New functions.
8746 (print_record_field_types): Use print_record_field_types_dynamic.
8747
7d79de9a
TT
87482020-04-24 Tom Tromey <tromey@adacore.com>
8749
8750 * dwarf2/read.c (handle_data_member_location): New overload.
8751 (dwarf2_add_field): Use it.
8752 (decode_locdesc): Add "computed" parameter. Update comment.
8753 * gdbtypes.c (is_dynamic_type_internal): Also look for
8754 FIELD_LOC_KIND_DWARF_BLOCK.
8755 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8756 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8757 virtual base classes.
8758 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8759 FIELD_LOC_KIND_DWARF_BLOCK.
8760
f8e89861
TT
87612020-04-24 Tom Tromey <tromey@adacore.com>
8762
8763 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8764 * gdbtypes.c (is_dynamic_type_internal): Check
8765 TYPE_HAS_DYNAMIC_LENGTH.
8766 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8767 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8768 New macros.
8769 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8770 constant.
8771
9c6a1327
TT
87722020-04-24 Tom Tromey <tromey@adacore.com>
8773
8774 * dwarf2/read.c (struct variant_field): Rewrite.
8775 (struct variant_part_builder): New.
8776 (struct nextfield): Remove "variant" field. Add "offset".
8777 (struct field_info): Add "current_variant_part" and
8778 "variant_parts".
8779 (alloc_discriminant_info): Remove.
8780 (alloc_rust_variant): New function.
8781 (quirk_rust_enum): Update.
8782 (dwarf2_add_field): Set "offset" member. Don't handle
8783 DW_TAG_variant_part.
8784 (offset_map_type): New typedef.
8785 (convert_variant_range, create_one_variant)
8786 (create_one_variant_part, create_variant_parts)
8787 (add_variant_property): New functions.
8788 (dwarf2_attach_fields_to_type): Call add_variant_property.
8789 (read_structure_type): Don't handle DW_TAG_variant_part.
8790 (handle_variant_part, handle_variant): New functions.
8791 (handle_struct_member_die): Use them.
8792 (process_structure_scope): Don't handle variant parts.
8793 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8794 (struct discriminant_info): Remove.
8795 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8796 (struct main_type) <flag_discriminated_union>: Remove.
8797 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8798 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8799 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8800 Update.
8801 * valops.c (value_union_variant): Remove.
8802 * value.h (value_union_variant): Don't declare.
8803
b249d2c2
TT
88042020-04-24 Tom Tromey <tromey@adacore.com>
8805
8806 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8807 (ada_value_primitive_packed_val): Update.
8808 * ada-valprint.c (ada_value_print_1): Update.
8809 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8810 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8811 just an address. Use evaluate_for_locexpr_baton.
8812 (dwarf2_evaluate_property): Update.
8813 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8814 array_view.
8815 * findvar.c (default_read_var_value): Update.
8816 * gdbtypes.c (compute_variant_fields_inner)
8817 (resolve_dynamic_type_internal): Update.
8818 (resolve_dynamic_type): Change type of valaddr parameter.
8819 * gdbtypes.h (resolve_dynamic_type): Update.
8820 * valarith.c (value_subscripted_rvalue): Update.
8821 * value.c (value_from_contents_and_address): Update.
8822
61122aa9
TT
88232020-04-24 Tom Tromey <tromey@adacore.com>
8824
8825 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8826 "push_initial_value" parameter.
8827 (dwarf2_evaluate_property): Likewise.
8828 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8829
ef83a141
TT
88302020-04-24 Tom Tromey <tromey@adacore.com>
8831
8832 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8833 (variant::matches, compute_variant_fields_recurse)
8834 (compute_variant_fields_inner, compute_variant_fields): New
8835 functions.
8836 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8837 Use resolved_type after type is made.
8838 (operator==): Add new cases.
8839 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8840 (struct discriminant_range, struct variant, struct variant_part):
8841 New.
8842 (union dynamic_prop_data) <variant_parts, original_type>: New
8843 members.
8844 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8845 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8846 constants.
8847 * value.c (unpack_bits_as_long): Now public.
8848 * value.h (unpack_bits_as_long): Declare.
8849
675127ec
TT
88502020-04-24 Tom Tromey <tromey@adacore.com>
8851
8852 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8853 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8854
9852ceef
HD
88552020-04-24 Hannes Domani <ssbssa@yahoo.de>
8856
8857 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8858
7632c6ce
KR
88592020-04-24 Kamil Rytarowski <n54@gmx.com>
8860
8861 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8862 (remove_fork_catchpoint, post_startup_inferior)
8863 (post_attach): Move...
8864 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8865 (remove_fork_catchpoint, post_startup_inferior)
8866 (post_attach): ...here.
8867 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8868 (remove_fork_catchpoint, post_startup_inferior)
8869 (post_attach): Move...
8870 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8871 (remove_fork_catchpoint, post_startup_inferior)
8872 (post_attach): ...here.
8873
7be2bb4f
TT
88742020-04-24 Tom Tromey <tromey@adacore.com>
8875
8876 * nat/windows-nat.h (struct windows_thread_info)
8877 <pc_adjusted>: New member.
8878 * windows-nat.c (windows_fetch_one_register): Check
8879 pc_adjusted.
8880 (windows_nat_target::get_windows_debug_event)
8881 (windows_nat_target::wait): Set pc_adjusted.
8882
f80cb3b4
TV
88832020-04-24 Tom de Vries <tdevries@suse.de>
8884
8885 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8886 Run gdb-add-index inside temp dir.
8887
29514b87
TT
88882020-04-23 Tom Tromey <tromey@adacore.com>
8889
8890 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8891 in loop.
8892
5939967b
LM
88932020-04-23 Luis Machado <luis.machado@linaro.org>
8894
8895 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8896 get_frame_register instead of gdbarch_unwind_pc.
8897
70bc38f5
TV
88982020-04-23 Tom de Vries <tdevries@suse.de>
8899
8900 * symtab.c (lookup_global_symbol): Prefer def over decl.
8901
de82891c
TV
89022020-04-23 Tom de Vries <tdevries@suse.de>
8903
8904 PR symtab/25807
8905 * block.c (best_symbol, better_symbol): Promote to external.
8906 * block.h (best_symbol, better_symbol): Declare.
8907 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8908 decl.
8909
ecc6c606
TT
89102020-04-23 Tom Tromey <tromey@adacore.com>
8911
8912 PR ada/25837:
8913 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8914 "const char *", not a "const std::string &".
8915 <name_and_matcher::operator==>: Update.
8916 * unittests/lookup_name_info-selftests.c: Change type of
8917 "result".
8918
740480b8
TT
89192020-04-23 Tom Tromey <tom@tromey.com>
8920
8921 * inferior.h (iterate_over_inferiors): Don't declare.
8922 * inferior.c (iterate_over_inferiors): Remove.
8923 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8924 Remove.
8925 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8926 use iterate_over_inferiors.
8927 (darwin_resume_inferior_it)
8928 (struct resume_inferior_threads_param)
8929 (darwin_resume_inferior_threads_it): Remove.
8930 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8931
ae3ab1f0
TV
89322020-04-23 Tom de Vries <tdevries@suse.de>
8933
8934 * blockframe.c (find_pc_partial_function): Use
8935 find_pc_sect_compunit_symtab rather than
8936 objfile->sf->qf->find_pc_sect_compunit_symtab.
8937
317d2668
TV
89382020-04-22 Tom de Vries <tdevries@suse.de>
8939
8940 PR symtab/25764
8941 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8942 in psymtabs.
8943
eea9e357
TV
89442020-04-22 Tom de Vries <tdevries@suse.de>
8945
8946 PR symtab/25801
8947 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8948 symtabs.
8949
3d5afab3
TV
89502020-04-22 Tom de Vries <tdevries@suse.de>
8951
8952 PR symtab/25700
8953 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8954 CU if already created.
8955
d43b7a2d
TBA
89562020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8957
8958 * infrun.c (displaced_step_fixup): Switch to the event_thread
8959 before calling displaced_step_restore, not after.
8960
d89edf9b
MM
89612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8962
8963 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8964 its inferior is not recorded by us.
8965 (record_btrace_target_open): Replace call to
8966 all_non_exited_threads () with call to current_inferior
8967 ()->non_exited_threads ().
8968 (record_btrace_target::stop_recording): Likewise.
8969 (record_btrace_target::close): Likewise.
8970 (record_btrace_target::wait): Likewise.
8971 (record_btrace_target::record_stop_replaying): Likewise.
8972
5897fd49
MM
89732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8974
8975 * btrace.c (btrace_enable): Throw an error on double enables and
8976 when enabling recording fails.
8977 (btrace_disable): Throw an error if the thread is not recorded.
8978
1a476b6d
MM
89792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8980
8981 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8982 request if we do not have a thread_info.
8983
4778a5f8
TV
89842020-04-21 Tom de Vries <tdevries@suse.de>
8985
8986 PR gdb/25471
8987 * thread.c
8988 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8989 exception in get_frame_id.
8990
0fa7617d
TT
89912020-04-20 Tom Tromey <tromey@adacore.com>
8992
8993 * python/python.c (struct gdbpy_event): Mark move constructor as
8994 noexcept.
8995 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8996 constructor as noexcept.
8997 * completer.h (struct completion_result): Mark move constructor as
8998 noexcept.
8999 * completer.c (completion_result::completion_result): Use
9000 initialization style. Don't call reset_match_list.
9001
ad23bda0
MS
90022020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9003
9004 * MAINTAINERS (Write After Approval): Add myself.
9005
45e1f031
TT
90062020-04-18 Tom Tromey <tom@tromey.com>
9007
9008 * windows-tdep.c (init_w32_command_list)
9009 (w32_prefix_command_valid): Restore.
9010 (_initialize_windows_tdep): Call init_w32_command_list.
9011
08feed99
TT
90122020-04-18 Tom Tromey <tom@tromey.com>
9013
9014 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9015 * value.c (value_fn_field): Update.
9016 * valops.c (find_function_in_inferior)
9017 (value_allocate_space_in_inferior): Update.
9018 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9019 Update.
9020 * tui/tui-source.c (tui_source_window::set_contents): Update.
9021 * symtab.c (lookup_global_or_static_symbol)
9022 (find_function_start_sal_1, skip_prologue_sal)
9023 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9024 * symmisc.c (dump_msymbols, dump_symtab_1)
9025 (maintenance_print_one_line_table): Update.
9026 * symfile.c (init_entry_point_info, section_is_mapped)
9027 (list_overlays_command, simple_read_overlay_table)
9028 (simple_overlay_update_1): Update.
9029 * stap-probe.c (handle_stap_probe): Update.
9030 * stabsread.c (dbx_init_float_type, define_symbol)
9031 (read_one_struct_field, read_enum_type, read_range_type): Update.
9032 * source.c (info_line_command): Update.
9033 * python/python.c (gdbpy_source_objfile_script)
9034 (gdbpy_execute_objfile_script): Update.
9035 * python/py-type.c (save_objfile_types): Update.
9036 * python/py-objfile.c (py_free_objfile): Update.
9037 * python/py-inferior.c (python_new_objfile): Update.
9038 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9039 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9040 (maintenance_check_psymtabs): Update.
9041 * printcmd.c (info_address_command): Update.
9042 * objfiles.h (struct objfile) <arch>: New method, from
9043 get_objfile_arch.
9044 (get_objfile_arch): Don't declare.
9045 * objfiles.c (get_objfile_arch): Remove.
9046 (filter_overlapping_sections): Update.
9047 * minsyms.c (msymbol_is_function): Update.
9048 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9049 (output_nondebug_symbol): Update.
9050 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9051 (mdebug_expand_psymtab): Update.
9052 * machoread.c (macho_add_oso_symfile): Update.
9053 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9054 Update.
9055 * linux-fork.c (checkpoint_command): Update.
9056 * linespec.c (convert_linespec_to_sals): Update.
9057 * jit.c (finalize_symtab): Update.
9058 * infrun.c (insert_exception_resume_from_probe): Update.
9059 * ia64-tdep.c (ia64_find_unwind_table): Update.
9060 * hppa-tdep.c (internalize_unwinds): Update.
9061 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9062 Update.
9063 * gcore.c (call_target_sbrk): Update.
9064 * elfread.c (record_minimal_symbol, elf_symtab_read)
9065 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9066 (elf_gnu_ifunc_resolve_by_got): Update.
9067 * dwarf2/read.c (create_addrmap_from_index)
9068 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9069 (read_debug_names_from_section)
9070 (process_psymtab_comp_unit_reader, add_partial_symbol)
9071 (add_partial_subprogram, process_full_comp_unit)
9072 (read_file_scope, read_func_scope, read_lexical_block_scope)
9073 (read_call_site_scope, dwarf2_ranges_read)
9074 (dwarf2_record_block_ranges, dwarf2_add_field)
9075 (mark_common_block_symbol_computed, read_tag_pointer_type)
9076 (read_tag_string_type, dwarf2_init_float_type)
9077 (dwarf2_init_complex_target_type, read_base_type)
9078 (partial_die_info::read, partial_die_info::read)
9079 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9080 (dwarf2_fetch_die_loc_sect_off): Update.
9081 * dwarf2/loc.c (dwarf2_find_location_expression)
9082 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9083 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9084 (dwarf2_loc_desc_get_symbol_read_needs)
9085 (locexpr_describe_location_piece, locexpr_describe_location_1)
9086 (loclist_describe_location): Update.
9087 * dwarf2/index-write.c (write_debug_names): Update.
9088 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9089 * dtrace-probe.c (dtrace_process_dof): Update.
9090 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9091 (process_one_symbol): Update.
9092 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9093 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9094 (coff_read_enum_type): Update.
9095 * cli/cli-cmds.c (edit_command, list_command): Update.
9096 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9097 * breakpoint.c (create_overlay_event_breakpoint)
9098 (create_longjmp_master_breakpoint)
9099 (create_std_terminate_master_breakpoint)
9100 (create_exception_master_breakpoint, get_sal_arch): Update.
9101 * block.c (block_gdbarch): Update.
9102 * annotate.c (annotate_source_line): Update.
9103
0743fc83
TT
91042020-04-17 Tom Tromey <tromey@adacore.com>
9105
9106 * auto-load.c (show_auto_load_cmd): Remove.
9107 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9108 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9109 (maintenance_print_arc_command): Remove.
9110 * tui/tui-win.c (tui_command): Remove.
9111 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9112 * tui/tui-layout.c (tui_layout_command): Remove.
9113 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9114 * python/python.c (user_set_python, user_show_python): Remove.
9115 (_initialize_python): Use add_basic_prefix_cmd,
9116 add_show_prefix_cmd.
9117 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9118 (install_gdb_commands): Use add_basic_prefix_cmd,
9119 add_show_prefix_cmd.
9120 (info_guile_command): Remove.
9121 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9122 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9123 add_show_prefix_cmd.
9124 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9125 Remove do_set and do_show parameters.
9126 * cli/cli-style.c (set_style, show_style): Remove.
9127 (_initialize_cli_style): Use add_basic_prefix_cmd,
9128 add_show_prefix_cmd.
9129 (cli_style_option::add_setshow_commands): Remove do_set and
9130 do_show parameters.
9131 (cli_style_option::add_setshow_commands): Use
9132 add_basic_prefix_cmd, add_show_prefix_cmd.
9133 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9134 (set_style_name): Remove.
9135 * cli/cli-dump.c (dump_command, append_command): Remove.
9136 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9137 (tekhex_dump_command, binary_dump_command)
9138 (binary_append_command): Remove.
9139 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9140 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9141 (init_w32_command_list): Remove; move into ...
9142 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9143 * valprint.c (set_print, show_print, set_print_raw)
9144 (show_print_raw): Remove.
9145 (_initialize_valprint): Use add_basic_prefix_cmd,
9146 add_show_prefix_cmd.
9147 * typeprint.c (set_print_type, show_print_type): Remove.
9148 (_initialize_typeprint): Use add_basic_prefix_cmd,
9149 add_show_prefix_cmd.
9150 * record.c (set_record_command, show_record_command): Remove.
9151 (_initialize_record): Use add_basic_prefix_cmd,
9152 add_show_prefix_cmd.
9153 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9154 add_show_prefix_cmd.
9155 (info_command, show_command, set_debug, show_debug): Remove.
9156 * top.h (set_history, show_history): Don't declare.
9157 * top.c (set_history, show_history): Remove.
9158 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9159 (unset_tdesc_cmd): Remove.
9160 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9161 add_show_prefix_cmd.
9162 * symtab.c (info_module_command): Remove.
9163 (_initialize_symtab): Use add_basic_prefix_cmd.
9164 * symfile.c (overlay_command): Remove.
9165 (_initialize_symfile): Use add_basic_prefix_cmd.
9166 * sparc64-tdep.c (info_adi_command): Remove.
9167 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9168 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9169 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9170 add_show_prefix_cmd.
9171 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9172 (_initialize_serial): Use add_basic_prefix_cmd,
9173 add_show_prefix_cmd.
9174 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9175 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9176 add_show_prefix_cmd.
9177 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9178 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9179 add_show_prefix_cmd.
9180 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9181 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9182 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9183 add_show_prefix_cmd.
9184 * remote.c (remote_command, set_remote_cmd): Remove.
9185 (_initialize_remote): Use add_basic_prefix_cmd.
9186 * record-full.c (set_record_full_command)
9187 (show_record_full_command): Remove.
9188 (_initialize_record_full): Use add_basic_prefix_cmd,
9189 add_show_prefix_cmd.
9190 * record-btrace.c (cmd_set_record_btrace)
9191 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9192 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9193 (cmd_show_record_btrace_pt): Remove.
9194 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9195 add_show_prefix_cmd.
9196 * ravenscar-thread.c (set_ravenscar_command)
9197 (show_ravenscar_command): Remove.
9198 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9199 add_show_prefix_cmd.
9200 * mips-tdep.c (show_mips_command, set_mips_command)
9201 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9202 add_show_prefix_cmd.
9203 * maint.c (maintenance_command, maintenance_info_command)
9204 (maintenance_check_command, maintenance_print_command)
9205 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9206 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9207 add_show_prefix_cmd.
9208 (show_per_command_cmd): Remove.
9209 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9210 Remove.
9211 (maintenance_show_test_settings_cmd): Remove.
9212 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9213 add_show_prefix_cmd.
9214 * maint-test-options.c (maintenance_test_options_command):
9215 Remove.
9216 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9217 * macrocmd.c (macro_command): Remove
9218 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9219 * language.c (set_check, show_check): Remove.
9220 (_initialize_language): Use add_basic_prefix_cmd,
9221 add_show_prefix_cmd.
9222 * infcmd.c (unset_command): Remove.
9223 (_initialize_infcmd): Use add_basic_prefix_cmd.
9224 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9225 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9226 add_show_prefix_cmd.
9227 * go32-nat.c (go32_info_dos_command): Remove.
9228 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9229 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9230 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9231 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9232 (_initialize_frame): Use add_basic_prefix_cmd,
9233 add_show_prefix_cmd.
9234 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9235 (_initialize_dcache): Use add_basic_prefix_cmd,
9236 add_show_prefix_cmd.
9237 * cp-support.c (maint_cplus_command): Remove.
9238 (_initialize_cp_support): Use add_basic_prefix_cmd.
9239 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9240 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9241 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9242 add_basic_prefix_cmd, add_show_prefix_cmd.
9243 * breakpoint.c (save_command): Remove.
9244 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9245 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9246 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9247 add_show_prefix_cmd.
9248 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9249 (set_ada_command, show_ada_command): Remove.
9250 (_initialize_ada_language): Use add_basic_prefix_cmd,
9251 add_show_prefix_cmd.
9252 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9253
3557f442
KR
92542020-04-16 Kamil Rytarowski <n54@gmx.com>
9255
9256 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9257 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9258
16197208
SM
92592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9260
9261 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9262 warning messages.
9263
00ac85d3
SM
92642020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9265
9266 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9267 import table is not at beginning of .idata section.
9268
381ce63f
PA
92692020-04-16 Pedro Alves <palves@redhat.com>
9270
9271 * inferior.c (delete_inferior): Use delete operator directly
9272 instead of delete_program_space.
9273 * progspace.c (add_program_space): New, factored out from
9274 program_space::program_space.
9275 (remove_program_space): New, factored out from
9276 delete_program_space.
9277 (program_space::program_space): Remove intro comment. Rewrite.
9278 (program_space::~program_space): Remove intro comment. Call
9279 remove_program_space.
9280 (delete_program_space): Delete.
9281 * progspace.h (program_space::program_space): Make explicit. Move
9282 intro comment here, adjusted.
9283 (program_space::~program_space): Move intro comment here,
9284 adjusted.
9285 (delete_program_space): Remove.
9286
a010605f
TT
92872020-04-16 Tom Tromey <tromey@adacore.com>
9288
9289 * windows-nat.c (windows_nat::handle_access_violation): New
9290 function.
9291 * nat/windows-nat.h (handle_access_violation): Declare.
9292 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9293 windows-nat.c. Call handle_access_violation.
9294
efba5c23
TV
92952020-04-16 Tom de Vries <tdevries@suse.de>
9296
9297 PR symtab/25791
9298 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9299 CUs without psymtab.
9300
97ed802d
KB
93012020-04-16 Kevin Buettner <kevinb@redhat.com>
9302
9303 * python/python.c (do_start_initialization): Don't call
9304 PyEval_InitThreads for Python 3.9 and beyond.
9305
c7d64809
KR
93062020-04-15 Kamil Rytarowski <n54@gmx.com>
9307
9308 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9309 thread functions.
9310 (obsd_nat_target::wait): Likewise.
9311
ce127a96
TT
93122020-04-15 Tom Tromey <tromey@adacore.com>
9313
9314 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9315 (DEBUG_EXCEPT): Use debug_printf.
9316
99f1bc6a
AB
93172020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9318
9319 * completer.c (class completion_tracker::completion_hash_entry)
9320 <hash_name>: New member function.
9321 (completion_tracker::discard_completions): New callback to hash a
9322 completion_hash_entry, pass this to htab_create_alloc.
9323
a0e9b532
JT
93242016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9325
9326 * windows-nat.c (windows_make_so): Warn rather than stopping with
9327 an error if realpath() fails.
9328
06ca5dd4
KR
93292020-04-14 Kamil Rytarowski <n54@gmx.com>
9330
9331 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9332 (nbsd_nat_target::info_proc): Add do_status.
9333
194d088f
TV
93342020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9335 Tom de Vries <tdevries@suse.de>
9336
9337 PR symtab/25718
9338 * psympriv.h (struct partial_symtab::read_symtab)
9339 (struct partial_symtab::expand_psymtab)
9340 (struct partial_symtab::read_dependencies): Update comments.
9341 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9342 read_symtab for includer.
9343 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9344 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9345 (struct dwarf2_include_psymtab::m_readin): Remove.
9346 (struct dwarf2_include_psymtab::includer): New member function.
9347 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9348
c1a66c06
TV
93492020-04-14 Tom de Vries <tdevries@suse.de>
9350
9351 PR symtab/25720
9352 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9353 with NULL symbol_matcher and lookup_name.
9354 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9355 and lookup_name.
9356 * dwarf2/read.c (dw2_expand_symtabs_matching)
9357 (dw2_debug_names_expand_symtabs_matching): Same.
9358 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9359 Make lookup_name a pointer. Update comment.
9360 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9361 lookup_name being a pointer.
9362 * symfile.c (expand_symtabs_matching): Same.
9363 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9364 * linespec.c (iterate_over_all_matching_symtabs): Same.
9365
400b5eca
TT
93662020-04-13 Tom Tromey <tom@tromey.com>
9367
9368 * run-on-main-thread.c: Update include.
9369 * unittests/main-thread-selftests.c: Update include.
9370 * tui/tui-win.c: Update include.
9371 * tui/tui-io.c: Update include.
9372 * tui/tui-interp.c: Update include.
9373 * tui/tui-hooks.c: Update include.
9374 * top.h: Update include.
9375 * top.c: Update include.
9376 * ser-base.c: Update include.
9377 * remote.c: Update include.
9378 * remote-notif.c: Update include.
9379 * remote-fileio.c: Update include.
9380 * record-full.c: Update include.
9381 * record-btrace.c: Update include.
9382 * python/python.c: Update include.
9383 * posix-hdep.c: Update include.
9384 * mingw-hdep.c: Update include.
9385 * mi/mi-main.c: Update include.
9386 * mi/mi-interp.c: Update include.
9387 * main.c: Update include.
9388 * linux-nat.c: Update include.
9389 * interps.c: Update include.
9390 * infrun.c: Update include.
9391 * inf-loop.c: Update include.
9392 * event-top.c: Update include.
9393 * event-loop.c: Move to ../gdbsupport/.
9394 * event-loop.h: Move to ../gdbsupport/.
9395 * async-event.h: Update include.
9396 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9397
93b54c8e
TT
93982020-04-13 Tom Tromey <tom@tromey.com>
9399
9400 * tui/tui-win.c: Include async-event.h.
9401 * remote.c: Include async-event.h.
9402 * remote-notif.c: Include async-event.h.
9403 * record-full.c: Include async-event.h.
9404 * record-btrace.c: Include async-event.h.
9405 * infrun.c: Include async-event.h.
9406 * event-top.c: Include async-event.h.
9407 * event-loop.h: Move some declarations to async-event.h.
9408 * event-loop.c: Don't include ser-event.h or top.h. Move some
9409 code to async-event.c.
9410 * async-event.h: New file.
9411 * async-event.c: New file.
9412 * Makefile.in (COMMON_SFILES): Add async-event.c.
9413 (HFILES_NO_SRCDIR): Add async-event.h.
9414
c1cd3163
TT
94152020-04-13 Tom Tromey <tom@tromey.com>
9416
9417 * utils.c (flush_streams): New function.
9418 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9419
29f2bf4f
TT
94202020-04-13 Tom Tromey <tom@tromey.com>
9421
9422 * event-loop.c (handle_file_event): Use warning, not
9423 printf_unfiltered.
9424
98029d02
TT
94252020-04-13 Tom Tromey <tom@tromey.com>
9426
9427 * event-loop.c: Include <chrono>.
9428
06cc9596
TT
94292020-04-13 Tom Tromey <tom@tromey.com>
9430
9431 * gdb_select.h: Move to ../gdbsupport/.
9432 * event-loop.c: Update include path.
9433 * top.c: Update include path.
9434 * ser-base.c: Update include path.
9435 * ui-file.c: Update include path.
9436 * ser-tcp.c: Update include path.
9437 * guile/scm-ports.c: Update include path.
9438 * posix-hdep.c: Update include path.
9439 * ser-unix.c: Update include path.
9440 * gdb_usleep.c: Update include path.
9441 * mingw-hdep.c: Update include path.
9442 * inflow.c: Update include path.
9443 * infrun.c: Update include path.
9444 * event-top.c: Update include path.
9445
8ae8e197
TT
94462020-04-13 Tom Tromey <tom@tromey.com>
9447
9448 * configure: Rebuild.
9449 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9450
58cf28e8
TT
94512020-04-13 Tom Tromey <tom@tromey.com>
9452
9453 * event-loop.h (start_event_loop): Don't declare.
9454 * event-loop.c (start_event_loop): Move...
9455 * main.c (start_event_loop): ...here. Now static.
9456
b7f999ae
SDJ
94572020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9458
9459 * MAINTAINERS: Update my email address.
9460
1085dfd4
KR
94612020-04-12 Kamil Rytarowski <n54@gmx.com>
9462
9463 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9464 IP_ALL.
9465
49d1d1f5
KR
94662020-04-12 Kamil Rytarowski <n54@gmx.com>
9467
9468 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9469 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9470
b4848d2a
KR
94712020-04-12 Kamil Rytarowski <n54@gmx.com>
9472
9473 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9474 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9475
51c133d5
KR
94762020-04-12 Kamil Rytarowski <n54@gmx.com>
9477
9478 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9479
54b8cbd0
KR
94802020-04-11 Kamil Rytarowski <n54@gmx.com>
9481
9482 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9483 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9484 (nbsd_nat_target::info_proc): New functions.
9485 * nbsd-nat.c (kinfo_get_vmmap): New function.
9486 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9487 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9488 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9489 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9490 functions.
9491 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9492 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9493 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9494 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9495 (KINFO_VME_FLAG_GROWS_DOWN): New.
9496
cf83625d
AS
94972020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9498
9499 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9500 bit shift.
9501
0c4311ab
TT
95022020-04-10 Tom Tromey <tromey@adacore.com>
9503
9504 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9505
3e65b3e9
TT
95062020-04-10 Tom Tromey <tromey@adacore.com>
9507
9508 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9509 separate debug files.
9510
13302e95
HD
95112020-04-10 Hannes Domani <ssbssa@yahoo.de>
9512
9513 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9514 Move to...
9515 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9516 ... here.
9517 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9518 Check for STATUS_WX86_BREAKPOINT.
9519 (windows_nat_target::wait): Same.
9520
bdfc1e8a
TV
95212020-04-10 Tom de Vries <tdevries@suse.de>
9522
9523 PR cli/25808
9524 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9525
f4460aec
SM
95262020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9527
9528 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9529 (Write After Approval): Remove Tom de Vries.
9530
a25198bb
BE
95312020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9532
9533 revert partially:
9534 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9535
aac66a4c
SM
9536 * buildsym.c (record_line): Fix undefined behavior and preserve
9537 lines at eof.
a25198bb 9538
206c98a6
KR
95392020-04-09 Kamil Rytarowski <n54@gmx.com>
9540
9541 * auxv.h (svr4_auxv_parse): New.
9542 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9543 and generic_auxv_parse.
9544 (svr4_auxv_parse): Add.
9545 * obsd-tdep.c: Include "auxv.h".
9546 (obsd_auxv_parse): Remove.
9547 (obsd_init_abi): Remove comment.
9548 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9549 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9550 * nbsd-tdep.c: Include "auxv.h".
9551 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9552
71fbdbaf
TT
95532020-04-08 Tom Tromey <tromey@adacore.com>
9554
9555 * nat/windows-nat.h (last_wait_event): Don't declare.
9556 (wait_for_debug_event): Update comment.
9557 * nat/windows-nat.c (last_wait_event): Now static.
9558
2c1d95e8
TT
95592020-04-08 Tom Tromey <tromey@adacore.com>
9560
9561 * windows-nat.c (wait_for_debug_event): Move to
9562 nat/windows-nat.c.
9563 * nat/windows-nat.h (wait_for_debug_event): Declare.
9564 * nat/windows-nat.c (wait_for_debug_event): Move from
9565 windows-nat.c. No longer static.
9566
d2977bc4
TT
95672020-04-08 Tom Tromey <tromey@adacore.com>
9568
9569 * windows-nat.c (get_windows_debug_event): Use
9570 fetch_pending_stop.
9571 * nat/windows-nat.h (fetch_pending_stop): Declare.
9572 * nat/windows-nat.c (fetch_pending_stop): New function.
9573
e758e19c
TT
95742020-04-08 Tom Tromey <tromey@adacore.com>
9575
9576 * windows-nat.c (windows_continue): Use matching_pending_stop and
9577 continue_last_debug_event.
9578 * nat/windows-nat.h (matching_pending_stop)
9579 (continue_last_debug_event): Declare.
9580 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9581 (matching_pending_stop, continue_last_debug_event): New
9582 functions.
9583
8d30e395
TT
95842020-04-08 Tom Tromey <tromey@adacore.com>
9585
9586 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9587 (handle_exception_result): Move to nat/windows-nat.h.
9588 (DEBUG_EXCEPTION_SIMPLE): Remove.
9589 (windows_nat::handle_ms_vc_exception): New function.
9590 (handle_exception): Move to nat/windows-nat.c.
9591 (get_windows_debug_event): Update.
9592 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9593 nat/windows-nat.c.
9594 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9595 (handle_exception_result): Move from windows-nat.c.
9596 (handle_exception): Declare.
9597 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9598 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9599 windows-nat.c.
9600
29de418d
TT
96012020-04-08 Tom Tromey <tromey@adacore.com>
9602
9603 * windows-nat.c (exception_count, event_count): Remove.
9604 (handle_exception, get_windows_debug_event)
9605 (do_initial_windows_stuff): Update.
9606
a816ba18
TT
96072020-04-08 Tom Tromey <tromey@adacore.com>
9608
9609 * windows-nat.c (windows_nat::handle_load_dll)
9610 (windows_nat::handle_unload_dll): Rename. No longer static.
9611 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9612 Declare.
9613
a00caa12
TT
96142020-04-08 Tom Tromey <tromey@adacore.com>
9615
9616 * complaints.h (stop_whining): Declare at top-level.
9617 (complaint): Don't declare stop_whining.
9618
d41b524f
TT
96192020-04-08 Tom Tromey <tromey@adacore.com>
9620
9621 * windows-nat.c (windows_nat::handle_output_debug_string):
9622 Rename. No longer static.
9623 * nat/windows-nat.h (handle_output_debug_string): Declare.
9624
3c76026d
TT
96252020-04-08 Tom Tromey <tromey@adacore.com>
9626
9627 * windows-nat.c (current_process_handle, current_process_id)
9628 (main_thread_id, last_sig, current_event, last_wait_event)
9629 (current_windows_thread, desired_stop_thread_id, pending_stops)
9630 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9631 (display_selectors, fake_create_process)
9632 (get_windows_debug_event): Update.
9633 * nat/windows-nat.h (current_process_handle, current_process_id)
9634 (main_thread_id, last_sig, current_event, last_wait_event)
9635 (current_windows_thread, desired_stop_thread_id, pending_stops)
9636 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9637 * nat/windows-nat.c (current_process_handle, current_process_id)
9638 (main_thread_id, last_sig, current_event, last_wait_event)
9639 (current_windows_thread, desired_stop_thread_id, pending_stops)
9640 (siginfo_er): New globals. Move from windows-nat.c.
9641
9d8679cc
TT
96422020-04-08 Tom Tromey <tromey@adacore.com>
9643
9644 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9645 (handle_load_dll): Update.
9646 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9647
28688adf
TT
96482020-04-08 Tom Tromey <tromey@adacore.com>
9649
9650 * windows-nat.c (enum thread_disposition_type): Move to
9651 nat/windows-nat.h.
9652 (windows_nat::thread_rec): Rename from thread_rec. No longer
9653 static.
9654 (windows_add_thread, windows_nat_target::fetch_registers)
9655 (windows_nat_target::store_registers, handle_exception)
9656 (windows_nat_target::resume, get_windows_debug_event)
9657 (windows_nat_target::get_tib_address)
9658 (windows_nat_target::thread_name)
9659 (windows_nat_target::thread_alive): Update.
9660 * nat/windows-nat.h (enum thread_disposition_type): Move from
9661 windows-nat.c.
9662 (thread_rec): Declare.
9663
4834dad0
TT
96642020-04-08 Tom Tromey <tromey@adacore.com>
9665
9666 * windows-nat.c: Add "using namespace".
9667 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9668 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9669
65bafd5b
TT
96702020-04-08 Tom Tromey <tromey@adacore.com>
9671
9672 * nat/windows-nat.h (struct windows_thread_info): Declare
9673 destructor.
9674 * nat/windows-nat.c (~windows_thread_info): New.
9675
0a4afda3
TT
96762020-04-08 Tom Tromey <tromey@adacore.com>
9677
9678 PR gdb/22992
9679 * windows-nat.c (current_event): Update comment.
9680 (last_wait_event, desired_stop_thread_id): New globals.
9681 (struct pending_stop): New.
9682 (pending_stops): New global.
9683 (windows_nat_target) <stopped_by_sw_breakpoint>
9684 <supports_stopped_by_sw_breakpoint>: New methods.
9685 (windows_fetch_one_register): Add assertions. Adjust PC.
9686 (windows_continue): Handle pending stops. Suspend other threads
9687 when stepping. Use last_wait_event
9688 (wait_for_debug_event): New function.
9689 (get_windows_debug_event): Use wait_for_debug_event. Handle
9690 pending stops. Queue spurious stops.
9691 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9692 (windows_nat_target::kill): Use wait_for_debug_event.
9693 * nat/windows-nat.h (struct windows_thread_info)
9694 <stopped_at_software_breakpoint>: New field.
9695 * nat/windows-nat.c (windows_thread_info::resume): Clear
9696 stopped_at_software_breakpoint.
9697
8e61ebec
TT
96982020-04-08 Tom Tromey <tromey@adacore.com>
9699
9700 * windows-nat.c (enum thread_disposition_type): New.
9701 (thread_rec): Replace "get_context" parameter with "disposition";
9702 change type.
9703 (windows_add_thread, windows_nat_target::fetch_registers)
9704 (windows_nat_target::store_registers, handle_exception)
9705 (windows_nat_target::resume, get_windows_debug_event)
9706 (windows_nat_target::get_tib_address)
9707 (windows_nat_target::thread_name)
9708 (windows_nat_target::thread_alive): Update.
9709
98a03287
TT
97102020-04-08 Tom Tromey <tromey@adacore.com>
9711
9712 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9713 (windows_continue): Use windows_continue::resume.
9714 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9715 resume>: Declare new methods.
9716 * nat/windows-nat.c: New file.
9717 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9718
7c7411bc
TT
97192020-04-08 Tom Tromey <tromey@adacore.com>
9720
9721 * windows-nat.c (windows_add_thread, windows_delete_thread)
9722 (windows_nat_target::fetch_registers)
9723 (windows_nat_target::store_registers, fake_create_process)
9724 (windows_nat_target::resume, windows_nat_target::resume)
9725 (get_windows_debug_event, windows_nat_target::wait)
9726 (windows_nat_target::pid_to_str)
9727 (windows_nat_target::get_tib_address)
9728 (windows_nat_target::get_ada_task_ptid)
9729 (windows_nat_target::thread_name)
9730 (windows_nat_target::thread_alive): Use lwp, not tid.
9731
2950fdf7
TT
97322020-04-08 Tom Tromey <tromey@adacore.com>
9733
9734 * windows-nat.c (handle_exception)
9735 (windows_nat_target::thread_name): Update.
9736 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9737 <name>: Now unique_xmalloc_ptr.
9738
62fe396b
TT
97392020-04-08 Tom Tromey <tromey@adacore.com>
9740
9741 * windows-nat.c (thread_rec)
9742 (windows_nat_target::fetch_registers): Update.
9743 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9744 Update comment.
9745 <debug_registers_changed, reload_context>: Now bool.
9746
e9534bd2
TT
97472020-04-08 Tom Tromey <tromey@adacore.com>
9748
9749 * windows-nat.c (windows_add_thread): Use new.
9750 (windows_init_thread_list, windows_delete_thread): Use delete.
9751 (get_windows_debug_event): Update.
9752 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9753 destructor, and initializers.
9754
ae1f8880
TT
97552020-04-08 Tom Tromey <tromey@adacore.com>
9756
9757 * windows-nat.c (struct windows_thread_info): Remove.
9758 * nat/windows-nat.h: New file.
9759
55a1e039
TT
97602020-04-08 Tom Tromey <tromey@adacore.com>
9761
9762 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9763 (thread_rec, windows_add_thread, windows_delete_thread)
9764 (windows_continue): Update.
9765
93366324
TT
97662020-04-08 Tom Tromey <tromey@adacore.com>
9767
9768 * windows-nat.c (struct windows_thread_info): Remove typedef.
9769 (thread_head): Remove.
9770 (thread_list): New global.
9771 (thread_rec, windows_add_thread, windows_init_thread_list)
9772 (windows_delete_thread, windows_continue): Update.
9773
0f2265e2
SM
97742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9775
9776 * windows-tdep.h (windows_init_abi): Add comment.
9777 (cygwin_init_abi): New declaration.
9778 * windows-tdep.c: Split signal enumeration in two, one for
9779 Windows and one for Cygwin.
9780 (windows_gdb_signal_to_target): Only deal with signal of the
9781 Windows OS ABI.
9782 (cygwin_gdb_signal_to_target): New function.
9783 (windows_init_abi): Rename to windows_init_abi_common, don't set
9784 gdb_signal_to_target gdbarch method. Add new new function with
9785 this name.
9786 (cygwin_init_abi): New function.
9787 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9788 comment. Don't call windows_init_abi.
9789 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9790 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9791 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9792 i386_windows_init_abi_common, don't call windows_init_abi. Add
9793 a new function of this name.
9794 (i386_cygwin_init_abi): New function.
9795 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9796 OS ABI Cygwin.
9797
3810f182
SM
97982020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9799
9800 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9801 parameter.c.
9802 (dwarf2_read_gdb_index): Update.
9803
063f8e80
KR
98042020-04-07 Kamil Rytarowski <n54@gmx.com>
9805
9806 * nbsd-tdep.c: Include "objfiles.h".
9807 (nbsd_skip_solib_resolver): New.
9808 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9809
85a9510c 98102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9811
9812 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9813 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9814 with DW_LLE_base_addressx are being emitted in DWARFv5.
9815 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9816 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9817 unsigned integer.
9818
9fc3eaae 98192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9820
9821 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9822 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9823 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9824 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9825 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9826 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9827 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9828
9829
41144253 98302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9831
9832 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9833 (read_loclist_index): New function definition.
9834 (lookup_loclist_base): New function definition.
9835 (read_loclist_header): New function definition.
9836 (dwarf2_cu): Add loclist_base and loclist_header field.
9837 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9838 (read_full_die_1): Read the value of DW_AT_loclists_base.
9839 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9840 (read_attribute_value): Handle DW_FORM_loclistx.
9841 (skip_one_die): Handle DW_FORM_loclistx.
9842 (loclist_header): New structure declaration.
9843 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9844
9f4e76a4
SM
98452020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9846
9847 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9848 constructor. Remove `addr` parameter from other constructor and
9849 add `per_cu` parameter.
9850 * dwarf2/read.c (create_partial_symtab): Update.
9851
25c11aca
TV
98522020-04-07 Tom de Vries <tdevries@suse.de>
9853
9854 PR symtab/25796
9855 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9856 (partial_die_info::fixup): Inherit has_const_value.
9857
5707e24b
TV
98582020-04-07 Tom de Vries <tdevries@suse.de>
9859
9860 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9861 symbols without address.
9862
05f00e22
KR
98632020-04-06 Kamil Rytarowski <n54@gmx.com>
9864
9865 * nbsd-nat.h (struct thread_info): Add forward declaration.
9866 (nbsd_nat_target::thread_alive): Add.
9867 (nbsd_nat_target::thread_name): Likewise.
9868 (nbsd_nat_target::update_thread_list): Likewise.
9869 (update_thread_list::post_attach): Likewise.
9870 (post_attach::pid_to_str): Likewise.
9871 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9872 (nbsd_thread_lister): Add.
9873 (nbsd_nat_target::thread_alive): Likewise.
9874 (nbsd_nat_target::thread_name): Likewise.
9875 (nbsd_add_threads): Likewise.
9876 (update_thread_list::post_attach): Likewise.
9877 (nbsd_nat_target::update_thread_list): Likewise.
9878 (post_attach::pid_to_str): Likewise.
9879
6ee448cc
TT
98802020-04-06 Tom Tromey <tromey@adacore.com>
9881
9882 * ada-valprint.c (print_variant_part): Extract the variant field.
9883 (print_field_values): Use the field as the outer value when
9884 recursing.
9885
dea34e8c
TT
98862020-04-06 Tom Tromey <tromey@adacore.com>
9887
9888 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9889 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9890 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9891 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9892 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9893
93689ce9
TT
98942020-04-06 Tom Tromey <tromey@adacore.com>
9895
9896 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9897 TYPE_CODE_ERROR.
9898
79743962
KR
98992020-04-06 Kamil Rytarowski <n54@gmx.com>
9900
9901 * nbsd-tdep.c: Include "gdbarch.h".
9902 Define enum with NetBSD signal numbers.
9903 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9904 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9905 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9906 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9907 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9908 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9909 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9910 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9911 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9912 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9913 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9914 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9915
9e7c9a03
HD
99162020-04-03 Hannes Domani <ssbssa@yahoo.de>
9917
9918 PR gdb/25325
9919 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9920
d9e49b61
TT
99212020-04-03 Tom Tromey <tromey@adacore.com>
9922
9923 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9924 Read constant block.
9925
e0fc5c3f
SM
99262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9927
9928 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9929 (gdb_bfd_get_full_section_contents): New declaration.
9930 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9931 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9932 gdb_bfd_get_full_section_contents.
9933
e2ff18a0
SM
99342020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9935
9936 * exec.c (build_section_table): Replace internal_error with
9937 gdb_assert.
9938 (section_table_xfer_memory_partial): Likewise.
9939 * mdebugread.c (parse_partial_symbols): Likewise.
9940 * psymtab.c (lookup_partial_symbol): Likewise.
9941 * utils.c (wrap_here): Likewise.
9942
0830d301
TT
99432020-04-02 Tom Tromey <tromey@adacore.com>
9944
9945 * f-lang.c (build_fortran_types): Use arch_type to initialize
9946 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9947
e7da7f8f
TT
99482020-04-02 Tom Tromey <tromey@adacore.com>
9949
9950 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9951 of attributes.
9952
c90d28ac
AB
99532020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9954 Bernd Edlinger <bernd.edlinger@hotmail.de>
9955 Tom Tromey <tromey@adacore.com>
9956
9957 * buildsym.c (buildsym_compunit::record_line): Remove
9958 deduplication code.
9959
1aa98955
TV
99602020-04-02 Tom de Vries <tdevries@suse.de>
9961
9962 PR ada/24671
9963 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9964
d3214198
TV
99652020-04-02 Tom de Vries <tdevries@suse.de>
9966
9967 * dwarf2/read.c (dwarf2_gdb_index_functions,
9968 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9969 NULL.
9970 * psymtab.c (psym_lookup_global_symbol_language): New function.
9971 (psym_functions): Init psym_lookup_global_symbol_language with
9972 psym_lookup_global_symbol_language.
9973 * symfile-debug.c (debug_sym_quick_functions): Init
9974 lookup_global_symbol_language with NULL.
9975 * symfile.c (set_initial_language): Remove fixme comment.
9976 * symfile.h (struct quick_symbol_functions): Add
9977 lookup_global_symbol_language.
9978 * symtab.c (find_quick_global_symbol_language): New function.
9979 (find_main_name): Use find_quick_global_symbol_language.
9980
2836752f
SM
99812020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9982
9983 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9984
64dc2d4b
BE
99852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9986
9987 * buildsym.c (record_line): Fix undefined behavior and preserve
9988 lines at eof.
9989
bbe3dc41
BE
99902020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9991
9992 * buildsym.c (record_line): Fix the resizing condition.
9993
6b4a335b
TT
99942020-04-01 Tom Tromey <tom@tromey.com>
9995
9996 * value.h (value_literal_complex): Add comment.
9997 * valops.c (value_literal_complex): Refer to value.h.
9998
3638a098
TT
99992020-04-01 Tom Tromey <tom@tromey.com>
10000
10001 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10002 (scalar_type): New rule, from typebase.
10003 (typebase): Use scalar_type. Recognize complex types.
10004 (field_name): Handle FLOAT_KEYWORD.
10005 (ident_tokens): Add _Complex and __complex__.
10006
c34e8714
TT
100072020-04-01 Tom Tromey <tom@tromey.com>
10008
10009 PR exp/25299:
10010 * valarith.c (promotion_type, complex_binop): New functions.
10011 (scalar_binop): Handle complex numbers. Use promotion_type.
10012 (value_pos, value_neg, value_complement): Handle complex numbers.
10013
fa649bb7
TT
100142020-04-01 Tom Tromey <tom@tromey.com>
10015
10016 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10017 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10018 (parse_number): Handle complex numbers.
10019
981c08ce
TT
100202020-04-01 Tom Tromey <tom@tromey.com>
10021
10022 * c-valprint.c (c_decorations): Change complex suffix to "i".
10023
4c99290d
TT
100242020-04-01 Tom Tromey <tom@tromey.com>
10025
10026 * valprint.c (generic_value_print_complex): Use accessors.
10027 * value.h (value_real_part, value_imaginary_part): Declare.
10028 * valops.c (value_real_part, value_imaginary_part): New
10029 functions.
10030 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10031
5b930b45
TT
100322020-04-01 Tom Tromey <tom@tromey.com>
10033
10034 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10035 (read_range_type): Update.
10036 * mdebugread.c (basic_type): Update.
10037 * go-lang.c (build_go_types): Use init_complex_type.
10038 * gdbtypes.h (struct main_type) <complex_type>: New member.
10039 (init_complex_type): Update.
10040 (arch_complex_type): Don't declare.
10041 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10042 Make name if none given. Use alloc_type_copy. Look for cached
10043 complex type.
10044 (arch_complex_type): Remove.
10045 (gdbtypes_post_init): Use init_complex_type.
10046 * f-lang.c (build_fortran_types): Use init_complex_type.
10047 * dwarf2/read.c (read_base_type): Update.
10048 * d-lang.c (build_d_types): Use init_complex_type.
10049 * ctfread.c (read_base_type): Update.
10050
53cccef1
TBA
100512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10052
10053 * infrun.c (stop_all_threads): Update assertion, plus when
10054 stopping threads, take into account that we might be trying
10055 to stop an all-stop target.
10056 (stop_waiting): Call 'stop_all_threads' if there exists a
10057 non-stop target.
10058
a0714d30
TBA
100592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10060
10061 * target.h (exists_non_stop_target): New function declaration.
10062 * target.c (exists_non_stop_target): New function.
10063
60e22c1e
HD
100642020-04-01 Hannes Domani <ssbssa@yahoo.de>
10065
10066 PR gdb/24789
10067 * eval.c (is_integral_or_integral_reference): New function.
10068 (evaluate_subexp_standard): Allow integer references in
10069 pointer arithmetic.
10070
e139a727
TBA
100712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10072
10073 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10074 check for no ptid in the stop reply when the target is non-stop.
10075
e0802d59
TT
100762020-04-01 Tom Tromey <tromey@adacore.com>
10077
10078 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10079 "name" parameter to rvalue reference. Initialize m_name_holder.
10080 <lookup_name_info>: New overloads.
10081 <name>: Return gdb::string_view.
10082 <c_str>: New method.
10083 <make_ignore_params>: Update.
10084 <search_name_hash>: Update.
10085 <language_lookup_name>: Return const char *.
10086 <m_name>: Change type.
10087 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10088 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10089 (lookup_name_info::match_any): Update.
10090 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10091 Update.
10092 * minsyms.c (linkage_name_str): Update.
10093 * language.c (default_symbol_name_matcher): Update.
10094 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10095 Update.
10096 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10097 (ada_lookup_name_info::ada_lookup_name_info): Update.
10098 (literal_symbol_name_matcher): Update.
10099
8c072cb6
TT
101002020-04-01 Tom Tromey <tromey@adacore.com>
10101
10102 * psymtab.c (psymtab_search_name): Remove function.
10103 (psym_lookup_symbol): Create search name and lookup name here.
10104 (lookup_partial_symbol): Remove "name" parameter; add
10105 lookup_name.
10106 (psym_expand_symtabs_for_function): Update.
10107
6f29a534
TT
101082020-03-31 Joel Jones <joelkevinjones@gmail.com>
10109
10110 PR tui/25597:
10111 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10112
af62665e
TT
101132020-03-31 Tom Tromey <tromey@adacore.com>
10114
10115 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10116 memcpy.
10117
d1a89da5
NC
101182020-03-30 Nelson Chu <nelson.chu@sifive.com>
10119
10120 * features/riscv/32bit-csr.xml: Regenerated.
10121 * features/riscv/64bit-csr.xml: Regenerated.
10122
d8af9068
TT
101232020-03-30 Tom Tromey <tromey@adacore.com>
10124
10125 * ada-valprint.c (print_variant_part): Update.
10126 * ada-lang.h (ada_which_variant_applies): Update.
10127 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10128 outer_valaddr parameters; replace with "outer" value parameter.
10129 (to_fixed_variant_branch_type): Update.
10130
227c0bf4
PFC
101312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10132
10133 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10134 <list>. Remove inclusion of observable.h.
10135 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10136 (struct arch_lwp_info): New struct.
10137 (class ppc_linux_dreg_interface): New class.
10138 (struct ppc_linux_process_info): New struct.
10139 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10140 <low_new_clone, low_forget_process, low_prepare_to_resume>
10141 <copy_thread_dreg_state, mark_thread_stale>
10142 <mark_debug_registers_changed, register_hw_breakpoint>
10143 <clear_hw_breakpoint, register_wp, clear_wp>
10144 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10145 <num_memory_accesses, get_trigger_type>
10146 <create_watchpoint_request, hwdebug_point_cmp>
10147 <init_arch_lwp_info, get_arch_lwp_info>
10148 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10149 methods.
10150 <struct ptid_hash>: New inner struct.
10151 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10152 members.
10153 (saved_dabr_value, hwdebug_info, max_slots_number)
10154 (struct hw_break_tuple, struct thread_points, ppc_threads)
10155 (have_ptrace_hwdebug_interface)
10156 (hwdebug_find_thread_points_by_tid)
10157 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10158 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10159 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10160 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10161 use m_dreg_interface.
10162 (hwdebug_point_cmp): Change to...
10163 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10164 reference arguments instead of pointers.
10165 (ppc_linux_nat_target::ranged_break_num_registers): Use
10166 m_dreg_interface.
10167 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10168 m_dreg_interface. Call register_hw_breakpoint.
10169 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10170 m_dreg_interface. Call clear_hw_breakpoint.
10171 (get_trigger_type): Change to...
10172 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10173 comment.
10174 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10175 use m_dreg_interface. Call register_hw_breakpoint.
10176 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10177 use m_dreg_interface. Call clear_hw_breakpoint.
10178 (can_use_watchpoint_cond_accel): Change to...
10179 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10180 method. Update comment, use m_dreg_interface and
10181 m_process_info.
10182 (calculate_dvc): Change to...
10183 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10184 m_dreg_interface.
10185 (num_memory_accesses): Change to...
10186 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10187 (check_condition): Change to...
10188 (ppc_linux_nat_target::check_condition): ...this method.
10189 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10190 comment, use m_dreg_interface.
10191 (create_watchpoint_request): Change to...
10192 (ppc_linux_nat_target::create_watchpoint_request): ...this
10193 method. Use m_dreg_interface.
10194 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10195 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10196 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10197 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10198 (ppc_linux_nat_target::low_forget_process)
10199 (ppc_linux_nat_target::low_new_fork)
10200 (ppc_linux_nat_target::low_new_clone)
10201 (ppc_linux_nat_target::low_delete_thread)
10202 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10203 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10204 only call mark_thread_stale.
10205 (ppc_linux_thread_exit): Remove.
10206 (ppc_linux_nat_target::stopped_data_address): Change to...
10207 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10208 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10209 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10210 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10211 comment. Call low_stopped_data_address.
10212 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10213 m_dreg_interface.
10214 (ppc_linux_nat_target::masked_watch_num_registers): Use
10215 m_dreg_interface.
10216 (ppc_linux_nat_target::copy_thread_dreg_state)
10217 (ppc_linux_nat_target::mark_thread_stale)
10218 (ppc_linux_nat_target::mark_debug_registers_changed)
10219 (ppc_linux_nat_target::register_hw_breakpoint)
10220 (ppc_linux_nat_target::clear_hw_breakpoint)
10221 (ppc_linux_nat_target::register_wp)
10222 (ppc_linux_nat_target::clear_wp)
10223 (ppc_linux_nat_target::init_arch_lwp_info)
10224 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10225 (_initialize_ppc_linux_nat): Remove observer callback.
10226
4db10d8f
PFC
102272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10228
10229 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10230 (ppc_linux_nat_target::auxv_parse)
10231 (ppc_linux_nat_target::read_description)
10232 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10233 Move up.
10234
1310c1b0
PFC
102352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10236
10237 * linux-nat.h (low_new_clone): New method.
10238 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10239
69b037c3
SM
102402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10241
10242 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10243 (dbx_expand_psymtab): ... this.
10244 (start_psymtab): Update.
10245 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10246 (mdebug_expand_psymtab): ... this.
10247 (parse_partial_symbols): Update.
10248 (new_psymtab): Update.
10249 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10250 (xcoff_expand_psymtab): ... this.
10251 (xcoff_start_psymtab): Update.
10252
48993951
SM
102532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10254
10255 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10256 <expand_dependencies>: ... this.
10257 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10258 (partial_symtab::expand_dependencies): ... this.
10259 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10260 Update.
10261 (dwarf2_psymtab::expand_psymtab): Update.
10262 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10263 * mdebugread.c (psymtab_to_symtab_1): Update.
10264 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10265
3ad83046
SM
102662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10267
10268 * psympriv.h (discard_psymtab): Remove.
10269 * dbxread.c (dbx_end_psymtab): Update.
10270 * xcoffread.c (xcoff_end_psymtab): Update.
10271
4d1b9ab6
TT
102722020-03-28 Tom Tromey <tom@tromey.com>
10273
10274 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10275 comment.
10276
f1749218
TT
102772020-03-28 Tom Tromey <tom@tromey.com>
10278
10279 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10280
ebea7626
HD
102812020-03-27 Hannes Domani <ssbssa@yahoo.de>
10282
10283 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10284
a879b4d5
JB
102852020-03-26 John Baldwin <jhb@FreeBSD.org>
10286
10287 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10288
0826b30a
TT
102892020-03-26 Tom Tromey <tom@tromey.com>
10290
10291 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10292 (mark_common_block_symbol_computed, read_tag_string_type)
10293 (attr_to_dynamic_prop, read_subrange_type): Update.
10294 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10295 to be methods on struct attribute.
10296 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10297 (read_call_site_scope, partial_die_info::read)
10298 (partial_die_info::read, lookup_die_type, follow_die_ref):
10299 Update.
10300 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10301 from dwarf2_get_ref_die_offset.
10302 (attribute::constant_value): New method, from
10303 dwarf2_get_attr_constant_value.
10304 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10305 Declare method.
10306 <constant_value>: New method.
10307
2b2558bf
TT
103082020-03-26 Tom Tromey <tom@tromey.com>
10309
10310 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10311 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10312 (dwarf_type_encoding_name): Move to stringify.c.
10313 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10314 * dwarf2/stringify.c: New file.
10315 * dwarf2/stringify.h: New file.
10316
eeb64781
TT
103172020-03-26 Tom Tromey <tom@tromey.com>
10318
10319 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10320 Rewrite.
10321
a39fdb41
TT
103222020-03-26 Tom Tromey <tom@tromey.com>
10323
10324 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10325 methods.
10326 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10327 (lookup_ranges_base): Likewise.
10328 (read_cutu_die_from_dwo, read_full_die_1): Update.
10329
436c571c
TT
103302020-03-26 Tom Tromey <tom@tromey.com>
10331
10332 * dwarf2/read.c (read_import_statement, read_file_scope)
10333 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10334 (read_lexical_block_scope, read_call_site_scope)
10335 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10336 (handle_struct_member_die, process_structure_scope)
10337 (update_enumeration_type_from_children)
10338 (process_enumeration_scope, read_array_type, read_common_block)
10339 (read_namespace, read_module, read_subroutine_type): Update.
10340 (sibling_die): Remove.
10341
052c8bb8
TT
103422020-03-26 Tom Tromey <tom@tromey.com>
10343
10344 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10345 (build_type_psymtabs_reader, read_structure_type)
10346 (read_enumeration_type, read_full_die_1): Update.
10347 (dwarf2_attr_no_follow): Move to die.h.
10348 * dwarf2/die.h (struct die_info) <attr>: New method.
10349
2b24b6e4
TT
103502020-03-26 Tom Tromey <tom@tromey.com>
10351
10352 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10353 <base_address>: Now an optional.
10354 (dwarf2_find_base_address, dwarf2_rnglists_process)
10355 (dwarf2_ranges_process, fill_in_loclist_baton)
10356 (dwarf2_symbol_mark_computed): Update.
10357
c2d50fd0
TT
103582020-03-26 Tom Tromey <tom@tromey.com>
10359
10360 * dwarf2/read.c (struct die_info): Move to die.h.
10361 * dwarf2/die.h: New file.
10362
0df7ad3a
TT
103632020-03-26 Tom Tromey <tom@tromey.com>
10364
10365 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10366 * dwarf2/read.c
10367 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10368 Move to line-header.c.
10369 (read_checked_initial_length_and_offset, read_formatted_entries):
10370 Likewise.
10371 (dwarf_decode_line_header): Split into two.
10372 * dwarf2/line-header.c
10373 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10374 Move from read.c.
10375 (read_checked_initial_length_and_offset, read_formatted_entries):
10376 Likewise.
10377 (dwarf_decode_line_header): New function, split from read.c.
10378
86c0bb4c
TT
103792020-03-26 Tom Tromey <tom@tromey.com>
10380
10381 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10382 Declare method.
10383 * dwarf2/read.c (read_attribute_value): Update.
10384 (dwarf2_per_objfile::read_line_string): Rename from
10385 read_indirect_line_string.
10386 (read_formatted_entries): Update.
10387
2ef46c2f
TT
103882020-03-26 Tom Tromey <tom@tromey.com>
10389
10390 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10391 variable.
10392
4f9c1eda
TT
103932020-03-26 Tom Tromey <tom@tromey.com>
10394
10395 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10396 const.
10397 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10398 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10399 parameter const.
10400
5a0e026f
TT
104012020-03-26 Tom Tromey <tom@tromey.com>
10402
10403 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10404 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10405 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10406 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10407
8844c11b
TT
104082020-03-26 Tom Tromey <tom@tromey.com>
10409
10410 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10411 file_names_size, file_full_name, file_file_name>: Use const.
10412 <file_name_at, file_names>: Add const overload.
10413 * dwarf2/line-header.c (line_header::file_file_name)
10414 (line_header::file_full_name): Update.
10415
c90ec28a
TT
104162020-03-26 Tom Tromey <tom@tromey.com>
10417
10418 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10419 (macro_start_file, consume_improper_spaces)
10420 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10421 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10422 (dwarf_decode_macros): Move to macro.c.
10423 * dwarf2/macro.c: New file.
10424 * dwarf2/macro.h: New file.
10425 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10426
4f44ae6c
TT
104272020-03-26 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10430 method.
10431 * dwarf2/section.c: New method. From
10432 read_indirect_string_at_offset_from.
10433 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10434 (read_indirect_string_at_offset_from): Move to section.c.
10435 (read_indirect_string_at_offset): Rewrite.
10436 (read_indirect_line_string_at_offset): Remove.
10437 (read_indirect_string, read_indirect_line_string)
10438 (dwarf_decode_macro_bytes): Update.
10439
a0194fa8
TT
104402020-03-26 Tom Tromey <tom@tromey.com>
10441
10442 * dwarf2/section.h (struct dwarf2_section_info)
10443 <overload_complaint>: Declare.
10444 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10445 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10446 Rename from dwarf2_section_buffer_overflow_complaint.
10447 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10448 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10449
3d27bbdb
TT
104502020-03-26 Tom Tromey <tom@tromey.com>
10451
10452 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10453 Declare.
10454 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10455 Move from read.c.
10456 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10457 to section.c.
10458
9eac9650
TT
104592020-03-26 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10462
bf80d710
TT
104632020-03-26 Tom Tromey <tom@tromey.com>
10464
10465 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10466 "builder".
10467 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10468 parameter.
10469 (dwarf_decode_macros): Update.
10470
0314b390
TT
104712020-03-26 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2/read.c (read_attribute_value): Update.
10474 (read_indirect_string_from_dwz): Move to dwz.c; change into
10475 method.
10476 (dwarf_decode_macro_bytes): Update.
10477 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10478 * dwarf2/dwz.c: New file.
10479 * Makefile.in (COMMON_SFILES): Add dwz.c.
10480
9fda78b6
TT
104812020-03-26 Tom Tromey <tom@tromey.com>
10482
10483 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10484 * dwarf2/read.c: Add include.
10485 * dwarf2/index-write.c: Add include.
10486 * dwarf2/index-cache.c: Add include.
10487 * dwarf2/dwz.h: New file.
10488
33aa3c10
TT
104892020-03-25 Tom Tromey <tom@tromey.com>
10490
10491 * compile/compile-object-load.c (get_out_value_type): Mention
10492 correct symbol name in error message.
10493
d503b685
HD
104942020-03-25 Hannes Domani <ssbssa@yahoo.de>
10495
10496 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10497
7b1eff95
TV
104982020-03-25 Tom de Vries <tdevries@suse.de>
10499
10500 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10501 * symmisc.c (dump_symtab_1): Print user and includes fields.
10502 (maintenance_info_symtabs): Same.
10503
dd895392
AB
105042020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10505
10506 PR gdb/25534
10507 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10508 (riscv_regcache_cooked_write): New function.
10509 (riscv_push_dummy_call): Use new function.
10510 (riscv_return_value): Likewise.
10511
5ab2fbf1
SM
105122020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10513
10514 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10515 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10516 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10517 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10518 * infrun.c (follow_fork): Likewise.
10519 (follow_fork_inferior): Likewise.
10520 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10521 * linux-nat.h (class linux_nat_target): Likewise.
10522 * remote.c (class remote_target) <follow_fork>: Likewise.
10523 (remote_target::follow_fork): Likewise.
10524 * target-delegates.c: Re-generate.
10525 * target.c (default_follow_fork): Likewise.
10526 (target_follow_fork): Likewise.
10527 * target.h (struct target_ops) <follow_fork>: Likewise.
10528 (target_follow_fork): Likewise.
10529
a64fafb5
TV
105302020-03-24 Tom de Vries <tdevries@suse.de>
10531
10532 * psymtab.c (maintenance_info_psymtabs): Print user field.
10533
fe26d3a3
TT
105342020-03-20 Tom Tromey <tromey@adacore.com>
10535
10536 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10537 const.
10538 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10539 const.
10540
c884cc46
SM
105412020-03-20 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * ptrace.m4: Don't check for ptrace declaration.
10544 * config.in: Re-generate.
10545 * configure: Re-generate.
10546 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10547 not defined.
10548
1ff700c2
KR
105492020-03-20 Kamil Rytarowski <n54@gmx.com>
10550
10551 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10552 `PTRACE_TYPE_RET'.
10553 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10554 * sparc-nat.c (gdb_ptrace): Likewise.
10555 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10556
f7d4f0b1
TT
105572020-03-20 Tom Tromey <tromey@adacore.com>
10558
10559 * c-exp.y (lex_one_token): Fix assert.
10560
f67210ff
TT
105612020-03-20 Tom Tromey <tromey@adacore.com>
10562
10563 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10564 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10565 strncpy call.
10566
1773be9e
TT
105672020-03-20 Tom Tromey <tromey@adacore.com>
10568
10569 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10570
70304be9
TT
105712020-03-20 Tom Tromey <tromey@adacore.com>
10572
10573 * ada-valprint.c (print_variant_part): Remove parameters; switch
10574 to value-based API.
10575 (print_field_values): Likewise.
10576 (ada_val_print_struct_union): Likewise.
10577 (ada_value_print_1): Update.
10578
9faa006d
KR
105792020-03-20 Kamil Rytarowski <n54@gmx.com>
10580
10581 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10582 nbsd_nat_target instead of inf_ptrace_target.
10583 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10584 nbsd_nat_target.
10585
4a90f062
KR
105862020-03-20 Kamil Rytarowski <n54@gmx.com>
10587
10588 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10589 it to the ptrace call.
10590 * (store_registers): Likewise.
10591
105922020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10593
10594 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10595 it to the ptrace call.
10596 * (store_registers): Likewise.
10597
2d07da27
LM
105982020-03-19 Luis Machado <luis.machado@linaro.org>
10599
10600 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10601 valid, fetch vg value from ptrace.
10602
f09db380
KR
106032020-03-19 Kamil Rytarowski <n54@gmx.com>
10604 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10605 * inf-ptrace.c: Likewise.
10606 * (gdb_ptrace): Add.
10607 * (inf_ptrace_target::resume): Update.
10608 * (inf_ptrace_target::xfer_partial): Likewise.
10609 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10610 * (inf_ptrace_peek_poke): Update.
10611
fcc7376e
KR
106122020-03-19 Kamil Rytarowski <n54@gmx.com>
10613
10614 * x86-bsd-nat.c (gdb_ptrace): New.
10615 * (x86bsd_dr_set): Add new argument `ptid'.
10616 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10617 x86bsd_dr_set_addr): Update.
10618
cada5fc9
AB
106192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10620
10621 * remote.c (remote_target::process_stop_reply): Handle events for
10622 all threads differently.
10623
19a2740f
AB
106242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10625
10626 * completer.c (completion_tracker::remove_completion): Define new
10627 function.
10628 * completer.h (completion_tracker::remove_completion): Declare new
10629 function.
10630 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10631 when adding a C++ function symbol.
10632
724fd9ba
AB
106332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * completer.c (completion_tracker::completion_hash_entry): Define
10636 new class.
10637 (advance_to_filename_complete_word_point): Call
10638 recompute_lowest_common_denominator.
10639 (completion_tracker::completion_tracker): Call discard_completions
10640 to setup the hash table.
10641 (completion_tracker::discard_completions): Allow for being called
10642 from the constructor, pass new equal function, and element deleter
10643 when constructing the hash table. Initialise new class member
10644 variables.
10645 (completion_tracker::maybe_add_completion): Remove use of
10646 m_entries_vec, and store more information into m_entries_hash.
10647 (completion_tracker::recompute_lcd_visitor): New function, most
10648 content taken from...
10649 (completion_tracker::recompute_lowest_common_denominator):
10650 ...here, this now just visits each item in the hash calling the
10651 above visitor.
10652 (completion_tracker::build_completion_result): Remove use of
10653 m_entries_vec, call recompute_lowest_common_denominator.
10654 * completer.h (completion_tracker::have_completions): Remove use
10655 of m_entries_vec.
10656 (completion_tracker::completion_hash_entry): Declare new class.
10657 (completion_tracker::recompute_lowest_common_denominator): Change
10658 function signature.
10659 (completion_tracker::recompute_lcd_visitor): Declare new function.
10660 (completion_tracker::m_entries_vec): Delete.
10661 (completion_tracker::m_entries_hash): Initialize to NULL.
10662 (completion_tracker::m_lowest_common_denominator_valid): New
10663 member variable.
10664 (completion_tracker::m_lowest_common_denominator_max_length): New
10665 member variable.
10666
5a82b8a1
KR
106672020-03-17 Kamil Rytarowski <n54@gmx.com>
10668
10669 * regformats/regdef.h: Put reg in gdb namespace.
10670
fb516a69
KR
106712020-03-17 Kamil Rytarowski <n54@gmx.com>
10672
10673 * i386-bsd-nat.c (gdb_ptrace): New.
10674 * (i386bsd_fetch_inferior_registers,
10675 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10676 * (i386bsd_fetch_inferior_registers,
10677 i386bsd_store_inferior_registers) Use gdb_ptrace.
10678
1c0aa1fb
KR
106792020-03-17 Kamil Rytarowski <n54@gmx.com>
10680
10681 * amd64-bsd-nat.c (gdb_ptrace): New.
10682 * (amd64bsd_fetch_inferior_registers,
10683 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10684 * (amd64bsd_fetch_inferior_registers,
10685 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10686
5ccd2fb7
KR
106872020-03-17 Kamil Rytarowski <n54@gmx.com>
10688
10689 * user-regs.c (user_reg::read): Rename to...
10690 (user_reg::xread): ...this.
10691 * (append_user_reg): Rename argument `read' to `xread'.
10692 * (user_reg_add_builtin): Likewise.
10693 * (user_reg_add): Likewise.
10694 * (value_of_user_reg): Likewise.
10695
2108a63a
KR
106962020-03-17 Kamil Rytarowski <n54@gmx.com>
10697
10698 * sparc-nat.c (gdb_ptrace): New.
10699 * sparc-nat.c (sparc_fetch_inferior_registers)
10700 (sparc_store_inferior_registers) Remove obsolete comment.
10701 * sparc-nat.c (sparc_fetch_inferior_registers)
10702 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10703 * sparc-nat.c (sparc_fetch_inferior_registers)
10704 (sparc_store_inferior_registers) Use gdb_ptrace.
10705
a225c9a8
KR
107062020-03-17 Kamil Rytarowski <n54@gmx.com>
10707
10708 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10709 it to the ptrace call.
10710 * sh-nbsd-nat.c (store_registers): Likewise.
10711
98097623
KR
107122020-03-17 Kamil Rytarowski <n54@gmx.com>
10713
10714 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10715 nbsd_nat_target instead of inf_ptrace_target.
10716 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10717 nbsd_nat_target.
10718
9e38d619
KR
107192020-03-17 Kamil Rytarowski <n54@gmx.com>
10720
10721 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10722
a2ecbe9f
KR
107232020-03-17 Kamil Rytarowski <n54@gmx.com>
10724
10725 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10726 <sys/sysctl.h>.
10727 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10728
58990295
TV
107292020-03-17 Tom de Vries <tdevries@suse.de>
10730
10731 PR gdb/23710
10732 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10733 fields.
10734 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10735 fields.
10736 (process_imported_unit_die): Skip import of c++ CUs.
10737
771dd3a8
TT
107382020-03-16 Tom Tromey <tom@tromey.com>
10739
10740 * p-valprint.c (pascal_object_print_value): Initialize
10741 base_value.
10742
817a7585
AK
107432020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10744 Shahab Vahedi <shahab@synopsys.com>
10745
10746 * Makefile.in: Add arch/arc.o
10747 * configure.tgt: Likewise.
10748 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10749 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10750 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10751 * arc-tdep.h (arc_read_description): Add proto type.
10752 * arch/arc.c: New file.
10753 * arch/arc.h: Likewise.
10754 * features/Makefile: Replace old target descriptions with new.
10755 * features/arc-arcompact.c: Remove.
10756 * features/arc-arcompact.xml: Likewise.
10757 * features/arc-v2.c: Likewise
10758 * features/arc-v2.xml: Likewise
10759 * features/arc/aux-arcompact.xml: New file.
10760 * features/arc/aux-v2.xml: Likewise.
10761 * features/arc/core-arcompact.xml: Likewise.
10762 * features/arc/core-v2.xml: Likewise.
10763 * features/arc/aux-arcompact.c: Generate.
10764 * features/arc/aux-v2.c: Likewise.
10765 * features/arc/core-arcompact.c: Likewise.
10766 * features/arc/core-v2.c: Likewise.
10767 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10768
67430cd0
TT
107692020-03-16 Tom Tromey <tromey@adacore.com>
10770
10771 PR gdb/25663:
10772 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10773 putting value into bcache.
10774
30efb6c7
SM
107752020-03-16 Simon Marchi <simon.marchi@efficios.com>
10776
10777 PR gdb/21500
10778 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10779 to...
10780 (amd64_windows_init_abi_common): ... this. Don't set size of
10781 long type.
10782 (amd64_windows_init_abi): New function.
10783 (amd64_cygwin_init_abi): New function.
10784 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10785 the Cygwin OS ABI.
10786 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10787 comment.
10788
8db52437
SM
107892020-03-16 Simon Marchi <simon.marchi@efficios.com>
10790
10791 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10792 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10793 (pe_import_directory_entry): New struct type.
10794 (is_linked_with_cygwin_dll): New function.
10795 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10796 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10797 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10798
5982a56a
SM
107992020-03-16 Simon Marchi <simon.marchi@efficios.com>
10800
10801 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10802 i386_cygwin_core_osabi_sniffer.
10803
7a1998df
SM
108042020-03-16 Simon Marchi <simon.marchi@efficios.com>
10805
10806 * i386-cygwin-tdep.c: Rename to...
10807 * i386-windows-tdep.c: ... this.
10808 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10809 i386-windows-tdep.c.
10810 * configure.tgt: Likewise.
10811
053205cc
SM
108122020-03-16 Simon Marchi <simon.marchi@efficios.com>
10813
10814 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10815 * osabi.c (gdb_osabi_names): Add "Windows".
10816 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10817 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10818 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10819 i386_cygwin_osabi_sniffer.
10820 (_initialize_i386_cygwin_tdep): Register OS ABI
10821 GDB_OSABI_WINDOWS for i386.
10822 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10823 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10824 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10825 for x86-64.
10826 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10827 when the target matches '*-*-mingw*'.
10828
fe4b2ee6
SM
108292020-03-16 Simon Marchi <simon.marchi@efficios.com>
10830
10831 * defs.h (enum gdb_osabi): Move to...
10832 * osabi.h (enum gdb_osabi): ... here.
10833 * gdbarch.sh: Include osabi.h in gdbarch.h.
10834 * gdbarch.h: Re-generate.
10835
cb9b645d
SM
108362020-03-16 Simon Marchi <simon.marchi@efficios.com>
10837
10838 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10839 function.
10840 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10841
3293bbaf
TT
108422020-03-14 Tom Tromey <tom@tromey.com>
10843
10844 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10845 for C++.
10846 (c_type_print_modifier): Likewise. Add "language" parameter.
10847 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10848 (c_type_print_base_1): Update.
10849 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10850 constants.
10851 * type-stack.c (type_stack::insert): Handle tp_atomic and
10852 tp_restrict.
10853 (type_stack::follow_type_instance_flags): Likewise.
10854 (type_stack::follow_types): Likewise. Merge type-following code.
10855 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10856 (space_identifier, cv_with_space_id)
10857 (const_or_volatile_or_space_identifier_noopt)
10858 (const_or_volatile_or_space_identifier): Remove.
10859 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10860 rules.
10861 (ptr_operator, typebase): Update.
10862 (enum token_flag) <FLAG_C>: New constant.
10863 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10864 "_Atomic".
10865 (lex_one_token): Handle FLAG_C.
10866
154151a6
KR
108672020-03-14 Kamil Rytarowski <n54@gmx.com>
10868
10869 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10870 it to the ptrace call.
10871 * m68k-bsd-nat.c (store_registers): Likewise.
10872
bc107784
KR
108732020-03-14 Kamil Rytarowski <n54@gmx.com>
10874
10875 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10876 gdb_byte *.
10877 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10878 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10879 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10880
01a80117
KR
108812020-03-14 Kamil Rytarowski <n54@gmx.com>
10882
10883 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10884 nbsd_nat_target instead of inf_ptrace_target.
10885 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10886 nbsd_nat_target.
10887
f90280ca
KR
108882020-03-14 Kamil Rytarowski <n54@gmx.com>
10889
10890 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10891 register_t.
10892
6def66f1
KR
108932020-03-14 Kamil Rytarowski <n54@gmx.com>
10894
10895 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10896 it to the ptrace call.
10897 * alpha-bsd-nat.c (store_registers): Likewise.
10898
66eaca97
KR
108992020-03-14 Kamil Rytarowski <n54@gmx.com>
10900
10901 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10902 includes.
10903 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10904 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10905 fill_fpregset): Likewise.
10906
4fed520b
KR
109072020-03-14 Kamil Rytarowski <n54@gmx.com>
10908
10909 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10910 nbsd_nat_target instead of inf_ptrace_target.
10911 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10912 nbsd_nat_target.
10913
2190cf06
KR
109142020-03-14 Kamil Rytarowski <n54@gmx.com>
10915
10916 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10917 register_t.
10918
75c56d3d
KR
109192020-03-14 Kamil Rytarowski <n54@gmx.com>
10920
10921 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10922 it to the ptrace call.
10923 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10924 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10925 * arm-nbsd-nat.c (store_register): Likewise.
10926 * arm-nbsd-nat.c (store_regs): Likewise.
10927 * arm-nbsd-nat.c (store_fp_register): Likewise.
10928 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10929
6018d381
KR
109302020-03-14 Kamil Rytarowski <n54@gmx.com>
10931
10932 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10933 nbsd_nat_target instead of inf_ptrace_target.
10934 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10935 nbsd_nat_target.
10936
013f99f0
KR
109372020-03-14 Kamil Rytarowski <n54@gmx.com>
10938
10939 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10940 it to the ptrace call.
10941 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10942
12753073
KR
109432020-03-14 Kamil Rytarowski <n54@gmx.com>
10944
6227b330
KR
10945 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10946 it to the ptrace call.
10947 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10948
109492020-03-14 Kamil Rytarowski <n54@gmx.com>
10950
10951 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10952 gdb_byte *.
12753073
KR
10953 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10954
d5be5fa4
KR
109552020-03-14 Kamil Rytarowski <n54@gmx.com>
10956
10957 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10958 instead of inf_ptrace_target.
10959 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10960 nbsd_nat_target.
10961
8110f842
KR
109622020-03-14 Kamil Rytarowski <n54@gmx.com>
10963
10964 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10965 register_t.
10966
52feded7
KR
109672020-03-14 Kamil Rytarowski <n54@gmx.com>
10968
10969 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10970 register_t.
10971
25567eee
KR
109722020-03-14 Kamil Rytarowski <n54@gmx.com>
10973
10974 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10975 register_t.
10976
426a9c18
TT
109772020-03-13 Tom Tromey <tom@tromey.com>
10978
10979 * value.h (val_print): Don't declare.
10980 * valprint.h (val_print_array_elements)
10981 (val_print_scalar_formatted, generic_val_print): Don't declare.
10982 * valprint.c (generic_val_print_array): Take a struct value.
10983 (generic_val_print_ptr, generic_val_print_memberptr)
10984 (generic_val_print_bool, generic_val_print_int)
10985 (generic_val_print_char, generic_val_print_complex)
10986 (generic_val_print): Remove.
10987 (generic_value_print): Update.
10988 (do_val_print): Remove unused parameters. Don't call
10989 la_val_print.
10990 (val_print): Remove.
10991 (common_val_print): Update. Don't call value_check_printable.
10992 (val_print_scalar_formatted, val_print_array_elements): Remove.
10993 * rust-lang.c (rust_val_print): Remove.
10994 (rust_language_defn): Update.
10995 * p-valprint.c (pascal_val_print): Remove.
10996 (pascal_value_print_inner): Update.
10997 (pascal_object_print_val_fields, pascal_object_print_val):
10998 Remove.
10999 (pascal_object_print_static_field): Update.
11000 * p-lang.h (pascal_val_print): Don't declare.
11001 * p-lang.c (pascal_language_defn): Update.
11002 * opencl-lang.c (opencl_language_defn): Update.
11003 * objc-lang.c (objc_language_defn): Update.
11004 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11005 * m2-lang.h (m2_val_print): Don't declare.
11006 * m2-lang.c (m2_language_defn): Update.
11007 * language.h (struct language_defn) <la_val_print>: Remove.
11008 * language.c (unk_lang_value_print_inner): Rename. Change
11009 argument types.
11010 (unknown_language_defn, auto_language_defn): Update.
11011 * go-valprint.c (go_val_print): Remove.
11012 * go-lang.h (go_val_print): Don't declare.
11013 * go-lang.c (go_language_defn): Update.
11014 * f-valprint.c (f_val_print): Remove.
11015 * f-lang.h (f_value_print): Don't declare.
11016 * f-lang.c (f_language_defn): Update.
11017 * d-valprint.c (d_val_print): Remove.
11018 * d-lang.h (d_value_print): Don't declare.
11019 * d-lang.c (d_language_defn): Update.
11020 * cp-valprint.c (cp_print_value_fields)
11021 (cp_print_value_fields_rtti, cp_print_value): Remove.
11022 (cp_print_static_field): Update.
11023 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11024 (c_val_print_struct, c_val_print_union, c_val_print_int)
11025 (c_val_print_memberptr, c_val_print): Remove.
11026 * c-lang.h (c_val_print_array, cp_print_value_fields)
11027 (cp_print_value_fields_rtti): Don't declare.
11028 * c-lang.c (c_language_defn, cplus_language_defn)
11029 (asm_language_defn, minimal_language_defn): Update.
11030 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11031 (ada_val_print_enum): Take a struct value.
11032 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11033 (ada_val_print): Remove.
11034 (ada_value_print_1): Update.
11035 (printable_val_type): Remove.
11036 * ada-lang.h (ada_val_print): Don't declare.
11037 * ada-lang.c (ada_language_defn): Update.
11038
42331a1e
TT
110392020-03-13 Tom Tromey <tom@tromey.com>
11040
11041 * valprint.c (do_val_print): Update.
11042 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11043 a struct value.
11044 (value_to_value_object_no_release): Declare.
11045 * python/py-value.c (value_to_value_object_no_release): New
11046 function.
11047 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11048 struct value.
11049 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11050 function.
11051 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11052 a struct value.
11053 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11054 Declare.
11055 (gdbscm_apply_val_pretty_printer): Take a struct value.
11056 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11057 value.
11058 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11059 value.
11060 * extension-priv.h (struct extension_language_ops)
11061 <apply_val_pretty_printer>: Take a struct value.
11062 * cp-valprint.c (cp_print_value): Create a struct value.
11063 (cp_print_value): Update.
11064
3a916a97
TT
110652020-03-13 Tom Tromey <tom@tromey.com>
11066
11067 * ada-valprint.c (print_field_values): Call common_val_print.
11068
b59eac37
TT
110692020-03-13 Tom Tromey <tom@tromey.com>
11070
11071 * ada-valprint.c (val_print_packed_array_elements): Remove
11072 bitoffset and val parameters. Call common_val_print.
11073 (ada_val_print_string): Remove offset, address, and original_value
11074 parameters.
11075 (ada_val_print_array): Update.
11076 (ada_value_print_array): New function.
11077 (ada_value_print_1): Call it.
11078
03371129
TT
110792020-03-13 Tom Tromey <tom@tromey.com>
11080
11081 * ada-valprint.c (ada_value_print): Use common_val_print.
11082
2e088f8b
TT
110832020-03-13 Tom Tromey <tom@tromey.com>
11084
11085 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11086
39ef85a8
TT
110872020-03-13 Tom Tromey <tom@tromey.com>
11088
11089 * ada-valprint.c (ada_value_print_num): New function.
11090 (ada_value_print_1): Use it.
11091
b9fa6e07
TT
110922020-03-13 Tom Tromey <tom@tromey.com>
11093
11094 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11095
416595d6
TT
110962020-03-13 Tom Tromey <tom@tromey.com>
11097
11098 * ada-valprint.c (ada_value_print_ptr): New function.
11099 (ada_value_print_1): Use it.
11100
5b5e15ec
TT
111012020-03-13 Tom Tromey <tom@tromey.com>
11102
11103 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11104 call common_val_print.
11105 (ada_val_print_1): Update.
11106 (ada_value_print_1): New function.
11107 (ada_value_print_inner): Rewrite.
11108
fbf54e75
TT
111092020-03-13 Tom Tromey <tom@tromey.com>
11110
11111 * cp-valprint.c (cp_print_value_fields): Update.
11112 (cp_print_value): New function.
11113
64b653ca
TT
111142020-03-13 Tom Tromey <tom@tromey.com>
11115
11116 * m2-valprint.c (m2_value_print_inner): Use
11117 cp_print_value_fields.
11118 * cp-valprint.c (cp_print_value_fields): New function.
11119 * c-valprint.c (c_value_print_struct): New function.
11120 (c_value_print_inner): Use c_value_print_struct.
11121 * c-lang.h (cp_print_value_fields): Declare.
11122
6999f067
TT
111232020-03-13 Tom Tromey <tom@tromey.com>
11124
11125 * c-valprint.c (c_value_print_array): New function.
11126 (c_value_print_inner): Use it.
11127
ce80b8bd
TT
111282020-03-13 Tom Tromey <tom@tromey.com>
11129
11130 * c-valprint.c (c_value_print_memberptr): New function.
11131 (c_value_print_inner): Use it.
11132
2faac269
TT
111332020-03-13 Tom Tromey <tom@tromey.com>
11134
11135 * c-valprint.c (c_value_print_int): New function.
11136 (c_value_print_inner): Use it.
11137
da3e2c29
TT
111382020-03-13 Tom Tromey <tom@tromey.com>
11139
11140 * c-valprint.c (c_value_print_ptr): New function.
11141 (c_value_print_inner): Use it.
11142
50836231
TT
111432020-03-13 Tom Tromey <tom@tromey.com>
11144
11145 * c-valprint.c (c_value_print_inner): Rewrite.
11146
4f412b6e
TT
111472020-03-13 Tom Tromey <tom@tromey.com>
11148
11149 * valprint.c (generic_value_print_complex): New function.
11150 (generic_value_print): Use it.
11151
f5354008
TT
111522020-03-13 Tom Tromey <tom@tromey.com>
11153
11154 * valprint.c (generic_val_print_float): Don't call
11155 val_print_scalar_formatted.
11156 (generic_val_print, generic_value_print): Update.
11157
3eec3b05
TT
111582020-03-13 Tom Tromey <tom@tromey.com>
11159
11160 * valprint.c (generic_value_print_char): New function
11161 (generic_value_print): Use it.
11162
fdddfccb
TT
111632020-03-13 Tom Tromey <tom@tromey.com>
11164
11165 * valprint.c (generic_value_print_int): New function.
11166 (generic_value_print): Use it.
11167
6dde7521
TT
111682020-03-13 Tom Tromey <tom@tromey.com>
11169
11170 * valprint.c (generic_value_print_bool): New function.
11171 (generic_value_print): Use it.
11172
4112d2e6
TT
111732020-03-13 Tom Tromey <tom@tromey.com>
11174
11175 * valprint.c (generic_val_print_func): Simplify.
11176 (generic_val_print, generic_value_print): Update.
11177
65786af6
TT
111782020-03-13 Tom Tromey <tom@tromey.com>
11179
11180 * valprint.c (generic_val_print_flags): Remove.
11181 (generic_val_print, generic_value_print): Update.
11182 (val_print_type_code_flags): Add original_value parameter.
11183
40f3ce18
TT
111842020-03-13 Tom Tromey <tom@tromey.com>
11185
11186 * valprint.c (generic_val_print): Update.
11187 (generic_value_print): Update.
11188 * valprint.c (generic_val_print_enum): Don't call
11189 val_print_scalar_formatted.
11190
2a5b130b
TT
111912020-03-13 Tom Tromey <tom@tromey.com>
11192
11193 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11194 * valprint.c (generic_value_print_ptr): New function.
11195
abc66ce9
TT
111962020-03-13 Tom Tromey <tom@tromey.com>
11197
11198 * valprint.c (generic_value_print): Rewrite.
11199
07a32858
TT
112002020-03-13 Tom Tromey <tom@tromey.com>
11201
11202 * p-valprint.c (pascal_object_print_value_fields)
11203 (pascal_object_print_value): New functions.
11204
64d64d3a
TT
112052020-03-13 Tom Tromey <tom@tromey.com>
11206
11207 * p-valprint.c (pascal_value_print_inner): Rewrite.
11208
6a95a1f5
TT
112092020-03-13 Tom Tromey <tom@tromey.com>
11210
11211 * f-valprint.c (f_value_print_innner): Rewrite.
11212
59fcdac6
TT
112132020-03-13 Tom Tromey <tom@tromey.com>
11214
11215 * m2-valprint.c (m2_print_unbounded_array): New overload.
11216 (m2_print_unbounded_array): Update.
11217 (m2_print_array_contents): Take a struct value.
11218 (m2_value_print_inner): Rewrite.
11219
d133c3e1
TT
112202020-03-13 Tom Tromey <tom@tromey.com>
11221
11222 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11223 (d_value_print_inner): New function.
11224 * d-lang.h (d_value_print_inner): Declare.
11225 * d-lang.c (d_language_defn): Use d_value_print_inner.
11226
23b0f06b
TT
112272020-03-13 Tom Tromey <tom@tromey.com>
11228
11229 * go-valprint.c (go_value_print_inner): New function.
11230 * go-lang.h (go_value_print_inner): Declare.
11231 * go-lang.c (go_language_defn): Use go_value_print_inner.
11232
5f56f7cb
TT
112332020-03-13 Tom Tromey <tom@tromey.com>
11234
11235 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11236 API.
11237 (rust_val_print): Rewrite.
11238 (rust_value_print_inner): New function, from rust_val_print.
11239 (rust_language_defn): Use rust_value_print_inner.
11240
26792ee0
TT
112412020-03-13 Tom Tromey <tom@tromey.com>
11242
11243 * ada-valprint.c (ada_value_print_inner): New function.
11244 * ada-lang.h (ada_value_print_inner): Declare.
11245 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11246
24051bbe
TT
112472020-03-13 Tom Tromey <tom@tromey.com>
11248
11249 * f-valprint.c (f_value_print_innner): New function.
11250 * f-lang.h (f_value_print_innner): Declare.
11251 * f-lang.c (f_language_defn): Use f_value_print_innner.
11252
c0941be6
TT
112532020-03-13 Tom Tromey <tom@tromey.com>
11254
11255 * p-valprint.c (pascal_value_print_inner): New function.
11256 * p-lang.h (pascal_value_print_inner): Declare.
11257 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11258
62c4663d
TT
112592020-03-13 Tom Tromey <tom@tromey.com>
11260
11261 * m2-valprint.c (m2_value_print_inner): New function.
11262 * m2-lang.h (m2_value_print_inner): Declare.
11263 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11264
62182190
TT
112652020-03-13 Tom Tromey <tom@tromey.com>
11266
11267 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11268 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11269 * c-valprint.c (c_value_print_inner): New function.
11270 * c-lang.h (c_value_print_inner): Declare.
11271 * c-lang.c (c_language_defn, cplus_language_defn)
11272 (asm_language_defn, minimal_language_defn): Use
11273 c_value_print_inner.
11274
1e592a8a
TT
112752020-03-13 Tom Tromey <tom@tromey.com>
11276
11277 * p-valprint.c (pascal_object_print_value_fields): Now static.
11278 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11279
7fe471e9
TT
112802020-03-13 Tom Tromey <tom@tromey.com>
11281
11282 * c-valprint.c (c_val_print_array): Simplify.
11283
d121c6ce
TT
112842020-03-13 Tom Tromey <tom@tromey.com>
11285
11286 * valprint.c (value_print_array_elements): New function.
11287 * valprint.h (value_print_array_elements): Declare.
11288
4dba70ee
TT
112892020-03-13 Tom Tromey <tom@tromey.com>
11290
11291 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11292 * mips-tdep.c (mips_print_register): Use
11293 value_print_scalar_formatted.
11294
4f9ae810
TT
112952020-03-13 Tom Tromey <tom@tromey.com>
11296
11297 * valprint.h (value_print_scalar_formatted): Declare.
11298 * valprint.c (value_print_scalar_formatted): New function.
11299
156bfec9
TT
113002020-03-13 Tom Tromey <tom@tromey.com>
11301
11302 * valprint.h (generic_value_print): Declare.
11303 * valprint.c (generic_value_print): New function.
11304
2b4e573d
TT
113052020-03-13 Tom Tromey <tom@tromey.com>
11306
11307 * valprint.c (do_val_print): Call la_value_print_inner, if
11308 available.
11309 * rust-lang.c (rust_language_defn): Update.
11310 * p-lang.c (pascal_language_defn): Update.
11311 * opencl-lang.c (opencl_language_defn): Update.
11312 * objc-lang.c (objc_language_defn): Update.
11313 * m2-lang.c (m2_language_defn): Update.
11314 * language.h (struct language_defn) <la_value_print_inner>: New
11315 member.
11316 * language.c (unknown_language_defn, auto_language_defn): Update.
11317 * go-lang.c (go_language_defn): Update.
11318 * f-lang.c (f_language_defn): Update.
11319 * d-lang.c (d_language_defn): Update.
11320 * c-lang.c (c_language_defn, cplus_language_defn)
11321 (asm_language_defn, minimal_language_defn): Update.
11322 * ada-lang.c (ada_language_defn): Update.
11323
a1f6a07c
TT
113242020-03-13 Tom Tromey <tom@tromey.com>
11325
11326 * c-valprint.c (c_value_print): Use common_val_print.
11327
410cf315
TT
113282020-03-13 Tom Tromey <tom@tromey.com>
11329
11330 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11331
72a45c93
TT
113322020-03-13 Tom Tromey <tom@tromey.com>
11333
11334 * f-valprint.c (f77_print_array_1, f_val_print): Use
11335 common_val_print.
11336
040f66bd
TT
113372020-03-13 Tom Tromey <tom@tromey.com>
11338
11339 * riscv-tdep.c (riscv_print_one_register_info): Use
11340 common_val_print.
11341
a6e05a6c
TT
113422020-03-13 Tom Tromey <tom@tromey.com>
11343
11344 * mi/mi-main.c (output_register): Use common_val_print.
11345
3444c526
TT
113462020-03-13 Tom Tromey <tom@tromey.com>
11347
11348 * infcmd.c (default_print_one_register_info): Use
11349 common_val_print.
11350
c2a44efe
TT
113512020-03-13 Tom Tromey <tom@tromey.com>
11352
11353 * valprint.h (common_val_print_checked): Declare.
11354 * valprint.c (common_val_print_checked): New function.
11355 * stack.c (print_frame_arg): Use common_val_print_checked.
11356
b0c26e99
TT
113572020-03-13 Tom Tromey <tom@tromey.com>
11358
11359 * valprint.c (do_val_print): New function, from val_print.
11360 (val_print): Use do_val_print.
11361 (common_val_print): Use do_val_print.
11362
ce3acbe9
TT
113632020-03-13 Tom Tromey <tom@tromey.com>
11364
11365 * valprint.c (value_print): Use scoped_value_mark.
11366
96c7f873
TV
113672020-03-13 Tom de Vries <tdevries@suse.de>
11368
11369 PR symtab/25646
11370 * psymtab.c (partial_symtab::partial_symtab): Don't set
11371 globals_offset and statics_offset. Push element onto
11372 current_global_psymbols and current_static_psymbols stacks.
11373 (concat): New function.
11374 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11375 element from current_global_psymbols and current_static_psymbols
11376 stacks. Concat popped elements to global_psymbols and
11377 static_symbols.
11378 (add_psymbol_to_list): Use current_global_psymbols and
11379 current_static_psymbols stacks.
11380 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11381 current_static_psymbols fields.
11382
6ba0a321
CB
113832020-03-12 Christian Biesinger <cbiesinger@google.com>
11384
11385 * corelow.c (sniff_core_bfd): Remove.
11386 (class core_target) <m_core_vec>: Remove.
11387 (core_target::core_target): Update.
11388 (core_file_fns): Remove.
11389 (deprecated_add_core_fns): Remove.
11390 (default_core_sniffer): Remove.
11391 (sniff_core_bfd): Remove.
11392 (default_check_format): Remove.
11393 (gdb_check_format): Remove.
11394 (core_target_open): Update.
11395 (core_target::get_core_register_section): Update.
11396 (get_core_registers_cb): Update.
11397 (core_target::fetch_registers): Update.
11398 * gdbcore.h (struct core_fns): Remove.
11399 (deprecated_add_core_fns): Remove.
11400 (default_core_sniffer): Remove.
11401 (default_check_format): Remove.
11402
227031b2
TT
114032020-03-12 Tom Tromey <tom@tromey.com>
11404
11405 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11406 CORE_ADDR.
11407 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11408
53807e9f
TT
114092020-03-12 Tom Tromey <tom@tromey.com>
11410
11411 * remote.c (remote_target::download_tracepoint)
11412 (remote_target::enable_tracepoint)
11413 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11414 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11415 sprintf_vma.
11416
64f25102
TT
114172020-03-12 Tom Tromey <tom@tromey.com>
11418
11419 * symfile-mem.c: Update CORE_ADDR size assert.
11420
272cd5a3
SM
114212020-03-12 Simon Marchi <simon.marchi@efficios.com>
11422
11423 * selftest.m4: Move to gdbsupport/.
11424 * acinclude.m4: Update path to selftest.m4.
11425
74cd3f9d
SM
114262020-03-12 Simon Marchi <simon.marchi@efficios.com>
11427
11428 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11429 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11430 gdbarch-selfselftests.c and selftest-arch.c.
11431 (SUBDIR_UNITTESTS_OBS): Rename to...
11432 (SELFTESTS_OBS): ... this.
11433 (COMMON_SFILES): Remove disasm-selftests.c and
11434 gdbarch-selftests.c.
11435 * configure.ac: Don't add selftest-arch.{c,o} to
11436 CONFIG_{SRCS,OBS}.
11437 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11438 preprocessor conditions.
11439
db6878ac
SM
114402020-03-12 Simon Marchi <simon.marchi@efficios.com>
11441
11442 * configure.ac: Don't source bfd/development.sh.
11443 * selftest.m4: Modify comment.
11444 * configure: Re-generate.
11445
4d696a5c
SM
114462020-03-12 Simon Marchi <simon.marchi@efficios.com>
11447
11448 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11449 not "true" or "false".
11450 * configure: Re-generate.
11451
8dd8e1c7
CB
114522020-03-12 Christian Biesinger <cbiesinger@google.com>
11453
11454 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11455 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11456 renamed to arm_nbsd_supply_gregset.
11457 (fetch_register): Update to call arm_nbsd_supply_gregset.
11458 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11459 (arm_netbsd_nat_target::fetch_registers): Update.
11460 (fetch_elfcore_registers): Removed.
11461 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11462 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11463 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11464 not require NetBSD system headers.
11465 (arm_nbsd_regset): New struct.
11466 (arm_nbsd_iterate_over_regset_sections): New function.
11467 (arm_netbsd_init_abi_common): Updated to call
11468 set_gdbarch_iterate_over_regset_sections.
11469 * arm-nbsd-tdep.h: New file.
11470
dd69bf7a
KB
114712020-03-11 Kevin Buettner <kevinb@redhat.com>
11472
11473 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11474 recursion.
11475
a0761e34
SM
114762020-03-11 Simon Marchi <simon.marchi@efficios.com>
11477
11478 * configure: Re-generate.
11479
e7a82140
TT
114802020-03-11 Tom Tromey <tromey@adacore.com>
11481
11482 * ada-typeprint.c (print_choices): Fix comment.
11483
dcc050c8
AB
114842020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11485
11486 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11487 previous item in the list, when the list has no items.
11488
1c33af77
TV
114892020-03-11 Tom de Vries <tdevries@suse.de>
11490
11491 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11492 PROP_LOCLIST handling code.
11493
8c95582d
AB
114942020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11495
11496 * buildsym-legacy.c (record_line): Pass extra parameter to
11497 record_line.
11498 * buildsym.c (buildsym_compunit::record_line): Take an extra
11499 parameter, reduce duplication in the line table, and record the
11500 is_stmt flag in the line table.
11501 * buildsym.h (buildsym_compunit::record_line): Add extra
11502 parameter.
11503 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11504 non-statement lines.
11505 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11506 this to the symtab builder.
11507 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11508 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11509 through to dwarf_record_line_1.
11510 * infrun.c (process_event_stop_test): When stepping, don't stop at
11511 a non-statement instruction, and only refresh the step info when
11512 we land in the middle of a line's range. Also add an extra
11513 comment.
11514 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11515 field.
11516 * record-btrace.c (btrace_find_line_range): Only record lines
11517 marked as is-statement.
11518 * stack.c (frame_show_address): Show the frame address if we are
11519 in a non-statement sal.
11520 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11521 (maintenance_print_one_line_table): Print a header for the is_stmt
11522 column, and include is_stmt information in the output.
11523 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11524 preference to non-statements.
11525 (find_pcs_for_symtab_line): Prefer is-statement entries.
11526 (find_line_common): Likewise.
11527 * symtab.h (struct linetable_entry): Add is_stmt field.
11528 (struct symtab_and_line): Likewise.
11529 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11530 arranging the line table.
11531
e4003a34
TV
115322020-03-07 Tom de Vries <tdevries@suse.de>
11533
11534 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11535 DIE.
11536
e8932576
TT
115372020-03-07 Tom Tromey <tom@tromey.com>
11538
11539 * valops.c (value_literal_complex): Remove obsolete comment.
11540 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11541 comment.
11542
29734269
SM
115432020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11544
11545 * infrun.h: Forward-declare thread_info.
11546 (set_step_info): Add thread_info parameter, add doc.
11547 * infrun.c (set_step_info): Add thread_info parameter, move doc
11548 to header.
11549 * infrun.c (process_event_stop_test): Pass thread to
11550 set_step_info call.
11551 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11552 set_step_info.
11553 (prepare_one_step): Add thread_info parameter, pass it to
11554 set_step_frame and prepare_one_step (recursive) call.
11555 (step_1): Pass thread to prepare_one_step call.
11556 (step_command_fsm::should_stop): Pass thread to
11557 prepare_one_step.
11558 (until_next_fsm): Pass thread to set_step_frame call.
11559 (finish_command): Pass thread to set_step_info call.
11560
b7d64b29
HD
115612020-03-06 Hannes Domani <ssbssa@yahoo.de>
11562
11563 * windows-tdep.c (windows_solib_create_inferior_hook):
11564 Check if inferior is running.
11565
09f2921c
TV
115662020-03-06 Tom de Vries <tdevries@suse.de>
11567
11568 * NEWS: Fix "the the".
11569 * ctfread.c: Same.
11570
fd760e79
TV
115712020-03-06 Tom de Vries <tdevries@suse.de>
11572
11573 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11574
20ea4a60
AB
115752020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11576
11577 * .dir-locals.el: Add a comment referencing the other copies of
11578 this file.
11579
0afbabf0
JB
115802020-03-05 John Baldwin <jhb@FreeBSD.org>
11581
11582 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11583 psargs.
11584
842806cb
TBA
115852020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11586
11587 * .gitattributes: New file.
11588
be1e3d3e
TT
115892020-03-04 Tom Tromey <tom@tromey.com>
11590
11591 * symmisc.c (print_symbol_bcache_statistics)
11592 (print_objfile_statistics): Update.
11593 * symfile.c (allocate_symtab): Use intern.
11594 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11595 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11596 macro_cache>: Remove.
11597 <string_cache>: New member.
11598 (struct objfile) <intern>: New methods.
11599 * elfread.c (elf_symtab_read): Use intern.
11600 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11601 (dwarf2_compute_name, dwarf2_physname)
11602 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11603 names.
11604 (guess_partial_die_structure_name): Update.
11605 (partial_die_info::fixup): Intern name.
11606 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11607 name.
11608 (dwarf2_name): Intern name. Update.
11609 * buildsym.c (buildsym_compunit::get_macro_table): Use
11610 string_cache.
11611
4e7625fd
TT
116122020-03-04 Tom Tromey <tom@tromey.com>
11613
11614 * jit.c (bfd_open_from_target_memory): Make "target" const.
11615 * corefile.c (gnutarget): Now const.
11616 * gdbcore.h (gnutarget): Now const.
11617
46f9f931
HD
116182020-03-04 Hannes Domani <ssbssa@yahoo.de>
11619
11620 * NEWS: Mention support for WOW64 processes.
11621 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11622 (amd64_windows_segment_register_p): Remove static.
11623 (_initialize_amd64_windows_nat): Update.
11624 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11625 * i386-windows-nat.c (context_offset): Update.
11626 (i386_mappings): Rename and remove static.
11627 (i386_windows_segment_register_p): Remove static.
11628 (_initialize_i386_windows_nat): Update.
11629 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11630 (STATUS_WX86_SINGLE_STEP): New macro.
11631 (EnumProcessModulesEx): New macro.
11632 (Wow64SuspendThread): New macro.
11633 (Wow64GetThreadContext): New macro.
11634 (Wow64SetThreadContext): New macro.
11635 (Wow64GetThreadSelectorEntry): New macro.
11636 (windows_set_context_register_offsets): Add static.
11637 (windows_set_segment_register_p): Likewise.
11638 (windows_add_thread): Adapt for WOW64 processes.
11639 (windows_fetch_one_register): Likewise.
11640 (windows_nat_target::fetch_registers): Likewise.
11641 (windows_store_one_register): Likewise.
11642 (display_selector): Likewise.
11643 (display_selectors): Likewise.
11644 (handle_exception): Likewise.
11645 (windows_continue): Likewise.
11646 (windows_nat_target::resume): Likewise.
11647 (windows_add_all_dlls): Likewise.
11648 (do_initial_windows_stuff): Likewise.
11649 (windows_nat_target::attach): Likewise.
11650 (windows_get_exec_module_filename): Likewise.
11651 (windows_nat_target::create_inferior): Likewise.
11652 (windows_xfer_siginfo): Likewise.
11653 (_initialize_loadable): Initialize Wow64SuspendThread,
11654 Wow64GetThreadContext, Wow64SetThreadContext,
11655 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11656 * windows-nat.h (windows_set_context_register_offsets):
11657 Remove declaration.
11658 (windows_set_segment_register_p): Likewise.
11659 (i386_windows_segment_register_p): Add declaration.
11660 (amd64_windows_segment_register_p): Likewise.
11661
440cf44e
LM
116622020-03-04 Luis Machado <luis.machado@linaro.org>
11663
11664 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11665 in "info registers" for AArch64/ARM.
11666
11667 The change caused "info registers" to not print GPR's.
11668
11669 gdb/ChangeLog:
11670
11671 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11672
11673 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11674 when reg->group is empty and reggroup is not.
11675
1009d92f
TT
116762020-03-03 Tom Tromey <tromey@adacore.com>
11677
11678 * dwarf2/frame.c (struct dwarf2_frame_cache)
11679 <checked_tailcall_bottom, entry_cfa_sp_offset,
11680 entry_cfa_sp_offset_p>: Remove members.
11681 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11682 (dwarf2_frame_prev_register): Don't call
11683 dwarf2_tailcall_sniffer_first.
11684 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11685 * frame-unwind.c (add_unwinder): New fuction.
11686 (frame_unwind_init): Use it. Add tailcall unwinder.
11687
5e5d66b6
AB
116882020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11689 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11690
11691 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11692 value should be printed as true.
11693
584cf46d
HD
116942020-03-03 Hannes Domani <ssbssa@yahoo.de>
11695
11696 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11697 (windows_init_abi): Set and use windows_so_ops.
11698
7b973adc
SDJ
116992020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11700
11701 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11702 when verifying if dealing with a convenience variable.
11703
bb7b70ab
LM
117042020-03-03 Luis Machado <luis.machado@linaro.org>
11705
11706 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11707
9822cb57
SM
117082020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11709
11710 * infrun.c (gdbarch_supports_displaced_stepping): New.
11711 (use_displaced_stepping): Break up conditions in smaller pieces.
11712 Use gdbarch_supports_displaced_stepping.
11713 (displaced_step_prepare_throw): Use
11714 gdbarch_supports_displaced_stepping.
11715
63e163f2
AB
117162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11717
11718 * NEWS: Mention new behaviour of the history filename.
11719 * top.c (write_history_p): Add comment.
11720 (show_write_history_p): Add header comment, give a different
11721 message when history writing is on, but the history filename is
11722 empty.
11723 (history_filename): Add comment.
11724 (history_filename_empty): New function.
11725 (show_history_filename): Add header comment, give a different
11726 message when the filename is empty.
11727 (init_history): Compare history_filename against nullptr, and only
11728 read history if the filename is not empty.
11729 (set_history_filename): Add header comment, and only make
11730 non-empty filenames absolute.
11731 (init_main): Make the filename argument to 'set history filename'
11732 optional.
11733
81b86b97
CB
117342020-03-02 Christian Biesinger <cbiesinger@google.com>
11735
11736 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11737 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11738 (fetch_fp_register): Update.
11739 (fetch_fp_regs): Update.
11740 (store_fp_register): Update.
11741 (store_fp_regs): Update.
11742 (arm_netbsd_nat_target::read_description): New function.
11743 (fetch_elfcore_registers): Update.
11744
24ed6739
AB
117452020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11746
11747 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11748 general_thread if the stop reply is missing a thread-id.
11749 (remote_target::process_stop_reply): Use the first non-exited
11750 thread if the target didn't pass a thread-id.
11751 * infrun.c (do_target_wait): Move call to
11752 switch_to_inferior_no_thread to ....
11753 (do_target_wait_1): ... here.
11754
a84bb2a0
JT
117552020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11756
11757 * debuginfod-support.c: Include defs.h first.
11758
658dadf0
TV
117592020-02-28 Tom de Vries <tdevries@suse.de>
11760
11761 * symfile.c (set_initial_language): Use default language for lookup.
11762
4ebe4877
SM
117632020-02-28 Simon Marchi <simon.marchi@efficios.com>
11764
11765 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11766 reader variable, pass `this` to read_cutu_die_from_dwo.
11767
e5da1139
AM
117682020-02-27 Aaron Merey <amerey@redhat.com>
11769
11770 * source.c (open_source_file): Check for nullptr when computing
11771 srcpath.
11772
317f7127
TT
117732020-02-27 Tom Tromey <tromey@adacore.com>
11774
11775 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11776 member.
11777 (dwarf2_add_field): Don't update nfields.
11778 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11779
3104d9ee
AB
117802020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11781
11782 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11783 abs.
11784
b83470bf
TT
117852020-02-26 Tom Tromey <tom@tromey.com>
11786
11787 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11788 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11789 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11790 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11791 per_cu_data.
11792
edfe0a0c
TT
117932020-02-26 Tom Tromey <tom@tromey.com>
11794
11795 * dwarf2/index-write.c (psym_index_map): Change type.
11796 (add_address_entry_worker, write_one_signatured_type)
11797 (recursively_count_psymbols, recursively_write_psymbols)
11798 (class debug_names, psyms_seen_size, write_gdbindex)
11799 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11800
0d79cdc4
AM
118012020-02-26 Aaron Merey <amerey@redhat.com>
11802
11803 * Makefile.in: Handle optional debuginfod support.
11804 * NEWS: Update.
11805 * README: Add --with-debuginfod summary.
11806 * config.in: Regenerate.
11807 * configure: Regenerate.
11808 * configure.ac: Handle optional debuginfod support.
11809 * debuginfod-support.c: debuginfod helper functions.
11810 * debuginfod-support.h: Ditto.
11811 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11812 summary.
11813 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11814 when a dwz file cannot be found.
11815 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11816 debuginfo file cannot be found.
11817 * source.c (open_source_file): Query debuginfod servers when a
11818 source file cannot be found.
11819 * top.c (print_gdb_configuration): Include
11820 --{with,without}-debuginfod in the output.
11821
b65ce565
JG
118222020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11823
11824 * thread.c (thr_try_catch_cmd): Print thread name.
11825
d4c9a4f8
SM
118262020-02-26 Simon Marchi <simon.marchi@efficios.com>
11827
11828 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11829 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11830 dwarf2_fetch_die_type_sect_off): Move to...
11831 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11832 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11833 dwarf2_fetch_die_type_sect_off): ... here.
11834 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11835 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11836 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11837
0dce4280
TV
118382020-02-26 Tom de Vries <tdevries@suse.de>
11839
11840 PR gdb/25603
11841 * symfile.c (set_initial_language): Exit-early if
11842 language_mode == language_mode_manual.
11843
450a1bfc
SM
118442020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11845
11846 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11847 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11848 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11849
9e80cfa1
AB
118502020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11851
11852 * gdbtypes.c (create_array_type_with_stride): Handle negative
11853 array strides.
11854 * valarith.c (value_subscripted_rvalue): Likewise.
11855
09624f1f
LM
118562020-02-25 Luis Machado <luis.machado@linaro.org>
11857
11858 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11859
8cb5117c
SM
118602020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11861
11862 * loc.h (dwarf2_get_die_type): Move to...
11863 * read.h (dwarf2_get_die_type): ... here.
11864 * read.c (dwarf2_get_die_type): Move doc to header.
11865
c325c44e
JB
118662020-02-25 Joel Brobecker <brobecker@adacore.com>
11867
11868 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11869 'gnulib/Makefile.in' to the list.
11870
4ac93832
TT
118712020-02-24 Tom Tromey <tom@tromey.com>
11872
11873 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11874 Remove.
11875 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11876 XOBNEWVEC.
11877
197400e8
TT
118782020-02-24 Tom Tromey <tom@tromey.com>
11879
11880 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11881 New method.
11882 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11883 (dw2_do_instantiate_symtab, dw2_get_file_names)
11884 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11885
76935768
TT
118862020-02-24 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11889 make_scoped_restore.
11890 (dwarf2_psymtab::read_symtab): Don't clear
11891 reading_partial_symbols.
11892
a88ef40d
TV
118932020-02-24 Tom de Vries <tdevries@suse.de>
11894
11895 PR gdb/25592
11896 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11897
c9af6521
TV
118982020-02-24 Tom de Vries <tdevries@suse.de>
11899
11900 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11901 commands layout next/prev/regs.
11902
5707a07a
TT
119032020-02-22 Tom Tromey <tom@tromey.com>
11904
11905 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11906 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11907
3b0fb49e
TT
119082020-02-22 Tom Tromey <tom@tromey.com>
11909
11910 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11911
283be8bf
TT
119122020-02-22 Tom Tromey <tom@tromey.com>
11913
11914 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11915 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11916 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11917 * tui/tui.c (_initialize_tui): Add usage text.
11918
ca793b96
TT
119192020-02-22 Tom Tromey <tom@tromey.com>
11920
11921 * tui/tui-win.c (tui_set_focus_command)
11922 (tui_set_win_height_command): Use error_no_arg.
11923 (_initialize_tui_win): Update help text.
11924 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11925
432b5c40
TT
119262020-02-22 Tom Tromey <tom@tromey.com>
11927
11928 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11929 * tui/tui-disasm.h (struct tui_disasm_window)
11930 <display_start_addr>: Declare.
11931 * tui/tui-source.h (struct tui_source_window)
11932 <display_start_addr>: Declare.
11933 * tui/tui-winsource.h (struct tui_source_window_base)
11934 <show_source_line, display_start_addr>: New methods.
11935 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11936 Rename and move to protected section.
11937 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11938 (tui_source_window_base::do_erase_source_content): Update.
11939 (tui_source_window_base::show_source_line): Now a method.
11940 (tui_source_window_base::show_source_content)
11941 (tui_source_window_base::tui_source_window_base)
11942 (tui_source_window_base::rerender)
11943 (tui_source_window_base::refill)
11944 (tui_source_window_base::do_scroll_horizontal)
11945 (tui_source_window_base::set_is_exec_point_at)
11946 (tui_source_window_base::update_breakpoint_info)
11947 (tui_source_window_base::update_exec_info): Update.
11948 * tui/tui-source.c (tui_source_window::set_contents)
11949 (tui_source_window::showing_source_p)
11950 (tui_source_window::do_scroll_vertical)
11951 (tui_source_window::location_matches_p)
11952 (tui_source_window::line_is_displayed): Update.
11953 (tui_source_window::display_start_addr): New method.
11954 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11955 (tui_disasm_window::do_scroll_vertical)
11956 (tui_disasm_window::location_matches_p): Update.
11957 (tui_disasm_window::display_start_addr): New method.
11958
01b1af32
TT
119592020-02-22 Tom Tromey <tom@tromey.com>
11960
11961 * NEWS: Add entry for gdb.register_window_type.
11962 * tui/tui-layout.h (window_factory): New typedef.
11963 (tui_register_window): Declare.
11964 * tui/tui-layout.c (saved_tui_windows): New global.
11965 (tui_apply_current_layout): Use it.
11966 (tui_register_window): New function.
11967 * python/python.c (do_start_initialization): Call
11968 gdbpy_initialize_tui.
11969 (python_GdbMethods): Add "register_window_type" function.
11970 * python/python-internal.h (gdbpy_register_tui_window)
11971 (gdbpy_initialize_tui): Declare.
11972 * python/py-tui.c: New file.
11973 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11974
fc96d20b
TT
119752020-02-22 Tom Tromey <tom@tromey.com>
11976
11977 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11978
935c78c0
TT
119792020-02-22 Tom Tromey <tom@tromey.com>
11980
11981 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11982 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11983 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11984 (tui_set_win_focus_to): Move from tui-win.c.
11985
0240c8f1
TT
119862020-02-22 Tom Tromey <tom@tromey.com>
11987
11988 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11989 functions.
11990 (known_window_types): New global.
11991 (tui_get_window_by_name): Reimplement.
11992 (initialize_known_windows): New function.
11993 (validate_window_name): Rewrite.
11994 (_initialize_tui_layout): Call initialize_known_windows.
11995
fdb01f0c
TT
119962020-02-22 Tom Tromey <tom@tromey.com>
11997
11998 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11999 Remove constants.
12000 * tui/tui-winsource.h (struct tui_source_window_base)
12001 <tui_source_window_base>: Remove parameter.
12002 * tui/tui-winsource.c
12003 (tui_source_window_base::tui_source_window_base): Remove
12004 parameter.
12005 (tui_source_window_base::refill): Update.
12006 * tui/tui-stack.h (struct tui_locator_window)
12007 <tui_locator_window>: Update.
12008 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12009 Default the constructor.
12010 * tui/tui-regs.h (struct tui_data_item_window)
12011 <tui_data_item_window>: Default the constructor.
12012 (struct tui_data_window) <tui_data_window>: Likewise.
12013 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12014 Default the constructor.
12015 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12016 Default the constructor.
12017 <type>: Remove.
12018 (struct tui_win_info) <tui_win_info>: Default the constructor.
12019 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12020 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12021 Default the constructor.
12022
865a5aec
TT
120232020-02-22 Tom Tromey <tom@tromey.com>
12024
12025 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12026 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12027 * tui/tui-win.c (tui_resize_all): Don't call
12028 tui_delete_invisible_windows.
12029 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12030 done.
12031 (tui_set_layout): Update.
12032 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12033 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12034 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12035
e098d18c
TT
120362020-02-22 Tom Tromey <tom@tromey.com>
12037
12038 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12039 correctly.
12040
eb9c8874
TT
120412020-02-22 Tom Tromey <tom@tromey.com>
12042
12043 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12044
7eed1a8e
TT
120452020-02-22 Tom Tromey <tom@tromey.com>
12046
12047 * tui/tui-winsource.h (struct tui_source_window_iterator)
12048 <inner_iterator>: New etytypedef.
12049 <tui_source_window_iterator>: Take "end" parameter.
12050 <tui_source_window_iterator>: Take iterator.
12051 <operator*, advance>: Update.
12052 <m_iter>: Change type.
12053 <m_end>: New field.
12054 (struct tui_source_windows) <begin, end>: Update.
12055 * tui/tui-layout.c (tui_windows): New global.
12056 (tui_apply_current_layout): Clear tui_windows.
12057 (tui_layout_window::apply): Update tui_windows.
12058 * tui/tui-data.h (tui_windows): Declare.
12059 (all_tui_windows): Now inline function.
12060 (class tui_window_iterator, struct all_tui_windows): Remove.
12061
7c043ba6
TT
120622020-02-22 Tom Tromey <tom@tromey.com>
12063
12064 PR tui/17850:
12065 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12066 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12067 "height" argument.
12068 (class tui_layout_window) <get_sizes>: Likewise.
12069 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12070 argument.
12071 <get_sizes>: Add "height" argument.
12072 <m_vertical>: New field.
12073 * tui/tui-layout.c (tui_layout_split::clone): Update.
12074 (tui_layout_split::get_sizes): Add "height" argument.
12075 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12076 (tui_new_layout_command): Parse "-horizontal".
12077 (_initialize_tui_layout): Update help string.
12078 (tui_layout_split::specification): Add "-horizontal" when needed.
12079 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12080 argument.
12081 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12082 New methods.
12083
6bc56648
TT
120842020-02-22 Tom Tromey <tom@tromey.com>
12085
12086 * tui/tui-layout.h (enum tui_adjust_result): New.
12087 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12088 (class tui_layout_window) <adjust_size>: Return
12089 tui_adjust_result. Rewrite.
12090 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12091 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12092
c22fef7e
TT
120932020-02-22 Tom Tromey <tom@tromey.com>
12094
12095 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12096 parameter and return types.
12097 (class tui_layout_base) <specification>: Add "depth".
12098 (class tui_layout_window) <specification>: Add "depth".
12099 (class tui_layout_split) <specification>: Add "depth".
12100 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12101 and return types.
12102 (tui_new_layout_command): Parse sub-layouts.
12103 (_initialize_tui_layout): Update help string.
12104 (tui_layout_window::specification): Add "depth".
12105 (add_layout_command): Update.
12106
ee325b61
TT
121072020-02-22 Tom Tromey <tom@tromey.com>
12108
12109 * NEWS: Add "tui new-layout" item.
12110 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12111 Add new-layout command to help text.
12112 (validate_window_name): New function.
12113 (tui_new_layout_command): New function.
12114 (_initialize_tui_layout): Register "new-layout".
12115 (tui_layout_window::specification): New method.
12116 (tui_layout_window::specification): New method.
12117 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12118 method.
12119 (class tui_layout_window) <specification>: New method.
12120 (class tui_layout_split) <specification>: New method.
12121
416eb92d
TT
121222020-02-22 Tom Tromey <tom@tromey.com>
12123
12124 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12125 * tui/tui-win.c (window_name_completer): Update comment.
12126 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12127 Declare method.
12128 (class tui_layout_window) <replace_window>: Likewise.
12129 (class tui_layout_split) <replace_window>: Likewise.
12130 (tui_set_layout): Don't declare.
12131 (tui_set_initial_layout): Declare function.
12132 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12133 (asm_regs_layout): New globals.
12134 (tui_current_layout, show_layout): Remove.
12135 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12136 (find_layout, tui_apply_layout): New function.
12137 (layout_completer): Remove.
12138 (tui_next_layout): Reimplement.
12139 (tui_next_layout_command): New function.
12140 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12141 (tui_regs_layout): Reimplement.
12142 (tui_regs_layout_command): New function.
12143 (extract_display_start_addr): Rewrite.
12144 (next_layout, prev_layout): Remove.
12145 (tui_layout_window::replace_window): New method.
12146 (tui_layout_split::replace_window): New method.
12147 (destroy_layout): New function.
12148 (layout_list): New global.
12149 (add_layout_command): New function.
12150 (initialize_layouts): Update.
12151 (tui_layout_command): New function.
12152 (_initialize_tui_layout): Install "layout" commands.
12153 * tui/tui-data.h (enum tui_layout_type): Remove.
12154 (tui_current_layout): Don't declare.
12155
0dbc2fc7
TT
121562020-02-22 Tom Tromey <tom@tromey.com>
12157
12158 * tui/tui-regs.c (tui_reg_layout): Remove.
12159 (tui_reg_command): Use tui_regs_layout.
12160 * tui/tui-layout.h (tui_reg_command): Declare.
12161 * tui/tui-layout.c (tui_reg_command): New function.
12162
5afe342e
TT
121632020-02-22 Tom Tromey <tom@tromey.com>
12164
12165 * tui/tui.c (tui_rl_delete_other_windows): Call
12166 tui_remove_some_windows.
12167 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12168 Declare method.
12169 (class tui_layout_window) <remove_windows>: New method.
12170 (class tui_layout_split) <remove_windows>: Declare.
12171 (tui_remove_some_windows): Declare.
12172 * tui/tui-layout.c (tui_remove_some_windows): New function.
12173 (tui_layout_split::remove_windows): New method.
12174
427326a8
TT
121752020-02-22 Tom Tromey <tom@tromey.com>
12176
12177 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12178 * tui/tui-layout.h (tui_next_layout): Declare.
12179 * tui/tui-layout.c (tui_next_layout): New function.
12180
3fe12b6d
TT
121812020-02-22 Tom Tromey <tom@tromey.com>
12182
12183 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12184 correct coordinates.
12185
59b8b5d2
TT
121862020-02-22 Tom Tromey <tom@tromey.com>
12187
12188 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12189 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12190 DATA_WIN case.
12191
2a3d458b
TT
121922020-02-22 Tom Tromey <tom@tromey.com>
12193
12194 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12195 TUI_DISASM_WIN, not tui_win_list.
12196
3f0cbb04
TT
121972020-02-22 Tom Tromey <tom@tromey.com>
12198
12199 * valprint.c (generic_val_print_enum_1)
12200 (val_print_type_code_flags): Style member names.
12201 * rust-lang.c (val_print_struct, rust_print_enum)
12202 (rust_print_struct_def, rust_internal_print_type): Style member
12203 names.
12204 * p-valprint.c (pascal_object_print_value_fields): Style member
12205 names. Only call fprintf_symbol_filtered for static members.
12206 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12207 * f-valprint.c (f_val_print): Style member names.
12208 * f-typeprint.c (f_type_print_base): Style member names.
12209 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12210 call fprintf_symbol_filtered for static members.
12211 (cp_print_class_member): Style member names.
12212 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12213 member names.
12214 * ada-valprint.c (ada_print_scalar): Style enum names.
12215 (ada_val_print_enum): Likewise.
12216 * ada-typeprint.c (print_enum_type): Style enum names.
12217
d4d947ae
TT
122182020-02-21 Tom Tromey <tom@tromey.com>
12219
12220 * psympriv.h (struct partial_symtab): Update comment.
12221
e94e944b
TT
122222020-02-21 Tom Tromey <tromey@adacore.com>
12223
12224 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12225 type is CORE_ADDR.
12226
1eb73179
TV
122272020-02-21 Tom de Vries <tdevries@suse.de>
12228
12229 PR gdb/25534
12230 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12231 if dependencies[i]->user != NULL.
12232
4f180d53
AT
122332020-02-21 Ali Tamur <tamur@google.com>
12234
12235 * dwarf2/read.c (dwarf2_name): Add null check.
12236
22b6cd70
TT
122372020-02-20 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12240 ">=", in binary search.
12241 (dwarf2_find_containing_comp_unit): New overload.
12242 (run_test): New self-test.
12243 (_initialize_dwarf2_read): Register new test.
12244
bd0cf5a6
NC
122452020-02-20 Nelson Chu <nelson.chu@sifive.com>
12246
12247 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12248 * riscv-tdep.h: Likewise.
12249 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12250 rv32-only CSR.
12251 * features/riscv/64bit-csr.xml: Regenerated.
12252
3f702acd
SDJ
122532020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12254 Tom Tromey <tom@tromey.com>
12255
12256 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12257 of 'fputc_unfiltered'.
12258 (putchar_unfiltered): Call 'fputc_unfiltered'.
12259 (fputc_unfiltered): Call 'fputs_unfiltered'.
12260
d13c7322
AB
122612020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12262
12263 * config.in: Regenerate.
12264 * configure: Regenerate.
12265 * configure.ac: Add --with-python-libdir option.
12266 * main.c: Use WITH_PYTHON_LIBDIR.
12267
869d8950
TT
122682020-02-19 Tom Tromey <tom@tromey.com>
12269
12270 * symtab.c (general_symbol_info::compute_and_set_names): Use
12271 obstack_strndup. Simplify call to symbol_set_demangled_name.
12272
298e9637
SM
122732020-02-19 Simon Marchi <simon.marchi@efficios.com>
12274
12275 * dwarf2/read.c (allocate_signatured_type_table,
12276 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12277 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12278 Remove objfile parameter, update all callers.
12279
08410482
DE
122802020-02-19 Doug Evans <dje@google.com>
12281
12282 PR rust/25535
12283 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12284 rust_enum_variant calculation.
12285
dfdeeca1
TT
122862020-02-19 Tom Tromey <tromey@adacore.com>
12287
12288 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12289
2ef5453b
TT
122902020-02-19 Tom Tromey <tromey@adacore.com>
12291
12292 * ada-lang.c (cache_symbol): Use obstack_strdup.
12293
9f1528a1
AB
122942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12295
12296 * configure: Regenerate.
12297
d3c22fa8
TT
122982020-02-19 Tom Tromey <tromey@adacore.com>
12299
12300 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12301 NULL check.
12302
bf84f706
MR
123032020-02-19 Maciej W. Rozycki <macro@wdc.com>
12304
12305 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12306
d1c9b20f
AB
123072020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12308
12309 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12310 if GDBSERVER is not defined.
12311 (riscv_tdesc_cache): Likewise, also store const target_desc.
12312 (STATIC_IN_GDB): Define.
12313 (riscv_create_target_description): Update declaration with
12314 STATIC_IN_GDB.
12315 (riscv_lookup_target_description): New function, only define if
12316 GDBSERVER is not defined.
12317 * arch/riscv.h (riscv_create_target_description): Declare only
12318 when GDBSERVER is defined.
12319 (riscv_lookup_target_description): New declaration when GDBSERVER
12320 is not defined.
12321 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12322 (riscv_linux_read_features): ...this, and return
12323 riscv_gdbarch_features instead of target_desc.
12324 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12325 (riscv_linux_read_description): Rename to...
12326 (riscv_linux_read_features): ...this.
12327 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12328 Update to use riscv_gdbarch_features and
12329 riscv_lookup_target_description.
12330 * riscv-tdep.c (riscv_find_default_target_description): Use
12331 riscv_lookup_target_description instead of
12332 riscv_create_target_description.
12333
373d7ac0
SM
123342020-02-18 Simon Marchi <simon.marchi@efficios.com>
12335
12336 * valprint.c (generic_val_print_enum_1): When printing a flag
12337 enum with value 0 and there is no enumerator with value 0, print
12338 just "0" instead of "(unknown: 0x0)".
12339
b29a2df0
SM
123402020-02-18 Simon Marchi <simon.marchi@efficios.com>
12341
12342 * valprint.c (generic_val_print_enum_1): Print unknown part of
12343 flag enum in hex.
12344
6740f0cc
SM
123452020-02-18 Simon Marchi <simon.marchi@efficios.com>
12346
12347 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12348 flag enums to contain duplicate enumerators.
12349 * valprint.c (generic_val_print_enum_1): Update comment.
12350
edd45eb0
SM
123512020-02-18 Simon Marchi <simon.marchi@efficios.com>
12352
12353 * dwarf2/read.c: Include "count-one-bits.h".
12354 (update_enumeration_type_from_children): If an enumerator has
12355 multiple bits set, don't treat the enumeration as a "flag enum".
12356 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12357 of flag enums have 0 or 1 bit set.
12358
6d0cf446
BE
123592020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12360
12361 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12362 conversion.
12363 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12364 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12365 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12366 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12367 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12368
7001c1b7
SM
123692020-02-18 Simon Marchi <simon.marchi@efficios.com>
12370
12371 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12372
fdb61c6c
SM
123732020-02-14 Simon Marchi <simon.marchi@efficios.com>
12374
12375 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12376 displaced_step_closure_up.
12377 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12378 (struct displaced_step_closure_up):
12379 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12380 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12381 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12382 Likewise.
12383 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12384 * gdbarch.c, gdbarch.h: Re-generate.
12385 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12386 displaced_step_closure_up.
12387 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12388 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12389 * infrun.h (displaced_step_closure_up): New type alias.
12390 (struct displaced_step_inferior_state) <step_closure>: Change
12391 type to displaced_step_closure_up.
12392 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12393 displaced_step_closure_up.
12394 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12395
a4a38eb4
TT
123962020-02-14 Tom Tromey <tom@tromey.com>
12397
12398 * minidebug.c (gnu_debug_key): New global.
12399 (find_separate_debug_file_in_section): Use it.
12400
e8217e61
SM
124012020-02-14 Simon Marchi <simon.marchi@efficios.com>
12402
12403 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12404 std::unique_ptr.
12405 * gdbarch.c: Re-generate.
12406 * gdbarch.h: Re-generate.
12407 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12408 change.
12409 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12410 type to std::unique_ptr.
12411 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12412 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12413 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12414 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12415 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12416 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12417 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12418 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12419 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12420
d8d83535
SM
124212020-02-14 Simon Marchi <simon.marchi@efficios.com>
12422
12423 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12424 std::unique_ptr.
12425 (displaced_step_clear): Rename to...
12426 (displaced_step_reset): ... this. Just call displaced->reset ().
12427 (displaced_step_clear_cleanup): Rename to...
12428 (displaced_step_reset_cleanup): ... this.
12429 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12430 (displaced_step_fixup): Likewise.
12431 (resume_1): Likewise.
12432 (handle_inferior_event): Restore child's memory before calling
12433 displaced_step_fixup on the parent.
12434 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12435 to std::unique_ptr.
12436 <step_closure>: Change type to std::unique_ptr.
12437
5f661e03
SM
124382020-02-14 Simon Marchi <simon.marchi@efficios.com>
12439
12440 * arm-tdep.c: Include count-one-bits.h.
12441 (cleanup_block_store_pc): Use count_one_bits.
12442 (cleanup_block_load_pc): Use count_one_bits.
12443 (arm_copy_block_xfer): Use count_one_bits.
12444 (thumb2_copy_block_xfer): Use count_one_bits.
12445 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12446 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12447 (thumb_get_next_pcs_raw): Use count_one_bits.
12448 (arm_get_next_pcs_raw): Use count_one_bits_l.
12449 * arch/arm.c (bitcount): Remove.
12450 * arch/arm.h (bitcount): Remove.
12451
8084e579
TT
124522020-02-14 Tom Tromey <tromey@adacore.com>
12453
12454 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12455 Update.
12456 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12457 * dwarf2/loc.c (call_site_find_chain_1): Return
12458 unique_xmalloc_ptr.
12459 (call_site_find_chain): Likewise.
12460
258bf0ee
RB
124612020-02-14 Richard Biener <rguenther@suse.de>
12462
12463 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12464 on expression with division operators.
12465
f98a8458
AKS
124662020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12467
12468 * MAINTAINERS (Write After Approval): Adding myself.
12469
d1437c0e
TT
124702020-02-12 Tom Tromey <tom@tromey.com>
12471
12472 * event-loop.c (event_data, gdb_event, event_handler_func):
12473 Remove.
12474
3d4560f7
TT
124752020-02-12 Tom Tromey <tom@tromey.com>
12476
12477 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12478 (dwarf2_frame_objfile_data): Add comment.
12479 (find_comp_unit, set_comp_unit): New functions.
12480 (dwarf2_frame_find_fde): Use find_comp_unit.
12481 (dwarf2_build_frame_info): Use set_comp_unit.
12482
21982304
TT
124832020-02-12 Tom Tromey <tom@tromey.com>
12484
12485 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12486 (comp_unit): Don't initialize objfile.
12487 (execute_cfa_program): Add text_offset parameter.
12488 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12489 (dwarf2_frame_cache): Update.
12490 (dwarf2_build_frame_info): Don't set "objfile" member.
12491
4debb237
TT
124922020-02-12 Tom Tromey <tom@tromey.com>
12493
12494 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12495 (decode_frame_entry): Likewise.
12496 (dwarf2_build_frame_info): Update.
12497
0d404d44
TT
124982020-02-12 Tom Tromey <tom@tromey.com>
12499
12500 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12501 (decode_frame_entry_1): Use the comp_unit obstack.
12502
a7a3ae5c
TT
125032020-02-12 Tom Tromey <tom@tromey.com>
12504
12505 * dwarf2/frame.c (struct comp_unit): Add initializers and
12506 constructor.
12507 (dwarf2_frame_objfile_data): Store a comp_unit.
12508 (dwarf2_frame_find_fde): Update.
12509 (dwarf2_build_frame_info): Use "new".
12510
a9d65418
TT
125112020-02-12 Tom Tromey <tom@tromey.com>
12512
12513 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12514 (dwarf2_fde_table): Typedef for std::vector.
12515 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12516 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12517 (decode_frame_entry): Update.
12518 (dwarf2_build_frame_info): Use "new".
12519
7559c217
CB
125202020-02-12 Christian Biesinger <cbiesinger@google.com>
12521
12522 * arm-tdep.c (arm_gdbarch_init): Update.
12523 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12524 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12525 have_neon, is_m>: Change to bool.
12526
aeefc73c
CB
125272020-02-12 Christian Biesinger <cbiesinger@google.com>
12528
12529 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12530
d27b8e5f
TT
125312020-02-12 Tom Tromey <tom@tromey.com>
12532
12533 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12534
cd5900f3
HD
125352020-02-12 Hannes Domani <ssbssa@yahoo.de>
12536
12537 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12538 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12539
f056b22b
TT
125402020-02-11 Tom Tromey <tom@tromey.com>
12541
12542 * psymtab.h: Update comment.
12543
f92ff6b5
TT
125442020-02-11 Tom Tromey <tom@tromey.com>
12545
12546 * gdb_obstack.h (struct auto_obstack): Use
12547 DISABLE_COPY_AND_ASSIGN.
12548
3fd6912b
TT
125492020-02-11 Tom Tromey <tom@tromey.com>
12550
12551 * dwarf2/frame.h (struct objfile): Don't forward declare.
12552
69ed9b74
CB
125532020-02-11 Christian Biesinger <cbiesinger@google.com>
12554
12555 * cris-tdep.c (cris_supply_gregset): Change signature to match
12556 what struct regset expects.
12557 (cris_regset): New struct.
12558 (fetch_core_registers): Remove.
12559 (cris_iterate_over_regset_sections): New function.
12560 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12561 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12562
bda874f6
CB
125632020-02-11 Christian Biesinger <cbiesinger@google.com>
12564
12565 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12566 registers.
12567
754e1564
CB
125682020-02-11 Christian Biesinger <cbiesinger@google.com>
12569
12570 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12571
8ddd8e0e
SM
125722020-02-11 Simon Marchi <simon.marchi@efficios.com>
12573
12574 * configure: Re-generate.
12575
898e7f60
SM
125762020-02-11 Simon Marchi <simon.marchi@efficios.com>
12577
12578 * configure: Re-generate.
12579
58df732b
SM
125802020-02-11 Simon Marchi <simon.marchi@efficios.com>
12581
12582 * acinclude: Update warning.m4 path.
12583 * warning.m4: Move to gdbsupport.
12584
da5bd37e
TT
125852020-02-11 Tom Tromey <tromey@adacore.com>
12586
12587 * remote.c (remote_console_output): Update.
12588 * printcmd.c (printf_command): Update.
12589 * event-loop.c (gdb_wait_for_event): Update.
12590 * linux-nat.c (sigchld_handler): Update.
12591 * remote-sim.c (gdb_os_write_stdout): Update.
12592 (gdb_os_flush_stdout): Update.
12593 (gdb_os_flush_stderr): Update.
12594 (gdb_os_write_stderr): Update.
12595 * exceptions.c (print_exception): Update.
12596 * remote-fileio.c (remote_fileio_func_read): Update.
12597 (remote_fileio_func_write): Update.
12598 * tui/tui.c (tui_enable): Update.
12599 * tui/tui-interp.c (tui_interp::init): Update.
12600 * utils.c (init_page_info): Update.
12601 (putchar_unfiltered, fputc_unfiltered): Update.
12602 (gdb_flush): Update.
12603 (emit_style_escape): Update.
12604 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12605 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12606 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12607 (stderr_file::write): Update.
12608 (stderr_file::puts): Update.
12609 * ui-file.h (ui_file_isatty, ui_file_write)
12610 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12611 (ui_file_puts): Don't declare.
12612
85f0dd3c
TV
126132020-02-10 Tom de Vries <tdevries@suse.de>
12614
12615 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12616 sentinel to char *.
12617
2e927613
TV
126182020-02-09 Tom de Vries <tdevries@suse.de>
12619
12620 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12621 filename if it matches "<artificial>".
12622
6bafc845
HD
126232020-02-09 Hannes Domani <ssbssa@yahoo.de>
12624
12625 * windows-tdep.c (struct enum_value_name): New struct.
12626 (create_enum): New function.
12627 (windows_get_siginfo_type): Create and use enum types.
12628
7928d571
HD
126292020-02-09 Hannes Domani <ssbssa@yahoo.de>
12630
12631 * NEWS: Mention $_siginfo support for Windows.
12632 * windows-nat.c (handle_exception): Set siginfo_er.
12633 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12634 (windows_xfer_siginfo): New function.
12635 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12636 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12637 (init_windows_gdbarch_data): New function.
12638 (get_windows_gdbarch_data): New function.
12639 (windows_get_siginfo_type): New function.
12640 (windows_init_abi): Register windows_get_siginfo_type.
12641 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12642
6751ebae
TT
126432020-02-08 Tom Tromey <tom@tromey.com>
12644
12645 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12646 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12647 <keep>: Declare method.
12648 <m_keep>: Remove member.
12649 <~cutu_reader>: Remove.
12650 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12651 (cutu_reader::cutu_reader): Update.
12652 (cutu_reader::keep): Rename from ~cutu_reader.
12653 (process_psymtab_comp_unit, build_type_psymtabs_1)
12654 (process_skeletonless_type_unit, load_partial_comp_unit)
12655 (load_full_comp_unit, dwarf2_read_addr_index)
12656 (read_signatured_type): Update.
12657
135f5437
TT
126582020-02-08 Tom Tromey <tom@tromey.com>
12659
12660 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12661 "want_partial_unit" parameter.
12662 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12663 Inline check for DW_TAG_partial_unit.
12664 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12665
9f66ff1c
TT
126662020-02-08 Tom Tromey <tom@tromey.com>
12667
12668 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12669 read.c.
12670 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12671 read.c.
12672
c8a7a66f
TT
126732020-02-08 Tom Tromey <tom@tromey.com>
12674
12675 * dwarf2/read.c (read_address): Move to comp-unit.c.
12676 (dwarf2_rnglists_process, dwarf2_ranges_process)
12677 (read_attribute_value, dwarf_decode_lines_1)
12678 (var_decode_location, decode_locdesc): Update.
12679 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12680 read.c. Remove "cu" parameter.
12681 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12682 method.
12683
8266302d
TT
126842020-02-08 Tom Tromey <tom@tromey.com>
12685
12686 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12687 (read_indirect_line_string): Update.
12688 * dwarf2/comp-unit.c (read_offset): Remove.
12689 (read_comp_unit_head): Update.
12690 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12691 method.
12692 (read_offset): Don't declare.
12693
4057dfde
TT
126942020-02-08 Tom Tromey <tom@tromey.com>
12695
12696 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12697 * dwarf2/read.c (struct comp_unit_head): Move to
12698 dwarf2/comp-unit.h.
12699 (enum class rcuh_kind): Move to comp-unit.h.
12700 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12701 (read_comp_unit_head, error_check_comp_unit_head)
12702 (read_and_check_comp_unit_head): Move to comp-unit.c.
12703 (read_offset, dwarf_unit_type_name): Likewise.
12704 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12705 (cutu_reader::cutu_reader, read_call_site_scope)
12706 (find_partial_die, follow_die_offset): Update.
12707 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12708
24aa364d
TT
127092020-02-08 Tom Tromey <tom@tromey.com>
12710
12711 * dwarf2/read.c (read_offset_1): Move to leb.c.
12712 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12713 (dwarf_decode_macro_bytes): Update.
12714 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12715 * dwarf2/leb.h (read_offset): Declare.
12716
2c7d5afc
TT
127172020-02-08 Tom Tromey <tom@tromey.com>
12718
12719 * dwarf2/read.c (dwarf2_section_size): Remove.
12720 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12721 Update.
12722 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12723
4075cb26
TT
127242020-02-08 Tom Tromey <tom@tromey.com>
12725
12726 * dwarf2/read.c (read_initial_length): Move to leb.c.
12727 * dwarf2/leb.h (read_initial_length): Declare.
12728 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12729 handle_nonstd parameter.
12730 * dwarf2/frame.c (read_initial_length): Remove.
12731 (decode_frame_entry_1): Update.
12732
09ba997f
TT
127332020-02-08 Tom Tromey <tom@tromey.com>
12734
12735 * dwarf2/loc.c (dwarf2_find_location_expression)
12736 (dwarf_evaluate_loc_desc::get_tls_address)
12737 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12738 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12739 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12740 (dwarf2_compile_property_to_c)
12741 (dwarf2_loc_desc_get_symbol_read_needs)
12742 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12743 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12744 (loclist_describe_location, loclist_tracepoint_var_ref)
12745 (loclist_generate_c_location): Update.
12746 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12747 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12748 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12749 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12750 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12751 (dwarf2_per_cu_data::addr_size)
12752 (dwarf2_per_cu_data::ref_addr_size)
12753 (dwarf2_per_cu_data::text_offset)
12754 (dwarf2_per_cu_data::addr_type): Now methods.
12755 (per_cu_header_read_in): Make per_cu "const".
12756 (dwarf2_version): Remove.
12757 (dwarf2_per_cu_data::int_type): Now a method.
12758 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12759 (set_die_type, read_array_type, read_subrange_index_type)
12760 (read_tag_string_type, read_subrange_type): Update.
12761 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12762 offset_size, ref_addr_size, text_offset, addr_type, version,
12763 objfile, int_type, addr_sized_int_type>: Declare methods.
12764
96c738c0
TT
127652020-02-08 Tom Tromey <tom@tromey.com>
12766
12767 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12768 Move earlier.
12769
8fdd972c
TT
127702020-02-08 Tom Tromey <tom@tromey.com>
12771
12772 * dwarf2/read.h (dwarf_line_debug): Declare.
12773 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12774 * dwarf2/read.c: Move line_header code to new files.
12775 (dwarf_line_debug): No longer static.
12776 * dwarf2/line-header.c: New file.
12777 * dwarf2/line-header.h: New file.
12778
03075812
TT
127792020-02-08 Tom Tromey <tom@tromey.com>
12780
12781 * dwarf2/read.c (struct line_header) <file_full_name,
12782 file_file_name>: Return unique_xmalloc_ptr.
12783 (line_header::file_file_name): Update.
12784 (line_header::file_full_name): Update.
12785 (dw2_get_file_names_reader): Update.
12786 (macro_start_file): Update.
12787
bb822404
TT
127882020-02-08 Tom Tromey <tom@tromey.com>
12789
12790 * dwarf2/read.c (struct line_header) <file_full_name,
12791 file_file_name>: Declare methods.
12792 (dw2_get_file_names_reader): Update.
12793 (file_file_name): Now a method.
12794 (file_full_name): Likewise.
12795 (macro_start_file): Update.
12796
009b64fc
TT
127972020-02-08 Tom Tromey <tom@tromey.com>
12798
12799 * dwarf2/read.c (dwarf_always_disassemble)
12800 (show_dwarf_always_disassemble): Move to loc.c.
12801 (_initialize_dwarf2_read): Move "always-disassemble" registration
12802 to loc.c.
12803 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12804 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12805 static.
12806 (show_dwarf_always_disassemble): Move from read.c.
12807 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12808
5895093f
TT
128092020-02-08 Tom Tromey <tom@tromey.com>
12810
12811 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12812 (create_quick_file_names_table): Return htab_up.
12813 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12814 Update.
12815 * dwarf2/read.h (struct dwarf2_per_objfile)
12816 <quick_file_names_table>: Now htab_up.
12817
b3b32279
TT
128182020-02-08 Tom Tromey <tom@tromey.com>
12819
12820 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12821
1d33d811
TT
128222020-02-08 Tom Tromey <tom@tromey.com>
12823
12824 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12825 Rewrite.
12826 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12827 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12828 (abbrev_table::abbrev_table): No longer inline.
12829 (ABBREV_HASH_SIZE): Remove.
12830 (abbrev_table::m_abbrevs): Now an htab_up.
12831
86de1d91
TT
128322020-02-08 Tom Tromey <tom@tromey.com>
12833
12834 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12835 (cutu_reader): Update.
12836 (build_type_psymtabs_1): Update.
12837 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12838 (abbrev_table::alloc_abbrev): Update.
12839 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12840 (abbrev_table::read): New static method, renamed from
12841 abbrev_table_read_table.
12842 (abbrev_table::alloc_abbrev)
12843 (abbrev_table::add_abbrev): Now private.
12844 (abbrev_table::abbrev_table): Now private.
12845 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12846
0335378b
TT
128472020-02-08 Tom Tromey <tom@tromey.com>
12848
12849 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12850 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12851 htab_up.
12852
48b490f2
TT
128532020-02-08 Tom Tromey <tom@tromey.com>
12854
12855 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12856 htab_up.
12857 (lookup_dwo_unit_in_dwp): Update.
12858 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12859 on obstack.
12860
bc68fb19
TT
128612020-02-08 Tom Tromey <tom@tromey.com>
12862
12863 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12864 obstack.
12865
d15acc42
TT
128662020-02-08 Tom Tromey <tom@tromey.com>
12867
12868 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12869 line_header_hash.
12870 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12871 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12872 Change type to htab_up.
12873
eaa5fa8b
TT
128742020-02-08 Tom Tromey <tom@tromey.com>
12875
12876 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12877 htab_up. Don't allocate on obstack.
12878 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12879 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12880 Change type to htab_up.
12881
b0b6a987
TT
128822020-02-08 Tom Tromey <tom@tromey.com>
12883
12884 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12885 Change type to htab_up.
12886 * dwarf2/read.c (create_signatured_type_table_from_index)
12887 (create_signatured_type_table_from_debug_names)
12888 (create_all_type_units, add_type_unit)
12889 (lookup_dwo_signatured_type, lookup_signatured_type)
12890 (process_skeletonless_type_unit): Update.
12891 (create_debug_type_hash_table, create_debug_types_hash_table):
12892 Change type of types_htab.
12893 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12894 htab_up. Don't allocate on obstack.
12895 (create_cus_hash_table): Change type of cus_htab parameter.
12896 (struct dwo_file) <cus, tus>: Now htab_up.
12897 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12898 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12899 (queue_and_load_all_dwo_tus): Update.
12900 * dwarf2/index-write.c (write_gdbindex): Update.
12901 (write_debug_names): Update.
12902
39856def
TT
129032020-02-08 Tom Tromey <tom@tromey.com>
12904
12905 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12906 dwarf2/read.c. Remove "next" member. Add constructor ntad
12907 destructor.
12908 (struct dwarf2_per_objfile) <queue>: New member.
12909 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12910 dwarf2/read.h.
12911 (dwarf2_queue, dwarf2_queue_tail): Remove.
12912 (class dwarf2_queue_guard): Add parameter to constructor. Use
12913 DISABLE_COPY_AND_ASSIGN.
12914 <m_per_objfile>: New member.
12915 <~dwarf2_queue_guard>: Rewrite.
12916 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12917 Update.
12918 (~dwarf2_queue_item): New.
12919
3e225074
TT
129202020-02-08 Tom Tromey <tom@tromey.com>
12921
12922 * dwarf2/read.c (struct die_info) <has_children>: New member.
12923 (dw2_get_file_names_reader): Remove has_children.
12924 (dw2_get_file_names): Update.
12925 (read_cutu_die_from_dwo): Remove has_children.
12926 (cutu_reader::init_tu_and_read_dwo_dies)
12927 (cutu_reader::cutu_reader): Update.
12928 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12929 Remove has_children.
12930 (build_type_psymtabs_1, process_skeletonless_type_unit)
12931 (load_partial_comp_unit, load_full_comp_unit): Update.
12932 (create_dwo_cu_reader): Remove has_children.
12933 (create_cus_hash_table, read_die_and_children): Update.
12934 (read_full_die_1,read_full_die): Remove has_children.
12935 (read_signatured_type): Update.
12936 (class cutu_reader) <has_children>: Remove.
12937
82ca8957
TT
129382020-02-08 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2/expr.c: Rename from dwarf2expr.c.
12941 * dwarf2/expr.h: Rename from dwarf2expr.h.
12942 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12943 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12944 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12945 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12946 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12947 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12948 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12949 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12950 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12951 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12952 * dwarf2/loc.c: Rename from dwarf2loc.c.
12953 * dwarf2/loc.h: Rename from dwarf2loc.h.
12954 * dwarf2/read.c: Rename from dwarf2read.c.
12955 * dwarf2/read.h: Rename from dwarf2read.h.
12956 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12957 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12958 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12959 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12960 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12961 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12962 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12963 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12964 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12965 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12966 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12967 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12968 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12969 Update.
12970 * Makefile.in (COMMON_SFILES): Update.
12971 (HFILES_NO_SRCDIR): Update.
12972
9e35d499
TT
129732020-02-08 Tom Tromey <tom@tromey.com>
12974
12975 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12976 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12977
1eba2311
TT
129782020-02-08 Tom Tromey <tom@tromey.com>
12979
12980 * dwarf2read.h (struct die_info): Don't declare.
12981
e41c2da2
TT
129822020-02-08 Tom Tromey <tom@tromey.com>
12983
12984 * dwarf2read.h (die_info_ptr): Remove typedef.
12985
4fc6c0d5
TT
129862020-02-08 Tom Tromey <tom@tromey.com>
12987
12988 * dwarf2read.c (read_call_site_scope)
12989 (handle_data_member_location, dwarf2_add_member_fn)
12990 (mark_common_block_symbol_computed, read_common_block)
12991 (attr_to_dynamic_prop, partial_die_info::read)
12992 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12993 (dwarf2_symbol_mark_computed, set_die_type): Update.
12994 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12995 method.
12996 (attr_form_is_block): Don't declare.
12997 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12998
cd6c91b4
TT
129992020-02-08 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2read.c (dwarf2_find_base_address, )
13002 (read_call_site_scope, rust_containing_type)
13003 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13004 (handle_data_member_location, dwarf2_add_member_fn)
13005 (get_alignment, read_structure_type, process_structure_scope)
13006 (mark_common_block_symbol_computed, read_common_block)
13007 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13008 (partial_die_info::read, read_attribute_value, new_symbol)
13009 (lookup_die_type, dwarf2_get_ref_die_offset)
13010 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13011 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13012 (dwarf2_symbol_mark_computed): Update.
13013 * dwarf2/attribute.h (struct attribute) <value_as_address,
13014 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13015 methods.
13016 (value_as_address, attr_form_is_section_offset)
13017 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13018 * dwarf2/attribute.c (attribute::value_as_address)
13019 (attribute::form_is_section_offset, attribute::form_is_constant)
13020 (attribute::form_is_ref): Now methods.
13021
162dce55
TT
130222020-02-08 Tom Tromey <tom@tromey.com>
13023
13024 * dwarf2read.c (struct attribute, DW_STRING)
13025 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13026 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13027 (attr_form_is_block, attr_form_is_section_offset)
13028 (attr_form_is_constant, attr_form_is_ref): Move.
13029 * dwarf2/attribute.h: New file.
13030 * dwarf2/attribute.c: New file, from dwarf2read.c.
13031 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13032
3054dd54
TT
130332020-02-08 Tom Tromey <tom@tromey.com>
13034
13035 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13036 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13037 Move.
13038 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13039 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13040 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13041 abbrev.c.
13042 * dwarf2/abbrev.h: New file.
13043 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13044 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13045
96b79293
TT
130462020-02-08 Tom Tromey <tom@tromey.com>
13047
13048 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13049 (dwarf2_section_size, dwarf2_get_section_info)
13050 (create_signatured_type_table_from_debug_names)
13051 (create_addrmap_from_aranges, read_debug_names_from_section)
13052 (get_gdb_index_contents_from_section, read_comp_unit_head)
13053 (error_check_comp_unit_head, read_abbrev_offset)
13054 (create_debug_type_hash_table, init_cu_die_reader)
13055 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13056 (read_comp_units_from_section, create_cus_hash_table)
13057 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13058 (create_dwp_v2_section, dwarf2_rnglists_process)
13059 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13060 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13061 (read_indirect_string_from_dwz, read_addr_index_1)
13062 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13063 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13064 (fill_in_loclist_baton): Update.
13065 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13066 get_containing_section, get_bfd_owner, get_bfd_section,
13067 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13068 (dwarf2_read_section, get_section_name, get_section_file_name)
13069 (get_containing_section, get_section_bfd_owner)
13070 (get_section_bfd_section, get_section_name, get_section_file_name)
13071 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13072 declare.
13073 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13074 (dwarf2_section_info::get_bfd_owner)
13075 (dwarf2_section_info::get_bfd_section)
13076 (dwarf2_section_info::get_name)
13077 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13078 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13079 (dwarf2_section_info::read): Now methods.
13080 * dwarf-index-write.c (class debug_names): Update.
13081
2c86cff9
TT
130822020-02-08 Tom Tromey <tom@tromey.com>
13083
13084 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13085 Move to dwarf2/section.h.
13086 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13087 (get_section_bfd_section, get_section_name)
13088 (get_section_file_name, get_section_id, get_section_flags)
13089 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13090 dwarf2/section.c.
13091 * dwarf2/section.h: New file.
13092 * dwarf2/section.c: New file, from dwarf2read.c.
13093 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13094
f4382c45
TT
130952020-02-08 Tom Tromey <tom@tromey.com>
13096
13097 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13098 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13099 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13100 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13101 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13102 * dwarf2/leb.h: New file, from dwarf2read.c.
13103 * dwarf2/leb.c: New file, from dwarf2read.c.
13104 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13105 Remove.
13106 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13107 (COMMON_SFILES): Add dwarf2/leb.c.
13108
01840b7a
JB
131092020-02-08 Joel Brobecker <brobecker@adacore.com>
13110
13111 GDB 9.1 released.
13112
dfcb27e4
IB
131132020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13114
13115 PR gdb/25190:
aac66a4c
SM
13116 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13117 * gdb/remote.c (remote_console_output): Update.
13118 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13119 (ui_file_puts): ...this.
13120 * gdb/ui-file.h (ui_file_puts): Add declaration.
13121 * gdb/utils.c (emit_style_escape): Update.
13122 (flush_wrap_buffer): Update.
13123 (fputs_maybe_filtered): Update.
13124 (fputs_unfiltered): Add function.
dfcb27e4 13125
faa17681
IB
131262020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13127
aac66a4c
SM
13128 * gdb/event-loop.c (gdb_wait_for_event): Update.
13129 * gdb/printcmd.c (printf_command): Update.
13130 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13131 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13132 (gdb_os_flush_stderr): Update.
13133 * gdb/remote.c (remote_console_output): Update.
13134 * gdb/ui-file.c (gdb_flush): Rename to...
13135 (ui_file_flush): ...this.
13136 (stderr_file::write): Update.
13137 (stderr_file::puts): Update.
13138 * gdb/ui-file.h (gdb_flush): Rename to...
13139 (ui_file_flush): ...this.
13140 * gdb/utils.c (gdb_flush): Add function.
13141 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13142
5abbbe1d
TT
131432020-02-07 Tom Tromey <tromey@adacore.com>
13144
13145 PR breakpoints/24915:
13146 * source.c (find_and_open_source): Do not check basenames_may_differ.
13147
919adfe8
TT
131482020-02-07 Tom Tromey <tom@tromey.com>
13149
13150 * README: Update gdbserver documentation.
13151 * gdbserver: Move to top level.
13152 * configure.tgt (build_gdbserver): Remove.
13153 * configure.ac: Remove --enable-gdbserver.
13154 * configure: Rebuild.
13155 * Makefile.in (distclean): Don't mention gdbserver.
13156
1d5d29e7
SV
131572020-02-06 Shahab Vahedi <shahab@synopsys.com>
13158
13159 * source-cache.c (source_cache::ensure): Surround
13160 get_plain_source_lines with a try/catch.
13161 (source_cache::get_line_charpos): Get rid of try/catch
13162 and only check for the return value of "ensure".
13163 * tui/tui-source.c (tui_source_window::set_contents):
13164 Simplify "nlines" calculation.
13165
6eb1129c
SV
131662020-02-06 Shahab Vahedi <shahab@synopsys.com>
13167
13168 * MAINTAINERS (Write After Approval): Add myself.
13169
c6a42d11
CB
131702020-02-05 Christian Biesinger <cbiesinger@google.com>
13171
13172 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13173 function call.
13174
c8ecdda6
CB
131752020-02-05 Christian Biesinger <cbiesinger@google.com>
13176
13177 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13178
f6480e70
MR
131792020-02-05 Maciej W. Rozycki <macro@wdc.com>
13180
13181 * nat/riscv-linux-tdesc.h: New file.
13182 * nat/riscv-linux-tdesc.c: New file, taking code from...
13183 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13184 ... here.
13185 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13186 NATDEPFILES.
13187
dcc9fbc6
AB
131882020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13189
13190 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13191 we don't set the fake simulator ptid to the null_ptid.
13192
719546c4
SM
131932020-02-03 Simon Marchi <simon.marchi@efficios.com>
13194
13195 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13196 * gdbthread.h (class thread_info) <resumed>: Likewise.
13197 * infrun.c (resume_1): Likewise.
13198 (proceed): Likewise.
13199 (infrun_thread_stop_requested): Likewise.
13200 (stop_all_threads): Likewise.
13201 (handle_inferior_event): Likewise.
13202 (restart_threads): Likewise.
13203 (finish_step_over): Likewise.
13204 (keep_going_stepped_thread): Likewise.
13205 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13206 (linux_handle_extended_wait): Likewise.
13207 * record-btrace.c (get_thread_current_frame_id): Likewise.
13208 * record-full.c (record_full_wait_1): Likewise.
13209 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13210 * target.c (target_resume): Likewise.
13211 * thread.c (set_running_thread): Likewise.
13212
e409c542
AKS
132132020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13214
13215 * f-valprint.c (f77_print_array_1): Changed datatype of index
13216 variable to LONGEST from int to enable it to contain bound
13217 values correctly.
13218
ee98c0da
MR
132192020-02-03 Maciej W. Rozycki <macro@wdc.com>
13220
13221 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13222 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13223 offsets according to FLEN determined.
13224 (riscv_linux_nat_target::read_description): Determine FLEN
13225 dynamically.
13226 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13227 according to FLEN determined.
13228 (riscv_linux_nat_target::store_registers): Likewise.
13229
aa66aac4
SV
132302020-02-01 Shahab Vahedi <shahab@synopsys.com>
13231
13232 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13233 when reg->group is empty and reggroup is not.
13234
fd9faca8
TT
132352020-01-31 Tom Tromey <tromey@adacore.com>
13236
13237 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13238 Call beneath target's mourn_inferior after unpushing.
13239
42330a68
AB
132402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13241
13242 PR tui/9765
13243 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13244 have enough lines to fill the screen, still return the lowest
13245 address we found.
13246
7a27a45b
AB
132472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13250 '-', '<', and '>' commands.
13251
c47f70e2
PA
132522020-01-29 Pedro Alves <palves@redhat.com>
13253 Sergio Durigan Junior <sergiodj@redhat.com>
13254
13255 * infcmd.c (construct_inferior_arguments): Assert that
13256 'argc' is greater than 0.
13257
5133a315
LM
132582020-01-29 Luis Machado <luis.machado@linaro.org>
13259
13260 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13261 (BRK_INSN_MASK): Define to 0xd4200000.
13262 (aarch64_program_breakpoint_here_p): New function.
13263 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13264 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13265 breakpoint.c.
13266 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13267 breakpoint.h
13268 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13269 call gdbarch_program_breakpoint_here_p.
13270 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13271 default_program_breakpoint_here_p, changed return type to bool and
13272 simplified.
13273 * breakpoint.h (program_breakpoint_here): Moved prototype to
13274 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13275 return type to bool.
13276 * gdbarch.c: Regenerate.
13277 * gdbarch.h: Regenerate.
13278 * gdbarch.sh (program_breakpoint_here_p): New method.
13279 * infrun.c (handle_signal_stop): Call
13280 gdbarch_program_breakpoint_here_p.
13281
168f8c6b
TT
132822020-01-26 Tom Tromey <tom@tromey.com>
13283
13284 * ctfread.c (struct ctf_fp_info): Reindent.
13285 (_initialize_ctfread): Remove.
13286
128a391f
TT
132872020-01-26 Tom Tromey <tom@tromey.com>
13288
13289 * psymtab.c (partial_map_expand_apply)
13290 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13291 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13292 (psym_print_stats, psym_expand_symtabs_for_function)
13293 (psym_map_symbol_filenames, psym_map_matching_symbols)
13294 (psym_expand_symtabs_matching)
13295 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13296 (maintenance_check_psymtabs): Use new methods.
13297 * psympriv.h (struct partial_symtab) <readin_p,
13298 get_compunit_symtab>: New methods.
13299 <readin, compunit_symtab>: Remove members.
13300 (struct standard_psymtab): New.
13301 (struct legacy_psymtab): Derive from standard_psymtab.
13302 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13303 standard_psymtab.
13304 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13305
0494dbec
TT
133062020-01-26 Tom Tromey <tom@tromey.com>
13307
13308 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13309 read_dependencies. Add assert.
13310 * psymtab.c (partial_symtab::read_dependencies): New method.
13311 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13312 method.
13313 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13314 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13315 read_dependencies.
13316 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13317 Add assert.
13318
8566b89b
TT
133192020-01-26 Tom Tromey <tom@tromey.com>
13320
13321 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13322 Call expand_psymtab.
13323 (xcoff_read_symtab): Call expand_psymtab.
13324 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13325 legacy_expand_psymtab.
13326 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13327 method.
13328 (struct legacy_psymtab) <expand_psymtab>: Implement.
13329 <legacy_expand_psymtab>: New member.
13330 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13331 (parse_partial_symbols): Set legacy_expand_psymtab.
13332 (psymtab_to_symtab_1): Change argument order. Call
13333 expand_psymtab.
13334 (new_psymtab): Set legacy_expand_psymtab.
13335 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13336 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13337 expand_psymtab.
13338 (dwarf2_psymtab::expand_psymtab): Rename from
13339 psymtab_to_symtab_1. Call expand_psymtab.
13340 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13341 (dbx_end_psymtab): Likewise.
13342 (dbx_psymtab_to_symtab_1): Change argument order. Call
13343 expand_psymtab.
13344 (dbx_read_symtab): Call expand_psymtab.
13345 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13346 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13347 (ctf_psymtab::read_symtab): Call expand_psymtab.
13348
077cbab2
TT
133492020-01-26 Tom Tromey <tom@tromey.com>
13350
13351 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13352 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13353 messages.
13354 * mdebugread.c (mdebug_read_symtab): Remove prints.
13355 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13356 assert.
13357 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13358
891813be
TT
133592020-01-26 Tom Tromey <tom@tromey.com>
13360
13361 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13362 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13363 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13364 legacy_symtab.
13365 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13366 * psymtab.c (psymtab_to_symtab): Call method.
13367 (dump_psymtab): Update.
13368 * psympriv.h (struct partial_symtab): Add virtual destructor.
13369 <read_symtab>: New method.
13370 (struct legacy_symtab): New.
13371 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13372 (struct pst_map) <pst>: Now a legacy_psymtab.
13373 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13374 (new_psymtab): Use legacy_psymtab.
13375 * dwarf2read.h (struct dwarf2_psymtab): New.
13376 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13377 * dwarf2read.c (dwarf2_create_include_psymtab)
13378 (dwarf2_build_include_psymtabs, create_type_unit_group)
13379 (create_partial_symtab, process_psymtab_comp_unit_reader)
13380 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13381 (set_partial_user): Use dwarf2_psymtab.
13382 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13383 (psymtab_to_symtab_1, process_full_comp_unit)
13384 (process_full_type_unit, dwarf2_ranges_read)
13385 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13386 (dwarf_decode_lines): Use dwarf2_psymtab.
13387 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13388 (add_address_entry_worker, write_one_signatured_type)
13389 (recursively_count_psymbols, recursively_write_psymbols)
13390 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13391 (write_debug_names): Likewise.
13392 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13393 <pst>: Now a legacy_psymtab.
13394 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13395 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13396 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13397 * ctfread.c (struct ctf_psymtab): New.
13398 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13399 ctf_psymtab.
13400 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13401 (create_partial_symtab): Return a ctf_psymtab.
13402 (scan_partial_symbols): Update.
13403
c3693a1d
TT
134042020-01-26 Tom Tromey <tom@tromey.com>
13405
13406 * xcoffread.c (xcoff_start_psymtab): Use new.
13407 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13408 renamed from start_psymtab_common.
13409 * psympriv.h (struct partial_symtab): Add new constructor.
13410 (start_psymtab_common): Don't declare.
13411 * mdebugread.c (parse_partial_symbols): Use new.
13412 * dwarf2read.c (create_partial_symtab): Use new.
13413 * dbxread.c (start_psymtab): Use new.
13414 * ctfread.c (create_partial_symtab): Use new.
13415
32caafd0
TT
134162020-01-26 Tom Tromey <tom@tromey.com>
13417
13418 * xcoffread.c (xcoff_end_psymtab): Use new.
13419 * psymtab.c (start_psymtab_common): Use new.
13420 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13421 Update.
13422 * psympriv.h (struct partial_symtab): Add parameters to
13423 constructor. Don't inline.
13424 (allocate_psymtab): Don't declare.
13425 * mdebugread.c (new_psymtab): Use new.
13426 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13427 * dbxread.c (dbx_end_psymtab): Use new.
13428
abaa2f23
TT
134292020-01-26 Tom Tromey <tom@tromey.com>
13430
13431 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13432 allocate_psymtab. Update documentation.
13433 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13434 allocate_psymtab. Do not use new.
13435 (allocate_psymtab): Use new. Update.
13436
6d94535f
TT
134372020-01-26 Tom Tromey <tom@tromey.com>
13438
13439 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13440 * psymtab.c (psym_print_stats): Update.
13441 * psympriv.h (struct partial_symtab) <readin,
13442 psymtabs_addrmap_supported, anonymous>: Now bool.
13443 * mdebugread.c (psymtab_to_symtab_1): Update.
13444 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13445 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13446 (process_full_comp_unit, process_full_type_unit): Update.
13447 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13448 * ctfread.c (psymtab_to_symtab): Update.
13449
6f17252b
TT
134502020-01-26 Tom Tromey <tom@tromey.com>
13451
13452 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13453 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13454 * psymtab.c (psymtab_storage): Delete psymtabs.
13455 (psymtab_storage::allocate_psymtab): Use new.
13456 (psymtab_storage::discard_psymtab): Use delete.
13457 * psympriv.h (struct partial_symtab): Add constructor and
13458 initializers.
13459
f6f1cebc
TT
134602020-01-26 Tom Tromey <tom@tromey.com>
13461
13462 * machoread.c: Do not include psympriv.h.
13463
e47e48f6
PW
134642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13465
13466 * NEWS: Mention the new option and the set/show commands.
13467
a2fedca9
PW
134682020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13469
13470 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13471 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13472 (validate_exec_file): New variables, enums, functions.
13473 (exec_file_locate_attach, print_section_info): Style the filenames.
13474 (_initialize_exec): Install show_exec_file_mismatch_command and
13475 set_exec_file_mismatch_command.
13476 * gdbcore.h (validate_exec_file): Declare.
13477 * infcmd.c (attach_command): Call validate_exec_file.
13478 * remote.c ( remote_target::remote_add_inferior): Likewise.
13479
7ffa82e1
AB
134802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13481
13482 * frame.c (find_frame_sal): Move call to get_next_frame into more
13483 inner scope.
13484 * inline-frame.c (inilne_state) <inline_state>: Update argument
13485 types.
13486 (inilne_state) <skipped_symbol>: Rename to...
13487 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13488 (skip_inline_frames): Build vector of skipped symbols and use this
13489 to reate the inline_state.
13490 (inline_skipped_symbol): Add a comment and some assertions, fetch
13491 skipped symbol from the list.
13492
3d92a3e3
AB
134932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13494
13495 * buildsym.c (lte_is_less_than): Delete.
13496 (buildsym_compunit::end_symtab_with_blockvector): Create local
13497 lambda function to sort line table entries, and use
13498 std::stable_sort instead of std::sort.
13499 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13500 markers when looking for a previous line.
13501
94a72be7
AB
135022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13503
13504 * dwarf2read.c (lnp_state_machine::record_line): Include
13505 end_sequence parameter in debug print out. Record the line if we
13506 are at an end_sequence marker even if it's not the start of a
13507 statement.
13508 * symmisc.c (maintenance_print_one_line_table): Print end of
13509 sequence markers with 'END' not '0'.
13510
53af73bf
PA
135112020-01-24 Pedro Alves <palves@redhat.com>
13512
13513 PR gdb/25410
13514 * thread.c (scoped_restore_current_thread::restore): Use
13515 switch_to_inferior_no_thread.
13516 * exec.c: Include "progspace-and-thread.h".
13517 (add_target_sections, remove_target_sections):
13518 scoped_restore_current_pspace_and_thread instead of
13519 scoped_restore_current_thread.
13520 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13521 and aspace to the inferior before calling clone_program_space.
13522 Remove stale comment.
13523
3050c6f4
CB
135242020-01-24 Christian Biesinger <cbiesinger@google.com>
13525
13526 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13527 (arm_netbsd_nat_target::fetch_registers): ...this.
13528 (arm_nbsd_nat_target::store_registers): Rename to...
13529 (arm_netbsd_nat_target::store_registers): ...this.
13530
73685c7e
CB
135312020-01-24 Christian Biesinger <cbiesinger@google.com>
13532
13533 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13534 register_t.
13535
89203d40
CB
135362020-01-24 Christian Biesinger <cbiesinger@google.com>
13537
13538 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13539 Update comment.
13540 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13541 Likewise.
13542 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13543 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13544 the correct replacement (iterate_over_regset_sections).
13545 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13546 Update comment.
13547
1ba1ac88
AB
135482020-01-24 Graham Markall <graham.markall@embecosm.com>
13549
13550 PR gdb/23718
13551 * gdb/python/python.c (execute_gdb_command): Call
13552 async_enable_stdin in catch block.
13553
f3364a6d
AB
135542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13555
13556 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13557 SWITCH_THRU_ALL_UIS.
13558
733d0a67
AB
135592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13560
13561 PR tui/9765
13562 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13563 comment, add extra parameter, and update to store previous symbol
13564 when appropriate.
13565 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13566 add extra parameter.
13567 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13568 remove unneeded parameter, add try/catch around gdb_print_insn,
13569 rewrite to add items to asm_lines vector.
13570 (tui_find_backward_disassembly_start_address): New function.
13571 (tui_find_disassembly_address): Updated throughout.
13572 (tui_disasm_window::set_contents): Update for changes to
13573 tui_disassemble.
13574 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13575 number of lines to scroll.
13576
b3b3bada
SM
135772020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13578
13579 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13580 (SECT_OFF_DATA): Likewise.
13581 (SECT_OFF_RODATA): Likewise.
13582 (SECT_OFF_TEXT): Likewise.
13583 (SECT_OFF_BSS): Likewise.
13584 (struct objfile) <text_section_offset, data_section_offset>: New
13585 methods.
13586 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13587 objfile::text_section_offset.
13588 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13589 * coffread.c (coff_symtab_read): Likewise.
13590 (enter_linenos): Likewise.
13591 (process_coff_symbol): Likewise.
13592 * ctfread.c (get_objfile_text_range): Likewise.
13593 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13594 Use objfile::data_section_offset.
13595 * dwarf2-frame.c (execute_cfa_program): Use
13596 objfile::text_section_offset.
13597 (dwarf2_frame_find_fde): Likewise.
13598 * dwarf2read.c (create_addrmap_from_index): Likewise.
13599 (create_addrmap_from_aranges): Likewise.
13600 (dw2_find_pc_sect_compunit_symtab): Likewise.
13601 (process_psymtab_comp_unit_reader): Likewise.
13602 (add_partial_symbol): Likewise.
13603 (add_partial_subprogram): Likewise.
13604 (process_full_comp_unit): Likewise.
13605 (read_file_scope): Likewise.
13606 (read_func_scope): Likewise.
13607 (read_lexical_block_scope): Likewise.
13608 (read_call_site_scope): Likewise.
13609 (dwarf2_rnglists_process): Likewise.
13610 (dwarf2_ranges_process): Likewise.
13611 (dwarf2_ranges_read): Likewise.
13612 (dwarf_decode_lines_1): Likewise.
13613 (new_symbol): Likewise.
13614 (dwarf2_fetch_die_loc_sect_off): Likewise.
13615 (dwarf2_per_cu_text_offset): Likewise.
13616 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13617 * hppa-tdep.c (read_unwind_info): Likewise.
13618 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13619 * psympriv.h (struct partial_symtab): Likewise.
13620 * psymtab.c (find_pc_sect_psymtab): Likewise.
13621 * solib-svr4.c (enable_break): Likewise.
13622 * stap-probe.c (relocate_address): Use
13623 objfile::data_section_offset.
13624 * xcoffread.c (enter_line_range): Use
13625 objfile::text_section_offset.
13626 (read_xcoff_symtab): Likewise.
13627
ab53f382
SM
136282020-01-23 Simon Marchi <simon.marchi@efficios.com>
13629
13630 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13631 declaration to narrower scopes.
13632
e7eee665
SM
136332020-01-23 Simon Marchi <simon.marchi@efficios.com>
13634
13635 * darwin-nat.h (struct darwin_exception_msg, enum
13636 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13637 Move up.
13638 (class darwin_nat_target) <wait_1, check_new_threads,
13639 decode_exception_message, decode_message, stop_inferior,
13640 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13641 * darwin-nat.c (darwin_check_new_threads): Rename to...
13642 (darwin_nat_target::check_new_threads): ... this.
13643 (darwin_suspend_inferior_it): Remove.
13644 (darwin_decode_exception_message): Rename to...
13645 (darwin_nat_target::decode_exception_message): ... this.
13646 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13647 (darwin_decode_message): Rename to...
13648 (darwin_nat_target::decode_message): ... this.
13649 (cancel_breakpoint): Rename to...
13650 (darwin_nat_target::cancel_breakpoint): ... this.
13651 (darwin_wait): Rename to...
13652 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13653 instead of iterate_over_inferiors.
13654 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13655 (darwin_stop_inferior): Rename to...
13656 (darwin_nat_target::stop_inferior): ... this.
13657 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13658 (darwin_init_thread_list): Rename to...
13659 (darwin_nat_target::init_thread_list): ... this.
13660 (darwin_ptrace_him): Rename to...
13661 (darwin_nat_target::ptrace_him): ... this.
13662 (darwin_nat_target::create_inferior): Pass lambda function to
13663 fork_inferior.
13664 (darwin_nat_target::detach): Call stop_inferior instead of
13665 darwin_stop_inferior.
13666 * fork-inferior.h (fork_inferior): Change init_trace_fun
13667 parameter to gdb::function_view.
13668 * fork-inferior.c (fork_inferior): Likewise.
13669
c162ed3e
HD
136702020-01-23 Hannes Domani <ssbssa@yahoo.de>
13671
13672 * i386-cygwin-tdep.c (core_process_module_section): Update.
13673 * windows-nat.c (struct lm_info_windows): Add text_offset.
13674 (windows_xfer_shared_libraries): Update.
13675 * windows-tdep.c (windows_xfer_shared_library):
13676 Add text_offset_cached argument.
13677 * windows-tdep.h (windows_xfer_shared_library): Update.
13678
a1237872
SM
136792020-01-21 Simon Marchi <simon.marchi@efficios.com>
13680
13681 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13682
b3ee6dd9
SM
136832020-01-21 Simon Marchi <simon.marchi@efficios.com>
13684
13685 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13686 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13687 replace with range-based for.
13688 (gdbsim_interrupt_inferior): Remove.
13689 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13690 with a range-based for. Inline code from
13691 gdbsim_interrupt_inferior.
13692
f9fac3c8
SM
136932020-01-21 Simon Marchi <simon.marchi@efficios.com>
13694
13695 * infrun.c (proceed): Fix indentation.
13696
f6474de9
TT
136972020-01-21 Tom Tromey <tromey@adacore.com>
13698
13699 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13700 * python/python.c (python_extension_ops): Update.
13701 (gdbpy_colorize): New function.
13702 * python/lib/gdb/__init__.py (colorize): New function.
13703 * extension.h (ext_lang_colorize): Declare.
13704 * extension.c (ext_lang_colorize): New function.
13705 * extension-priv.h (struct extension_language_ops) <colorize>: New
13706 member.
13707 * cli/cli-style.c (_initialize_cli_style): Update help text.
13708
f0c702d4
LM
137092020-01-21 Luis Machado <luis.machado@linaro.org>
13710
13711 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13712 <cond>: Change type to bool.
13713 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13714 (aarch64_displaced_step_cb): Likewise.
13715 (aarch64_displaced_step_tb): Likewise.
13716
1ab139e5
LM
137172020-01-21 Luis Machado <luis.machado@linaro.org>
13718
13719 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13720 output.
13721
0c271889
LM
137222020-01-21 Luis Machado <luis.machado@linaro.org>
13723
13724 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13725 <pc_adjust>: Adjust the documentation.
13726 (aarch64_displaced_step_fixup): Check if PC really moved before
13727 adjusting it.
13728
4d89c1c7
TT
137292020-01-19 Tom Tromey <tom@tromey.com>
13730
13731 * disasm.c (~gdb_disassembler): New destructor.
13732 (gdb_buffered_insn_length): Call disassemble_free_target.
13733 * disasm.h (class gdb_disassembler): Declare destructor. Use
13734 DISABLE_COPY_AND_ASSIGN.
13735
c0ab21c2
TT
137362020-01-19 Tom Tromey <tom@tromey.com>
13737
13738 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13739 (die_reader_func_ftype): Remove.
13740 (cutu_reader): New class.
13741 (dw2_get_file_names_reader): Remove "data" parameter.
13742 (dw2_get_file_names): Use cutu_reader.
13743 (create_debug_type_hash_table): Update.
13744 (read_cutu_die_from_dwo): Update comment.
13745 (lookup_dwo_unit): Add dwo_name parameter.
13746 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13747 die_reader_func_ftype and data parameters.
13748 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13749 Remove die_reader_func_ftype and data parameters.
13750 (~cutu_reader): New; from init_cutu_and_read_dies.
13751 (cutu_reader::cutu_reader): Rename from
13752 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13753 and data parameters.
13754 (init_cutu_and_read_dies_simple): Remove.
13755 (struct process_psymtab_comp_unit_data): Remove.
13756 (process_psymtab_comp_unit_reader): Remove data parameter; add
13757 want_partial_unit and pretend_language parameters.
13758 (process_psymtab_comp_unit): Use cutu_reader.
13759 (build_type_psymtabs_reader): Remove data parameter.
13760 (build_type_psymtabs_1): Use cutu_reader.
13761 (process_skeletonless_type_unit): Likewise.
13762 (load_partial_comp_unit_reader): Remove.
13763 (load_partial_comp_unit): Use cutu_reader.
13764 (load_full_comp_unit_reader): Remove.
13765 (load_full_comp_unit): Use cutu_reader.
13766 (struct create_dwo_cu_data): Remove.
13767 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13768 dwo_unit parameters.
13769 (create_cus_hash_table): Use cutu_reader.
13770 (struct dwarf2_read_addr_index_data): Remove.
13771 (dwarf2_read_addr_index_reader): Remove.
13772 (dwarf2_read_addr_index): Use cutu_reader.
13773 (read_signatured_type_reader): Remove.
13774 (read_signatured_type): Use cutu_reader.
13775
45bbae5c
TT
137762020-01-19 Tom Tromey <tom@tromey.com>
13777
13778 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13779 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13780 (tui_wrefresh): Declare.
13781 * tui/tui-wingeneral.c (suppress_output): New global.
13782 (tui_suppress_output, ~tui_suppress_output): New constructor and
13783 destructor.
13784 (tui_wrefresh): New function.
13785 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13786 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13787 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13788 method.
13789 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13790 tui_wrefresh.
13791 (tui_data_window::no_refresh): New method.
13792 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13793 (tui_reg_command): Use tui_suppress_output
13794 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13795 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13796 method.
13797 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13798
4f13c1c0
TT
137992020-01-19 Tom Tromey <tom@tromey.com>
13800
13801 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13802 Handle case where symtab is null.
13803
fa47e446
SM
138042020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13805
13806 * linux-fork.c (one_fork_p): Simplify.
13807
26f42329
SM
138082020-01-17 Simon Marchi <simon.marchi@efficios.com>
13809
13810 * top.c (struct qt_args): Remove.
13811 (kill_or_detach): Change return type to void, replace `void *`
13812 parameter with a proper one.
13813 (print_inferior_quit_action): Likewise.
13814 (quit_confirm): Use range-based for loop to iterate over inferiors.
13815 (quit_force): Likewise.
13816
a9ac81b1
SM
138172020-01-17 Simon Marchi <simon.marchi@efficios.com>
13818
13819 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13820 `void *` parameter with proper parameters.
13821 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13822 (print_one_inferior): Change return type to void, replace `void *`
13823 parameter with proper parameters.
13824 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13825 inferiors.
13826 (get_other_inferior): Remove.
13827 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13828 inferiors.
13829
788eca49
SM
138302020-01-17 Simon Marchi <simon.marchi@efficios.com>
13831
13832 * mi/mi-interp.c (report_initial_inferior): Remove.
13833 (mi_interp::init): Use range-based for to iterate over inferiors.
13834
d9bc85b6
SM
138352020-01-17 Simon Marchi <simon.marchi@efficios.com>
13836
13837 * python/py-inferior.c (build_inferior_list): Remove.
13838 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13839
40c94099
CB
138402020-01-16 Christian Biesinger <cbiesinger@google.com>
13841
13842 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13843 (btrace_stitch_trace): Likewise.
13844 * charset.c (intermediate_encoding): Likewise (vaild).
13845 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13846 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13847 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13848
e0cdfe3c
HD
138492020-01-16 Hannes Domani <ssbssa@yahoo.de>
13850
13851 * windows-tdep.c (windows_get_tlb_type):
13852 Add rtl_user_process_parameters type.
13853
790f1718 138542020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13855 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13856
13857 PR build/24805
13858 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13859 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13860 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13861 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13862 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13863 (ps_plog): Redeclare exported functions with default visibility.
13864
3112ed97
NA
138652020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13866
13867 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13868 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13869
8dc3273e
SM
138702020-01-15 Simon Marchi <simon.marchi@efficios.com>
13871
13872 * infcmd.c (post_create_inferior): Use get_thread_regcache
13873 instead of get_current_regcache.
13874
ff47f4f0
TT
138752020-01-14 Tom Tromey <tom@tromey.com>
13876
13877 PR symtab/12535:
13878 * python/python.c (gdbpy_decode_line): Treat empty string the same
13879 as no argument.
13880
975f45b7
TT
138812020-01-14 Tom Tromey <tom@tromey.com>
13882
13883 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13884
25e57356
TT
138852020-01-14 Tom Tromey <tom@tromey.com>
13886
13887 * nat/linux-btrace.c: Don't include <config.h>.
13888 * nat/linux-ptrace.c: Don't include <config.h>.
13889 * nat/x86-linux-dregs.c: Don't include <config.h>.
13890
05ea2a05
TT
138912020-01-14 Tom Tromey <tom@tromey.com>
13892
13893 * configure: Rebuild.
13894 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13895
01027315
TT
138962020-01-14 Tom Tromey <tom@tromey.com>
13897
13898 * nat/x86-linux-dregs.c: Include configh.h.
13899 * nat/linux-ptrace.c: Include configh.h.
13900 * nat/linux-btrace.c: Include configh.h.
13901 * defs.h: Include config.h, bfd.h.
13902 * configure.ac: Don't source common.host.
13903 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13904 * configure: Rebuild.
13905 * acinclude.m4: Update path.
13906 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13907 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13908 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13909 (CLIBS): Add LIBSUPPORT.
13910 (CDEPS): Likewise.
13911 (COMMON_SFILES): Remove gdbsupport files.
13912 (HFILES_NO_SRCDIR): Likewise.
13913 (stamp-version): Update path to create-version.sh.
13914 (ALLDEPFILES): Remove gdbsupport files.
13915
b2ceabe8
TT
139162020-01-14 Tom Tromey <tom@tromey.com>
13917
13918 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13919 USE_WIN32API when needed.
13920 * configure.ac (USE_WIN32API): Don't define.
13921 (WIN32LIBS): Use WIN32APILIBS.
13922 * configure: Rebuild.
13923
25c51f71
TT
139242020-01-14 Tom Tromey <tom@tromey.com>
13925
13926 * configure: Rebuild.
13927 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13928
717c684d
BE
139292020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13930
13931 * skip.c (skip_function_command): Make skip w/o arguments use the
13932 name of the inlined function if pc is inside any inlined function.
13933
7da6a5b9
LM
139342020-01-14 Luis Machado <luis.machado@linaro.org>
13935
13936 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13937 * infrun.c (resume_1): Likewise.
13938 (handle_inferior_event): Remove stale comment.
13939 * linux-nat.c (linux_nat_target::resume): Update comments.
13940 (save_stop_reason): Likewise.
13941 (linux_nat_filter_event): Likewise.
13942 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13943
44e4c775
AB
139442020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13945
13946 * elfread.c (record_minimal_symbol): Set section index to 0 for
13947 non-allocatable sections.
13948
18a8505e
AT
13949
139502020-01-13 Ali Tamur <tamur@google.com>
13951
13952 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13953 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13954 to gdb::optional. Update comments.
13955 (dwo_file): Update comments.
13956 (read_attribute): Update API to take an additional out parameter,
13957 need_reprocess. This is used to mark attributes that need other
13958 attributes (e.g. str_offsets_base) for correct computation which may not
13959 have been read yet.
13960 (read_attribute_reprocess): New function declaration.
13961 (read_addr_index): Likewise.
13962 (read_dwo_str_index): Likewise.
13963 (read_stub_str_index): Likewise.
13964 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13965 (lookup_addr_base): New function definition.
13966 (lookup_ranges_base): Likewise.
13967 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13968 lookup_ranges_base.
13969 (init_cutu_and_read_dies): Update comments.
13970 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13971 unit. This is used to inherit parent's str_offsets_base and addr_base.
13972 Update comments.
13973 (init_cutu_and_read_dies_simple): Reflect API changes.
13974 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13975 (create_cus_hash_table): Change API to take parent compile unit.
13976 Reflect API changes.
13977 (open_and_init_dwo_file): Reflect API changes.
13978 (dwarf2_get_pc_bounds): Update comments.
13979 (dwarf2_record_block_ranges): Likewise.
13980 (read_full_die_1): Change implementation to reprocess attributes that
13981 need str_offsets_base and addr_base.
13982 (partial_die_info::read): Likewise.
13983 (read_attribute_reprocess): New function definition.
13984 (read_attribute_value): Change API to take an additional out parameter,
13985 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13986 when a non-dwo compile unit has index based attributes.
13987 (read_attribute): Reflect API changes.
13988 (read_addr_index_1): Reflect API changes. Update comments.
13989 (dwarf2_read_addr_index_data): Reflect API changes.
13990 (dwarf2_read_addr_index): Likewise.
13991 (read_str_index): Change API and implementation. This becomes a helper
13992 to be used by the new string index related methods. Update error
13993 message and comments.
13994 (read_dwo_str_index): New function definition.
13995 (read_stub_str_index): Likewise.
13996 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13997 * symfile.h (dwarf2_debug_sections): Likewise.
13998 * xcoffread.c (dwarf2_debug_sections): Likewise.
13999
0cac9354
SM
140002020-01-13 Simon Marchi <simon.marchi@efficios.com>
14001
14002 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14003 core_reg_sect type to gdb_byte *.
14004 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14005 * cris-tdep.c (fetch_core_registers): Likewise.
14006 * corelow.c (core_target::get_core_register_section): Change
14007 type of `contents` to gdb::byte_vector.
14008
9a6d629c
AB
140092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14010
14011 * tui/tui-wingeneral.c (box_win): Position the title in the center
14012 of the border.
14013
d8b2f9e3
SM
140142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14015
14016 * corelow.c (core_target::get_core_register_section): Use
14017 std::vector instead of alloca.
14018
bb564c58
SM
140192020-01-13 Simon Marchi <simon.marchi@efficios.com>
14020
14021 * warning.m4: Add -Wmissing-declarations to build_warnings.
14022 * configure: Re-generate.
14023
6b366111
SM
140242020-01-13 Simon Marchi <simon.marchi@efficios.com>
14025
14026 * python/python.c (init__gdb_module): Add declaration.
14027
6c265988
SM
140282020-01-13 Simon Marchi <simon.marchi@efficios.com>
14029
14030 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14031 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14032 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14033 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14034 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14035 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14036 * ada-exp.y (_initialize_ada_exp): Add declaration.
14037 * ada-lang.c (_initialize_ada_language): Add declaration.
14038 * ada-tasks.c (_initialize_tasks): Add declaration.
14039 * agent.c (_initialize_agent): Add declaration.
14040 * aix-thread.c (_initialize_aix_thread): Add declaration.
14041 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14042 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14043 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14044 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14045 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14046 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14047 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14048 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14049 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14050 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14051 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14052 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14053 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14054 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14055 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14056 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14057 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14058 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14059 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14060 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14061 * annotate.c (_initialize_annotate): Add declaration.
14062 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14063 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14064 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14065 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14066 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14067 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14068 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14069 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14070 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14071 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14072 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14073 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14074 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14075 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14076 * auto-load.c (_initialize_auto_load): Add declaration.
14077 * auxv.c (_initialize_auxv): Add declaration.
14078 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14079 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14080 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14081 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14082 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14083 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14084 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14085 * breakpoint.c (_initialize_breakpoint): Add declaration.
14086 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14087 * btrace.c (_initialize_btrace): Add declaration.
14088 * charset.c (_initialize_charset): Add declaration.
14089 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14090 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14091 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14092 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14093 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14094 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14095 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14096 * coffread.c (_initialize_coffread): Add declaration.
14097 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14098 * compile/compile.c (_initialize_compile): Add declaration.
14099 * complaints.c (_initialize_complaints): Add declaration.
14100 * completer.c (_initialize_completer): Add declaration.
14101 * copying.c (_initialize_copying): Add declaration.
14102 * corefile.c (_initialize_core): Add declaration.
14103 * corelow.c (_initialize_corelow): Add declaration.
14104 * cp-abi.c (_initialize_cp_abi): Add declaration.
14105 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14106 * cp-support.c (_initialize_cp_support): Add declaration.
14107 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14108 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14109 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14110 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14111 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14112 * ctfread.c (_initialize_ctfread): Add declaration.
14113 * d-lang.c (_initialize_d_language): Add declaration.
14114 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14115 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14116 * dbxread.c (_initialize_dbxread): Add declaration.
14117 * dcache.c (_initialize_dcache): Add declaration.
14118 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14119 * disasm.c (_initialize_disasm): Add declaration.
14120 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14121 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14122 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14123 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14124 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14125 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14126 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14127 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14128 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14129 * elfread.c (_initialize_elfread): Add declaration.
14130 * exec.c (_initialize_exec): Add declaration.
14131 * extension.c (_initialize_extension): Add declaration.
14132 * f-lang.c (_initialize_f_language): Add declaration.
14133 * f-valprint.c (_initialize_f_valprint): Add declaration.
14134 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14135 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14136 * filesystem.c (_initialize_filesystem): Add declaration.
14137 * findcmd.c (_initialize_mem_search): Add declaration.
14138 * findvar.c (_initialize_findvar): Add declaration.
14139 * fork-child.c (_initialize_fork_child): Add declaration.
14140 * frame-base.c (_initialize_frame_base): Add declaration.
14141 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14142 * frame.c (_initialize_frame): Add declaration.
14143 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14144 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14145 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14146 * gcore.c (_initialize_gcore): Add declaration.
14147 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14148 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14149 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14150 * gdbarch.c (_initialize_gdbarch): Add declaration.
14151 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14152 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14153 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14154 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14155 * go-lang.c (_initialize_go_language): Add declaration.
14156 * go32-nat.c (_initialize_go32_nat): Add declaration.
14157 * guile/guile.c (_initialize_guile): Add declaration.
14158 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14159 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14160 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14161 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14162 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14163 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14164 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14165 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14166 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14167 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14168 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14169 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14170 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14171 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14172 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14173 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14174 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14175 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14176 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14177 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14178 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14179 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14180 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14181 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14182 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14183 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14184 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14185 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14186 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14187 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14188 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14189 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14190 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14191 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14192 * infcall.c (_initialize_infcall): Add declaration.
14193 * infcmd.c (_initialize_infcmd): Add declaration.
14194 * inflow.c (_initialize_inflow): Add declaration.
14195 * infrun.c (_initialize_infrun): Add declaration.
14196 * interps.c (_initialize_interpreter): Add declaration.
14197 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14198 * jit.c (_initialize_jit): Add declaration.
14199 * language.c (_initialize_language): Add declaration.
14200 * linux-fork.c (_initialize_linux_fork): Add declaration.
14201 * linux-nat.c (_initialize_linux_nat): Add declaration.
14202 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14203 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14204 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14205 * m2-lang.c (_initialize_m2_language): Add declaration.
14206 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14207 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14208 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14209 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14210 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14211 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14212 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14213 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14214 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14215 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14216 * machoread.c (_initialize_machoread): Add declaration.
14217 * macrocmd.c (_initialize_macrocmd): Add declaration.
14218 * macroscope.c (_initialize_macroscope): Add declaration.
14219 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14220 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14221 * maint.c (_initialize_maint_cmds): Add declaration.
14222 * mdebugread.c (_initialize_mdebugread): Add declaration.
14223 * memattr.c (_initialize_mem): Add declaration.
14224 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14225 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14226 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14227 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14228 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14229 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14230 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14231 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14232 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14233 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14234 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14235 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14236 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14237 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14238 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14239 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14240 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14241 * mipsread.c (_initialize_mipsread): Add declaration.
14242 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14243 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14244 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14245 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14246 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14247 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14248 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14249 * nto-procfs.c (_initialize_procfs): Add declaration.
14250 * objc-lang.c (_initialize_objc_language): Add declaration.
14251 * observable.c (_initialize_observer): Add declaration.
14252 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14253 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14254 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14255 * osabi.c (_initialize_gdb_osabi): Add declaration.
14256 * osdata.c (_initialize_osdata): Add declaration.
14257 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14258 * parse.c (_initialize_parse): Add declaration.
14259 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14260 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14261 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14262 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14263 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14264 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14265 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14266 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14267 * printcmd.c (_initialize_printcmd): Add declaration.
14268 * probe.c (_initialize_probe): Add declaration.
14269 * proc-api.c (_initialize_proc_api): Add declaration.
14270 * proc-events.c (_initialize_proc_events): Add declaration.
14271 * proc-service.c (_initialize_proc_service): Add declaration.
14272 * procfs.c (_initialize_procfs): Add declaration.
14273 * producer.c (_initialize_producer): Add declaration.
14274 * psymtab.c (_initialize_psymtab): Add declaration.
14275 * python/python.c (_initialize_python): Add declaration.
14276 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14277 * record-btrace.c (_initialize_record_btrace): Add declaration.
14278 * record-full.c (_initialize_record_full): Add declaration.
14279 * record.c (_initialize_record): Add declaration.
14280 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14281 * regcache.c (_initialize_regcache): Add declaration.
14282 * reggroups.c (_initialize_reggroup): Add declaration.
14283 * remote-notif.c (_initialize_notif): Add declaration.
14284 * remote-sim.c (_initialize_remote_sim): Add declaration.
14285 * remote.c (_initialize_remote): Add declaration.
14286 * reverse.c (_initialize_reverse): Add declaration.
14287 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14288 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14289 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14290 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14291 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14292 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14293 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14294 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14295 Add declaration.
14296 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14297 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14298 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14299 * rust-exp.y (_initialize_rust_exp): Add declaration.
14300 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14301 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14302 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14303 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14304 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14305 * score-tdep.c (_initialize_score_tdep): Add declaration.
14306 * ser-go32.c (_initialize_ser_dos): Add declaration.
14307 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14308 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14309 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14310 * ser-uds.c (_initialize_ser_socket): Add declaration.
14311 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14312 * serial.c (_initialize_serial): Add declaration.
14313 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14314 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14315 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14316 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14317 * skip.c (_initialize_step_skip): Add declaration.
14318 * sol-thread.c (_initialize_sol_thread): Add declaration.
14319 * solib-aix.c (_initialize_solib_aix): Add declaration.
14320 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14321 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14322 * solib-frv.c (_initialize_frv_solib): Add declaration.
14323 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14324 * solib-target.c (_initialize_solib_target): Add declaration.
14325 * solib.c (_initialize_solib): Add declaration.
14326 * source-cache.c (_initialize_source_cache): Add declaration.
14327 * source.c (_initialize_source): Add declaration.
14328 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14329 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14330 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14331 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14332 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14333 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14334 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14335 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14336 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14337 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14338 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14339 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14340 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14341 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14342 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14343 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14344 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14345 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14346 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14347 * stabsread.c (_initialize_stabsread): Add declaration.
14348 * stack.c (_initialize_stack): Add declaration.
14349 * stap-probe.c (_initialize_stap_probe): Add declaration.
14350 * std-regs.c (_initialize_frame_reg): Add declaration.
14351 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14352 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14353 * symfile.c (_initialize_symfile): Add declaration.
14354 * symmisc.c (_initialize_symmisc): Add declaration.
14355 * symtab.c (_initialize_symtab): Add declaration.
14356 * target.c (_initialize_target): Add declaration.
14357 * target-connection.c (_initialize_target_connection): Add
14358 declaration.
14359 * target-dcache.c (_initialize_target_dcache): Add declaration.
14360 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14361 * thread.c (_initialize_thread): Add declaration.
14362 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14363 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14364 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14365 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14366 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14367 * tracectf.c (_initialize_ctf): Add declaration.
14368 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14369 * tracefile.c (_initialize_tracefile): Add declaration.
14370 * tracepoint.c (_initialize_tracepoint): Add declaration.
14371 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14372 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14373 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14374 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14375 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14376 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14377 * tui/tui.c (_initialize_tui): Add declaration.
14378 * typeprint.c (_initialize_typeprint): Add declaration.
14379 * ui-style.c (_initialize_ui_style): Add declaration.
14380 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14381 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14382 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14383 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14384 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14385 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14386 * unittests/filtered_iterator-selftests.c
14387 (_initialize_filtered_iterator_selftests): Add declaration.
14388 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14389 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14390 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14391 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14392 * unittests/main-thread-selftests.c
14393 (_initialize_main_thread_selftests): Add declaration.
14394 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14395 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14396 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14397 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14398 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14399 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14400 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14401 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14402 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14403 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14404 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14405 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14406 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14407 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14408 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14409 declaration.
14410 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14411 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14412 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14413 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14414 * user-regs.c (_initialize_user_regs): Add declaration.
14415 * utils.c (_initialize_utils): Add declaration.
14416 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14417 * valops.c (_initialize_valops): Add declaration.
14418 * valprint.c (_initialize_valprint): Add declaration.
14419 * value.c (_initialize_values): Add declaration.
14420 * varobj.c (_initialize_varobj): Add declaration.
14421 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14422 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14423 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14424 * windows-nat.c (_initialize_windows_nat): Add declaration.
14425 (_initialize_check_for_gdb_ini): Add declaration.
14426 (_initialize_loadable): Add declaration.
14427 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14428 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14429 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14430 * xcoffread.c (_initialize_xcoffread): Add declaration.
14431 * xml-support.c (_initialize_xml_support): Add declaration.
14432 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14433 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14434 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14435 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14436
e2de1eec
SM
144372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14438
14439 * regformats/regdat.sh: Generate declaration for init function.
14440
e0037b4c
SM
144412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14442
14443 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14444 up.
14445 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14446 close_one_inferior>: New methods.
14447 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14448 pass down target to find_inferior_pid.
14449 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14450 Pass down target to find_inferior_ptid.
14451 (gdbsim_target::create_inferior): Pass down target to
14452 add_thread_silent.
14453 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14454 target down to find_inferior_ptid and switch_to_thread.
14455 (gdbsim_target::close): Update to call close_one_inferior.
14456 (struct resume_data): Remove.
14457 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14458 directly, rather than through a void pointer.
14459 (gdbsim_target::resume): Update to call resume_one_inferior.
14460
58920b5b
SM
144612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14462
14463 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14464
4ec89149
PA
144652020-01-12 Pedro Alves <palves@redhat.com>
14466
14467 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14468 directly for the current inferior instead of
14469 discard_all_inferiors.
14470 (discard_all_inferiors): Delete.
14471
7c392d1d
TT
144722020-01-11 Tom Tromey <tom@tromey.com>
14473
14474 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14475 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14476 deprecated_safe_get_selected_frame.
14477
d9ebdab7
TBA
144782020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14479
14480 * inferior.c (print_inferior): Switch inferior before printing it.
14481
f3c469b9
PA
144822020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14483 Pedro Alves <palves@redhat.com>
14484
14485 * progspace-and-thread.c (switch_to_program_space_and_thread):
14486 Assert there's an inferior for PSPACE. Use
14487 switch_to_inferior_no_thread to switch the inferior too.
14488 * progspace.c (program_space::~program_space): Call
14489 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14490 (program_space::free_all_objfiles): Don't call clear_symtab_users
14491 here.
14492 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14493
65c574f6
PA
144942020-01-10 Pedro Alves <palves@redhat.com>
14495
14496 * NEWS: Mention multi-target debugging, "info connections", and
14497 "add-inferior -no-connection".
14498
2f4fcf00
PA
144992020-01-10 Pedro Alves <palves@redhat.com>
14500
14501 * infrun.c: Include "target-connection.h".
14502 (check_multi_target_resumption): New.
14503 (proceed): Call it.
14504 * target-connection.c (make_target_connection_string): Make
14505 extern.
14506 * target-connection.h (make_target_connection_string): Declare.
14507
121b3efd
PA
145082020-01-10 Pedro Alves <palves@redhat.com>
14509
14510 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14511 * inferior.c (uiout_field_connection): New function.
14512 (print_inferior): Add new "connection-id" column.
14513 (add_inferior_command): Show connection number/string of added
14514 inferior.
14515 * process-stratum-target.h
14516 (process_stratum_target::connection_string): New virtual method.
14517 (process_stratum_target::connection_number): New field.
14518 * remote.c (remote_target::connection_string): New override.
14519 * target-connection.c: New file.
14520 * target-connection.h: New file.
14521 * target.c (decref_target): Remove process_stratum targets from
14522 the connection list.
14523 (target_stack::push): Add process_stratum targets to the
14524 connection list.
14525
4f837581
PA
145262020-01-10 Pedro Alves <palves@redhat.com>
14527
14528 Revert:
14529 2016-04-12 Pedro Alves <palves@redhat.com>
14530 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14531 Remove references to name.
14532 * serial.h (struct serial) <name>: Delete.
14533
f4ec508e
PA
145342020-01-10 Pedro Alves <palves@redhat.com>
14535
14536 * gdbarch-selftests.c (register_to_value_test): Remove "target
14537 already pushed" check.
14538
5b6d1e4f
PA
145392020-01-10 Pedro Alves <palves@redhat.com>
14540 John Baldwin <jhb@FreeBSD.org>
14541
14542 * aarch64-linux-nat.c
14543 (aarch64_linux_nat_target::thread_architecture): Adjust.
14544 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14545 (task_command_1): Likewise.
14546 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14547 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14548 (aix_thread_target::store_registers)
14549 (aix_thread_target::thread_alive): Adjust.
14550 * amd64-fbsd-tdep.c: Include "inferior.h".
14551 (amd64fbsd_get_thread_local_address): Pass down target.
14552 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14553 thread's gdbarch instead of target_gdbarch.
14554 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14555 get_last_target_status.
14556 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14557 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14558 inferiors.
14559 (update_inserted_breakpoint_locations): Skip if inferiors with no
14560 execution.
14561 (update_global_location_list): When handling moribund locations,
14562 find representative inferior for location's pspace, and use thread
14563 count of its process_stratum target.
14564 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14565 * bsd-uthread.c (bsd_uthread_target::wait): Use
14566 as_process_stratum_target and adjust thread_change_ptid and
14567 add_thread calls.
14568 (bsd_uthread_target::update_thread_list): Use
14569 as_process_stratum_target and adjust find_thread_ptid,
14570 thread_change_ptid and add_thread calls.
14571 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14572 find_thread_ptid call.
14573 * corelow.c (add_to_thread_list): Adjust add_thread call.
14574 (core_target_open): Adjust add_thread_silent and thread_count
14575 calls.
14576 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14577 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14578 * event-top.c (async_disconnect): Pop targets from all inferiors.
14579 * exec.c (add_target_sections): Push exec target on all inferiors
14580 sharing the program space.
14581 (remove_target_sections): Remove the exec target from all
14582 inferiors sharing the program space.
14583 (exec_on_vfork): New.
14584 * exec.h (exec_on_vfork): Declare.
14585 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14586 Pass it down.
14587 (fbsd_nat_target::update_thread_list): Adjust.
14588 (fbsd_nat_target::resume): Adjust.
14589 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14590 down.
14591 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14592 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14593 get_thread_arch_regcache call.
14594 * fork-child.c (gdb_startup_inferior): Pass target down to
14595 startup_inferior and set_executing.
14596 * gdbthread.h (struct process_stratum_target): Forward declare.
14597 (add_thread, add_thread_silent, add_thread_with_info)
14598 (in_thread_list): Add process_stratum_target parameter.
14599 (find_thread_ptid(inferior*, ptid_t)): New overload.
14600 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14601 parameter.
14602 (all_threads()): Delete overload.
14603 (all_threads, all_non_exited_threads): Add process_stratum_target
14604 parameter.
14605 (all_threads_safe): Use brace initialization.
14606 (thread_count): Add process_stratum_target parameter.
14607 (set_resumed, set_running, set_stop_requested, set_executing)
14608 (threads_are_executing, finish_thread_state): Add
14609 process_stratum_target parameter.
14610 (switch_to_thread): Use is_current_thread.
14611 * i386-fbsd-tdep.c: Include "inferior.h".
14612 (i386fbsd_get_thread_local_address): Pass down target.
14613 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14614 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14615 have_inferiors check.
14616 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14617 (inf_ptrace_target::attach): Adjust.
14618 * infcall.c (run_inferior_call): Adjust.
14619 * infcmd.c (run_command_1): Pass target to
14620 scoped_finish_thread_state.
14621 (proceed_thread_callback): Skip inferiors with no execution.
14622 (continue_command): Rename 'all_threads' local to avoid hiding
14623 'all_threads' function. Adjust get_last_target_status call.
14624 (prepare_one_step): Adjust set_running call.
14625 (signal_command): Use user_visible_resume_target. Compare thread
14626 pointers instead of inferior_ptid.
14627 (info_program_command): Adjust to pass down target.
14628 (attach_command): Mark target's 'thread_executing' flag.
14629 (stop_current_target_threads_ns): New, factored out from ...
14630 (interrupt_target_1): ... this. Switch inferior before making
14631 target calls.
14632 * inferior-iter.h
14633 (struct all_inferiors_iterator, struct all_inferiors_range)
14634 (struct all_inferiors_safe_range)
14635 (struct all_non_exited_inferiors_range): Filter on
14636 process_stratum_target too. Remove explicit.
14637 * inferior.c (inferior::inferior): Push dummy target on target
14638 stack.
14639 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14640 Add process_stratum_target parameter, and pass it down.
14641 (have_live_inferiors): Adjust.
14642 (switch_to_inferior_and_push_target): New.
14643 (add_inferior_command, clone_inferior_command): Handle
14644 "-no-connection" parameter. Use
14645 switch_to_inferior_and_push_target.
14646 (_initialize_inferior): Mention "-no-connection" option in
14647 the help of "add-inferior" and "clone-inferior" commands.
14648 * inferior.h: Include "process-stratum-target.h".
14649 (interrupt_target_1): Use bool.
14650 (struct inferior) <push_target, unpush_target, target_is_pushed,
14651 find_target_beneath, top_target, process_target, target_at,
14652 m_stack>: New.
14653 (discard_all_inferiors): Delete.
14654 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14655 (all_inferiors, all_non_exited_inferiors): Add
14656 process_stratum_target parameter.
14657 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14658 (target_last_proc_target): New global.
14659 (follow_fork_inferior): Push target on new inferior. Pass target
14660 to add_thread_silent. Call exec_on_vfork. Handle target's
14661 reference count.
14662 (follow_fork): Adjust get_last_target_status call. Also consider
14663 target.
14664 (follow_exec): Push target on new inferior.
14665 (struct execution_control_state) <target>: New field.
14666 (user_visible_resume_target): New.
14667 (do_target_resume): Call target_async.
14668 (resume_1): Set target's threads_executing flag. Consider resume
14669 target.
14670 (commit_resume_all_targets): New.
14671 (proceed): Also consider resume target. Skip threads of inferiors
14672 with no execution. Commit resumtion in all targets.
14673 (start_remote): Pass current inferior to wait_for_inferior.
14674 (infrun_thread_stop_requested): Consider target as well. Pass
14675 thread_info pointer to clear_inline_frame_state instead of ptid.
14676 (infrun_thread_thread_exit): Consider target as well.
14677 (random_pending_event_thread): New inferior parameter. Use it.
14678 (do_target_wait): Rename to ...
14679 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14680 down.
14681 (threads_are_resumed_pending_p, do_target_wait): New.
14682 (prepare_for_detach): Adjust calls.
14683 (wait_for_inferior): New inferior parameter. Handle it. Use
14684 do_target_wait_1 instead of do_target_wait.
14685 (fetch_inferior_event): Adjust. Switch to representative
14686 inferior. Pass target down.
14687 (set_last_target_status): Add process_stratum_target parameter.
14688 Save target in global.
14689 (get_last_target_status): Add process_stratum_target parameter and
14690 handle it.
14691 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14692 (context_switch): Check inferior_ptid == null_ptid before calling
14693 inferior_thread().
14694 (get_inferior_stop_soon): Pass down target.
14695 (wait_one): Rename to ...
14696 (poll_one_curr_target): ... this.
14697 (struct wait_one_event): New.
14698 (wait_one): New.
14699 (stop_all_threads): Adjust.
14700 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14701 event's target.
14702 (switch_back_to_stepped_thread): Also consider target.
14703 (print_stop_event): Update.
14704 (normal_stop): Update. Also consider the resume target.
14705 * infrun.h (wait_for_inferior): Remove declaration.
14706 (user_visible_resume_target): New declaration.
14707 (get_last_target_status, set_last_target_status): New
14708 process_stratum_target parameter.
14709 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14710 process_stratum_target parameter, and use it.
14711 (clear_inline_frame_state (thread_info*)): New.
14712 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14713 process_stratum_target parameter.
14714 (clear_inline_frame_state (thread_info*)): Declare.
14715 * linux-fork.c (delete_checkpoint_command): Pass target down to
14716 find_thread_ptid.
14717 (checkpoint_command): Adjust.
14718 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14719 instead of just tweaking inferior_ptid.
14720 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14721 (exit_lwp): Pass target down to find_thread_ptid.
14722 (attach_proc_task_lwp_callback): Pass target down to
14723 add_thread/set_running/set_executing.
14724 (linux_nat_target::attach): Pass target down to
14725 thread_change_ptid.
14726 (get_detach_signal): Pass target down to find_thread_ptid.
14727 Consider last target status's target.
14728 (linux_resume_one_lwp_throw, resume_lwp)
14729 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14730 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14731 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14732 (linux_nat_target::async_wait_fd): New.
14733 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14734 target down.
14735 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14736 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14737 * linux-thread-db.c (struct thread_db_info::process_target): New
14738 field.
14739 (add_thread_db_info): Save target.
14740 (get_thread_db_info): New process_stratum_target parameter. Also
14741 match target.
14742 (delete_thread_db_info): New process_stratum_target parameter.
14743 Also match target.
14744 (thread_from_lwp): Adjust to pass down target.
14745 (thread_db_notice_clone): Pass down target.
14746 (check_thread_db_callback): Pass down target.
14747 (try_thread_db_load_1): Always push the thread_db target.
14748 (try_thread_db_load, record_thread): Pass target down.
14749 (thread_db_target::detach): Pass target down. Always unpush the
14750 thread_db target.
14751 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14752 target down. Always unpush the thread_db target.
14753 (find_new_threads_callback, thread_db_find_new_threads_2)
14754 (thread_db_target::update_thread_list): Pass target down.
14755 (thread_db_target::pid_to_str): Pass current inferior down.
14756 (thread_db_target::get_thread_local_address): Pass target down.
14757 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14758 target down.
14759 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14760 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14761 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14762 (procfs_init_inferior): Rename to ...
14763 (procfs_target::procfs_init_inferior): ... this and adjust.
14764 (procfs_target::create_inferior, procfs_notice_thread)
14765 (procfs_do_thread_registers): Adjust.
14766 * ppc-fbsd-tdep.c: Include "inferior.h".
14767 (ppcfbsd_get_thread_local_address): Pass down target.
14768 * proc-service.c (ps_xfer_memory): Switch current inferior and
14769 program space as well.
14770 (get_ps_regcache): Pass target down.
14771 * process-stratum-target.c
14772 (process_stratum_target::thread_address_space)
14773 (process_stratum_target::thread_architecture): Pass target down.
14774 * process-stratum-target.h
14775 (process_stratum_target::threads_executing): New field.
14776 (as_process_stratum_target): New.
14777 * ravenscar-thread.c
14778 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14779 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14780 down.
14781 * record-btrace.c (record_btrace_target::info_record): Adjust.
14782 (record_btrace_target::record_method)
14783 (record_btrace_target::record_is_replaying)
14784 (record_btrace_target::fetch_registers)
14785 (get_thread_current_frame_id, record_btrace_target::resume)
14786 (record_btrace_target::wait, record_btrace_target::stop): Pass
14787 target down.
14788 * record-full.c (record_full_wait_1): Switch to event thread.
14789 Pass target down.
14790 * regcache.c (regcache::regcache)
14791 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14792 process_stratum_target parameter and handle it.
14793 (current_thread_target): New global.
14794 (get_thread_regcache): Add process_stratum_target parameter and
14795 handle it. Switch inferior before calling target method.
14796 (get_thread_regcache): Pass target down.
14797 (get_thread_regcache_for_ptid): Pass target down.
14798 (registers_changed_ptid): Add process_stratum_target parameter and
14799 handle it.
14800 (registers_changed_thread, registers_changed): Pass target down.
14801 (test_get_thread_arch_aspace_regcache): New.
14802 (current_regcache_test): Define a couple local test_target_ops
14803 instances and use them for testing.
14804 (readwrite_regcache): Pass process_stratum_target parameter.
14805 (cooked_read_test, cooked_write_test): Pass mock_target down.
14806 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14807 (get_thread_arch_aspace_regcache): Add process_stratum_target
14808 parameter.
14809 (regcache::target): New method.
14810 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14811 (regcache::registers_changed_ptid): Add process_stratum_target
14812 parameter.
14813 (regcache::m_target): New field.
14814 (registers_changed_ptid): Add process_stratum_target parameter.
14815 * remote.c (remote_state::supports_vCont_probed): New field.
14816 (remote_target::async_wait_fd): New method.
14817 (remote_unpush_and_throw): Add remote_target parameter.
14818 (get_current_remote_target): Adjust.
14819 (remote_target::remote_add_inferior): Push target.
14820 (remote_target::remote_add_thread)
14821 (remote_target::remote_notice_new_inferior)
14822 (get_remote_thread_info): Pass target down.
14823 (remote_target::update_thread_list): Skip threads of inferiors
14824 bound to other targets. (remote_target::close): Don't discard
14825 inferiors. (remote_target::add_current_inferior_and_thread)
14826 (remote_target::process_initial_stop_replies)
14827 (remote_target::start_remote)
14828 (remote_target::remote_serial_quit_handler): Pass down target.
14829 (remote_target::remote_unpush_target): New remote_target
14830 parameter. Unpush the target from all inferiors.
14831 (remote_target::remote_unpush_and_throw): New remote_target
14832 parameter. Pass it down.
14833 (remote_target::open_1): Check whether the current inferior has
14834 execution instead of checking whether any inferior is live. Pass
14835 target down.
14836 (remote_target::remote_detach_1): Pass down target. Use
14837 remote_unpush_target.
14838 (extended_remote_target::attach): Pass down target.
14839 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14840 (remote_target::append_resumption): Pass down target.
14841 (remote_target::append_pending_thread_resumptions)
14842 (remote_target::remote_resume_with_hc, remote_target::resume)
14843 (remote_target::commit_resume): Pass down target.
14844 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14845 (remote_target::interrupt_query)
14846 (remote_target::remove_new_fork_children)
14847 (remote_target::check_pending_events_prevent_wildcard_vcont)
14848 (remote_target::remote_parse_stop_reply)
14849 (remote_target::process_stop_reply): Pass down target.
14850 (first_remote_resumed_thread): New remote_target parameter. Pass
14851 it down.
14852 (remote_target::wait_as): Pass down target.
14853 (unpush_and_perror): New remote_target parameter. Pass it down.
14854 (remote_target::readchar, remote_target::remote_serial_write)
14855 (remote_target::getpkt_or_notif_sane_1)
14856 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14857 down target.
14858 (remote_target::mourn_inferior): Pass down target. Use
14859 remote_unpush_target.
14860 (remote_target::core_of_thread)
14861 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14862 (remote_target::pid_to_exec_file)
14863 (remote_target::thread_handle_to_thread_info): Pass down target.
14864 (remote_target::async_wait_fd): New.
14865 * riscv-fbsd-tdep.c: Include "inferior.h".
14866 (riscv_fbsd_get_thread_local_address): Pass down target.
14867 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14868 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14869 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14870 Adjust.
14871 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14872 * solib-svr4.c (enable_break): Pass down target.
14873 * spu-multiarch.c (parse_spufs_run): Pass down target.
14874 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14875 * target-delegates.c: Regenerate.
14876 * target.c (g_target_stack): Delete.
14877 (current_top_target): Return the current inferior's top target.
14878 (target_has_execution_1): Refer to the passed-in inferior's top
14879 target.
14880 (target_supports_terminal_ours): Check whether the initial
14881 inferior was already created.
14882 (decref_target): New.
14883 (target_stack::push): Incref/decref the target.
14884 (push_target, push_target, unpush_target): Adjust.
14885 (target_stack::unpush): Defref target.
14886 (target_is_pushed): Return bool. Adjust to refer to the current
14887 inferior's target stack.
14888 (dispose_inferior): Delete, and inline parts ...
14889 (target_preopen): ... here. Only dispose of the current inferior.
14890 (target_detach): Hold strong target reference while detaching.
14891 Pass target down.
14892 (target_thread_name): Add assertion.
14893 (target_resume): Pass down target.
14894 (target_ops::beneath, find_target_at): Adjust to refer to the
14895 current inferior's target stack.
14896 (get_dummy_target): New.
14897 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14898 has a thread running.
14899 (initialize_targets): Rename to ...
14900 (_initialize_target): ... this.
14901 * target.h: Include "gdbsupport/refcounted-object.h".
14902 (struct target_ops): Inherit refcounted_object.
14903 (target_ops::shortname, target_ops::longname): Make const.
14904 (target_ops::async_wait_fd): New method.
14905 (decref_target): Declare.
14906 (struct target_ops_ref_policy): New.
14907 (target_ops_ref): New typedef.
14908 (get_dummy_target): Declare function.
14909 (target_is_pushed): Return bool.
14910 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14911 (all_matching_threads_iterator::all_matching_threads_iterator):
14912 Handle filter target.
14913 * thread-iter.h (struct all_matching_threads_iterator, struct
14914 all_matching_threads_range, class all_non_exited_threads_range):
14915 Filter by target too. Remove explicit.
14916 * thread.c (threads_executing): Delete.
14917 (inferior_thread): Pass down current inferior.
14918 (clear_thread_inferior_resources): Pass down thread pointer
14919 instead of ptid_t.
14920 (add_thread_silent, add_thread_with_info, add_thread): Add
14921 process_stratum_target parameter. Use it for thread and inferior
14922 searches.
14923 (is_current_thread): New.
14924 (thread_info::deletable): Use it.
14925 (find_thread_ptid, thread_count, in_thread_list)
14926 (thread_change_ptid, set_resumed, set_running): New
14927 process_stratum_target parameter. Pass it down.
14928 (set_executing): New process_stratum_target parameter. Pass it
14929 down. Adjust reference to 'threads_executing'.
14930 (threads_are_executing): New process_stratum_target parameter.
14931 Adjust reference to 'threads_executing'.
14932 (set_stop_requested, finish_thread_state): New
14933 process_stratum_target parameter. Pass it down.
14934 (switch_to_thread): Also match inferior.
14935 (switch_to_thread): New process_stratum_target parameter. Pass it
14936 down.
14937 (update_threads_executing): Reimplement.
14938 * top.c (quit_force): Pop targets from all inferior.
14939 (gdb_init): Don't call initialize_targets.
14940 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14941 Declare.
14942 (windows_add_thread, windows_delete_thread): Adjust.
14943 (get_windows_debug_event): Rename to ...
14944 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14945 * tracefile-tfile.c (tfile_target_open): Pass down target.
14946 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14947 Forward declare.
14948 (switch_to_thread): Add process_stratum_target parameter.
14949 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14950 parameter. Use it.
14951 (mi_on_resume): Pass target down.
14952 * nat/fork-inferior.c (startup_inferior): Add
14953 process_stratum_target parameter. Pass it down.
14954 * nat/fork-inferior.h (startup_inferior): Add
14955 process_stratum_target parameter.
14956 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14957
75c6c844
PA
149582020-01-10 Pedro Alves <palves@redhat.com>
14959
14960 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14961 directly. Instead find the first thread in the thread list and
14962 use switch_to_thread.
14963
78f2c40a
PA
149642020-01-10 Pedro Alves <palves@redhat.com>
14965
14966 * remote.c (remote_target::remote_add_inferior): Don't bind a
14967 process to the current inferior if the current inferior is already
14968 bound to a process.
14969
e7af6c70
TBA
149702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14971 Pedro Alves <palves@redhat.com>
14972
14973 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14974 If no process is specified, return null_ptid instead of
14975 inferior_ptid.
14976 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14977 TARGET_WAITKIND_SIGNALLED with no pid.
14978
31ba933e
PA
149792020-01-10 Pedro Alves <palves@redhat.com>
14980
14981 * remote.c (first_remote_resumed_thread): New.
14982 (remote_target::wait_as): Use it as default event_ptid instead of
14983 inferior_ptid.
14984
735fc2ca
PA
149852020-01-10 Pedro Alves <palves@redhat.com>
14986
14987 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14988
c17e02e1
PA
149892020-01-10 Pedro Alves <palves@redhat.com>
14990
14991 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14992 not -1.
14993
ab1ddbcf
PA
149942020-01-10 Pedro Alves <palves@redhat.com>
14995
14996 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14997 ptid to get_last_target_status.
14998 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14999 ptid to get_last_target_status.
15000 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15001 get_last_target_status.
15002 (info_program_command): Don't pass a target_waitstatus to
15003 get_last_target_status.
15004 * infrun.c (init_wait_for_inferior): Use
15005 nullify_last_target_wait_ptid.
15006 (get_last_target_status): Handle nullptr arguments.
15007 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15008 (print_stop_event): Don't pass a ptid to get_last_target_status.
15009 (normal_stop): Don't pass a ptid to get_last_target_status.
15010 * infrun.h (get_last_target_status, set_last_target_status): Move
15011 comments here and update.
15012 (nullify_last_target_wait_ptid): Declare.
15013 * linux-fork.c (fork_load_infrun_state): Remove local extern
15014 declaration of nullify_last_target_wait_ptid.
15015 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15016 to get_last_target_status.
15017
f3f8ece4
PA
150182020-01-10 Pedro Alves <palves@redhat.com>
15019
15020 * gdbthread.h (scoped_restore_current_thread)
15021 <dont_restore, restore, m_dont_restore>: Declare.
15022 * thread.c (thread_alive): Add assertion. Return bool.
15023 (switch_to_thread_if_alive): New.
15024 (prune_threads): Switch inferior/thread.
15025 (print_thread_info_1): Switch thread before calling target methods.
15026 (scoped_restore_current_thread::restore): New, factored out from
15027 ...
15028 (scoped_restore_current_thread::~scoped_restore_current_thread):
15029 ... this.
15030 (scoped_restore_current_thread::scoped_restore_current_thread):
15031 Add assertion.
15032 (thread_apply_all_command, thread_select): Use
15033 switch_to_thread_if_alive.
15034 * infrun.c (proceed, restart_threads, handle_signal_stop)
15035 (switch_back_to_stepped_thread): Switch current thread before
15036 calling target methods.
15037
db2d40f7
PA
150382020-01-10 Pedro Alves <palves@redhat.com>
15039
15040 * inferior.c (switch_to_inferior_no_thread): New function,
15041 factored out from ...
15042 (inferior_command): ... here.
15043 * inferior.h (switch_to_inferior_no_thread): Declare.
15044 * mi/mi-main.c (run_one_inferior): Use
15045 switch_to_inferior_no_thread.
15046
bd420a2d
PA
150472020-01-10 Pedro Alves <palves@redhat.com>
15048
15049 * infcmd.c (kill_command): Remove dead code.
15050
ddf5db90
PA
150512020-01-10 Pedro Alves <palves@redhat.com>
15052
15053 * remote.c (remote_target::mourn_inferior): No longer check
15054 whether the target is running.
15055
5018ce90
PA
150562020-01-10 Pedro Alves <palves@redhat.com>
15057
15058 * corelow.c (core_target::has_execution): Change parameter type to
15059 inferior pointer.
15060 * inferior.c (number_of_live_inferiors): Use
15061 inferior::has_execution instead of target_has_execution_1.
15062 * inferior.h (inferior::has_execution): New.
15063 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15064 inferior::has_execution instead of target_has_execution_1.
15065 * process-stratum-target.c
15066 (process_stratum_target::has_execution): Change parameter type to
15067 inferior pointer. Check the inferior's PID instead of
15068 inferior_ptid.
15069 * process-stratum-target.h
15070 (process_stratum_target::has_execution): Change parameter type to
15071 inferior pointer.
15072 * record-full.c (record_full_core_target::has_execution): Change
15073 parameter type to inferior pointer.
15074 * target.c (target_has_execution_1): Change parameter type to
15075 inferior pointer.
15076 (target_has_execution_current): Adjust.
15077 * target.h (target_ops::has_execution): Change parameter type to
15078 inferior pointer.
15079 (target_has_execution_1): Change parameter type to inferior
15080 pointer. Change return type to bool.
15081 * tracefile.h (tracefile_target::has_execution): Change parameter
15082 type to inferior pointer.
15083
74375d18
PA
150842020-01-10 Pedro Alves <palves@redhat.com>
15085
15086 * exceptions.c (print_flush): Remove current_top_target() check.
15087
acdf84a6
PA
150882020-01-10 Pedro Alves <palves@redhat.com>
15089
15090 * remote.c (show_remote_exec_file): Show the current inferior's
15091 exec-file instead of the command variable's value.
15092
ec506636
PA
150932020-01-10 Pedro Alves <palves@redhat.com>
15094
15095 * record-full.c (record_full_resume_ptid): New global.
15096 (record_full_target::resume): Set it.
15097 (record_full_wait_1): Use record_full_resume_ptid instead of
15098 inferior_ptid.
15099
873657b9
PA
151002020-01-10 Pedro Alves <palves@redhat.com>
15101
15102 * gdbthread.h (scoped_restore_current_thread)
15103 <dont_restore, restore, m_dont_restore>: Declare.
15104 * thread.c (thread_alive): Add assertion. Return bool.
15105 (switch_to_thread_if_alive): New.
15106 (prune_threads): Switch inferior/thread.
15107 (print_thread_info_1): Switch thread before calling target methods.
15108 (scoped_restore_current_thread::restore): New, factored out from
15109 ...
15110 (scoped_restore_current_thread::~scoped_restore_current_thread):
15111 ... this.
15112 (scoped_restore_current_thread::scoped_restore_current_thread):
15113 Add assertion.
15114 (thread_apply_all_command, thread_select): Use
15115 switch_to_thread_if_alive.
15116
7f0ae84c
GB
151172020-01-10 George Barrett <bob@bob131.so>
15118
15119 * stap-probe.c (stap_modify_semaphore): Don't check for null
15120 semaphores.
15121 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15122 for null semaphores.
15123
f5a7c406
AB
151242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15125
15126 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15127 all source windows, and maintain horizontal scroll status while
15128 doing so.
15129
9ae6bf64
TT
151302020-01-09 Tom Tromey <tom@tromey.com>
15131
15132 PR tui/18932:
15133 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15134 update_source_window, not print_source_lines.
15135
b2efe70c
AB
151362020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15137
15138 * tui/tui.c (tui_enable): Register tui hooks after calling
15139 tui_display_main.
15140
5f23a082
CB
151412020-01-09 Christian Biesinger <cbiesinger@google.com>
15142
15143 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15144
3061113b
SM
151452020-01-08 Simon Marchi <simon.marchi@efficios.com>
15146
15147 * thread.c (print_thread_info_1): Fix indentation.
15148
57d75002
CB
151492020-01-09 Christian Biesinger <cbiesinger@google.com>
15150
15151 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15152 unique_xmalloc_ptr outside the if to always free the demangled name.
15153
6a053cb1
TT
151542020-01-08 Tom Tromey <tromey@adacore.com>
15155
15156 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15157 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15158 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15159 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15160 Remove.
15161 (section_offsets): New typedef.
15162 * symtab.c (fixup_section, get_msymbol_address): Update.
15163 * symmisc.c (dump_msymbols): Update.
15164 * symfile.h (relative_addr_info_to_section_offsets)
15165 (symfile_map_offsets_to_segments): Update.
15166 * symfile.c (build_section_addr_info_from_objfile)
15167 (init_objfile_sect_indices): Update.
15168 (struct place_section_arg): Change type of "offsets".
15169 (place_section): Update.
15170 (relative_addr_info_to_section_offsets): Change type of
15171 "section_offsets". Remove "num_sections" parameter.
15172 (default_symfile_offsets, syms_from_objfile_1)
15173 (set_objfile_default_section_offset): Update.
15174 (reread_symbols): No need to preserve section offsets by hand.
15175 (symfile_map_offsets_to_segments): Change type of "offsets".
15176 * stap-probe.c (relocate_address): Update.
15177 * stabsread.h (process_one_symbol): Update.
15178 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15179 (solib_target_relocate_section_addresses): Update.
15180 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15181 Update.
15182 * solib-frv.c (frv_relocate_main_executable): Update.
15183 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15184 * solib-aix.c (solib_aix_get_section_offsets): Change return
15185 type.
15186 (solib_aix_solib_create_inferior_hook): Update.
15187 * remote.c (remote_target::get_offsets): Update.
15188 * psymtab.c (find_pc_sect_psymtab): Update.
15189 * psympriv.h (struct partial_symbol) <address, text_low,
15190 text_high>: Update.
15191 * objfiles.h (obj_section_offset): Update.
15192 (struct objfile) <section_offsets>: Change type.
15193 <num_sections>: Remove.
15194 (objfile_relocate): Update.
15195 * objfiles.c (entry_point_address_query): Update
15196 (relocate_one_symbol): Change type of "section_offsets".
15197 (objfile_relocate1, objfile_relocate1): Change type of
15198 "new_offsets".
15199 (objfile_rebase1): Update.
15200 * mipsread.c (mipscoff_symfile_read): Update.
15201 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15202 parameter.
15203 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15204 (parse_external, psymtab_to_symtab_1): Update.
15205 * machoread.c (macho_symfile_offsets): Update.
15206 * ia64-tdep.c (ia64_find_unwind_table): Update.
15207 * hppa-tdep.c (read_unwind_info): Update.
15208 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15209 * dwarf2read.c (create_addrmap_from_index)
15210 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15211 (process_psymtab_comp_unit_reader, add_partial_symbol)
15212 (add_partial_subprogram, process_full_comp_unit)
15213 (read_file_scope, read_func_scope, read_lexical_block_scope)
15214 (read_call_site_scope, dwarf2_rnglists_process)
15215 (dwarf2_ranges_process, dwarf2_ranges_read)
15216 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15217 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15218 Update.
15219 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15220 Update.
15221 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15222 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15223 (process_one_symbol): Change type of "section_offsets".
15224 * ctfread.c (get_objfile_text_range): Update.
15225 * coffread.c (coff_symtab_read, enter_linenos)
15226 (process_coff_symbol): Update.
15227 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15228 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15229
456e800a
TT
152302020-01-08 Tom Tromey <tromey@adacore.com>
15231
15232 * dwarf2read.c (parse_macro_definition): Use std::string.
15233 (parse_macro_definition): Likewise.
15234
6dfa2fc2
TT
152352020-01-08 Tom Tromey <tromey@adacore.com>
15236
15237 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15238 (ATTR_ALLOC_CHUNK): Remove.
15239
421d1616
TT
152402020-01-08 Tom Tromey <tromey@adacore.com>
15241
15242 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15243
43816ebc
TT
152442020-01-08 Tom Tromey <tromey@adacore.com>
15245
15246 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15247 (dwarf2_compute_name, open_dwo_file): Likewise.
15248 (process_enumeration_scope): Use std::vector.
15249 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15250 (partial_die_info::fixup, dwarf2_start_subfile)
15251 (guess_full_die_structure_name, dwarf2_name): Likewise.
15252 (determine_prefix): Update.
15253 (guess_full_die_structure_name): Make return type const.
15254 (partial_die_full_name): Return unique_xmalloc_ptr.
15255 (DW_FIELD_ALLOC_CHUNK): Remove.
15256
4212d509
TT
152572020-01-07 Tom Tromey <tromey@adacore.com>
15258
15259 PR build/24937:
15260 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15261
06a6207a
JT
152622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15263
15264 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15265
153d79c4
AB
152662020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15267
15268 * stack.c (print_frame_info): Move disassemble_next_line code
15269 inside source_print block.
15270
66182876
EZ
152712020-01-06 Eli Zaretskii <eliz@gnu.org>
15272
15273 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15274 gdb/signals.h, as we are now using native signal symbols.
15275
cbfa8581
SV
152762020-01-06 Shahab Vahedi <shahab@synopsys.com>
15277
15278 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15279 overflow by an early check of content vs threshold.
aac66a4c 15280 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15281 Likewise.
15282
3f602821
EZ
152832020-01-06 Eli Zaretskii <eliz@gnu.org>
15284
15285 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15286
a08c904d
JT
152872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15288
15289 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15290 export table if no section contains it's RVA.
15291
89a65580
EZ
152922020-01-06 Eli Zaretskii <eliz@gnu.org>
15293
15294 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15295
8b7fcda2
HD
152962020-01-06 Hannes Domani <ssbssa@yahoo.de>
15297
15298 * source.c (print_source_lines_base): Set last_line_listed.
15299
a61b4f69
SV
153002020-01-06 Shahab Vahedi <shahab@synopsys.com>
15301
15302 * tui/tui-disasm.c: Remove trailing spaces.
15303
559e7e50
EZ
153042020-01-06 Eli Zaretskii <eliz@gnu.org>
15305 Pedro Alves <palves@redhat.com>
15306
15307 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15308 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15309 (windows_gdb_signal_to_target): New function, uses the above
15310 enumeration to convert GDB internal signal codes to equivalent
15311 Windows codes.
15312 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15313 * windows-nat.c: Include "gdb_wait.h".
15314 (get_windows_debug_event): Extract the fatal exception from the
15315 exit status and convert to the equivalent Posix signal number.
15316 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15317 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15318 * gdbsupport/gdb_wait.c: New file, implements
15319 windows_status_to_termsig.
15320 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15321 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15322
f2302a34
AB
153232020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15324
15325 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15326 show_layout.
15327
6a5206eb
LM
153282020-01-05 Luis Machado <luis.machado@linaro.org>
15329
15330 * aarch64-linux-nat.c
15331 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15332 and bfd_mach_aarch64.
15333
6ec1d75e
PW
153342020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15335
15336 * ui-file.c (stdio_file::can_emit_style_escape)
15337 (tee_file::can_emit_style_escape): Ensure style is used also on
15338 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15339 to gdb_stdout.
15340 * main.c (set_gdb_data_directory): Use file style to output the
15341 warning that the given pathname is not a directory.
15342 * top.c (show_history_filename, gdb_safe_append_history)
15343 (show_gdb_datadir): Use file style.
15344
44f81a76
HD
153452020-01-03 Hannes Domani <ssbssa@yahoo.de>
15346
15347 * solib-target.c (struct lm_info_target):
15348 Change offsets to be a unique_xmalloc_ptr.
15349 (solib_target_relocate_section_addresses): Update.
15350
25057eb0
HD
153512020-01-03 Hannes Domani <ssbssa@yahoo.de>
15352
15353 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15354
6e2118f5
BE
153552020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15356
15357 * MAINTAINERS (Write After Approval): Add myself.
15358
8133c7dc
LM
153592020-01-02 Luis Machado <luis.machado@linaro.org>
15360
15361 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15362 Cell BE architecture.
15363 * target.h (struct target_ops) <thread_architecture>: Likewise.
15364
48189bec
HD
153652020-01-01 Hannes Domani <ssbssa@yahoo.de>
15366
15367 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15368
ead1063b
HD
153692020-01-01 Hannes Domani <ssbssa@yahoo.de>
15370
15371 * MAINTAINERS (Write After Approval): Add myself.
15372
e5d78223
JB
153732020-01-01 Joel Brobecker <brobecker@adacore.com>
15374
15375 * gdbarch.sh: Update copyright year range of generated files.
15376
b811d2c2
JB
153772020-01-01 Joel Brobecker <brobecker@adacore.com>
15378
15379 Update copyright year range in all GDB files.
15380
5f4def5c
JB
153812020-01-01 Joel Brobecker <brobecker@adacore.com>
15382
15383 * copyright.py: Convert to Python 3.
15384
51fd4002
JB
153852020-01-01 Joel Brobecker <brobecker@adacore.com>
15386
15387 * copyright.py: Adapt after move of gnulib directory from gdb
15388 directory to toplevel directory.
15389
5fb651f2
JB
153902020-01-01 Joel Brobecker <brobecker@adacore.com>
15391
15392 * copyright.py (main): Exit if run from the wrong directory.
15393
5dd8bf88
JB
153942020-01-01 Joel Brobecker <brobecker@adacore.com>
15395
15396 * top.c (print_gdb_version): Change copyright year to 2020.
15397
9f71dacb 153982020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15399
9f71dacb 15400 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15401
9f71dacb 15402For older changes see ChangeLog-2019.
c906108c
SS
15403\f
15404Local Variables:
15405mode: change-log
15406left-margin: 8
15407fill-column: 74
15408version-control: never
57da7796 15409coding: utf-8
c906108c 15410End:
This page took 3.137774 seconds and 4 git commands to generate.