Make range types inherit signed-ness from base type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-17 Tom Tromey <tom@tromey.com>
2
3 * valprint.c (generic_value_print): Remove comment.
4 * m2-valprint.c (m2_value_print_inner): Remove comment.
5 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
6 type.
7
8 2020-10-17 Tom de Vries <tdevries@suse.de>
9
10 PR symtab/26317
11 * source.c (select_source_symtab): Handling sal.symtab == NULL for
12 symbol main.
13
14 2020-10-14 Tom de Vries <tdevries@suse.de>
15
16 PR gdb/26733
17 * solib.c (solib_contains_address_p): Handle
18 'solib->sections == nullptr'.
19
20 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
21
22 PR gdb/26642
23 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
24 target can't do async.
25 * target.c (target_wait): Assert that we don't pass
26 TARGET_WNOHANG to a target that can't async.
27
28 2020-10-13 Kamil Rytarowski <n54@gmx.com>
29
30 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
31 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
32 * alpha-bsd-nat.c: Adjust include.
33 * alpha-bsd-tdep.h: Adjust comment.
34 * alpha-nbsd-tdep.c: Rename to ...
35 * alpha-netbsd-tdep.c: ... this, adjust include.
36 * amd64-nbsd-nat.c: Rename to ...
37 * amd64-netbsd-nat.c: ... this, adjust include.
38 * amd64-nbsd-tdep.c: Rename to ...
39 * amd64-netbsd-tdep.c: ... this, adjust include.
40 * amd64-tdep.h: Adjust include.
41 * arm-nbsd-nat.c: Rename to ...
42 * arm-netbsd-nat.c: ... this, adjust include.
43 * arm-nbsd-tdep.c: Rename to ...
44 * arm-netbsd-tdep.c: ... this, adjust include.
45 * arm-nbsd-tdep.h: Rename to ...
46 * arm-netbsd-tdep.h: ... this, adjust include.
47 * configure.nat: Adjust file lists.
48 * configure.tgt: Likewise.
49 * hppa-nbsd-nat.c: Rename to ...
50 * hppa-netbsd-nat.c: ... this, adjust include.
51 * hppa-nbsd-tdep.c: Rename to ...
52 * hppa-netbsd-tdep.c: ... this, adjust include.
53 * i386-nbsd-nat.c: Rename to ...
54 * i386-netbsd-nat.c: ... this, adjust include.
55 * i386-nbsd-tdep.c: Rename to ...
56 * i386-netbsd-tdep.c: ... this, adjust include.
57 * m68k-bsd-nat.c: Adjust include.
58 * mips-nbsd-nat.c: Rename to ...
59 * mips-netbsd-nat.c: ... this, adjust include.
60 * mips-nbsd-tdep.c: Rename to ...
61 * mips-netbsd-tdep.c: ... this, adjust include.
62 * mips-nbsd-tdep.h: Rename to ...
63 * mips-netbsd-tdep.h: ... this.
64 * nbsd-nat.c: Rename to ...
65 * netbsd-nat.c: ... this, adjust include.
66 * nbsd-nat.h: Rename to ...
67 * netbsd-nat.h: ... this, adjust include.
68 * nbsd-tdep.c: Rename to ...
69 * netbsd-tdep.c: ... this, adjust include.
70 * nbsd-tdep.h: Rename to ...
71 * netbsd-tdep.h: ... this.
72 * ppc-nbsd-nat.c: Rename to ...
73 * ppc-netbsd-nat.c: ... this, adjust include.
74 * ppc-nbsd-tdep.c: Rename to ...
75 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
76 * ppc-nbsd-tdep.h: Rename to ...
77 * ppc-netbsd-tdep.h: ... this.
78 * sh-nbsd-nat.c: Rename to ...
79 * sh-netbsd-nat.c: ... this, adjust include.
80 * sh-nbsd-tdep.c: Rename to ...
81 * sh-netbsd-tdep.c: ... this, adjust include.
82 * sparc-nbsd-nat.c: Rename to ...
83 * sparc-netbsd-nat.c: ... this.
84 * sparc-nbsd-tdep.c: Rename to ...
85 * sparc-netbsd-tdep.c: ... this, adjust include.
86 * sparc64-nbsd-nat.c: Rename to ...
87 * sparc64-netbsd-nat.c: ... this.
88 * sparc64-nbsd-tdep.c: Rename to ...
89 * sparc64-netbsd-tdep.c: ... this, adjust include.
90 * sparc64-tdep.h: Adjust comment.
91 * vax-bsd-nat.c: Adjust include.
92 * vax-nbsd-tdep.c: Rename to ...
93 * vax-netbsd-tdep.c: ... this, adjust include.
94
95 2020-10-12 Tom Tromey <tom@tromey.com>
96
97 * target.h (struct target_ops) <get_section_table>: Update.
98 (target_get_section_table): Update.
99 * target.c (target_get_section_table, target_section_by_addr)
100 (memory_xfer_partial_1): Update.
101 * target-section.h (target_section_table): Now an alias.
102 * target-delegates.c: Rebuild.
103 * target-debug.h (target_debug_print_target_section_table_p):
104 Rename from target_debug_print_struct_target_section_table_p.
105 * symfile.c (build_section_addr_info_from_section_table): Update.
106 * solib.c (solib_map_sections, solib_contains_address_p): Update.
107 * solib-svr4.c (scan_dyntag): Update.
108 * solib-dsbt.c (scan_dyntag): Update.
109 * remote.c (remote_target::remote_xfer_live_readonly_partial):
110 Update.
111 * record-full.c (record_full_core_target::xfer_partial): Update.
112 * progspace.h (struct program_space) <target_sections>: Update.
113 * exec.h (print_section_info): Update.
114 * exec.c (exec_target::close, build_section_table)
115 (add_target_sections, add_target_sections_of_objfile)
116 (remove_target_sections, exec_on_vfork)
117 (section_table_available_memory)
118 (section_table_xfer_memory_partial)
119 (exec_target::get_section_table, exec_target::xfer_partial)
120 (print_section_info, set_section_command)
121 (exec_set_section_address, exec_target::has_memory): Update.
122 * corelow.c (core_target::build_file_mappings)
123 (core_target::xfer_partial, core_target::info_proc_mappings)
124 (core_target::info_proc_mappings): Update.
125 * bfd-target.c (class target_bfd): Update
126
127 2020-10-12 Tom Tromey <tom@tromey.com>
128
129 * progspace.c (program_space::~program_space): Don't call
130 clear_section_table.
131 * exec.h (clear_section_table): Don't declare.
132 * exec.c (exec_target::close): Update.
133 (clear_section_table): Remove.
134
135 2020-10-12 Tom Tromey <tom@tromey.com>
136
137 * exec.c (add_target_sections_of_objfile): Simplify.
138
139 2020-10-12 Tom Tromey <tom@tromey.com>
140
141 * solib.c (solib_map_sections): Update.
142 * record-full.c (record_full_core_open_1): Update.
143 * exec.h (build_section_table): Return a target_section_table.
144 * exec.c (exec_file_attach): Update.
145 (build_section_table): Return a target_section_table.
146 * corelow.c (core_target::core_target): Update.
147 * bfd-target.c (target_bfd::target_bfd): Update.
148
149 2020-10-12 Tom Tromey <tom@tromey.com>
150
151 * target.c (target_section_by_addr, memory_xfer_partial_1):
152 Update.
153 * target-section.h (struct target_section_table): Use
154 std::vector.
155 * symfile.h (build_section_addr_info_from_section_table): Take a
156 target_section_table.
157 * symfile.c (build_section_addr_info_from_section_table): Take a
158 target_section_table.
159 * solist.h (struct so_list) <sections>: Change type.
160 <sections_end>: Remove.
161 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
162 (solib_contains_address_p): Update.
163 * solib-svr4.c (scan_dyntag): Update.
164 * solib-dsbt.c (scan_dyntag): Update.
165 * remote.c (remote_target::remote_xfer_live_readonly_partial):
166 Update.
167 * record-full.c (record_full_core_start, record_full_core_end):
168 Remove.
169 (record_full_core_sections): New global.
170 (record_full_core_open_1, record_full_core_target::xfer_partial):
171 Update.
172 * exec.h (build_section_table, section_table_xfer_memory_partial)
173 (add_target_sections): Take a target_section_table.
174 * exec.c (exec_file_attach, clear_section_table): Update.
175 (resize_section_table): Remove.
176 (build_section_table, add_target_sections): Take a
177 target_section_table.
178 (add_target_sections_of_objfile, remove_target_sections)
179 (exec_on_vfork): Update.
180 (section_table_available_memory): Take a target_section_table.
181 (section_table_read_available_memory): Update.
182 (section_table_xfer_memory_partial): Take a target_section_table.
183 (print_section_info, set_section_command)
184 (exec_set_section_address, exec_target::has_memory): Update.
185 * corelow.c (class core_target) <m_core_section_table,
186 m_core_file_mappings>: Remove braces.
187 <~core_target>: Remove.
188 (core_target::core_target): Update.
189 (core_target::~core_target): Remove.
190 (core_target::build_file_mappings)
191 (core_target::xfer_memory_via_mappings)
192 (core_target::xfer_partial, core_target::info_proc_mappings):
193 Update.
194 * bfd-target.c (target_bfd::xfer_partial): Update.
195 (target_bfd::target_bfd): Update.
196 (target_bfd::~target_bfd): Remove.
197
198 2020-10-12 Tom Tromey <tom@tromey.com>
199
200 * target.h (struct target_section, struct target_section_table):
201 Move to target-section.h.
202 * target-section.h: New file.
203
204 2020-10-12 Pedro Alves <pedro@palves.net>
205
206 PR exp/26602
207 * valops.c (struct struct_field_searcher): New.
208 (update_search_result): Rename to ...
209 (struct_field_searcher::update_result): ... this. Simplify
210 prototype. Record all found fields.
211 (do_search_struct_field): Rename to ...
212 (struct_field_searcher::search): ... this. Simplify prototype.
213 Maintain stack of visited baseclass path. Call update_result for
214 fields too. Keep searching fields in baseclasses instead of
215 stopping at the first found field.
216 (search_struct_field): Use struct_field_searcher. When looking
217 for fields, report ambiguous access attempts.
218
219 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * frame.c (inside_main_func): Check full symbols as well as
222 minimal symbols.
223
224 2020-10-09 Joel Brobecker <brobecker@adacore.com>
225
226 * ada-lang.c (advance_wild_match): Rewrite the function's
227 description. Change the type of target0, t0 and t1 to char.
228
229 2020-10-09 Tom Tromey <tromey@adacore.com>
230
231 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
232
233 2020-10-09 Tom Tromey <tromey@adacore.com>
234
235 * ada-lang.h (ada_encode): Return std::string.
236 * ada-lang.c (ada_encode_1): Return std::string.
237 (ada_encode): Likewise.
238 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
239 Update.
240 * ada-exp.y (block_lookup, write_var_or_type): Update.
241
242 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
243
244 PR exp/26714
245 * printcmd.c (print_formatted): Handle void results as
246 unformatted prints.
247
248 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * arch/aarch32.c (aarch32_create_target_description): Release the
251 target_desc_up as late as possible.
252 * arch/aarch64.c (aarch64_create_target_description): Likewise.
253 * arch/amd64.c (amd64_create_target_description): Likewise.
254 * arch/arc.c (arc_create_target_description): Return a
255 target_desc_up, don't release it.
256 * arch/arc.h (arc_create_target_description): Update declaration.
257 (arc_lookup_target_description): Move target_desc_up into the
258 cache, and return a borrowed pointer.
259 * arch/arm.c (arm_create_target_description): Release the
260 target_desc_up as late as possible.
261 * arch/i386.c (i386_create_target_description): Likewise.
262 * arch/riscv.h (riscv_create_target_description): Update
263 declaration to match definition.
264 * arch/tic6x.c (tic6x_create_target_description): Release the
265 target_desc_up as late as possible.
266
267 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
270 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
271
272 2020-10-09 Jan Vrany <jan.vrany@labware.com>
273
274 * source.c (directory_command): Notify observers that "directories"
275 parameter has changed.
276
277 2020-10-08 Tom Tromey <tom@tromey.com>
278
279 * cli/cli-cmds.c (print_disassembly): Style function name and
280 addresses. Add _() wrappers.
281
282 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
283
284 * NEWS: Mention ARC support in GDBserver.
285
286 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * arch/aarch32.c (aarch32_create_target_description): Release
289 unique_ptr returned from allocate_target_description.
290 * arch/aarch64.c (aarch64_create_target_description): Likewise.
291 * arch/amd64.c (amd64_create_target_description): Likewise.
292 * arch/arc.c (arc_create_target_description): Likewise.
293 * arch/arm.c (arm_create_target_description): Likewise.
294 * arch/i386.c (i386_create_target_description): Likewise.
295 * arch/riscv.c (riscv_create_target_description): Update return
296 type. Handle allocate_target_description returning a unique_ptr.
297 (riscv_lookup_target_description): Update to handle unique_ptr.
298 * arch/tic6x.c (tic6x_create_target_description): Release
299 unique_ptr returned from allocate_target_description.
300 * features/microblaze-with-stack-protect.c: Regenerate.
301 * features/microblaze.c: Regenerate.
302 * features/mips-dsp-linux.c: Regenerate.
303 * features/mips-linux.c: Regenerate.
304 * features/mips64-dsp-linux.c: Regenerate.
305 * features/mips64-linux.c: Regenerate.
306 * features/nds32.c: Regenerate.
307 * features/nios2.c: Regenerate.
308 * features/or1k.c: Regenerate.
309 * features/rs6000/powerpc-32.c: Regenerate.
310 * features/rs6000/powerpc-32l.c: Regenerate.
311 * features/rs6000/powerpc-403.c: Regenerate.
312 * features/rs6000/powerpc-403gc.c: Regenerate.
313 * features/rs6000/powerpc-405.c: Regenerate.
314 * features/rs6000/powerpc-505.c: Regenerate.
315 * features/rs6000/powerpc-601.c: Regenerate.
316 * features/rs6000/powerpc-602.c: Regenerate.
317 * features/rs6000/powerpc-603.c: Regenerate.
318 * features/rs6000/powerpc-604.c: Regenerate.
319 * features/rs6000/powerpc-64.c: Regenerate.
320 * features/rs6000/powerpc-64l.c: Regenerate.
321 * features/rs6000/powerpc-7400.c: Regenerate.
322 * features/rs6000/powerpc-750.c: Regenerate.
323 * features/rs6000/powerpc-860.c: Regenerate.
324 * features/rs6000/powerpc-altivec32.c: Regenerate.
325 * features/rs6000/powerpc-altivec32l.c: Regenerate.
326 * features/rs6000/powerpc-altivec64.c: Regenerate.
327 * features/rs6000/powerpc-altivec64l.c: Regenerate.
328 * features/rs6000/powerpc-e500.c: Regenerate.
329 * features/rs6000/powerpc-e500l.c: Regenerate.
330 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
331 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
332 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
333 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
334 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
335 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
336 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
337 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
338 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
339 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
340 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
341 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
342 * features/rs6000/powerpc-vsx32.c: Regenerate.
343 * features/rs6000/powerpc-vsx32l.c: Regenerate.
344 * features/rs6000/powerpc-vsx64.c: Regenerate.
345 * features/rs6000/powerpc-vsx64l.c: Regenerate.
346 * features/rs6000/rs6000.c: Regenerate.
347 * features/rx.c: Regenerate.
348 * features/s390-gs-linux64.c: Regenerate.
349 * features/s390-linux32.c: Regenerate.
350 * features/s390-linux32v1.c: Regenerate.
351 * features/s390-linux32v2.c: Regenerate.
352 * features/s390-linux64.c: Regenerate.
353 * features/s390-linux64v1.c: Regenerate.
354 * features/s390-linux64v2.c: Regenerate.
355 * features/s390-te-linux64.c: Regenerate.
356 * features/s390-tevx-linux64.c: Regenerate.
357 * features/s390-vx-linux64.c: Regenerate.
358 * features/s390x-gs-linux64.c: Regenerate.
359 * features/s390x-linux64.c: Regenerate.
360 * features/s390x-linux64v1.c: Regenerate.
361 * features/s390x-linux64v2.c: Regenerate.
362 * features/s390x-te-linux64.c: Regenerate.
363 * features/s390x-tevx-linux64.c: Regenerate.
364 * features/s390x-vx-linux64.c: Regenerate.
365 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
366 from allocate_target_description.
367 * target-descriptions.c (allocate_target_description): Update
368 return type.
369 (print_c_tdesc::visit_pre): Release unique_ptr returned from
370 allocate_target_description.
371
372 2020-10-07 Tom Tromey <tromey@adacore.com>
373
374 * unittests/search-memory-selftests.c: New file.
375 * Makefile.in (SELFTESTS_SRCS): Add
376 unittests/search-memory-selftests.c.
377
378 2020-10-07 Tom Tromey <tromey@adacore.com>
379
380 PR gdb/16930:
381 * findcmd.c (_initialize_mem_search): Mention that the range is
382 inclusive.
383
384 2020-10-07 Tom Tromey <tromey@adacore.com>
385
386 * target.h (simple_search_memory): Don't declare.
387 * target.c (simple_search_memory): Move to gdbsupport.
388 (default_search_memory): Update.
389 * remote.c (remote_target::search_memory): Update.
390
391 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
392
393 * Makefile.in (COMPILE): Add CXXFLAGS.
394 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
395 (check-headers): Add CXXFLAGS.
396
397 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
398
399 * arc-linux-tdep.h: New file.
400 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
401 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
402 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
403 arc_linux_gregset, arc_linux_v2_regset,
404 arc_linux_iterate_over_regset_sections,
405 arc_linux_core_read_description): Implement.
406 (arc_linux_init_osabi): Set iterate_over_regset_sections.
407 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
408 (arc_gdbarch_features_create): Add.
409 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
410
411 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
412
413 * arch/arc.h: Rename "arc_gdbarch_features" to
414 "arc_arch_features".
415 * arc-tdep.h: Likewise.
416 * arc-tdep.c: Likewise.
417
418 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
419
420 * infcmd.c (attach_command): Remove the redundant call to
421 `clear_proceed_status`.
422
423 2020-10-07 Kamil Rytarowski <n54@gmx.com>
424
425 * nat/netbsd-nat.c (write_memory, read_memory): Update.
426
427 2020-10-07 Kamil Rytarowski <n54@gmx.com>
428
429 * nat/netbsd-nat.c (write_memory, read_memory): Add.
430 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
431 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
432
433 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
434
435 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
436 (_initialize_break_catch_sig): Don't allocate array.
437
438 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * symtab.c (find_pc_line): Return unmapped addresses when the
441 requested address is also unmapped.
442
443 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
444
445 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
446 tui/tui-out.h.
447
448 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
449
450 * amd64-windows-tdep.c (amd64_windows_return_value): Use
451 type::is_vector instead of TYPE_VECTOR.
452
453 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
454
455 * auto-load.c (auto_load_objfile_script_1): Don't use
456 debugfile_holder as temporary variable when stripping drive
457 letter.
458
459 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
460
461 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
462 Add TYPE_CODE_COMPLEX.
463 (amd64_windows_return_value): Fix types returned via XMM0.
464
465 2020-10-05 Alan Hayward <alan.hayward@arm.com>
466
467 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
468 AArch64/ARM maintainers.
469
470 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
471
472 * NEWS: Mention set/show debug event-loop.
473
474 2020-10-02 Tom Tromey <tromey@adacore.com>
475
476 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
477 REG_EXTENDED.
478
479 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
480
481 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
482 * procfs.c (procfs_inferior_created): Remove.
483 (_initialize_procfs): Don't register procfs_inferior_created.
484
485 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * async-event.c (invoke_async_signal_handlers): Add debug
488 print.
489 (check_async_event_handlers): Likewise.
490 * event-top.c (show_debug_event_loop): New function.
491 (_initialize_event_top): Register "set debug event-loop"
492 setting.
493
494 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
497 * debug.h: Remove.
498 * infrun.c: Include gdbsupport/common-debug.h.
499 * linux-nat.c: Likewise.
500
501 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * async-event.h (create_async_signal_handler): Add name
504 parameter.
505 (create_async_event_handler): Likewise.
506 * async-event.c (struct async_signal_handler) <name>: New field.
507 (struct async_event_handler) <name>: New field.
508 (create_async_signal_handler): Assign name.
509 (create_async_event_handler): Assign name.
510 * event-top.c (async_init_signals): Pass name when creating
511 handler.
512 * infrun.c (_initialize_infrun): Likewise.
513 * record-btrace.c (record_btrace_push_target): Likewise.
514 * record-full.c (record_full_open): Likewise.
515 * remote-notif.c (remote_notif_state_allocate): Likewise.
516 * remote.c (remote_target::open_1): Likewise.
517 * tui/tui-win.c (tui_initialize_win): Likewise.
518
519 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * async-event.c (initialize_async_signal_handlers): Pass name to
522 add_file_handler
523 * event-top.c (ui_register_input_event_handler): Likewise.
524 * linux-nat.c (linux_nat_target::async): Likewise.
525 * run-on-main-thread.c (_initialize_run_on_main_thread):
526 Likewise
527 * ser-base.c (reschedule): Likewise.
528 (ser_base_async): Likewise.
529 * tui/tui-io.c: Likewise.
530 * top.h (struct ui) <num>: New field.
531 * top.c (highest_ui_num): New variable.
532 (ui::ui): Initialize num.
533
534 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * observable.h <inferior_created>: Remove parameters. Update all
537 listeners.
538 * inferior.h (post_create_inferior): Remove target parameter.
539 Update all callers.
540
541 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
542
543 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
544 and DW_MACRO_undef_strx.
545 (dwarf_decode_macros): Likewise
546 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
547 which is the value of DW_AT_str_offsets_base.
548 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
549 str_offsets_base.
550
551 2020-10-01 Kamil Rytarowski <n54@gmx.com>
552
553 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
554
555 2020-10-01 Kamil Rytarowski <n54@gmx.com>
556
557 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
558 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
559
560 2020-10-01 Kamil Rytarowski <n54@gmx.com>
561
562 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
563
564 2020-09-30 Tom de Vries <tdevries@suse.de>
565
566 PR symtab/26683
567 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
568
569 2020-09-30 Tom Tromey <tromey@adacore.com>
570
571 * dwarf2/read.c (handle_variant): Use constant_value.
572
573 2020-09-29 Tom Tromey <tom@tromey.com>
574
575 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
576 (read_file_scope, dwarf2_get_pc_bounds)
577 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
578 (read_structure_type, handle_struct_member_die)
579 (read_enumeration_type, read_array_type, read_set_type)
580 (read_tag_pointer_type, read_tag_reference_type)
581 (read_subroutine_type, read_base_type, read_subrange_type)
582 (read_full_die_1, partial_die_info::read)
583 (partial_die_info::read, by, new_symbol)
584 (dwarf2_const_value_data, dwarf2_const_value_attr)
585 (dump_die_shallow, dwarf2_fetch_constant_bytes)
586 (prepare_one_comp_unit): Update.
587 * dwarf2/attribute.h (DW_UNSND): Remove.
588
589 2020-09-29 Tom Tromey <tom@tromey.com>
590
591 * dwarf2/read.c (read_func_scope, prototyped_function_p)
592 (read_subroutine_type, partial_die_info::read)
593 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
594 (dwarf2_add_member_fn): Update.
595 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
596 * dwarf2/attribute.c (attribute::as_boolean): New method.
597
598 2020-09-29 Tom Tromey <tom@tromey.com>
599
600 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
601 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
602 method.
603 * dwarf2/attribute.c (attribute::as_virtuality): New method.
604
605 2020-09-29 Tom Tromey <tom@tromey.com>
606
607 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
608 the attribute's form.
609
610 2020-09-29 Tom Tromey <tom@tromey.com>
611
612 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
613 (dwarf2_add_member_fn): Update.
614 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
615 * dwarf2/attribute.c (attribute::defaulted): New method, from
616 is_valid_DW_AT_defaulted.
617
618 2020-09-29 Tom Tromey <tom@tromey.com>
619
620 * dwarf2/read.c (dw2_get_file_names_reader)
621 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
622 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
623 (dwarf2_symbol_mark_computed): Use as_unsigned.
624 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
625 method.
626 <form_is_section_offset>: Update comment.
627
628 2020-09-29 Tom Tromey <tom@tromey.com>
629
630 * dwarf2/read.c (dwarf2_access_attribute): Rename from
631 dwarf2_default_access_attribute. Look up attribute.
632 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
633 Update.
634
635 2020-09-29 Tom Tromey <tom@tromey.com>
636
637 * dwarf2/read.c (skip_one_die): Update.
638 (read_full_die_1): Change how reprocessing is done.
639 (partial_die_info::read): Update.
640 (read_attribute_value): Remove need_reprocess parameter.
641 (read_attribute): Likewise.
642 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
643 New method.
644
645 2020-09-29 Tom Tromey <tom@tromey.com>
646
647 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
648 (dwarf2_const_value_attr, dump_die_shallow)
649 (dwarf2_fetch_constant_bytes): Update.
650 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
651 comment.
652 <set_address>: New method.
653 (DW_ADDR): Remove.
654 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
655 (attribute::as_string, attribute::as_address): Add assert.
656
657 2020-09-29 Tom Tromey <tom@tromey.com>
658
659 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
660 (read_attribute_reprocess, read_attribute_value): Update.
661 (read_attribute): Clear requires_reprocessing.
662 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
663 form_requires_reprocessing>: New methods.
664 <string_init>: Clear requires_reprocessing.
665 <set_unsigned_reprocess>: New method.
666 <name>: Shrink by one bit.
667 <requires_reprocessing>: New member.
668 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
669 method.
670
671 2020-09-29 Tom Tromey <tom@tromey.com>
672
673 * dwarf2/read.c (read_attribute_value): Update.
674 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
675 set_unsigned>: New methods.
676 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
677
678 2020-09-29 Tom Tromey <tom@tromey.com>
679
680 * dwarf2/read.c (get_alignment, read_array_order)
681 (read_attribute_value, dwarf2_const_value_attr)
682 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
683 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
684 New methods.
685 (DW_SND): Remove.
686
687 2020-09-29 Tom Tromey <tom@tromey.com>
688
689 * dwarf2/read.c (read_attribute_value, lookup_die_type)
690 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
691 Update.
692 * dwarf2/attribute.h (struct attribute) <as_signature,
693 set_signature>: New methods.
694 (DW_SIGNATURE): Remove.
695
696 2020-09-29 Tom Tromey <tom@tromey.com>
697
698 * dwarf2/read.c (read_call_site_scope)
699 (handle_data_member_location, dwarf2_add_member_fn)
700 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
701 (partial_die_info::read, read_attribute_value)
702 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
703 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
704 (dwarf2_symbol_mark_computed): Update.
705 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
706 methods.
707 (DW_BLOCK): Remove.
708 * dwarf2/attribute.c (attribute::form_is_block): Add
709 DW_FORM_data16.
710
711 2020-09-29 Tom Tromey <tom@tromey.com>
712
713 * dwarf2/read.c (read_cutu_die_from_dwo)
714 (read_attribute_reprocess, read_attribute_value, read_attribute)
715 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
716 (dwarf2_fetch_constant_bytes): Update.
717 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
718 <set_string_noncanonical, set_string_canonical>: New methods.
719 <string_is_canonical>: Update comment.
720 <canonical_string_p>: Add assert.
721 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
722 * dwarf2/attribute.c (attribute::form_is_string): New method.
723 (attribute::string): Use it.
724
725 2020-09-29 Tom Tromey <tom@tromey.com>
726
727 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
728 (dump_die_shallow): Use canonical_string_p.
729 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
730 method.
731
732 2020-09-29 Tom Tromey <tom@tromey.com>
733
734 * dwarf2/read.c (partial_die_info::read)
735 (dwarf2_const_value_attr, anonymous_struct_prefix, )
736 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
737 attribute::as_string.
738
739 2020-09-29 Tom Tromey <tom@tromey.com>
740
741 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
742 DW_ADDR.
743 (attribute::string): Don't use DW_STRING.
744 (attribute::get_ref_die_offset): Don't use DW_UNSND.
745 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
746
747 2020-09-29 Tom Tromey <tom@tromey.com>
748
749 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
750 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
751 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
752 * dwarf2/attribute.h (struct attribute): Rename methods.
753 * dwarf2/attribute.c (attribute::as_address): Rename from
754 value_as_address.
755 (attribute::as_string): Rename from value_as_string.
756
757 2020-09-29 Tom Tromey <tom@tromey.com>
758
759 * dwarf2/read.c (partial_die_info::read) <case
760 DW_AT_linkage_name>: Use value_as_string.
761 (dwarf2_string_attr): Use value_as_string.
762 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
763 method.
764 * dwarf2/attribute.c (attribute::value_as_string): New method.
765
766 2020-09-29 Pedro Alves <pedro@palves.net>
767
768 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
769 defined before using '#pragma GCC diagnostic' instead of checking
770 __clang__.
771
772 2020-09-28 Tom Tromey <tom@tromey.com>
773
774 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
775 (handle_signal_stop): Update.
776 * procfs.c (procfs_target::insert_watchpoint): Update.
777 * target.h (target_have_steppable_watchpoint): Now a function.
778
779 2020-09-28 Tom Tromey <tom@tromey.com>
780
781 * infrun.c (set_schedlock_func): Update.
782 * target.h (target_can_lock_scheduler): Now a function.
783
784 2020-09-28 Tom Tromey <tom@tromey.com>
785
786 * inferior.h (class inferior) <has_execution>: Update.
787 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
788 * valops.c (find_function_in_inferior)
789 (value_allocate_space_in_inferior): Update.
790 * top.c (kill_or_detach): Update.
791 * target.c (target_preopen, set_target_permissions): Update.
792 (target_has_execution_current): Remove.
793 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
794 Update.
795 * solib.c (update_solib_list, reload_shared_libraries): Update.
796 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
797 * solib-dsbt.c (enable_break): Update.
798 * score-tdep.c (score7_fetch_inst): Update.
799 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
800 Update.
801 * remote.c (remote_target::start_remote)
802 (remote_target::remote_check_symbols, remote_target::open_1)
803 (remote_target::remote_detach_1, remote_target::verify_memory)
804 (remote_target::xfer_partial, remote_target::read_description)
805 (remote_target::get_min_fast_tracepoint_insn_len): Update.
806 * record-full.c (record_full_open_1): Update.
807 * record-btrace.c (record_btrace_target_open): Update.
808 * objc-lang.c (lookup_objc_class, lookup_child_selector)
809 (value_nsstring): Update.
810 * linux-thread-db.c (add_thread_db_info)
811 (thread_db_find_new_threads_silently, check_thread_db_callback)
812 (try_thread_db_load_1, record_thread): Update.
813 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
814 Update.
815 * linux-fork.c (checkpoint_command): Update.
816 * infrun.c (set_non_stop, set_observer_mode)
817 (check_multi_target_resumption, for_each_just_stopped_thread)
818 (maybe_remove_breakpoints, normal_stop)
819 (class infcall_suspend_state): Update.
820 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
821 (info_program_command, attach_command): Update.
822 * infcall.c (call_function_by_hand_dummy): Update.
823 * inf-loop.c (inferior_event_handler): Update.
824 * gcore.c (gcore_command, derive_heap_segment): Update.
825 * exec.c (exec_file_command): Update.
826 * eval.c (evaluate_subexp): Update.
827 * compile/compile.c (compile_to_object): Update.
828 * cli/cli-dump.c (restore_command): Update.
829 * breakpoint.c (update_watchpoint)
830 (update_inserted_breakpoint_locations)
831 (insert_breakpoint_locations, get_bpstat_thread): Update.
832 * target.h (target_has_execution): Remove macro.
833 (target_has_execution_current): Don't declare.
834 (target_has_execution): Rename from target_has_execution_1. Add
835 argument default.
836
837 2020-09-28 Tom Tromey <tom@tromey.com>
838
839 * mi/mi-main.c (exec_reverse_continue)
840 (mi_cmd_list_target_features): Update.
841 * infrun.c (set_exec_direction_func): Update.
842 * target.c (default_execution_direction): Update.
843 * reverse.c (exec_reverse_once): Update.
844 * target.h (target_can_execute_reverse): Now a function.
845
846 2020-09-28 Tom Tromey <tom@tromey.com>
847
848 * tui/tui-regs.c (tui_get_register)
849 (tui_data_window::show_registers): Update.
850 * thread.c (scoped_restore_current_thread::restore)
851 (scoped_restore_current_thread::scoped_restore_current_thread):
852 Update.
853 * regcache-dump.c (regcache_print): Update.
854 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
855 Update.
856 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
857 * mep-tdep.c (current_me_module, current_options): Update.
858 * linux-thread-db.c (thread_db_load): Update.
859 * infcmd.c (registers_info, info_vector_command)
860 (info_float_command): Update.
861 * ia64-tdep.c (ia64_frame_prev_register)
862 (ia64_sigtramp_frame_prev_register): Update.
863 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
864 * gcore.c (derive_stack_segment): Update.
865 * frame.c (get_current_frame, has_stack_frames): Update.
866 * findvar.c (language_defn::read_var_value): Update.
867 * arm-tdep.c (arm_pc_is_thumb): Update.
868 * target.c (target_has_registers): Rename from
869 target_has_registers_1.
870 * target.h (target_has_registers): Remove macro.
871 (target_has_registers): Rename from target_has_registers_1.
872
873 2020-09-28 Tom Tromey <tom@tromey.com>
874
875 * windows-tdep.c (tlb_make_value): Update.
876 * tui/tui-regs.c (tui_data_window::show_registers): Update.
877 * thread.c (scoped_restore_current_thread::restore)
878 (scoped_restore_current_thread::scoped_restore_current_thread)
879 (thread_command): Update.
880 * stack.c (backtrace_command_1, frame_apply_level_command)
881 (frame_apply_all_command, frame_apply_command): Update.
882 * infrun.c (siginfo_make_value, restore_infcall_control_state):
883 Update.
884 * gcore.c (derive_stack_segment): Update.
885 * frame.c (get_current_frame, has_stack_frames): Update.
886 * auxv.c (info_auxv_command): Update.
887 * ada-tasks.c (ada_build_task_list): Update.
888 * target.c (target_has_stack): Rename from target_has_stack_1.
889 * target.h (target_has_stack): Remove macro.
890 (target_has_stack): Rename from target_has_stack_1.
891
892 2020-09-28 Tom Tromey <tom@tromey.com>
893
894 * target.c (target_has_memory): Rename from target_has_memory_1.
895 * tui/tui-regs.c (tui_data_window::show_registers): Update.
896 * thread.c (scoped_restore_current_thread::restore)
897 (scoped_restore_current_thread::scoped_restore_current_thread):
898 Update.
899 * frame.c (get_current_frame, has_stack_frames): Update.
900 * target.h (target_has_memory): Remove macro.
901 (target_has_memory): Rename from target_has_memory_1.
902
903 2020-09-28 Tom Tromey <tom@tromey.com>
904
905 * target.c (target_has_all_memory_1): Remove.
906 * target.h (target_has_all_memory): Remove define.
907 (target_has_all_memory_1): Don't declare.
908
909 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * ser-base.c: Adjust comments formatting.
912
913 2020-09-27 Tom Tromey <tom@tromey.com>
914
915 PR tui/25342:
916 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
917
918 2020-09-27 Tom Tromey <tom@tromey.com>
919
920 PR tui/25342:
921 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
922
923 2020-09-27 Tom Tromey <tom@tromey.com>
924
925 * unittests/tui-selftests.c: Update.
926 * tui/tui-winsource.h (struct tui_source_window_base)
927 <extra_margin, show_line_number, refresh_pad>: New methods.
928 <m_max_length, m_pad>: New members.
929 (tui_copy_source_line): Update.
930 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
931 first_col, line_width, ndigits parameters. Add length.
932 (tui_source_window_base::show_source_line): Write to pad. Line
933 number now 0-based.
934 (tui_source_window_base::refresh_pad): New method.
935 (tui_source_window_base::show_source_content): Write to pad. Call
936 refresh_pad.
937 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
938 not refill.
939 (tui_source_window_base::update_exec_info): Call
940 show_line_number.
941 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
942 method.
943 <m_digits>: New member.
944 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
945 and m_max_length.
946 (tui_source_window::show_line_number): New method.
947 * tui/tui-io.h (tui_puts): Fix comment.
948 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
949 m_max_length.
950
951 2020-09-27 Tom Tromey <tom@tromey.com>
952
953 * tui/tui-winsource.c
954 (tui_source_window_base::set_is_exec_point_at): Don't call
955 show_source_line.
956
957 2020-09-27 Tom Tromey <tom@tromey.com>
958
959 * python/py-tui.c (class tui_py_window) <refresh_window>: New
960 method.
961 <erase>: Update.
962 <cursor_x, cursor_y>: Remove.
963 <m_inner_window>: New member.
964 (tui_py_window::rerender): Create inner window.
965 (tui_py_window::output): Write to inner window.
966
967 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
968
969 PR python/26586
970 * cli/cli-script.c (execute_control_commands): don't set
971 instream to nullptr here as this breaks the from_tty argument
972 to gdb.execute in Python.
973 (execute_user_command): set instream to nullptr here instead.
974
975 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
976
977 * infrun.h (infrun_debug_printf): Fix formatting.
978 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
979
980 2020-09-25 Saagar Jha <saagar@saagarjha.com>
981
982 * compile/compile-object-load.h (struct munmap_list): Add
983 explicitly-defined move constructor.
984
985 2020-09-24 Tom Tromey <tromey@adacore.com>
986
987 PR tui/26638:
988 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
989 method.
990 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
991 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
992 (tui_prev_win): Rewrite.
993
994 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
995
996 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
997 in WOW64 processes as SIGINT.
998 * nat/windows-nat.h: Make wow64_process a shared variable.
999 * windows-nat.c: Remove static wow64_process variable.
1000
1001 2020-09-23 Tom Tromey <tom@tromey.com>
1002
1003 PR symtab/25470:
1004 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1005 offset and bit size.
1006 * printcmd.c (print_scalar_formatted): Handle zero-length
1007 integer.
1008 (print_scalar_formatted): Use bit_size_differs_p.
1009 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1010 constant.
1011 (union type_specific): <int_stuff>: New member.
1012 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1013 methods.
1014 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1015 TYPE_SPECIFIC_FIELD.
1016 (recursive_dump_type, copy_type_recursive): Update.
1017 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1018 DW_AT_data_bit_offset.
1019
1020 2020-09-23 Tom Tromey <tom@tromey.com>
1021
1022 * utils.h (class gdb_argv): Add move operators.
1023 <append>: New methods.
1024 * compile/compile.c (build_argc_argv): Remove.
1025 (compile_args_argc): Remove.
1026 (compile_args_argv): Change type.
1027 (set_compile_args): Simplify.
1028 (append_args): Remove.
1029 (filter_args): Remove argcp parameter.
1030 (get_args): Return gdb_argv. Simplify.
1031 (compile_to_object): Update.
1032
1033 2020-09-23 Tom Tromey <tom@tromey.com>
1034
1035 * compile/compile-object-run.c (do_module_cleanup)
1036 <~do_module_cleanup> :Remove.
1037 (do_module_cleanup): Update.
1038 * compile/compile-object-load.h (struct munmap_list): Add move
1039 assignment operator.
1040 <source_file>: Now a std::string.
1041 <munmap_list>: Rename. No longer a pointer.
1042 * compile/compile-object-load.c (struct setup_sections_data): Add
1043 constructor.
1044 <setup_one_section>: Declare.
1045 <munmap_list>: Move earlier.
1046 <m_bfd>: New member.
1047 <m_last_size, m_last_section_first, m_last_prot,
1048 m_last_max_alignment>: Rename, add initializers where needed.
1049 (setup_sections_data::setup_one_section): Rename from
1050 setup_sections. Update.
1051 (compile_object_load): Update. Don't use bfd_map_over_sections.
1052
1053 2020-09-23 Tom Tromey <tom@tromey.com>
1054
1055 * compile/compile-object-run.c (struct do_module_cleanup): Add
1056 parameters to constructor. Update destructor.
1057 <source_file, scope, scope_data, out_value_type, out_value_addr,
1058 munmap_list_head, objfile_name_string>: Remove.
1059 <module>: New member.
1060 (do_module_cleanup): Update.
1061 (compile_object_run): Update.
1062
1063 2020-09-23 Tom Tromey <tom@tromey.com>
1064
1065 * compile/compile.c (eval_compile_command): Update.
1066 * compile/compile-object-run.h (compile_object_run): Take a
1067 compile_module_up.
1068 * compile/compile-object-run.c (compile_object_run): Take a
1069 compile_module_up.
1070 * compile/compile-object-load.h (struct compile_module): Add
1071 constructor, destructor.
1072 (compile_module_up): New typedef.
1073 (compile_object_load): Return compile_object_up.
1074 * compile/compile-object-load.c (compile_object_load): Return
1075 compile_module_up.
1076
1077 2020-09-23 Tom Tromey <tom@tromey.com>
1078
1079 * compile/compile-object-run.c (struct do_module_cleanup): Add
1080 constructor, destructor.
1081 <objfile_name_string>: Don't use struct hack.
1082 (do_module_cleanup): Use delete.
1083 (compile_object_run): Use new.
1084
1085 2020-09-23 Tom Tromey <tom@tromey.com>
1086
1087 * compile/compile-cplus-types.c
1088 (compile_cplus_convert_struct_or_union): Use std::vector.
1089 (compile_cplus_convert_func): Likewise.
1090 * compile/compile-c-types.c (convert_func): Use std::vector.
1091
1092 2020-09-21 Tom Tromey <tromey@adacore.com>
1093
1094 * sparc-tdep.c (sparc32_skip_prologue): Use
1095 skip_prologue_using_sal.
1096
1097 2020-09-19 Tom Tromey <tom@tromey.com>
1098
1099 * symfile.c (add_section_size_callback): Remove.
1100 (load_one_section): Rename from load_section_callback. Change
1101 parameters.
1102 (generic_load): Use foreach.
1103
1104 2020-09-19 Tom Tromey <tom@tromey.com>
1105
1106 * exec.c (add_to_section_table): Remove.
1107 (build_section_table): Use foreach.
1108
1109 2020-09-19 Tom Tromey <tom@tromey.com>
1110
1111 * elfread.c (elf_locate_sections): Change parameters.
1112 (elf_symfile_read): Use foreach.
1113
1114 2020-09-19 Tom Tromey <tom@tromey.com>
1115
1116 * cli/cli-dump.c (struct callback_data): Remove.
1117 (restore_one_section): Rename from restore_section_callback.
1118 Change parameters.
1119 (restore_binary_file): Change parameters.
1120 (restore_command): Use foreach.
1121
1122 2020-09-19 Tom Tromey <tom@tromey.com>
1123
1124 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1125 (gcore_copy_callback): Likewise.
1126 (gcore_memory_sections): Use foreach.
1127
1128 2020-09-19 Tom Tromey <tom@tromey.com>
1129
1130 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1131 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1132 parameters.
1133 (generic_elf_osabi_sniffer): Use foreach.
1134 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1135 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1136
1137 2020-09-19 Tom Tromey <tom@tromey.com>
1138
1139 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1140 (dwarf2_get_dwz_file): Use foreach.
1141 (dwarf2_locate_dwo_sections): Change parameters.
1142 (open_and_init_dwo_file): Use foreach.
1143 (dwarf2_locate_common_dwp_sections): Change parameters.
1144 (open_and_init_dwp_file): Use foreach.
1145
1146 2020-09-19 Tom Tromey <tom@tromey.com>
1147
1148 * symfile.h: (find_lowest_section): Don't declare.
1149 * symfile.c (find_lowest_section): Now static. Change
1150 parameters.
1151 (struct place_section_arg): Remove.
1152 (place_section): Change parameters.
1153 (addr_info_make_relative): Use foreach.
1154 (symfile_dummy_outputs): Remove.
1155 (default_symfile_relocate): Use foreach.
1156
1157 2020-09-19 Tom Tromey <tom@tromey.com>
1158
1159 * objfiles.c (add_to_objfile_sections): Rename from
1160 add_to_objfile_sections_full.
1161 (add_to_objfile_sections): Remove.
1162 (build_objfile_section_table): Use foreach.
1163
1164 2020-09-19 Tom Tromey <tom@tromey.com>
1165
1166 * stap-probe.c (get_stap_base_address_1): Remove.
1167 (get_stap_base_address): Use foreach.
1168
1169 2020-09-19 Tom Tromey <tom@tromey.com>
1170
1171 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1172 parameters.
1173 (gdb_bfd_close_or_warn): Use foreach.
1174
1175 2020-09-19 Tom Tromey <tom@tromey.com>
1176
1177 * corelow.c (add_to_thread_list): Change parameters.
1178 (core_target_open): Use foreach.
1179
1180 2020-09-19 Tom Tromey <tom@tromey.com>
1181
1182 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1183 existing function.
1184
1185 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1188 for arrays.
1189
1190 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * eval.c: Remove 'f-lang.h' include.
1193 (value_f90_subarray): Moved to f-lang.c.
1194 (eval_call): Renamed to...
1195 (evaluate_subexp_do_call): ...this, is no longer static, header
1196 comment moved into header file.
1197 (evaluate_funcall): Update call to eval_call.
1198 (skip_undetermined_arglist): Moved to f-lang.c.
1199 (fortran_value_subarray): Likewise.
1200 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1201 moved to evaluate_subexp_f.
1202 (calc_f77_array_dims): Moved to f-lang.c
1203 * expprint.c (print_subexp_funcall): New function.
1204 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1205 moved to print_subexp_f, OP_FUNCALL uses new function.
1206 (dump_subexp_body_funcall): New function.
1207 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1208 moved to dump_subexp_f, OP_FUNCALL uses new function.
1209 * expression.h (evaluate_subexp_do_call): Declare.
1210 * f-lang.c (value_f90_subarray): Moved from eval.c.
1211 (skip_undetermined_arglist): Likewise.
1212 (calc_f77_array_dims): Likewise.
1213 (fortran_value_subarray): Likewise.
1214 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1215 (operator_length_f): Likewise.
1216 (print_subexp_f): Likewise.
1217 (dump_subexp_body_f): Likewise.
1218 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1219 declaration of this operation to here.
1220 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1221 support moved to operator_length_f.
1222 * parser-defs.h (dump_subexp_body_funcall): Declare.
1223 (print_subexp_funcall): Declare.
1224 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1225 fortran-operator.def.
1226
1227 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 * eval.c (fortran_value_subarray): New function, content is taken
1230 from...
1231 (evaluate_subexp_standard): ...here, in two places. Now arrays
1232 and strings both call the new function.
1233 (calc_f77_array_dims): Add header comment, handle strings.
1234
1235 2020-09-18 Victor Collod <vcollod@nvidia.com>
1236
1237 PR gdb/26635
1238 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1239 (i386_analyze_prologue): Call i386_skip_endbr.
1240
1241 2020-09-18 Tom Tromey <tromey@adacore.com>
1242
1243 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1244 (windows_nat_target::wait): Update.
1245 * target/wait.h (enum target_wait_flag): New. Use
1246 DEF_ENUM_FLAGS_TYPE.
1247 * target/target.h (target_wait): Change type of options.
1248 * target.h (target_options_to_string, default_target_wait):
1249 Update.
1250 (struct target_ops) <wait>: Change type of options.
1251 * target.c (target_wait, default_target_wait, do_option): Change
1252 type of "options".
1253 (target_options_to_string): Likewise.
1254 * target-delegates.c: Rebuild.
1255 * target-debug.h (target_debug_print_target_wait_flags): Rename
1256 from target_debug_print_options.
1257 * sol-thread.c (class sol_thread_target) <wait>: Update.
1258 (sol_thread_target::wait): Update.
1259 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1260 (rs6000_nat_target::wait): Update.
1261 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1262 Update.
1263 (remote_target::wait_ns, remote_target::wait_as): Change type of
1264 "options".
1265 (remote_target::wait): Update.
1266 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1267 (gdbsim_target::wait): Update.
1268 * record-full.c (class record_full_base_target) <wait>: Update.
1269 (record_full_wait_1): Change type of "options".
1270 (record_full_base_target::wait): Update.
1271 * record-btrace.c (class record_btrace_target) <wait>: Update.
1272 (record_btrace_target::wait): Update.
1273 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1274 Update.
1275 (ravenscar_thread_target::wait): Update.
1276 * procfs.c (class procfs_target) <wait>: Update.
1277 (procfs_target::wait): Update.
1278 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1279 * obsd-nat.c (obsd_nat_target::wait): Update.
1280 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1281 (nto_procfs_target::wait): Update.
1282 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1283 * nbsd-nat.c (nbsd_wait): Change type of "options".
1284 (nbsd_nat_target::wait): Update.
1285 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1286 (thread_db_target::wait): Update.
1287 * linux-nat.h (class linux_nat_target) <wait>: Update.
1288 * linux-nat.c (linux_nat_target::wait): Update.
1289 (linux_nat_wait_1): Update.
1290 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1291 "options".
1292 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1293 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1294 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1295 (go32_nat_target::wait): Update.
1296 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1297 * gnu-nat.c (gnu_nat_target::wait): Update.
1298 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1299 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1300 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1301 * darwin-nat.c (darwin_nat_target::wait): Update.
1302 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1303 (bsd_uthread_target::wait): Update.
1304 * aix-thread.c (class aix_thread_target) <wait>: Update.
1305 (aix_thread_target::wait): Update.
1306
1307 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * compile/compile-object-run.c (create_copied_type_recursive): New
1310 function.
1311 (compile_object_run): Use new function.
1312
1313 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1314
1315 * NEWS: Mention x86_64 Cygwin core file support.
1316
1317 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1318
1319 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1320 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1321
1322 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1323
1324 * windows-tdep.h: Add prototypes.
1325 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1326 (i386_windows_core_pid_to_str): Move and rename ...
1327 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1328 (windows_core_pid_to_str): ... and here.
1329 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1330
1331 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1332 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1333 (amd64_windows_init_abi_common): ... and register.
1334
1335 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1336
1337 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1338 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1339
1340 2020-09-18 Pedro Alves <pedro@palves.net>
1341
1342 PR gdb/26631
1343 * thread.c (thread_find_command): Switch inferior before calling
1344 target methods.
1345
1346 2020-09-17 Tom Tromey <tromey@adacore.com>
1347
1348 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1349 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1350 (tdesc_arch_data_up): New typedef.
1351 (tdesc_use_registers, tdesc_data_alloc): Update.
1352 (tdesc_data_cleanup): Don't declare.
1353 * target-descriptions.c (tdesc_data_alloc): Return a
1354 tdesc_arch_data_up.
1355 (tdesc_arch_data_deleter::operator()): Rename from
1356 tdesc_data_cleanup. Change argument type.
1357 (tdesc_use_registers): Change early_data to an rvalue reference.
1358 (tdesc_use_registers): Don't use delete.
1359 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1360 * s390-tdep.c (s390_gdbarch_init): Update.
1361 * rx-tdep.c (rx_gdbarch_init): Update.
1362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1363 * riscv-tdep.c (riscv_gdbarch_init): Update.
1364 * or1k-tdep.c (or1k_gdbarch_init): Update.
1365 * nios2-tdep.c (nios2_gdbarch_init): Update.
1366 * nds32-tdep.c (nds32_gdbarch_init): Update.
1367 * mips-tdep.c (mips_gdbarch_init): Update.
1368 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1369 * m68k-tdep.c (m68k_gdbarch_init): Update.
1370 * i386-tdep.c (i386_gdbarch_init): Update.
1371 * arm-tdep.c (arm_gdbarch_init): Update.
1372 * arc-tdep.c (arc_tdesc_init): Update.
1373 (arc_gdbarch_init): Update.
1374 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1375
1376 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1377
1378 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1379 for WOW64 processes.
1380
1381 2020-09-17 Tom Tromey <tom@tromey.com>
1382
1383 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1384
1385 2020-09-17 Tom Tromey <tom@tromey.com>
1386
1387 * value.c (preserve_values): Update.
1388 * python/py-type.c (save_objfile_types): Update.
1389 * guile/scm-type.c (save_objfile_types): Update.
1390 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1391 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1392 * compile/compile-object-run.c (compile_object_run): Update.
1393
1394 2020-09-17 Tom Tromey <tom@tromey.com>
1395
1396 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1397 Remove.
1398 <m_table>: Now htab_up.
1399 * typeprint.c (typedef_hash_table::recursively_update)
1400 (typedef_hash_table::add_template_parameters)
1401 (typedef_hash_table::typedef_hash_table): Update.
1402 (typedef_hash_table::~typedef_hash_table): Remove.
1403 (typedef_hash_table::typedef_hash_table)
1404 (typedef_hash_table::find_global_typedef)
1405 (typedef_hash_table::find_typedef): Update.
1406
1407 2020-09-17 Tom Tromey <tom@tromey.com>
1408
1409 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1410
1411 2020-09-17 Tom Tromey <tom@tromey.com>
1412
1413 * linespec.c (class decode_compound_collector)
1414 <~decode_compound_collector>: Remove.
1415 <m_unique_syms>: Now htab_up.
1416 (decode_compound_collector::operator ()): Update.
1417 (class symtab_collector) <~symtab_collector>: Remove.
1418 <m_symtab_table>: Now htab_up.
1419 (symtab_collector::operator ()): Update.
1420
1421 2020-09-17 Tom Tromey <tom@tromey.com>
1422
1423 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1424 (filename_seen_cache::clear): Update.
1425 (~filename_seen_cache): Remove.
1426 (filename_seen_cache::seen): Update.
1427 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1428 htab_up.
1429 <~filename_seen_cache>: Remove.
1430 <traverse>: Update.
1431
1432 2020-09-17 Tom Tromey <tom@tromey.com>
1433
1434 * completer.c (completion_tracker::discard_completions)
1435 (completion_tracker::~completion_tracker)
1436 (completion_tracker::maybe_add_completion)
1437 (completion_tracker::remove_completion)
1438 (completion_tracker::recompute_lowest_common_denominator)
1439 (completion_tracker::build_completion_result): Update.
1440 * completer.h (class completion_tracker) <have_completions>:
1441 Update.
1442 <m_entries_hash>: Now htab_up.
1443
1444 2020-09-17 Tom Tromey <tom@tromey.com>
1445
1446 * breakpoint.c (ambiguous_names_p): Use htab_up.
1447
1448 2020-09-17 Tom Tromey <tom@tromey.com>
1449
1450 * auto-load.c (struct auto_load_pspace_info)
1451 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1452 <loaded_script_files, loaded_script_texts>: Change type to
1453 htab_up.
1454 (~auto_load_pspace_info) Remove.
1455 (init_loaded_scripts_info, maybe_add_script_file)
1456 (maybe_add_script_text, auto_load_info_scripts): Update.
1457
1458 2020-09-17 Tom Tromey <tromey@adacore.com>
1459
1460 * c-exp.y (name_obstack): Now static.
1461
1462 2020-09-17 Chungyi Chi <demonic@csie.io>
1463
1464 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1465
1466 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1469 (add_solib_catchpoint): Likewise.
1470 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1471 to bool.
1472 (add_solib_catchpoint): Change int parameter/variable to bool.
1473 (catch_load_or_unload): Likewise.
1474 (init_catchpoint): Likewise.
1475 (create_fork_vfork_event_catchpoint): Likewise.
1476 (catch_fork_command_1): Likewise.
1477 (catch_exec_command_1): Likewise.
1478
1479 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1480
1481 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1482 Change instance_flags to m_instance_flags.
1483
1484 2020-09-16 Tom Tromey <tromey@adacore.com>
1485
1486 PR gdb/26598:
1487 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1488
1489 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1490
1491 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1492 PL_FLAG_EXEC.
1493 (fbsd_nat_target::insert_exec_catchpoint)
1494 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1495 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1496 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1497
1498 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1499
1500 * configure.ac: Remove check for kinfo_getvmmap().
1501 * configure, config.in: Regenerate.
1502 * fbsd-nat.c (fbsd_read_mapping): Remove
1503 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1504 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1505 kinfo_get_vmmap() are always present.
1506
1507 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1508
1509 * fbsd-nat.c: Always include support for
1510 TARGET_OBJECT_SIGNAL_INFO.
1511
1512 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1513
1514 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1515 sysctl and remove procfs fallback.
1516
1517 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1518
1519 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1520 * fbsd-nat.h: Likewise.
1521
1522 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1523
1524 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1525 argument.
1526
1527 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * ada-lang.c (ada_language_data): Delete.
1530 (ada_language): Remove references to ada_language_data.
1531 * c-lang.c (c_language_data): Delete.
1532 (c_language): Remove references to c_language_data.
1533 (cplus_language_data): Delete.
1534 (cplus_language): Remove references to cplus_language_data.
1535 (asm_language_data): Delete.
1536 (asm_language): Remove references to asm_language_data.
1537 (minimal_language_data): Delete.
1538 (minimal_language): Remove references to minimal_language_data.
1539 * d-lang.c (d_language_data): Delete.
1540 (d_language): Remove references to d_language_data.
1541 * f-lang.c (f_language_data): Delete.
1542 (f_language): Remove references to f_language_data.
1543 * go-lang.c (go_language_data): Delete.
1544 (go_language): Remove references to go_language_data.
1545 * language.c (unknown_language_data): Delete.
1546 (unknown_language): Remove references to unknown_language_data.
1547 (auto_language_data): Delete.
1548 (auto_language): Remove references to auto_language_data.
1549 * language.h (language_data): Delete struct.
1550 (language_defn): No longer inherit from language_data.
1551 * m2-lang.c (m2_language_data): Delete.
1552 (m2_language): Remove references to m2_language_data.
1553 * objc-lang.c (objc_language_data): Delete.
1554 (objc_language): Remove references to objc_language_data.
1555 * opencl-lang.c (opencl_language_data): Delete.
1556 (opencl_language): Remove references to opencl_language_data.
1557 * p-lang.c (pascal_language_data): Delete.
1558 (pascal_language): Remove references to pascal_language_data.
1559 * rust-lang.c (rust_language_data): Delete.
1560 (rust_language): Remove references to rust_language_data.
1561
1562 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1565 initializer.
1566 (ada_language::opcode_print_table): New member function.
1567 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1568 (c_language::opcode_print_table): New member function.
1569 (cplus_language_data): Remove la_op_print_tab initializer.
1570 (cplus_language::opcode_print_table): New member function.
1571 (asm_language_data): Remove la_op_print_tab initializer.
1572 (asm_language::opcode_print_table): New member function.
1573 (minimal_language_data): Remove la_op_print_tab initializer.
1574 (minimal_language::opcode_print_table): New member function.
1575 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1576 (d_language::opcode_print_table): New member function.
1577 * expprint.c (print_subexp_standard): Update call to
1578 opcode_print_table.
1579 (op_string): Likewise.
1580 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1581 (f_language::opcode_print_table): New member function.
1582 * go-lang.c (go_language_data): Remove la_op_print_tab
1583 initializer.
1584 (go_language::opcode_print_table): New member function.
1585 * language.c (unknown_language_data): Remove la_op_print_tab
1586 initializer.
1587 (unknown_language::opcode_print_table): New member function.
1588 (auto_language_data): Remove la_op_print_tab initializer.
1589 (auto_language::opcode_print_table): New member function.
1590 * language.h (language_data): Remove la_op_print_tab field.
1591 (language_defn::opcode_print_table): Declare new member function.
1592 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1593 initializer.
1594 (m2_language::opcode_print_table): New member function.
1595 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1596 initializer.
1597 (objc_language::opcode_print_table): New member function.
1598 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1599 initializer.
1600 (opencl_language::opcode_print_table): New member function.
1601 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1602 initializer.
1603 (pascal_language::opcode_print_table): New member function.
1604 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1605 initializer.
1606 (rust_language::opcode_print_table): New member function.
1607
1608 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1611 (ada_language::expression_ops): New member function.
1612 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1613 (c_language::expression_ops): New member function.
1614 (cplus_language_data): Remove la_exp_desc initializer.
1615 (cplus_language::expression_ops): New member function.
1616 (asm_language_data): Remove la_exp_desc initializer.
1617 (asm_language::expression_ops): New member function.
1618 (minimal_language_data): Remove la_exp_desc initializer.
1619 (minimal_language::expression_ops): New member function.
1620 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1621 (d_language::expression_ops): New member function.
1622 * eval.c (evaluate_subexp): Update call to expression_ops.
1623 * expprint.c (print_subexp): Likewise.
1624 (op_name): Likewise.
1625 (dump_subexp_body): Likewise.
1626 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1627 (f_language::expression_ops): New member function.
1628 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1629 (go_language::expression_ops): New member function.
1630 * language.c (language_defn::expression_ops): New function.
1631 (unknown_language_data): Remove la_exp_desc initializer.
1632 (auto_language_data): Likewise.
1633 * language.h (language_data): Remove la_exp_desc field.
1634 (language_defn::expression_ops): Declare new member function.
1635 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1636 (m2_language::expression_ops): New member function.
1637 * objc-lang.c (objc_language_data): Remove la_exp_desc
1638 initializer.
1639 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1640 initializer.
1641 (opencl_language::expression_ops): New member function.
1642 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1643 * parse.c (operator_length): Update call to expression_ops.
1644 (exp_iterate): Likewise.
1645 * rust-lang.c (rust_language_data): Remove la_exp_desc
1646 initializer.
1647 (ruse_language::expression_ops): New member function.
1648
1649 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1652 initializer.
1653 (ada_language::varobj_ops): New member function.
1654 * c-lang.c (c_language_data): Remove la_varobj_ops
1655 initializer.
1656 (cplus_language_data): Likewise.
1657 (cplus_language::varobj_ops): New member function.
1658 (asm_language_data): Remove la_varobj_ops initializer.
1659 (minimal_language_data): Likewise.
1660 * d-lang.c (d_language_data): Likewise.
1661 * f-lang.c (f_language_data): Likewise.
1662 * go-lang.c (go_language_data): Likewise.
1663 * language.c (language_defn::varobj_ops): New function.
1664 (unknown_language_data): Remove la_varobj_ops
1665 initializer.
1666 (auto_language_data): Likewise.
1667 * language.h (language_data): Remove la_varobj_ops field.
1668 (language_defn::varobj_ops): Declare new member function.
1669 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1670 * objc-lang.c (objc_language_data): Likewise.
1671 * opencl-lang.c (opencl_language_data): Likewise.
1672 * p-lang.c (pascal_language_data): Likewise.
1673 * rust-lang.c (rust_language_data): Likewise.
1674 * varobj.c (varobj_create): Update call to varobj_ops.
1675 * varobj.h (default_varobj_ops): Delete define.
1676
1677 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1680 initializer.
1681 * c-lang.c (c_language_data): Likewise.
1682 (c_language::macro_expansion): New member function.
1683 (cplus_language_data): Likewise.
1684 (cplus_language::macro_expansion): New member function.
1685 (asm_language_data): Likewise.
1686 (asm_language::macro_expansion): New member function.
1687 (minimal_language_data): Likewise.
1688 (minimal_language::macro_expansion): New member function.
1689 * d-lang.c (d_language_data): Remove la_macro_expansion
1690 initializer.
1691 * f-lang.c (f_language_data): Likewise.
1692 * go-lang.c (go_language_data): Likewise.
1693 * language.c (unknown_language_data): Likewise.
1694 (auto_language_data): Likewise.
1695 * language.h (language_data): Remove la_macro_expansion field.
1696 (language_defn::macro_expansion): New member function.
1697 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1698 initializer.
1699 * objc-lang.c (objc_language_data): Likewise.
1700 (objc_language::macro_expansion): New member function.
1701 * opencl-lang.c (opencl_language_data): Likewise.
1702 (opencl_language::macro_expansion): New member function.
1703 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1704 initializer.
1705 * rust-lang.c (rust_language_data): Likewise.
1706 * symtab.c (default_collect_symbol_completion_matches_break_on):
1707 Update call to macro_expansion.
1708
1709 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * ada-lang.c (ada_language_data): Remove la_array_ordering
1712 initializer.
1713 * c-lang.c (c_language_data): Likewise.
1714 (cplus_language_data): Likewise.
1715 (asm_language_data): Likewise.
1716 (minimal_language_data): Likewise.
1717 * d-lang.c (d_language_data): Likewise.
1718 * dwarf2/read.c (read_array_order): Update for call to
1719 array_ordering.
1720 * f-lang.c (f_language_data): Remove la_array_ordering
1721 initializer.
1722 (f_language::array_ordering): New member function.
1723 * go-lang.c (go_language_data): Remove la_array_ordering
1724 initializer.
1725 * language.c (unknown_language_data): Likewise.
1726 (auto_language_data): Likewise.
1727 * language.h (language_data): Delete la_array_ordering field.
1728 (language_defn::array_ordering): New member function.
1729 * m2-lang.c (m2_language_data): Remove la_array_ordering
1730 initializer.
1731 * objc-lang.c (objc_language_data): Likewise.
1732 * opencl-lang.c (opencl_language_data): Likewise.
1733 * p-lang.c (pascal_language_data): Likewise.
1734 * rust-lang.c (rust_language_data): Likewise.
1735
1736 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1739 initializer.
1740 * c-lang.c (c_language_data): Likewise.
1741 (cplus_language_data): Likewise.
1742 (asm_language_data): Likewise.
1743 (minimal_language_data): Likewise.
1744 * d-lang.c (d_language_data): Likewise.
1745 * f-lang.c (f_language_data): Likewise.
1746 (f_language::case_sensitivity): New member function.
1747 * go-lang.c (go_language_data): Remove la_case_sensitivity
1748 initializer.
1749 * language.c (enum case_mode): Moved here from language.h.
1750 (case_mode): Make static.
1751 (show_case_command): Update for case_sensitivity being a method.
1752 (set_case_command): Likewise.
1753 (set_range_case): Likewise.
1754 (unknown_language_data): Remove la_case_sensitivity initializer.
1755 (auto_language_data): Likewise.
1756 * language.h (case_mode): Delete, move enum declaration to
1757 language.c.
1758 (language_data): Delete la_case_sensitivity field.
1759 (language_defn::case_sensitivity): New member function.
1760 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1761 initializer.
1762 * objc-lang.c (objc_language_data): Likewise.
1763 * opencl-lang.c (opencl_language_data): Likewise.
1764 * p-lang.c (pascal_language_data): Likewise.
1765 * rust-lang.c (rust_language_data): Likewise.
1766
1767 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * ada-lang.c (ada_language_data): Remove la_range_check
1770 initializer.
1771 * c-lang.c (c_language_data): Likewise.
1772 (cplus_language_data): Likewise.
1773 (asm_language_data): Likewise.
1774 (minimal_language_data): Likewise.
1775 * d-lang.c (d_language_data): Likewise.
1776 * f-lang.c (f_language_data): Likewise.
1777 (f_language::range_checking_on_by_default): New member function.
1778 * go-lang.c (go_language_data): Remove la_range_check initializer.
1779 * language.c (enum range_mode): Moved here from language.h.
1780 (range_mode): Made static.
1781 (show_range_command): Update to use
1782 range_checking_on_by_default.
1783 (set_range_command): Likewise.
1784 (set_range_case): Likewise.
1785 (unknown_language_data): Remove la_range_check initializer.
1786 (auto_language_data): Likewise.
1787 * language.h (range_mode): Delete. Enum definition moved to
1788 language.c.
1789 (language_data): Remove la_range_check field.
1790 (language_defn::range_checking_on_by_default): New member
1791 function.
1792 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1793 (m2_language::range_checking_on_by_default): New member function.
1794 * objc-lang.c (objc_language_data): Remove la_range_check
1795 initializer.
1796 * opencl-lang.c (opencl_language_data): Likewise.
1797 * p-lang.c (pascal_language_data): Likewise.
1798 (pascal_language::range_checking_on_by_default): New member
1799 function.
1800 * rust-lang.c (rust_language_data): Remove la_range_check
1801 initializer.
1802 (rust_language::range_checking_on_by_default): New member
1803 function.
1804
1805 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * dwarf2/read.c (dwarf2_physname): Remove special case for
1808 language_go.
1809 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1810 member function.
1811
1812 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1813
1814 * ada-lang.c (ada_language_data): Remove
1815 la_store_sym_names_in_linkage_form_p initializer.
1816 (ada_language::store_sym_names_in_linkage_form_p): New member
1817 function.
1818 * c-lang.c (c_language_data): Remove
1819 la_store_sym_names_in_linkage_form_p initializer.
1820 (c_language::store_sym_names_in_linkage_form_p): New member
1821 function.
1822 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1823 initializer.
1824 (asm_language_data): Likewise.
1825 (asm_language::store_sym_names_in_linkage_form_p): New member
1826 function.
1827 (minimal_language_data): Remove
1828 la_store_sym_names_in_linkage_form_p initializer.
1829 (minimal_language::store_sym_names_in_linkage_form_p): New member
1830 function.
1831 * d-lang.c (d_language_data): Remove
1832 la_store_sym_names_in_linkage_form_p initializer.
1833 * dwarf2/read.c (dwarf2_physname): Update call to
1834 store_sym_names_in_linkage_form_p.
1835 * f-lang.c (f_language_data): Remove
1836 la_store_sym_names_in_linkage_form_p initializer.
1837 * go-lang.c (go_language_data): Remove
1838 la_store_sym_names_in_linkage_form_p initializer.
1839 * language.c (unknown_language_data): Remove
1840 la_store_sym_names_in_linkage_form_p initializer.
1841 (unknown_language::store_sym_names_in_linkage_form_p): New member
1842 function.
1843 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1844 initializer.
1845 (auto_language::store_sym_names_in_linkage_form_p): New member
1846 function.
1847 * language.h (language_data): Remove
1848 la_store_sym_names_in_linkage_form_p member variable.
1849 (language_defn::store_sym_names_in_linkage_form_p): New member
1850 function.
1851 * m2-lang.c (m2_language_data): Remove
1852 la_store_sym_names_in_linkage_form_p initializer.
1853 * objc-lang.c (objc_language_data): Likewise.
1854 * opencl-lang.c (opencl_language_data): Likewise.
1855 * p-lang.c (pascal_language_data): Likewise.
1856 * rust-lang.c (rust_language_data): Likewise.
1857
1858 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * ada-lang.c (ada_language_data): Remove string_lower_bound
1861 initializer.
1862 * c-lang.c (c_language_data): Likewise.
1863 (cplus_language_data): Likewise.
1864 (asm_language_data): Likewise.
1865 (minimal_language_data): Likewise.
1866 * d-lang.c (d_language_data): Likewise.
1867 * f-lang.c (f_language_data): Likewise.
1868 * go-lang.c (go_language_data): Likewise.
1869 * language.c (unknown_language_data): Likewise.
1870 (auto_language_data): Likewise.
1871 * language.h (language_data): Remove string_lower_bound field.
1872 (language_defn::string_lower_bound): New member function.
1873 * m2-lang.c (m2_language_data): Remove string_lower_bound
1874 initializer.
1875 (m2_language::string_lower_bound): New member function.
1876 * objc-lang.c (objc_language_data): Remove string_lower_bound
1877 initializer.
1878 * opencl-lang.c (opencl_language_data): Likewise.
1879 * p-lang.c (pascal_language_data): Likewise.
1880 * rust-lang.c (rust_language_data): Likewise.
1881 * valops.c (value_cstring): Update call to string_lower_bound.
1882 (value_string): Likewise.
1883 * value.c (allocate_repeated_value): Likewise.
1884
1885 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * valops.c (value_repeat): Fix incorrect argument name in comment.
1888
1889 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * ada-lang.c (ada_language_data): Remove c_style_arrays
1892 initializer.
1893 (ada_language::c_style_arrays_p): New member fuction.
1894 * c-lang.c (c_language_data): Remove c_style_arrays
1895 initializer.
1896 (cplus_language_data): Likewise.
1897 (asm_language_data): Likewise.
1898 (minimal_language_data): Likewise.
1899 * d-lang.c (d_language_data): Likewise.
1900 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1901 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1902 (f_language::c_style_arrays_p): New member function.
1903 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1904 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1905 * language.c (unknown_language_data): Remove c_style_arrays
1906 initializer.
1907 (auto_language_data): Likewise.
1908 * language.h (language_data): Remove c_style_arrays field.
1909 (language_defn::c_style_arrays_p): New member function.
1910 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1911 (m2_language::c_style_arrays_p): New member function.
1912 * objc-lang.c (objc_language_data): Remove c_style_arrays
1913 initializer.
1914 * opencl-lang.c (opencl_language_data): Likewise.
1915 * p-lang.c (pascal_language_data): Likewise.
1916 * rust-lang.c (rust_language_data): Likewise.
1917 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1918 and update local variable to a bool.
1919 * valops.c (value_cast): Update call to c_style_arrays_p.
1920 (value_array): Likewise.
1921 * value.c (coerce_array): Likewise.
1922
1923 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * ada-lang.c (ada_language_data): Remove la_language initializer.
1926 * c-lang.c (c_language_data): Likewise.
1927 (cplus_language_data): Likewise.
1928 (asm_language_data): Likewise.
1929 (minimal_language_data): Likewise.
1930 * d-lang.c (d_language_data): Likewise.
1931 * f-lang.c (f_language_data): Likewise.
1932 * go-lang.c (go_language_data): Likewise.
1933 * language.c (unknown_language_data): Likewise.
1934 (auto_language_data): Likewise.
1935 * language.h (language_data): Remove la_language field.
1936 (language_defn::language_defn): Initialise la_language field.
1937 (language_defn::la_language): New member variable.
1938 * m2-lang.c (m2_language_data): Remove la_language field.
1939 * objc-lang.c (objc_language_data): Likewise.
1940 * opencl-lang.c (opencl_language_data): Likewise.
1941 * p-lang.c (pascal_language_data): Likewise.
1942 * rust-lang.c (rust_language_data): Likewise.
1943
1944 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * ada-lang.c (ada_extensions): Delete, moved into
1947 ada_language::filename_extensions.
1948 (ada_language_data): Remove la_filename_extensions initializer.
1949 (ada_language::filename_extensions): New member function.
1950 * c-lang.c (c_extensions): Delete, moved into
1951 c_language::filename_extensions.
1952 (c_language_data): Remove la_filename_extensions initializer.
1953 (c_language::filename_extensions): New member function.
1954 (cplus_extensions): Delete, moved into
1955 cplus_language::filename_extensions.
1956 (cplus_language_data): Remove la_filename_extensions initializer.
1957 (cplus_language::filename_extensions): New member function.
1958 (asm_extensions): Delete, moved into
1959 asm_language::filename_extensions.
1960 (asm_language_data): Remove la_filename_extensions initializer.
1961 (asm_language::filename_extensions): New member function.
1962 (minimal_language_data): Remove la_filename_extensions
1963 initializer.
1964 * d-lang.c (d_extensions): Delete, moved into
1965 d_language::filename_extensions.
1966 (d_language_data): Remove la_filename_extensions initializer.
1967 (d_language::filename_extensions): New member function.
1968 * f-lang.c (f_extensions): Delete, moved into
1969 f_language::filename_extensions.
1970 (f_language_data): Remove la_filename_extensions initializer.
1971 (f_language::filename_extensions): New member function.
1972 * go-lang.c (go_language_data): Remove la_filename_extensions
1973 initializer.
1974 * language.c (add_set_language_command): Update now that
1975 filename_extensions returns a vector.
1976 (unknown_language_data): Remove la_filename_extensions
1977 initializer.
1978 (auto_language_data): Likewise.
1979 * language.h (language_data): Remove la_filename_extensions field.
1980 (language_defn::filename_extensions): New member function.
1981 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1982 initializer.
1983 * objc-lang.c (objc_extensions): Delete, moved into
1984 objc_language::filename_extensions.
1985 (objc_language_data): Remove la_filename_extensions initializer.
1986 (objc_language::filename_extensions): New member function.
1987 * opencl-lang.c (opencl_language_data): Remove
1988 la_filename_extensions initializer.
1989 * p-lang.c (pascal_extensions): Delete, moved into
1990 pascal_language::filename_extensions.
1991 (pascal_language_data): Remove la_filename_extensions initializer.
1992 (pascal_language::filename_extensions): New member function.
1993 * rust-lang.c (rust_extensions): Delete, moved into
1994 rust_language::filename_extensions.
1995 (rust_language_data): Remove la_filename_extensions initializer.
1996 (rust_language::filename_extensions): New member function.
1997 * symfile.c (add_filename_language): Add new assert.
1998
1999 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * ada-lang.c (ada_language_data): Remove la_name and
2002 la_natural_name initializers.
2003 (ada_language::name): New member function.
2004 (ada_language::natural_name): New member function.
2005 * c-lang.c (c_language_data): Remove la_name and
2006 la_natural_name initializers.
2007 (c_language::name): New member function.
2008 (c_language::natural_name): New member function.
2009 (cplus_language_data): Remove la_name and
2010 la_natural_name initializers.
2011 (cplus_language::name): New member function.
2012 (cplus_language::natural_name): New member function.
2013 (asm_language_data): Remove la_name and
2014 la_natural_name initializers.
2015 (asm_language::name): New member function.
2016 (asm_language::natural_name): New member function.
2017 (minimal_language_data): Remove la_name and
2018 la_natural_name initializers.
2019 (minimal_language::name): New member function.
2020 (minimal_language::natural_name): New member function.
2021 * compile/compile.c (compile_to_object): Update call to
2022 lanugage_defn::name.
2023 * d-lang.c (d_language_data): Remove la_name and
2024 la_natural_name initializers.
2025 (d_language::name): New member function.
2026 (d_language::natural_name): New member function.
2027 * expprint.c (print_subexp_standard): Update call to
2028 language_defn::name.
2029 (dump_raw_expression): Likewise
2030 (dump_prefix_expression): Likewise.
2031 * f-lang.c (f_language_data): Remove la_name and
2032 la_natural_name initializers.
2033 (f_language::name): New member function.
2034 (f_language::natural_name): New member function.
2035 * go-lang.c (go_language_data): Remove la_name and
2036 la_natural_name initializers.
2037 (go_language::name): New member function.
2038 (go_language::natural_name): New member function.
2039 * language.c (show_language_command): Update call to
2040 language_defn::name.
2041 (set_language_command): Likewise.
2042 (language_enum): Likewise.
2043 (language_str): Likewise.
2044 (add_set_language_command): Likewise, use
2045 language_defn::natural_name in the doc string.
2046 (unknown_language_data): Remove la_name and
2047 la_natural_name initializers.
2048 (unknown_language::name): New member function.
2049 (unknown_language::natural_name): New member function.
2050 (auto_language_data): Remove la_name and
2051 la_natural_name initializers.
2052 (auto_language::name): New member function.
2053 (auto_language::natural_name): New member function.
2054 (language_lookup_primitive_type_as_symbol): Update call to
2055 language_defn::name.
2056 * language.h (language_data): Remove la_name and la_natural_name
2057 member variables.
2058 (language_defn::name): New member function.
2059 (language_defn::natural_name): New member function.
2060 * m2-lang.c (m2_language_data): Remove la_name and
2061 la_natural_name initializers.
2062 (m2_language::name): New member function.
2063 (m2_language::natural_name): New member function.
2064 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2065 language_defn::natural_name.
2066 * objc-lang.c (objc_language_data): Remove la_name and
2067 la_natural_name initializers.
2068 (objc_language::name): New member function.
2069 (objc_language::natural_name): New member function.
2070 * opencl-lang.c (opencl_language_data): Remove la_name and
2071 la_natural_name initializers.
2072 (opencl_language::name): New member function.
2073 (opencl_language::natural_name): New member function.
2074 * p-lang.c (pascal_language_data): Remove la_name and
2075 la_natural_name initializers.
2076 (pascal_language::name): New member function.
2077 (pascal_language::natural_name): New member function.
2078 * rust-lang.c (rust_language_data): Remove la_name and
2079 la_natural_name initializers.
2080 (rust_language::name): New member function.
2081 (rust_language::natural_name): New member function.
2082 * symtab.c (lookup_language_this): Update call to
2083 language_defn::name.
2084
2085 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * ada-lang.c (ada_language_data): Remove la_name_of_this
2088 initializer.
2089 * ax-gdb.c (gen_expr): Update call to name_of_this.
2090 * c-exp.y (classify_name): Likewise.
2091 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2092 (cplus_language_data): Likewise.
2093 (cplus_language::name_of_this): New member function.
2094 (asm_language_data): Remove la_name_of_this initializer.
2095 (minimal_language_data): Likewise.
2096 * d-lang.c (d_language_data): Likewise.
2097 (d_language::name_of_this): New member function.
2098 * expprint.c (print_subexp_standard): Update call to name_of_this.
2099 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2100 * go-lang.c (go_language_data): Likewise.
2101 * language.c (unknown_language_data): Likewise.
2102 (unknown_language::name_of_this): New member function.
2103 (auto_language_data): Remove la_name_of_this initializer.
2104 (auto_language::name_of_this): New member function.
2105 * language.h (language_data): Delete la_name_of_this member
2106 variable.
2107 (language_defn::name_of_this): New member function.
2108 * m2-lang.c (m2_language_data): Remove la_name_of_this
2109 initializer.
2110 * objc-lang.c (objc_language_data): Likewise.
2111 (objc_language::name_of_this): New member function.
2112 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2113 initializer.
2114 * p-lang.c (pascal_language_data): Likewise.
2115 (pascal_language::name_of_this): New member function.
2116 * rust-lang.c (rust_language_data): Remove la_name_of_this
2117 initializer.
2118 * symtab.c (lookup_language_this): Update call to name_of_this.
2119 (lookup_symbol_aux): Likewise.
2120 * valops.c (value_of_this): Likewise.
2121
2122 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * ada-lang.c (ada_language_data): Remove
2125 la_struct_too_deep_ellipsis initializer.
2126 (ada_language::struct_too_deep_ellipsis): New member function.
2127 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2128 initializer.
2129 (cplus_language_data): Likewise.
2130 (asm_language_data): Likewise.
2131 (minimal_language_data): Likewise.
2132 * cp-valprint.c (cp_print_value): Update call to
2133 struct_too_deep_ellipsis.
2134 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2135 initializer.
2136 * f-lang.c (f_language_data): Likewise.
2137 (f_language::struct_too_deep_ellipsis): New member function.
2138 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2139 initializer.
2140 * language.c (unknown_language_data): Likewise.
2141 (auto_language_data): Likewise.
2142 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2143 member variable.
2144 (language_defn::struct_too_deep_ellipsis): New member function.
2145 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2146 initializer.Q
2147 * objc-lang.c (objc_language_data): Likewise.
2148 * opencl-lang.c (opencl_language_data): Likewise.
2149 * p-lang.c (pascal_language_data): Likewise.
2150 * rust-lang.c (rust_language_data): Likewise.
2151 * valprint.c (val_print_check_max_depth): Update call to
2152 struct_too_deep_ellipsis.
2153
2154 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2155
2156 * MAINTAINERS (Write After Approval): Add myself.
2157
2158 2020-09-15 Tom Tromey <tom@tromey.com>
2159
2160 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2161 Remove.
2162
2163 2020-09-15 Tom Tromey <tom@tromey.com>
2164
2165 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2166 and TYPE_CODE_METHODPTR cases.
2167 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2168 (c_value_print_inner): Update.
2169 * valprint.c (generic_value_print_memberptr): New function, from
2170 c_value_print_memberptr.
2171 (generic_value_print): Use it. Call cplus_print_method_ptr.
2172
2173 2020-09-15 Tom Tromey <tromey@adacore.com>
2174
2175 * python/python-internal.h (PyInt_FromLong): Remove define.
2176 * python/py-value.c (convert_value_from_python): Use
2177 gdb_py_object_from_longest.
2178 * python/py-type.c (typy_get_code): Use
2179 gdb_py_object_from_longest.
2180 * python/py-symtab.c (salpy_get_line): Use
2181 gdb_py_object_from_longest.
2182 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2183 gdb_py_object_from_longest.
2184 * python/py-record.c (recpy_gap_reason_code): Use
2185 gdb_py_object_from_longest.
2186 * python/py-record-btrace.c (recpy_bt_insn_size)
2187 (recpy_bt_func_level, btpy_list_count): Use
2188 gdb_py_object_from_longest.
2189 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2190 gdb_py_object_from_longest. Fix error handling.
2191 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2192 gdb_py_object_from_longest.
2193 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2194 gdb_py_object_from_longest.
2195 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2196 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2197 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2198
2199 2020-09-15 Tom Tromey <tromey@adacore.com>
2200
2201 * python/python.c (gdbpy_parameter_value): Use
2202 gdb_py_object_from_ulongest.
2203
2204 2020-09-15 Tom Tromey <tromey@adacore.com>
2205
2206 * python/py-infevents.c (create_register_changed_event_object):
2207 Use gdb_py_object_from_longest.
2208 * python/py-exitedevent.c (create_exited_event_object): Use
2209 gdb_py_object_from_longest.
2210
2211 2020-09-15 Tom Tromey <tromey@adacore.com>
2212
2213 * python/python.c (gdbpy_parameter_value): Use
2214 gdb_py_object_from_longest.
2215 * python/py-type.c (convert_field, typy_range): Use
2216 gdb_py_object_from_longest.
2217 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2218 gdb_py_object_from_longest.
2219 * python/py-lazy-string.c (stpy_get_length): Use
2220 gdb_py_object_from_longest.
2221 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2222 gdb_py_object_from_longest.
2223 * python/py-infevents.c (create_memory_changed_event_object): Use
2224 gdb_py_object_from_longest.
2225 * python/py-inferior.c (infpy_get_num): Use
2226 gdb_py_object_from_longest.
2227 (infpy_get_pid): Likewise.
2228
2229 2020-09-15 Tom Tromey <tromey@adacore.com>
2230
2231 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2232 defines.
2233 * python/py-value.c (valpy_long): Use
2234 gdb_py_object_from_ulongest.
2235 * python/py-symtab.c (salpy_get_pc): Use
2236 gdb_py_object_from_ulongest.
2237 (salpy_get_last): Likewise.
2238 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2239 gdb_py_object_from_ulongest.
2240 * python/py-lazy-string.c (stpy_get_address): Use
2241 gdb_py_object_from_ulongest.
2242 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2243 * python/py-arch.c (archpy_disassemble): Use
2244 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2245 error handling.
2246
2247 2020-09-15 Tom Tromey <tromey@adacore.com>
2248
2249 * python/python-internal.h (gdb_py_long_from_longest): Remove
2250 defines.
2251 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2252 * python/py-type.c (convert_field, typy_get_sizeof): Use
2253 gdb_py_object_from_longest.
2254 * python/py-record-btrace.c (btpy_list_index): Use
2255 gdb_py_object_from_longest.
2256
2257 2020-09-15 Tom Tromey <tromey@adacore.com>
2258
2259 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2260 * python/py-record.c (recpy_element_number): Use
2261 gdb_py_object_from_longest.
2262 (recpy_gap_number): Likewise.
2263
2264 2020-09-15 Tom Tromey <tromey@adacore.com>
2265
2266 * top.c (ui::ui): Update.
2267 (highest_ui_num): Remove.
2268 * top.h (struct ui) <num>: Remove.
2269
2270 2020-09-15 Tom Tromey <tromey@adacore.com>
2271
2272 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2273 * ui-style.c (ansi_regex_text): Now array.
2274 * rust-exp.y (number_regex_text): Now array.
2275 * linespec.c (linespec_quote_characters): Now array.
2276 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2277 Now arrays.
2278
2279 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2280
2281 * debuginfod-support.c (debuginfod_client_deleter): New.
2282 (debuginfod_client_up): New.
2283 (debuginfod_init): Return debuginfod_client_up.
2284 (debuginfod_source_query): Adjust.
2285 (debuginfod_debuginfo_query): Adjust.
2286
2287 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2288
2289 * debuginfod-support.c (debuginfod_source_query): Use
2290 make_unique_xstrdup.
2291
2292 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2295 with `type::instance_flags`.
2296
2297 2020-09-14 Michael Mullin <masmullin@gmail.com>
2298
2299 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2300 Remove baton parameter.
2301
2302 2020-09-14 Pedro Alves <pedro@palves.net>
2303
2304 * Makefile.in (SELFTESTS_SRCS): Add
2305 unittests/enum-flags-selftests.c.
2306 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2307 btrace_function_flags instead of enum btrace_function_flag.
2308 * compile/compile-c-types.c (convert_qualified): Use
2309 enum_flags::raw.
2310 * compile/compile-cplus-symbols.c (convert_one_symbol)
2311 (convert_symbol_bmsym):
2312 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2313 (compile_cplus_convert_struct_or_union_methods)
2314 (compile_cplus_instance::convert_qualified_base):
2315 * go-exp.y (parse_string_or_char): Add cast to int.
2316 * unittests/enum-flags-selftests.c: New file.
2317 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2318 type to btrace_thread_flags from btrace_thread_flag.
2319 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2320 local's type to btrace_thread_flags from btrace_thread_flag. Add
2321 cast in DEBUG call.
2322
2323 2020-09-14 Pedro Alves <pedro@palves.net>
2324
2325 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2326 * gdbtypes.c (address_space_name_to_int): Rename to ...
2327 (address_space_name_to_type_instance_flags): ... this.
2328 (address_space_int_to_name): Rename to ...
2329 (address_space_type_instance_flags_to_name): ... this.
2330 * gdbtypes.h (address_space_name_to_int): Rename to ...
2331 (address_space_name_to_type_instance_flags): ... this.
2332 (address_space_int_to_name): Rename to ...
2333 (address_space_type_instance_flags_to_name): ... this.
2334 * type-stack.c (type_stack::insert): Adjust to rename.
2335 * type-stack.h (type_stack::insert): Likewise.
2336
2337 2020-09-14 Pedro Alves <pedro@palves.net>
2338 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * avr-tdep.c (avr_address_class_type_flags): Return
2341 type_instance_flags.
2342 (avr_address_class_type_flags_to_name): Take a
2343 type_instance_flags.
2344 (avr_address_class_name_to_type_flags): Return bool and take a
2345 type_instance_flags.
2346 * d-lang.c (build_d_types): Use type::set_instance_flags.
2347 * ft32-tdep.c (ft32_address_class_type_flags): Return
2348 type_instance_flags.
2349 (ft32_address_class_type_flags_to_name): Take a
2350 type_instance_flags.
2351 (ft32_address_class_name_to_type_flags): Return bool and take a
2352 type_instance_flags.
2353 (ft32_gdbarch_init): Use type::set_instance_flags.
2354 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2355 * gdbarch.h, gdbarch.c: Regenerate.
2356 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2357 (address_class_name_to_type_flags): Use type_instance_flags and
2358 bool.
2359 * gdbtypes.c (address_space_name_to_int)
2360 (address_space_int_to_name, make_qualified_type): Use
2361 type_instance_flags.
2362 (make_qualified_type): Use type_instance_flags and
2363 type::set_instance_flags.
2364 (make_type_with_address_space, make_cv_type, make_vector_type)
2365 (check_typedef): Use type_instance_flags.
2366 (recursive_dump_type): Cast type_instance_flags to unsigned for
2367 printing.
2368 (copy_type_recursive): Use type::set_instance_flags.
2369 (gdbtypes_post_init): Use type::set_instance_flags.
2370 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2371 <m_instance_flags>: ... this.
2372 <instance_flags, set_instance_flags>: New methods.
2373 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2374 (SET_TYPE_INSTANCE_FLAGS): New.
2375 (address_space_name_to_int, address_space_int_to_name)
2376 (make_type_with_address_space): Pass flags using
2377 type_instance_flags instead of int.
2378 * stabsread.c (cleanup_undefined_types_noname): Use
2379 type::set_instance_flags.
2380 * s390-tdep.c (s390_address_class_type_flags): Return
2381 type_instance_flags.
2382 (s390_address_class_type_flags_to_name): Take a
2383 type_instance_flags.
2384 (s390_address_class_name_to_type_flags): Return bool and take a
2385 type_instance_flags.
2386 * type-stack.c (type_stack::follow_types): Use
2387 type_instance_flags.
2388 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2389
2390 2020-09-14 Tom Tromey <tromey@adacore.com>
2391
2392 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2393 * x86-tdep.c (x86_is_thunk_register_name)
2394 (x86_in_indirect_branch_thunk): Update.
2395 * sparc64-tdep.c (sparc64_fpu_register_names)
2396 (sparc64_cp0_register_names, sparc64_register_names)
2397 (sparc64_pseudo_register_names): Now const.
2398 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2399 cp0_registers_num>: Now const.
2400 * sparc-tdep.c (sparc_core_register_names)
2401 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2402 (sparc32_pseudo_register_names): Now const.
2403 (validate_tdesc_registers): Update.
2404 * rust-lang.c (rust_extensions): Now const.
2405 * p-lang.c (p_extensions): Now const.
2406 * objc-lang.c (objc_extensions): Now const.
2407 * nto-tdep.c (nto_thread_state_str): Now const.
2408 * moxie-tdep.c (moxie_register_names): Now const.
2409 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2410 Now const.
2411 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2412 (mips_linux_reg_names): Now const.
2413 (mips_gdbarch_init): Update.
2414 * microblaze-tdep.c (microblaze_register_names): Now const.
2415 * m68k-tdep.c (m68k_register_names): Now const.
2416 * m32r-tdep.c (m32r_register_names): Now const.
2417 * ia64-tdep.c (ia64_register_names): Now const.
2418 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2419 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2420 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2421 ymm_avx512_register_names, pkeys_register_names>: Now const.
2422 * i386-tdep.c (i386_register_names, i386_zmm_names)
2423 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2424 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2425 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2426 * f-lang.c (f_extensions): Now const.
2427 * d-lang.c (d_extensions): Now const.
2428 * csky-tdep.c (csky_register_names): Now const.
2429 * charset.c (default_charset_names, charset_enum): Now const.
2430 (_initialize_charset): Update.
2431 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2432 const.
2433 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2434 (bsd_uthread_solib_loaded): Update.
2435 (bsd_uthread_state): Now const.
2436 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2437 (amd64_ymm_avx512_names, amd64_ymmh_names)
2438 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2439 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2440 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2441 (amd64_dword_names): Now const.
2442 * agent.c (can_use_agent_enum): Now const.
2443 * ada-tasks.c (task_states, long_task_states): Now const.
2444 * ada-lang.c (known_runtime_file_name_patterns)
2445 (known_auxiliary_function_name_patterns, attribute_names)
2446 (standard_exc, ada_extensions): Now const.
2447
2448 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * bcache.h (struct bcache) <bcache>: Remove constructor.
2451 <m_hash_function, m_compare_function>: Remove.
2452 <~bcache>: Make virtual.
2453 <compare>: Remove static method, introduce virtual method.
2454 <default_hash>: Remove.
2455 <hash>: New virtual method.
2456 * bcache.c (bcache::expand_hash_table): Update.
2457 (bcache::insert): Update.
2458 (bcache::hash): New.
2459 (bcache::compare): Update comment and parameter names.
2460 * gdbtypes.c (types_deeply_equal): Update.
2461 * psymtab.h (struct psymbol_bcache): New struct.
2462 (class psymtab_storage) <psymtab_storage>: Make default.
2463 <psymbol_cache>: Change type to psymbol_bcache.
2464 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2465 (psymbol_hash): Change to...
2466 (psymbol_bcache::hash): ... this.
2467 (psymbol_compare): Change to...
2468 (psymbol_bcache::compare): ... this.
2469
2470 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2471
2472 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2473 checking for initial lwp.
2474
2475 2020-09-14 Tom Tromey <tromey@adacore.com>
2476
2477 * m68k-tdep.c (m68k_extract_return_value): Use
2478 pointer_result_regnum.
2479 (m68k_store_return_value): Likewise.
2480 (m68k_reg_struct_return_p): Handle vectors and arrays.
2481 (m68k_return_value): Handle arrays.
2482 (m68k_svr4_return_value): Fix single-element aggregate handling.
2483 Handle long double. Adjust for embedded ABI.
2484 (m68k_svr4_init_abi): Set pointer_result_regnum.
2485 (m68k_embedded_init_abi): New function.
2486 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2487 (m68k_osabi_sniffer): New function.
2488 (_initialize_m68k_tdep): Register osabi sniffer.
2489 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2490 member.
2491
2492 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2493
2494 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2495 with gdb::unique_xmalloc_ptr<char>.
2496
2497 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * xml-support.h (xml_fetch_another): Change type to be a
2500 function_view.
2501 (xml_process_xincludes): Remove baton parameter.
2502 (xml_fetch_content_from_file): Change baton parameter to
2503 dirname.
2504 * xml-support.c (struct xinclude_parsing_data)
2505 <xinclude_parsing_data>: Remove baton parameter.
2506 <fetcher_baton>: Remove.
2507 (xinclude_start_include): Adjust.
2508 (xml_process_xincludes): Adjust.
2509 (xml_fetch_content_from_file): Replace baton parameter with
2510 dirname.
2511 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2512 (xml_init_syscalls_info): Use a lambda.
2513 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2514 (file_read_description_xml): Use a lambda.
2515 (fetch_available_features_from_target): Change baton parameter
2516 to target_ops.
2517 (target_read_description_xml): Use a lambda.
2518 (target_fetch_description_xml): Use a lambda.
2519 (string_read_description_xml): Update.
2520
2521 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2524 uses with type::endianity_is_not_default.
2525
2526 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * gdbtypes.h (struct type) <endianity_is_not_default,
2529 set_endianity_is_not_default>: New methods.
2530 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2531 type::endianity_is_not_default, change all write call sites to
2532 use type::set_endianity_is_not_default.
2533
2534 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2535
2536 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2537 uses with type::is_fixed_instance.
2538
2539 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * gdbtypes.h (struct type) <is_fixed_instance,
2542 set_is_fixed_instance>: New methods.
2543 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2544 write call sites to use type::set_is_fixed_instance.
2545
2546 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2547
2548 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2549 uses with type::is_gnu_ifunc.
2550
2551 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2552
2553 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2554 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2555 use type::set_is_gnu_ifunc.
2556
2557 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2560 uses with type::stub_is_supported.
2561
2562 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2565 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2566 use type::set_stub_is_supported.
2567
2568 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2571 uses with type::is_vector.
2572
2573 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2576 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2577 use type::set_is_vector.
2578
2579 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2580
2581 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2582 uses with type::has_varargs.
2583
2584 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2585
2586 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2587 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2588 use type::set_has_varargs.
2589
2590 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2593 uses with type::is_prototyped.
2594
2595 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2596
2597 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2598 New methods.
2599 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2600 call sites to use type::set_is_prototyped.
2601
2602 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2605 uses with type::target_is_stub.
2606
2607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2608
2609 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2610 New methods.
2611 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2612 sites to use type::set_target_is_stub.
2613
2614 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2615
2616 * gdbtypes.h (TYPE_STUB): Remove, replace all
2617 uses with type::is_stub.
2618
2619 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2620
2621 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2622 (TYPE_STUB): Use type::is_stub, change all write call sites to
2623 use type::set_is_stub.
2624
2625 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2626
2627 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2628 type::has_no_signedness.
2629
2630 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2631
2632 * gdbtypes.h (struct type) <has_no_signedness,
2633 set_has_no_signedness>: New methods.
2634 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2635 call sites to use type::set_has_no_signedness.
2636
2637 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2638
2639 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2640 type::is_unsigned.
2641
2642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2643
2644 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2645 methods.
2646 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2647 sites to use type::set_is_unsigned.
2648
2649 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2650 Adam Renquinha <arenquinha@cimeq.qc.ca>
2651
2652 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2653 pointer and stack frame offset when unwinding.
2654
2655 2020-09-13 Pedro Alves <pedro@palves.net>
2656
2657 * NEWS: Document "-break-insert --qualified".
2658 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2659
2660 2020-09-13 Pedro Alves <pedro@palves.net>
2661
2662 * linespec.c (classify_mtype, compare_msyms): Delete.
2663 (search_minsyms_for_name): Remove classification logic. Instead
2664 filter out trampoline symbols if we also found an external
2665 function of the same name.
2666
2667 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2668
2669 * NEWS: Create a new section for the next release branch.
2670 Rename the section of the current branch, now that it has
2671 been cut.
2672
2673 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2674
2675 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2676 * version.in: Bump version to 11.0.50.DATE-git.
2677
2678 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2679
2680 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2681
2682 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2683 Felix Willgerodt <Felix.Willgerodt@intel.com>
2684
2685 * gdbarch.sh: Added bfloat16 type.
2686 * gdbarch.c: Regenerated.
2687 * gdbarch.h: Regenerated.
2688 * gdbtypes.c (floatformats_bfloat16): New struct.
2689 (gdbtypes_post_init): Add builtin_bfloat16.
2690 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2691 (floatformats_bfloat16): New struct.
2692 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2693 (i386_ymm_type): Add field "v16_bfloat16"
2694 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2695 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2696 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2697 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2698 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2699 * features/i386/64bit-avx512.c: Regenerated.
2700 * features/i386/64bit-sse.xml: Add bfloat16 type.
2701 * features/i386/64bit-sse.c: Regenerated.
2702
2703 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2704
2705 * i386-tdep.c (i386_zmm_type): Fix field names.
2706 (i386_ymm_type): Fix field names.
2707
2708 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2709
2710 * breakpoint.c: Fix typo in the help message of the
2711 "set breakpoint condition-evaluation" command.
2712
2713 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2714
2715 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2716 * (nbsd_nat_target::pid_to_exec_file)
2717 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2718 (nbsd_nat_target::post_startup_inferior)
2719 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2720 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2721 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2722 * (nbsd_thread_lister): Remove.
2723
2724 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2725
2726 * fork-inferior.c (startup_inferior): Avoid double free.
2727
2728 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2729
2730 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2731 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2732
2733 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2734
2735 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2736 * netbsd-nat.c: Include <sys/ptrace.h>.
2737 * (netbsd_nat::enable_proc_events): Add.
2738
2739 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2740
2741 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2742 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2743 (netbsd_nat::for_each_thread): Add.
2744 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2745 "gdbsupport/common-debug.h".
2746 * (netbsd_nat::netbsd_thread_lister)
2747 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2748 (netbsd_nat::for_each_thread): Add.
2749
2750 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2751
2752 * netbsd-nat.h: Include <unistd.h>.
2753 * (netbsd_nat::pid_to_exec_file): Add.
2754 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2755 * (netbsd_nat::pid_to_exec_file) Add.
2756
2757 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2758
2759 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2760
2761 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2762
2763 * netbsd-nat.h: New file.
2764 * netbsd-nat.c: Likewise.
2765
2766 2020-09-09 Tom Tromey <tromey@adacore.com>
2767
2768 * ada-lang.c (remove_extra_symbols): Do not increment when
2769 removing an element
2770
2771 2020-09-08 Tom Tromey <tromey@adacore.com>
2772
2773 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2774
2775 2020-09-08 Tom Tromey <tromey@adacore.com>
2776
2777 PR win32/25302:
2778 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2779 (gdb_bfd_init_data): New function.
2780 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2781
2782 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2783
2784 * infrun.c (fetch_inferior_event): Use
2785 `switch_to_target_no_thread` to switch the target.
2786
2787 2020-09-06 Tom Tromey <tom@tromey.com>
2788
2789 * symfile.h (dwarf2_free_objfile): Don't declare.
2790
2791 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2792
2793 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2794 to match 16 byte real/complex type generated by Flang compiler.
2795
2796 2020-09-03 Tom de Vries <tdevries@suse.de>
2797
2798 PR breakpoint/26546
2799 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2800 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2801
2802 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2803
2804 * maint.c (index_digits): New function.
2805 (struct maint_print_section_data): Remove.
2806 (print_bfd_section_info): Remove print_data parameter, add arg
2807 and index_digits.
2808 (print_objfile_section_info): Likewise.
2809 (print_bfd_section_info_maybe_relocated): Likewise (plus
2810 objfile).
2811 (maintenance_info_sections): Adjust calls.
2812
2813 2020-09-02 Tom Tromey <tromey@adacore.com>
2814
2815 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2816 for null pointers.
2817 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2818
2819 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * bcache.h (struct bcache) <insert>: Change type of `added` to
2822 pointer to bool.
2823 * bcache.c (bcache::insert): Likewise.
2824 * gdbtypes.c (check_types_worklist): Adjust.
2825 * psymtab.c (add_psymbol_to_bcache): Adjust.
2826
2827 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2828
2829 * corelow.c (unordered_set): Include.
2830 (class core_target): Add field 'm_core_unavailable_mappings'.
2831 (core_target::build_file_mappings): Print only one warning
2832 per inaccessible file. Add unavailable/broken mappings
2833 to m_core_unavailable_mappings.
2834 (core_target::xfer_partial): Call...
2835 (core_target::xfer_memory_via_mappings): New method.
2836
2837 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2840 type to bool.
2841
2842 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * dwarf2/read.c (struct field_info): Fix indentation.
2845
2846 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2849 ordering in comment.
2850 * frame.c (frame_id_eq): Fix indentation.
2851
2852 2020-08-31 Scott Linder <scott@scottlinder.com>
2853 Simon Marchi <simon.marchi@efficios.com>
2854
2855 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2856 inline frame ids in outer frame.
2857
2858 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2859
2860 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2861 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2862 (outer_frame_id): Use FID_STACK_OUTER instead of
2863 FID_STACK_INVALID.
2864 (frame_id_p): Don't check for outer_frame_id.
2865
2866 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2867
2868 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2869 regnum/frame in value. Call allocate_value_lazy.
2870 * frame.c (frame_unwind_register_value): Use
2871 val_print_not_saved.
2872
2873 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2876
2877 2020-08-29 Pedro Alves <pedro@palves.net>
2878
2879 * progspace.c (print_program_space): Use all_inferiors. Switch to
2880 the inferior before calling target_pid_to_str.
2881
2882 2020-08-28 Tom Tromey <tom@tromey.com>
2883
2884 * xcoffread.c (xcoff_end_psymtab): Update comment.
2885 * dbxread.c (dbx_end_psymtab): Update comment.
2886
2887 2020-08-28 Tom de Vries <tdevries@suse.de>
2888
2889 PR breakpoint/26544
2890 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2891 event_location.
2892 (create_breakpoint): Same.
2893 (base_breakpoint_decode_location): Same.
2894 (bkpt_create_sals_from_location): Same.
2895 (bkpt_decode_location): Same.
2896 (bkpt_probe_create_sals_from_location): Same.
2897 (bkpt_probe_decode_location): Same.
2898 (tracepoint_create_sals_from_location): Same.
2899 (tracepoint_decode_location): Same.
2900 (tracepoint_probe_decode_location): Same.
2901 (strace_marker_create_sals_from_location): Same.
2902 (strace_marker_decode_location): Same.
2903 (create_sals_from_location_default): Same.
2904 (decode_location_default): Same.
2905 * breakpoint.h (struct breakpoint_ops): Same.
2906 (create_breakpoint): Same.
2907 * linespec.h (decode_line_full): Same.
2908 * linespec.c (decode_line_full): Same. Throw error if
2909 result.size () == 0.
2910
2911 2020-08-27 Pedro Alves <pedro@palves.net>
2912
2913 PR gdb/26524
2914 * breakpoint.c (until_break_fsm) <location_breakpoint,
2915 caller_breakpoint>: Delete fields.
2916 <breakpoints>: New field.
2917 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2918 two individual breakpoints.
2919 (until_break_fsm::should_stop): Loop over breakpoints in the
2920 breakpoint vector.
2921 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2922 vector.
2923 (until_break_command): Handle location expanding into multiple
2924 sals.
2925
2926 2020-08-27 Pedro Alves <pedro@palves.net>
2927
2928 PR gdb/26523
2929 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2930 bp_until breakpoints user-specified locations. Update intro
2931 comment.
2932
2933 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2934
2935 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2936 gdb_bfd_sections): New.
2937 * maint.c (print_bfd_section_info): Change param type to
2938 maint_print_section_data.
2939 (print_objfile_section_info): Likewise.
2940 (print_bfd_section_info_maybe_relocated): Likewise.
2941 (maintenance_info_sections): Use gdb_bfd_sections.
2942
2943 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2944
2945 * MAINTAINERS: Add ARC target and maintainer.
2946
2947 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2948
2949 * configure.tgt: ARC support for GNU/Linux.
2950 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2951 * arc-linux-tdep.c: New file.
2952 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2953 * arc-tdep.c (arc_write_pc): Use it.
2954
2955 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2956
2957 * arc-tdep.c (arc_check_for_hardware_loop): New.
2958 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2959
2960 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2961
2962 * arc-tdep.h: Include "gdbarch.h".
2963
2964 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2965
2966 * arch/arc.h
2967 (arc_gdbarch_features): New class to stir the selection of target XML.
2968 (arc_create_target_description): Use FEATURES to choose XML target.
2969 (arc_lookup_target_description): Use arc_create_target_description
2970 to create _new_ target descriptions or return the already created
2971 ones if the FEATURES is the same.
2972 * arch/arc.c: Implementation of prototypes described above.
2973 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2974 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2975 * arc-tdep.c (*_feature_name): Make feature names consistent.
2976 (arc_register_feature): A new struct to hold information about
2977 registers of a particular target/feature.
2978 (arc_check_tdesc_feature): Check if XML provides registers in
2979 compliance with ARC_REGISTER_FEATURE structs.
2980 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2981 (determine_*_reg_feature_set): Which feature name to look for.
2982 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2983 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2984 to expected ISA enums to be used in arc_gdbarch_features structs.
2985 * features/Makefile (FEATURE_XMLFILES): Add new files.
2986 * gdb/features/arc/v1-aux.c: New file.
2987 * gdb/features/arc/v1-aux.xml: Likewise.
2988 * gdb/features/arc/v1-core.c: Likewise.
2989 * gdb/features/arc/v1-core.xml: Likewise.
2990 * gdb/features/arc/v2-aux.c: Likewise.
2991 * gdb/features/arc/v2-aux.xml: Likewise.
2992 * gdb/features/arc/v2-core.c: Likewise.
2993 * gdb/features/arc/v2-core.xml: Likewise.
2994 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2995
2996 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2997 Andrew Burgess <andrew.burgess@embecosm.com>
2998
2999 PR m2/26372
3000 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3001 an assert. Remove single element array indexing pattern as the
3002 MULTI_SUBSCRIPT support will handle this case too.
3003
3004 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3005
3006 * value.h (valprint_check_validity): Move declaration from
3007 here...
3008 * valprint.h (valprint_check_validity): ... to here.
3009
3010 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * debug.h: New file.
3013 * debug.c (debug_prefixed_vprintf): New function.
3014 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3015 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3016
3017 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * infrun.h (infrun_debug_printf_1): New function declaration.
3020 (infrun_debug_printf): New macro.
3021 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3022 throughout.
3023 (infrun_debug_printf): New function.
3024 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3025 (handle_jit_event): Likewise.
3026
3027 2020-08-21 Mark Wielaard <mark@klomp.org>
3028
3029 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3030
3031 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * frame.c (enum class frame_id_status): New.
3034 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3035 (fprintf_frame): Update.
3036 (compute_frame_id): Set frame id status to "computing" on entry.
3037 Set it back to "not_computed" on failure and to "computed" on
3038 success.
3039 (get_frame_id): Assert the frame id is not being computed.
3040 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3041 (create_new_frame): Likewise.
3042 (frame_cleanup_after_sniffer): Update assert.
3043
3044 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3045
3046 * regcache.c (pid_ptid_regcache_map): New type.
3047 (target_ptid_regcache_map): Remove.
3048 (target_pid_ptid_regcache_map): New type.
3049 (regcaches): Change type to target_pid_ptid_regcache_map.
3050 (get_thread_arch_aspace_regcache): Update.
3051 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3052 case.
3053 (regcaches_size): Update.
3054 (regcache_count): Update.
3055 (registers_changed_ptid_target_pid_test): New.
3056 (_initialize_regcache): Register new test.
3057
3058 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3059
3060 * regcache.c (regcache_count): New.
3061 (struct regcache_test_data): New.
3062 (regcache_test_data_up): New.
3063 (populate_regcaches_for_test): New.
3064 (regcaches_test): Remove.
3065 (get_thread_arch_aspace_regcache_test): New.
3066 (registers_changed_ptid_all_test): New.
3067 (registers_changed_ptid_target_test): New.
3068 (registers_changed_ptid_target_ptid_test): New.
3069 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3070 (_initialize_regcache): Register new tests.
3071
3072 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3073
3074 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3075 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3076 gdbarch and aspace parameter. Use current inferior's aspace.
3077 Validate regcache's arch value.
3078 (regcaches_test): Update.
3079
3080 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3081
3082 * regcache.c (regcaches_test): Call registers_changed.
3083
3084 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3085
3086 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3087
3088 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3089
3090 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3091 to find the end of prologue for flang compiled binaries.
3092 * arm-tdep.c (arm_skip_prologue): Likewise.
3093 * i386-tdep.c (i386_skip_prologue): Likewise.
3094 * producer.c (producer_is_llvm): New function.
3095 (producer_parsing_tests): Added new tests for clang/flang.
3096 * producer.h (producer_is_llvm): New declaration.
3097
3098 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * linux-nat.c (linux_nat_debug_printf): New function.
3101 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3102
3103 2020-08-18 Aaron Merey <amerey@redhat.com>
3104
3105 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3106 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3107 (CLIBS): Add DEBUGINFOD_LIBS.
3108
3109 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3110
3111 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3112 'gdbarch_num_regs'.
3113
3114 2020-08-17 Tom Tromey <tromey@adacore.com>
3115
3116 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3117 ada_get_decoded_value returns NULL.
3118
3119 2020-08-17 Tom Tromey <tromey@adacore.com>
3120
3121 * python/py-inferior.c (infpy_search_memory): Use
3122 gdb_py_object_from_ulongest.
3123 * python/py-infevents.c (create_inferior_call_event_object)
3124 (create_memory_changed_event_object): Use
3125 gdb_py_object_from_ulongest.
3126 * python/py-linetable.c (ltpy_entry_get_pc): Use
3127 gdb_py_object_from_ulongest.
3128
3129 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 * loc.c (class symbol_needs_eval_context): Fix indentation.
3132
3133 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3134
3135 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3136 bool.
3137
3138 2020-08-17 Tom de Vries <tdevries@suse.de>
3139
3140 PR gdb/26393
3141 * gdbtypes.c (dump_dynamic_prop): New function.
3142 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3143
3144 2020-08-15 Tom de Vries <tdevries@suse.de>
3145
3146 PR backtrace/26390
3147 * stack.c (print_frame_args): Temporarily set the selected
3148 frame to FRAME while printing the frame's arguments.
3149
3150 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3151
3152 PR breakpoints/26385
3153 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3154 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3155
3156 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3157
3158 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3159 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3160 and >= to check return value instead of == -1 and != -1.
3161
3162 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3163
3164 * utils.h (class gdb_argv) <as_array_view>: New method.
3165 * utils.c (gdb_argv_as_array_view_test): New.
3166 (_initialize_utils): Register selftest.
3167 * maint.c (maintenance_selftest): Use the new method.
3168
3169 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3170
3171 * target.h (supports_dumpcore, dumpcore): New
3172 function declarations.
3173 * target.c (supports_dumpcore, dumpcore): New
3174 functions.
3175 * target-delegates.c: Rebuild.
3176 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3177 and target_dumpcore ().
3178
3179 2020-08-13 Aaron Merey <amerey@redhat.com>
3180
3181 * debuginfod-support.c: Replace global variables with user_data.
3182
3183 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3184
3185 * maint.c (maintenance_selftest): Split args and pass array_view
3186 to run_tests.
3187
3188 2020-08-12 Luis Machado <luis.machado@linaro.org>
3189
3190 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3191 type's length.
3192 Use %s and pulongest to print the length.
3193
3194 2020-08-12 Pedro Alves <palves@redhat.com>
3195
3196 * NEWS: Move "Multi-target debugging support" item to the
3197 "Changes since GDB 9" section.
3198
3199 2020-08-12 Pedro Alves <palves@redhat.com>
3200
3201 PR gdb/26336
3202 * progspace.c (program_space::remove_objfile): Invalidate the
3203 frame cache.
3204
3205 2020-08-11 Tom de Vries <tdevries@suse.de>
3206
3207 * MAINTAINERS: Mark ms1 as deleted.
3208
3209 2020-08-10 Luis Machado <luis.machado@linaro.org>
3210
3211 PR gdb/26310
3212
3213 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3214 act accordingly.
3215 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3216 movz/str/stur/stp skipping behavior.
3217
3218 2020-08-10 Luis Machado <luis.machado@linaro.org>
3219
3220 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3221 struct user_sve_header instead of struct sve_context.
3222
3223 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * read.h (dwarf2_fetch_die_loc_sect_off,
3226 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3227 `void *` parameter with function_view.
3228 * read.c (dwarf2_fetch_die_loc_sect_off,
3229 dwarf2_fetch_die_loc_cu_off): Likewise.
3230 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3231 (per_cu_dwarf_call): Adjust.
3232 (get_frame_address_in_block_wrapper): Remove.
3233 (indirect_synthetic_pointer): Adjust.
3234 (get_ax_pc): Remove.
3235 (dwarf2_compile_expr_to_ax): Adjust.
3236
3237 2020-08-08 Tom de Vries <tdevries@suse.de>
3238
3239 PR build/26344
3240 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3241 constructor.
3242 * regcache.c (get_thread_arch_aspace_regcache): Same.
3243
3244 2020-08-07 Tom Tromey <tromey@adacore.com>
3245
3246 * ravenscar-thread.c
3247 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3248 New method.
3249 (ravenscar_thread_target::wait): Check
3250 runtime_initialized.
3251 (ravenscar_thread_target::prepare_to_store)
3252 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3253 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3254 (ravenscar_thread_target::stopped_by_watchpoint)
3255 (ravenscar_thread_target::stopped_data_address)
3256 (ravenscar_thread_target::core_of_thread): Use
3257 scoped_restore_current_thread and
3258 set_base_thread_from_ravenscar_task.
3259
3260 2020-08-07 Tom Tromey <tromey@adacore.com>
3261
3262 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3263
3264 2020-08-07 Tom Tromey <tromey@adacore.com>
3265
3266 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3267 update_inferior_ptid before update_thread_list.
3268 (temporarily_change_regcache_ptid): New class.
3269 (ravenscar_thread_target::fetch_registers)
3270 (ravenscar_thread_target::store_registers)
3271 (ravenscar_thread_target::prepare_to_store): Use base thread when
3272 forwarding operation.
3273
3274 2020-08-07 Tom Tromey <tromey@adacore.com>
3275
3276 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3277 "is_pid" case.
3278
3279 2020-08-07 Tom Tromey <tromey@adacore.com>
3280
3281 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3282 New methods.
3283 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3284 first.
3285 (ravenscar_thread_target::add_thread): Rename from
3286 ravenscar_add_thread.
3287 (ravenscar_thread_target::update_thread_list): Use a lambda.
3288 (ravenscar_thread_target::xfer_partial): New method.
3289
3290 2020-08-07 Tom Tromey <tromey@adacore.com>
3291
3292 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3293 gdb::function_view.
3294 (iterate_over_live_ada_tasks): Change type of argument.
3295 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3296 of argument.
3297
3298 2020-08-07 Tom Tromey <tromey@adacore.com>
3299
3300 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3301 Remove.
3302 (ravenscar_thread_target::extra_thread_info): Remove.
3303 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3304 defer to target beneath for non-Ravenscar threads.
3305
3306 2020-08-07 Tom Tromey <tromey@adacore.com>
3307
3308 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3309 get_base_thread_from_ravenscar_task>: Now methods.
3310 <m_cpu_map>: New member.
3311 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3312 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3313 (ravenscar_thread_target::task_is_currently_active): Update.
3314 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3315 Now a method.
3316 (ravenscar_thread_target::add_active_thread): Put initial thread
3317 into the m_cpu_map.
3318
3319 2020-08-07 Tom Tromey <tromey@adacore.com>
3320
3321 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3322 event_ptid.
3323
3324 2020-08-07 Tom Tromey <tromey@adacore.com>
3325
3326 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3327 runtime_initialized.
3328
3329 2020-08-07 Tom Tromey <tromey@adacore.com>
3330
3331 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3332 add_active_thread.
3333 (ravenscar_thread_target::add_active_thread): Now public.
3334 (ravenscar_inferior_created): Call add_active_thread after pushing
3335 the target.
3336
3337 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * regcache.c (ptid_regcache_map): New type.
3340 (target_ptid_regcache_map): New type.
3341 (regcaches): Change type to target_ptid_regcache_map.
3342 (get_thread_arch_aspace_regcache): Update to regcaches' new
3343 type.
3344 (regcache_thread_ptid_changed): Likewise.
3345 (registers_changed_ptid): Likewise.
3346 (regcaches_size): Likewise.
3347 (regcaches_test): Update.
3348 (regcache_thread_ptid_changed): Update.
3349 * regcache.h (regcache_up): New type.
3350 * gdbsupport/ptid.h (hash_ptid): New struct.
3351
3352 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * observable.h (thread_ptid_changed): Add parameter
3355 `process_stratum_target *`.
3356 * infrun.c (infrun_thread_ptid_changed): Add parameter
3357 `process_stratum_target *` and use it.
3358 (selftests): New namespace.
3359 (infrun_thread_ptid_changed): New function.
3360 (_initialize_infrun): Register selftest.
3361 * regcache.c (regcache_thread_ptid_changed): Add parameter
3362 `process_stratum_target *` and use it.
3363 (regcache_thread_ptid_changed): New function.
3364 (_initialize_regcache): Register selftest.
3365 * thread.c (thread_change_ptid): Pass target to
3366 thread_ptid_changed observable.
3367
3368 2020-08-06 Caroline Tice <cmtice@google.com>
3369
3370 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3371 (struct dwp_sections): Update field comments. Add loclists and
3372 rnglists fields.
3373 (struct virtual_v2_dwo_sections): Rename struct to
3374 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3375 size & offset fields for loclists and rnglists.
3376 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3377 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3378 skipping dummy type units.
3379 (create_dwp_hash_table): Update the large comment above the function to
3380 discuss Version 5 DWP files as well, with references. Update all the
3381 version checks in the function to check for version 5 as well. Add new
3382 section at the end to create dwp hash table for version 5.
3383 (create_dwp_v2_section): Rename function to
3384 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3385 Add V5 to error message text.
3386 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3387 into calls to create_dwp_v2_or_v5_section.
3388 (create_dwo_unit_in_dwp_v5): New function.
3389 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3390 check for version2; add else clause to handle version 5.
3391 (open_and_init_dwo_file): Add code to check dwarf version & only call
3392 create_debug_types_hash_table (with sections.types) if version is not 5;
3393 else call create_debug_type_hash_table, with sections.info.
3394 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3395 version 5.
3396 (dwarf2_locate_v5_dwp_sections): New function.
3397 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3398 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3399
3400 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * regcache.h (class regcache): Remove friend
3403 registers_changed_ptid.
3404 <regcache_thread_ptid_changed>: Remove.
3405 <regcaches>: Remove.
3406 * regcache.c (regcache::regcaches): Rename to...
3407 (regcaches): ... this. Make static.
3408 (get_thread_arch_aspace_regcache): Update.
3409 (regcache::regcache_thread_ptid_changed): Rename to...
3410 (regcache_thread_ptid_changed): ... this. Update.
3411 (class regcache_access): Remove.
3412 (regcaches_test): Update.
3413 (_initialize_regcache): Update.
3414 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3415 <forward_list>.
3416
3417 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * regcache.h (class regcache) <current_regcache>: Rename to...
3420 <regcaches>: ... this. Move doc here.
3421 * regcache.c (regcache::current_regcache) Rename to...
3422 (regcache::regcaches): ... this. Move doc to header.
3423 (get_thread_arch_aspace_regcache): Update.
3424 (regcache::regcache_thread_ptid_changed): Update.
3425 (registers_changed_ptid): Update.
3426 (class regcache_access) <current_regcache_size>: Rename to...
3427 <regcaches_size>: ... this.
3428 (current_regcache_test): Rename to...
3429 (regcaches_test): ... this.
3430 (_initialize_regcache): Update.
3431
3432 2020-08-06 Victor Collod <vcollod@nvidia.com>
3433
3434 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3435
3436 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3437
3438 * corelow.c (core_target::build_file_mappings): Don't output
3439 null pathname in warning.
3440
3441 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3442
3443 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3444 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3445 gdb.dwarf2/dw2-single-line-discriminators.exp,
3446 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3447
3448 2020-08-05 Tom Tromey <tromey@adacore.com>
3449
3450 PR rust/26197:
3451 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3452 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3453 Fix off-by-one and type size errors in ordinary case.
3454
3455 2020-08-05 Tom de Vries <tdevries@suse.de>
3456
3457 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3458 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3459
3460 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3461
3462 * frame.h (frame_id_p): Return bool.
3463 (frame_id_artificial_p): Return bool.
3464 (frame_id_eq): Return bool.
3465 (has_stack_frames): Return bool.
3466 (get_selected_frame): Fix typo in comment.
3467 (get_frame_pc_if_available): Return bool.
3468 (get_frame_address_in_block_if_available): Return bool.
3469 (get_frame_func_if_available): Return bool.
3470 (read_frame_register_unsigned): Return bool.
3471 (get_frame_register_bytes): Return bool.
3472 (safe_frame_unwind_memory): Return bool.
3473 (deprecated_frame_register_read): Return bool.
3474 (frame_unwinder_is): Return bool.
3475 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3476 bool.
3477 <this_id::p>: Likewise.
3478 <prev_p>: Likewise.
3479 (frame_stash_add): Return bool.
3480 (get_frame_id): Use bool.
3481 (frame_id_build_special) Use bool.
3482 (frame_id_build_unavailable_stack): Use bool.
3483 (frame_id_build): Use bool.
3484 (frame_id_p): Return bool, use true/false instead of 1/0.
3485 (frame_id_artificial_p): Likewise.
3486 (frame_id_eq): Likewise.
3487 (frame_id_inner): Likewise.
3488 (get_frame_func_if_available): Likewise.
3489 (read_frame_register_unsigned): Likewise.
3490 (deprecated_frame_register_read): Likewise.
3491 (get_frame_register_bytes): Likewise.
3492 (has_stack_frames): Likewise.
3493 (inside_main_func): Likewise.
3494 (inside_entry_func): Likewise.
3495 (get_frame_pc_if_available): Likewise.
3496 (get_frame_address_in_block_if_available): Likewise.
3497 (frame_unwinder_is): Likewise.
3498 (safe_frame_unwind_memory): Likewise.
3499 (frame_unwind_arch): Likewise.
3500
3501 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3504 type to cached_copy_status.
3505 (fprintf_frame): Adjust.
3506 (get_frame_func_if_available): Adjust.
3507 (frame_cleanup_after_sniffer): Adjust.
3508
3509 2020-08-04 Mark Wielaard <mark@klomp.org>
3510
3511 * MAINTAINERS (Write After Approval): Update email address.
3512
3513 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3516 dynamic_prop::const_val.
3517
3518 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3521 dynamic_prop::kind.
3522
3523 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3524
3525 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3526
3527 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3528
3529 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3530
3531 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3532 Jose E. Marchesi <jose.marchesi@oracle.com>
3533
3534 * configure.tgt: Add entry for bpf-*-*.
3535 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3536 (ALLDEPFILES): Add bpf-tdep.c.
3537 * bpf-tdep.c: New file.
3538 * MAINTAINERS: Add bpf target and maintainer.
3539 * NEWS: Mention the support for the new target.
3540
3541 2020-08-04 Tom de Vries <tdevries@suse.de>
3542
3543 PR symtab/23270
3544 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3545 Error.
3546
3547 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3548
3549 * syscalls/freebsd.xml: Regenerate.
3550
3551 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3552
3553 * syscalls/update-freebsd.sh: Fix usage and year range.
3554
3555 2020-08-03 Tom de Vries <tdevries@suse.de>
3556
3557 PR symtab/26333
3558 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3559 DW_LNE_lo_user/DW_LNE_hi_user range.
3560
3561 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3562
3563 PR ada/26318
3564 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3565 kind.
3566
3567 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3568
3569 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3570
3571 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3572
3573 * breakpoint.c (set_breakpoint_condition): Update the condition
3574 expressions after checking that the input condition string parses
3575 successfully and does not contain junk at the end.
3576
3577 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3578
3579 * breakpoint.c (set_breakpoint_condition): Update the
3580 condition string after parsing the new condition successfully.
3581
3582 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3583
3584 * proc-api.c (_STRUCTURED_PROC): Don't define.
3585 * proc-events.c: Likewise.
3586 * proc-flags.c: Likewise.
3587 * proc-why.c: Likewise.
3588 * procfs.c: Likewise.
3589
3590 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3591 * configure, config.in: Regenerate.
3592
3593 2020-07-30 Tom de Vries <tdevries@suse.de>
3594
3595 PR build/26320
3596 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3597 m_red/m_green/m_blue in a union.
3598
3599 2020-07-29 Tom de Vries <tdevries@suse.de>
3600
3601 PR tdep/26280
3602 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3603
3604 2020-07-28 Tom Tromey <tromey@adacore.com>
3605
3606 PR symtab/26270:
3607 * symtab.h (find_pc_partial_function_sym): Declare.
3608 * cli/cli-cmds.c (disassemble_command): Use
3609 find_pc_partial_function_sym. Check asm_demangle.
3610 * blockframe.c (cache_pc_function_sym): New global.
3611 (cache_pc_function_name): Remove.
3612 (clear_pc_function_cache): Update.
3613 (find_pc_partial_function_sym): New function, from
3614 find_pc_partial_function.
3615 (find_pc_partial_function): Rewrite using
3616 find_pc_partial_function_sym.
3617
3618 2020-07-28 Tom Tromey <tromey@adacore.com>
3619
3620 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3621 help. Add usage.
3622
3623 2020-07-28 Tom Tromey <tromey@adacore.com>
3624
3625 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3626 <DW_OP_GNU_variable_value>: Cast to address type.
3627
3628 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3629
3630 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3631 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3632 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3633 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3634 (nbsd_get_siginfo_type): New.
3635 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3636 (_initialize_nbsd_tdep): New.
3637
3638 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3639
3640 PR binutils/26301
3641 * configure: Regenerated.
3642
3643 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3644
3645 PR binutils/26301
3646 * configure: Regenerated.
3647
3648 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * python/py-frame.c: Remove 'user-regs.h' include.
3651 (frapy_read_register): Rewrite to make use of
3652 gdbpy_parse_register_id.
3653 * python/py-registers.c (gdbpy_parse_register_id): New function,
3654 moved here from python/py-unwind.c. Updated the return type, and
3655 also accepts register descriptor objects.
3656 * python/py-unwind.c: Remove 'user-regs.h' include.
3657 (pyuw_parse_register_id): Moved to python/py-registers.c.
3658 (unwind_infopy_add_saved_register): Update to use
3659 gdbpy_parse_register_id.
3660 (pending_framepy_read_register): Likewise.
3661 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3662
3663 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3664
3665 * python/py-registers.c: Add 'user-regs.h' include.
3666 (register_descriptor_iter_find): New function.
3667 (register_descriptor_iterator_object_methods): New static global
3668 methods array.
3669 (register_descriptor_iterator_object_type): Add pointer to methods
3670 array.
3671
3672 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3673
3674 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3675 for all architectures on FreeBSD 11.3 and later.
3676
3677 2020-07-27 Tom Tromey <tromey@adacore.com>
3678
3679 * gcore.h (load_corefile): Don't declare.
3680
3681 2020-07-27 Tom de Vries <tdevries@suse.de>
3682
3683 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3684 * config.in: Regenerate.
3685 * configure: Regenerate.
3686
3687 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3688
3689 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3690 ws2tcpip.h. When checking whether socklen_t type is defined, use
3691 ws2tcpip.h if it is available and sys/socket.h isn't.
3692 * configure: Regenerate.
3693 * config.in: Regenerate.
3694
3695 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3696
3697 PR fortran/23051
3698 PR fortran/26139
3699 * valops.c (value_ind): Pass address to
3700 readjust_indirect_value_type.
3701 * value.c (readjust_indirect_value_type): Make parameter
3702 non-const, and add extra address parameter. Resolve original type
3703 before using it.
3704 * value.h (readjust_indirect_value_type): Update function
3705 signature and comment.
3706
3707 2020-07-25 Tom de Vries <tdevries@suse.de>
3708
3709 PR symtab/26243
3710 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3711 entries.
3712
3713 2020-07-24 Aaron Merey <amerey@redhat.com>
3714
3715 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3716 * configure: Rebuild.
3717
3718 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3719
3720 PR corefiles/26294
3721 * corelow.c (_initialize_corelow): Add period to help text
3722 for "maintenance print core-file-backed-mappings".
3723
3724 2020-07-23 Pedro Alves <pedro@palves.net>
3725
3726 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3727 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3728 meanwhile.
3729 * frame.c (frame_cache_generation, get_frame_cache_generation):
3730 New.
3731 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3732 (get_prev_frame_if_no_cycle): On exception, don't touch
3733 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3734 * frame.h (get_frame_cache_generation): Declare.
3735
3736 2020-07-23 Tom de Vries <tdevries@suse.de>
3737
3738 PR tui/26282
3739 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3740 New default constructor.
3741
3742 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3743
3744 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3745 exclude non-statement entries.
3746
3747 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3748
3749 * NEWS (New commands): Mention new command
3750 "maintenance print core-file-backed-mappings".
3751
3752 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3753
3754 * corelow.c (gdbcmd.h): Include.
3755 (core_target::info_proc_mappings): New method.
3756 (get_current_core_target): New function.
3757 (maintenance_print_core_file_backed_mappings): New function.
3758 (_initialize_corelow): Add core-file-backed-mappings to
3759 "maint print" commands.
3760
3761 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3762
3763 * linux-tdep.c (dump_note_entry_p): New function.
3764 (linux_dump_mapping_p_ftype): New typedef.
3765 (linux_find_memory_regions_full): Add new parameter,
3766 should_dump_mapping_p.
3767 (linux_find_memory_regions): Adjust call to
3768 linux_find_memory_regions_full.
3769 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3770 call to linux_find_memory_regions_full.
3771
3772 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3773
3774 * corelow.c (solist.h, unordered_map): Include.
3775 (class core_target): Add field m_core_file_mappings and
3776 method build_file_mappings.
3777 (core_target::core_target): Call build_file_mappings.
3778 (core_target::~core_target): Free memory associated with
3779 m_core_file_mappings.
3780 (core_target::build_file_mappings): New method.
3781 (core_target::xfer_partial): Use m_core_file_mappings
3782 for memory transfers.
3783 * linux-tdep.c (linux_read_core_file_mappings): New
3784 function.
3785 (linux_core_info_proc_mappings): Rewrite to use
3786 linux_read_core_file_mappings.
3787 (linux_init_abi): Register linux_read_core_file_mappings.
3788
3789 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3790
3791 * arch-utils.c (default_read_core_file_mappings): New function.
3792 * arch-utils.c (default_read_core_file_mappings): Declare.
3793 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3794 * gdbarch.h, gdbarch.c: Regenerate.
3795
3796 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3797
3798 PR corefiles/25631
3799 * corelow.c (core_target:xfer_partial): Revise
3800 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3801 case after first checking the stratum beneath the core
3802 target.
3803 (has_all_memory): Return true.
3804 * target.c (raw_memory_xfer_partial): Revise comment
3805 regarding use of has_all_memory.
3806
3807 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3808
3809 * exec.h (section_table_xfer_memory): Revise declaration,
3810 replacing section name parameter with an optional callback
3811 predicate.
3812 * exec.c (section_table_xfer_memory): Likewise.
3813 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3814 of section_table_xfer_memory.
3815
3816 2020-07-22 Tom Tromey <tromey@adacore.com>
3817
3818 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3819 lookup_symbol_search_name.
3820
3821 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3822
3823 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3824 redundant local variable.
3825 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3826 reference, not pointer, update code accordingly.
3827
3828 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3829 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3830
3831 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3832 * jit.c (jit_breakpoint_re_set_internal): Use the
3833 `skip_jit_symbol_lookup` field.
3834
3835 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3836 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3837
3838 * jit.c (jit_read_descriptor): Define the descriptor address once,
3839 use twice.
3840 (jit_breakpoint_deleted): Move the declaration of the loop variable
3841 `iter` into the loop header.
3842 (jit_breakpoint_re_set_internal): Move the declaration of the local
3843 variable `objf_data` to the first point of definition.
3844 (jit_event_handler): Move the declaration of local variables
3845 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3846 Rename `objf` to `jited`.
3847
3848 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3849
3850 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3851 Remove.
3852 * jit.c (get_jiter_objfile_data): Update.
3853
3854 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3855 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * jit.c (struct jit_program_space_data): Remove.
3858 (jit_program_space_key): Remove.
3859 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3860 stuff.
3861 (get_jit_program_space_data): Remove.
3862 (jit_breakpoint_deleted): Iterate on all of the program space's
3863 objfiles.
3864 (jit_inferior_init): Likewise.
3865 (jit_breakpoint_re_set_internal): Likewise. Also change return
3866 type to void.
3867 (jit_breakpoint_re_set): Pass current_program_space to
3868 jit_breakpoint_re_set_internal.
3869
3870 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * jit.h (struct jiter_objfile_data) <cached_code_address,
3873 jit_breakpoint>: Move to here from ...
3874 * jit.c (jit_program_space_data): ... here.
3875 (jiter_objfile_data::~jiter_objfile_data): Update.
3876 (jit_breakpoint_deleted): Update.
3877 (jit_breakpoint_re_set_internal): Update.
3878
3879 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3880
3881 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3882 checks.
3883 (jit_read_descriptor): Remove NULL check.
3884 (jit_event_handler): Add an assertion.
3885
3886 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3887
3888 * jit.h (struct jit_objfile_data): Split into...
3889 (struct jiter_objfile_data): ... this ...
3890 (struct jited_objfile_data): ... and this.
3891 * objfiles.h (struct objfile) <jit_data>: Remove.
3892 <jiter_data, jited_data>: New fields.
3893 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3894 (jiter_objfile_data::~jiter_objfile_data): ... this.
3895 (get_jit_objfile_data): Rename to ...
3896 (get_jiter_objfile_data): ... this.
3897 (add_objfile_entry): Update.
3898 (jit_read_descriptor): Use get_jiter_objfile_data.
3899 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3900 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3901 (jit_inferior_exit_hook): Use objfile's jited_data field.
3902
3903 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3904
3905 * jit.h: Forward-declare `struct minimal_symbol`.
3906 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3907 constructor, destructor, and an objfile* field.
3908 * jit.c (jit_objfile_data): Remove.
3909 (struct jit_objfile_data): Migrate from here to jit.h.
3910 (jit_objfile_data::~jit_objfile_data): New destructor
3911 implementation with code moved from free_objfile_data.
3912 (free_objfile_data): Delete.
3913 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3914 (jit_find_objf_with_entry_addr): Ditto.
3915 (jit_inferior_exit_hook): Ditto.
3916 (_initialize_jit): Remove the call to
3917 register_objfile_data_with_cleanup.
3918 * objfiles.h (struct objfile) <jit_data>: New field.
3919
3920 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3921
3922 * jit.h: Forward-declare `struct objfile`.
3923 (jit_event_handler): Add a second parameter, the JITer objfile.
3924 * jit.c (jit_read_descriptor): Change the signature to take the
3925 JITer objfile as an argument instead of the jit_program_space_data.
3926 (jit_inferior_init): Update the call to jit_read_descriptor.
3927 (jit_event_handler): Use the new JITer objfile argument when calling
3928 jit_read_descriptor.
3929 * breakpoint.c (handle_jit_event): Update the call to
3930 jit_event_handler to pass the JITer objfile.
3931
3932 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3933
3934 * gdbarch.c: Regenerate.
3935 * gdbarch.h: Regenerate.
3936 * gdbarch.sh (handle_segmentation_fault): Remove method.
3937 * infrun.c (handle_segmentation_fault): Remove.
3938 (print_signal_received_reason): Remove call to
3939 handle_segmentation_fault.
3940
3941 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3942
3943 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3944 Rename to sparc64_linux_report_signal_info and add siggnal
3945 argument.
3946 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3947 instead of sparc64_linux_handle_segmentation_fault.
3948
3949 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3950
3951 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3952 i386_linux_report_signal_info instead of
3953 i386_linux_handle_segmentation_fault.
3954 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3955 to i386_linux_report_signal_info and add siggnal argument.
3956 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3957 of i386_linux_handle_segmentation_fault.
3958 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3959 to i386_linux_report_signal_info and add siggnal argument.
3960
3961 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3962
3963 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3964 hook if present.
3965
3966 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3967
3968 * gdbarch.c: Regenerate.
3969 * gdbarch.h: Regenerate.
3970 * gdbarch.sh (report_signal_info): New method.
3971 * infrun.c (print_signal_received_reason): Invoke gdbarch
3972 report_signal_info hook if present.
3973
3974 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * python/py-registers.c : Add 'unordered_map' include.
3977 (gdbpy_new_reggroup): Renamed to...
3978 (gdbpy_get_reggroup): ...this. Update to only create register
3979 group descriptors when needed.
3980 (gdbpy_reggroup_iter_next): Update.
3981
3982 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * python/py-registers.c (gdbpy_register_object_data): New static
3985 global.
3986 (gdbpy_register_object_data_init): New function.
3987 (gdbpy_new_register_descriptor): Renamed to...
3988 (gdbpy_get_register_descriptor): ...this, and update to reuse
3989 existing register descriptors where possible.
3990 (gdbpy_register_descriptor_iter_next): Update.
3991 (gdbpy_initialize_registers): Register new gdbarch data.
3992
3993 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3994
3995 * linux-nat.c (stopped_pids): Make static.
3996
3997 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3998
3999 PR ada/26235
4000 * gdbtypes.c (ada_discrete_type_low_bound,
4001 ada_discrete_type_high_bound): Handle undefined bounds.
4002
4003 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4004
4005 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4006 declaration.
4007 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4008 function.
4009
4010 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4011
4012 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4013 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4014 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4015 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4016 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4017 method.
4018
4019 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4020
4021 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4022 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4023 which are deprecated in Guile 3.0.
4024 * configure.ac (try_guile_versions): Add "guile-3.0".
4025 * configure (try_guile_versions): Regenerate.
4026 * NEWS: Update entry.
4027
4028 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4029 Doug Evans <dje@google.com>
4030
4031 PR gdb/21104
4032 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4033 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4034 USING_GUILE_BEFORE_2_2.
4035 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4036 Change type to 'scm_t_port_type *'.
4037 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4038 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4039 parameter and honor it. Update callers.
4040 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4041 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4042 functions.
4043 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4044 USING_GUILE_BEFORE_2_2.
4045 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4046 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4047 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4048 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4049 and 'SCM_PORT_TYPE'.
4050 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4051 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4052 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4053 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4054 [!USING_GUILE_BEFORE_2_2]: New functions.
4055 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4056 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4057 'gdbscm_memory_port_read'.
4058 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4059 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4060 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4061 function.
4062 (ioscm_init_memory_port): Remove.
4063 (ioscm_init_memory_port_stream): New function
4064 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4065 function.
4066 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4067 Return scm_from_uint (0).
4068 (gdbscm_set_memory_port_read_buffer_size_x)
4069 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4070 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4071 Return scm_from_uint (0).
4072 (gdbscm_set_memory_port_write_buffer_size_x)
4073 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4074 * configure.ac (try_guile_versions): Add "guile-2.2".
4075 * configure: Regenerate.
4076 * NEWS: Add entry.
4077
4078 2020-07-18 Tom Tromey <tom@tromey.com>
4079
4080 * linux-nat.c (linux_multi_process): Remove.
4081 (linux_nat_target::supports_multi_process): Return true.
4082
4083 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4086 (riscv_lookup_target_description): Return pointer out of
4087 unique_ptr.
4088 * target-descriptions.c (allocate_target_description): Add
4089 comment.
4090 (target_desc_deleter::operator()): Likewise.
4091 * target-descriptions.h (struct target_desc_deleter): Moved to
4092 gdbsupport/tdesc.h.
4093 (target_desc_up): Likewise.
4094
4095 2020-07-17 Tom Tromey <tromey@adacore.com>
4096
4097 * linux-nat.c (linux_nat_target::supports_non_stop)
4098 (linux_nat_target::always_non_stop_p): Use "true".
4099 (linux_nat_target::supports_disable_randomization): Use "true" and
4100 "false".
4101
4102 2020-07-16 Caroline Tice <cmtice@google.com>
4103
4104 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4105 (RNGLIST_HEADER_SIZE64): New constant definition.
4106 (struct dwop_section_names): Add rnglists_dwo.
4107 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4108 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4109 (struct dwo_sections): Add rnglists field.
4110 (read_attribut_reprocess): Add tag parameter.
4111 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4112 (cu_debug_rnglists_section): New function (decl & definition).
4113 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4114 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4115 die whose range is being checked; get rnglist section from
4116 cu_debug_rnglists_section, to get from either objfile or dwo file as
4117 appropriate. Add cases for DW_RLE_base_addressx,
4118 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4119 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4120 test inside if-condition and updating complaint message.
4121 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4122 dwarf2_rnglists_process.
4123 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4124 dwarf2_ranges_process.
4125 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4126 need_ranges_base and update comment appropriately. Also pass die tag
4127 to dwarf2_ranges_read.
4128 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4129 need_ranges_base and update comment appropriately. Also pass die tag
4130 to dwarf2_ranges_process.
4131 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4132 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4133 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4134 need_ranges_base and update comment appropriately. Also pass die tag
4135 to read_attribute_reprocess and dwarf2_ranges_read.
4136 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4137 and update function comment appropriately.
4138 (read_loclist_index): Call read_loclists_rnglists_header instead of
4139 read_loclist_header.
4140 (read_rnglist_index): New function.
4141 (read_attribute_reprocess): Add tag parameter. Add code for
4142 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4143 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4144
4145 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4148 being resolved.
4149
4150 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4151
4152 * arch-utils.c (show_architecture): Update formatting of messages.
4153
4154 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * gdbtypes.h (struct type) <bounds>: Handle array and string
4157 types.
4158 * ada-lang.c (assign_aggregate): Use type::bounds on
4159 array/string type.
4160 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4161 * c-varobj.c (c_number_of_children): Likewise.
4162 (c_describe_child): Likewise.
4163 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4164 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4165 (f_type_print_base): Likewise.
4166 * f-valprint.c (f77_array_offset_tbl): Likewise.
4167 (f77_get_upperbound): Likewise.
4168 (f77_print_array_1): Likewise.
4169 * guile/scm-type.c (gdbscm_type_range): Likewise.
4170 * m2-typeprint.c (m2_array): Likewise.
4171 (m2_is_long_set_of_type): Likewise.
4172 * m2-valprint.c (get_long_set_bounds): Likewise.
4173 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4174 * python/py-type.c (typy_range): Likewise.
4175 * rust-lang.c (rust_internal_print_type): Likewise.
4176 * type-stack.c (type_stack::follow_types): Likewise.
4177 * valarith.c (value_subscripted_rvalue): Likewise.
4178 * valops.c (value_cast): Likewise.
4179
4180 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4181
4182 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4183 callers to use the equivalent accessor methods.
4184
4185 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4188 (struct type) <bit_stride>: New method.
4189 (TYPE_BIT_STRIDE): Remove.
4190 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4191
4192 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4195 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4196 callers to use the equivalent accessor methods instead.
4197
4198 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4201 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4202 callers to use the equivalent accessor methods instead.
4203
4204 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4205
4206 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4207 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4208 to use dynamic_prop::kind.
4209
4210 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4213 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4214 to get the bound property's kind and check against
4215 PROP_UNDEFINED.
4216
4217 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4220 all callers to use type::range_bounds followed by
4221 dynamic_prop::{low,high}.
4222
4223 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4224
4225 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4226 const_val, set_const_val, baton, set_locexpr, set_loclist,
4227 set_addr_offset, variant_parts, set_variant_parts,
4228 original_type, set_original_type>: New methods.
4229 <kind>: Rename to...
4230 <m_kind>: ... this. Update all users to use the new methods
4231 instead.
4232 <data>: Rename to...
4233 <m_data>: ... this. Update all users to use the new methods
4234 instead.
4235
4236 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4237
4238 * gdbtypes.c (get_discrete_bounds): Return failure if
4239 the range type's bounds are not both defined and constant
4240 values.
4241 (get_array_bounds): Update comment. Remove undefined bound check.
4242
4243 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4244
4245 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4246 the type::bounds method directly.
4247
4248 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4251 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4252 are used to set the range type's bounds to use set_bounds.
4253
4254 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4255
4256 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4257
4258 2020-07-10 Pedro Alves <pedro@palves.net>
4259
4260 * gdbthread.h (inferior_ref): Define.
4261 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4262 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4263 * thread.c
4264 (scoped_restore_current_thread::restore):
4265 Adjust to gdb::ref_ptr.
4266 (scoped_restore_current_thread::~scoped_restore_current_thread):
4267 Remove manual decref handling.
4268 (scoped_restore_current_thread::scoped_restore_current_thread):
4269 Adjust to use
4270 inferior_ref::new_reference/thread_info_ref::new_reference.
4271 Incref the thread before calling get_frame_id instead of after.
4272 Let TARGET_CLOSE_ERROR propagate.
4273
4274 2020-07-10 Pedro Alves <pedro@palves.net>
4275
4276 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4277 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4278 NOT_AVAILABLE_ERROR.
4279 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4280 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4281
4282 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4283 Pedro Alves <pedro@palves.net>
4284
4285 PR gdb/26199
4286 * infrun.c (threads_are_resumed_pending_p): Delete.
4287 (do_target_wait): Remove threads_are_executing and
4288 threads_are_resumed_pending_p checks from the inferior_matches
4289 lambda. Update comments.
4290
4291 2020-07-10 Pedro Alves <pedro@palves.net>
4292
4293 PR gdb/26199
4294 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4295 executing threads.
4296
4297 2020-07-10 Pedro Alves <pedro@palves.net>
4298
4299 PR gdb/26199
4300 * infrun.c (handle_no_resumed): Handle multiple targets.
4301
4302 2020-07-10 Pedro Alves <pedro@palves.net>
4303
4304 PR gdb/26199
4305 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4306 target_is_async_p.
4307
4308 2020-07-10 Pedro Alves <pedro@palves.net>
4309
4310 PR gdb/26199
4311 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4312 threads, not all threads.
4313
4314 2020-07-10 Pedro Alves <pedro@palves.net>
4315
4316 PR gdb/26199
4317 * remote.c (remote_target::open_1): Pass remote target pointer as
4318 data to create_async_event_handler.
4319 (remote_async_inferior_event_handler): Mark async event handler
4320 before returning if the remote target still has either pending
4321 events or unacknowledged notifications.
4322
4323 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4324
4325 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4326 declaration.
4327 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4328 function.
4329
4330 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4331
4332 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4333 inferior_ptid.
4334
4335 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4336
4337 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4338 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4339 AT_FREEBSD_PS_STRINGS.
4340
4341 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4342
4343 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4344 of debugfile path on Windows.
4345
4346 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4347
4348 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4349 argument to 'data'.
4350
4351 2020-07-08 Tom Tromey <tromey@adacore.com>
4352
4353 * ada-lang.c (ada_exception_message_1): Use read_memory.
4354
4355 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 PR python/22748
4358 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4359 special handling for inline frames.
4360 * findvar.c (value_of_register_lazy): Skip inline frames when
4361 creating lazy register values.
4362 * frame.c (frame_id_computed_p): Delete definition.
4363 * frame.h (frame_id_computed_p): Delete declaration.
4364
4365 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4366
4367 * NEWS: Mention additions to Python API.
4368 * python/py-arch.c (archpy_register_groups): New function.
4369 (arch_object_methods): Add 'register_groups' method.
4370 * python/py-registers.c (reggroup_iterator_object): New struct.
4371 (reggroup_object): New struct.
4372 (gdbpy_new_reggroup): New function.
4373 (gdbpy_reggroup_to_string): New function.
4374 (gdbpy_reggroup_name): New function.
4375 (gdbpy_reggroup_iter): New function.
4376 (gdbpy_reggroup_iter_next): New function.
4377 (gdbpy_new_reggroup_iterator): New function
4378 (gdbpy_initialize_registers): Register new types.
4379 (reggroup_iterator_object_type): Define new Python type.
4380 (gdbpy_reggroup_getset): New static global.
4381 (reggroup_object_type): Define new Python type.
4382 * python/python-internal.h
4383
4384 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4387 * python/py-arch.c (archpy_registers): New function.
4388 (arch_object_methods): Add 'registers' method.
4389 * python/py-registers.c: New file.
4390 * python/python-internal.h
4391 (gdbpy_new_register_descriptor_iterator): Declare.
4392 (gdbpy_initialize_registers): Declare.
4393 * python/python.c (do_start_initialization): Call
4394 gdbpy_initialize_registers.
4395 * NEWS: Mention additions to the Python API.
4396
4397 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4398
4399 * NEWS: Mention new Python API method.
4400 * python/py-unwind.c (pending_framepy_architecture): New function.
4401 (pending_frame_object_methods): Add architecture method.
4402
4403 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4404
4405 * gdbarch.c: Regenerate.
4406 * gdbarch.h: Regenerate.
4407 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4408 (gdbarch_data): Use internal_error for the case where
4409 deprecated_set_gdbarch_data was originally needed.
4410 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4411 and use passed in obstack.
4412 (libunwind_frame_set_descr): Should no longer get back NULL from
4413 gdbarch_data.
4414 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4415 type.
4416 * user-regs.c (user_regs_init): Update parameters, and use passed
4417 in obstack.
4418 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4419 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4420
4421 2020-07-06 Tom de Vries <tdevries@suse.de>
4422
4423 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4424 End-Of-Sequence in lte_is_less_than.
4425 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4426 "gdb: Don't reorder line table entries too much when sorting".
4427
4428 2020-07-06 Tom de Vries <tdevries@suse.de>
4429
4430 PR tui/26205
4431 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4432
4433 2020-07-05 Tom de Vries <tdevries@suse.de>
4434
4435 PR build/26187
4436 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4437 std::uncaught_exceptions instead of deprecated
4438 std::uncaught_exception.
4439
4440 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4441
4442 * macroexp.h (macro_stringify): Return
4443 gdb::unique_xmalloc_ptr<char>.
4444 * macroexp.c (macro_stringify): Likewise.
4445 * macrotab.c (fixup_definition): Update.
4446
4447 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4448
4449 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4450 (lex_one_token): Update.
4451 * macroexp.c (struct macro_buffer) <release>: Return
4452 gdb::unique_xmalloc_ptr<char>.
4453 (macro_stringify): Update.
4454 (macro_expand): Update.
4455 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4456 * macroexp.h (macro_expand_next): Likewise.
4457
4458 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * macroexp.h (macro_lookup_ftype): Remove.
4461 (macro_expand, macro_expand_once, macro_expand_next): Remove
4462 lookup function parameters, add scope parameter.
4463 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4464 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4465 * macroscope.h (standard_macro_lookup): Change parameter type
4466 to macro_scope.
4467 * macroscope.c (standard_macro_lookup): Likewise.
4468 * c-exp.y (lex_one_token): Update.
4469 * macrocmd.c (macro_expand_command): Likewise.
4470 (macro_expand_once_command): Likewise.
4471
4472 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4473
4474 * inf-loop.c (inferior_event_handler): Remove client_data param.
4475 * inf-loop.h (inferior_event_handler): Likewise.
4476 * infcmd.c (step_1): Adjust.
4477 * infrun.c (proceed): Adjust.
4478 (fetch_inferior_event): Remove client_data param.
4479 (infrun_async_inferior_event_handler): Adjust.
4480 * infrun.h (fetch_inferior_event): Remove `void *` param.
4481 * linux-nat.c (handle_target_event): Adjust.
4482 * record-btrace.c (record_btrace_handle_async_inferior_event):
4483 Adjust.
4484 * record-full.c (record_full_async_inferior_event_handler):
4485 Adjust.
4486 * remote.c (remote_async_inferior_event_handler): Adjust.
4487
4488 2020-07-01 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4491 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4492
4493 2020-07-01 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4496 tui_gen_win_info.
4497 (tui_win_info::make_window): Merge with
4498 tui_gen_win_info::make_window.
4499 (tui_win_info::make_visible): Move from tui_gen_win_info.
4500 * tui/tui-win.c (tui_win_info::max_width): Move from
4501 tui_gen_win_info.
4502 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4503 type.
4504 <window_factory>: Likewise.
4505 * tui/tui-layout.c (tui_win_info::resize): Move from
4506 tui_gen_win_info.
4507 (make_standard_window): Change return type.
4508 (get_locator_window, tui_get_window_by_name): Likewise.
4509 (tui_layout_window::apply): Remove a cast.
4510 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4511 (struct tui_win_info): Merge with tui_gen_win_info.
4512 (struct tui_gen_win_info): Remove.
4513
4514 2020-07-01 Tom Tromey <tom@tromey.com>
4515
4516 * tui/tui-stack.h (struct tui_locator_window): Derive from
4517 tui_win_info.
4518 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4519 <can_box>: New method.
4520
4521 2020-07-01 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4524
4525 2020-07-01 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-regs.c (tui_data_window::display_registers_from)
4528 (tui_data_window::display_registers_from)
4529 (tui_data_window::first_data_item_displayed)
4530 (tui_data_window::delete_data_content_windows): Update.
4531 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4532 Remove.
4533 (tui_data_window::check_register_values): Update.
4534 (tui_data_item_window::rerender): Add parameters. Update.
4535 (tui_data_item_window::refresh_window): Remove.
4536 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4537 virtual.
4538 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4539 tui_gen_win_info.
4540 <refresh_window, max_height, min_height>: Remove.
4541 <rerender>: Add parameters.
4542 <x, y, visible>: New members.
4543 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4544 <m_item_width>: New member.
4545
4546 2020-07-01 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-regs.c (tui_data_window::show_register_group)
4549 (tui_data_window::check_register_values): Update.
4550 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4551 from item_no.
4552
4553 2020-07-01 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4556 useless "if".
4557
4558 2020-07-01 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4561 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4562
4563 2020-07-01 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4566 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4567 (struct tui_line_or_address): Move from tui-data.h.
4568 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4569 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4570 (tui_cmd_window, tui_source_window_base, tui_source_window)
4571 (tui_disasm_window): Don't declare.
4572 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4573 to tui-winsource.h.
4574 (SINGLE_KEY): Move to tui-stack.c.
4575
4576 2020-07-01 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4579 std::string.
4580 * tui/tui-regs.c (class tab_expansion_file): New.
4581 (tab_expansion_file::write): New method.
4582 (tui_register_format): Change return type. Use
4583 tab_expansion_file.
4584 (tui_get_register, tui_data_window::display_registers_from)
4585 (tui_data_item_window::rerender): Update.
4586 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4587 * tui/tui-io.c (tui_expand_tabs): Remove.
4588
4589 2020-07-01 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4592
4593 2020-07-01 Fangrui Song <maskray@google.com>
4594
4595 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4596
4597 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4598
4599 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4600 forms for DW_AT_associated and DW_AT_allocated attributes,
4601 which is already checked in function attr_to_dynamic_prop.
4602
4603 2020-06-30 Tom Tromey <tromey@adacore.com>
4604
4605 * dwarf2/read.c (quirk_rust_enum): Correctly call
4606 alloc_rust_variant for default-less enum.
4607
4608 2020-06-30 Tom Tromey <tromey@adacore.com>
4609
4610 PR build/26183:
4611 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4612 gdb::to_string.
4613
4614 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4617 * gdbarch.h: Re-generate.
4618
4619 2020-06-28 Tom Tromey <tom@tromey.com>
4620
4621 * command.h (cmd_types): Remove.
4622 (cmd_type): Don't declare.
4623 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4624 typedef.
4625 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4626 * cli/cli-decode.c (cmd_type): Remove.
4627
4628 2020-06-27 Pedro Alves <palves@redhat.com>
4629
4630 * fork-child.c (prefork_hook): Adjust.
4631 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4632 Delete.
4633 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4634 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4635 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4636 Remove declarations.
4637 (struct inferior) <set_tty, tty>: New methods.
4638 (struct inferior) <terminal>: Rename to ...
4639 (struct inferior) <m_terminal>: ... this and make private.
4640 * main.c (captured_main_1): Adjust.
4641 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4642 (mi_cmd_inferior_tty_show): Adjust.
4643 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4644 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4645
4646 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4647
4648 * configure.ac: Add --enable-libctf: handle --disable-static
4649 properly.
4650 * acinclude.m4: sinclude ../config/enable.m4.
4651 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4652 (LIBCTF): Substitute in.
4653 (CTF_DEPS): New, likewise.
4654 (CLIBS): libctf needs symbols from libbfd: move earlier.
4655 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4656 flags.
4657 * ctfread.c: Surround in ENABLE_LIBCTF.
4658 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4659 * configure: Regenerate.
4660 * config.in: Likewise.
4661
4662 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4665
4666 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * inferior.h (struct inferior) <terminal>: Change type to
4669 gdb::unique_xmalloc_ptr<char>.
4670 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4671 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4672 field, adjust to unique pointer.
4673 (get_inferior_io_terminal): Adjust to unique pointer.
4674
4675 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4678 registers, not just the known core set of registers.
4679
4680 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4683 fflags, frm, and fcsr registers.
4684 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4685 restore groups.
4686 (riscv_tdesc_unknown_reg): New function.
4687 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4688 tdesc_use_registers.
4689 * riscv-tdep.h (struct gdbarch_tdep): Add
4690 unknown_csrs_first_regnum, unknown_csrs_count,
4691 duplicate_fflags_regnum, duplicate_frm_regnum, and
4692 duplicate_fcsr_regnum fields.
4693
4694 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4695
4696 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4697 callback, use the callback (when not null) to help number unknown
4698 registers.
4699 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4700 (tdesc_use_registers): Add extra parameter to declaration.
4701
4702 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4705 in the file.
4706 (class riscv_pending_register_alias): Likewise.
4707 (riscv_register_feature::register_info): Change 'required_p' field
4708 to 'required', and change its type. Add 'check' member function.
4709 (riscv_register_feature::register_info::check): Define new member
4710 function.
4711 (riscv_xreg_feature): Change initialisation of 'required' field.
4712 (riscv_freg_feature): Likewise.
4713 (riscv_virtual_feature): Likewise.
4714 (riscv_csr_feature): Likewise.
4715 (riscv_check_tdesc_feature): Take extra parameter, the csr
4716 tdesc_feature, rewrite the function to use the new
4717 riscv_register_feature::register_info::check function.
4718 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4719
4720 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4721
4722 * features/Makefile: Remove all references to the deleted files
4723 below.
4724 * features/riscv/32bit-csr.c: Deleted.
4725 * features/riscv/32bit-csr.xml: Deleted.
4726 * features/riscv/64bit-csr.c: Deleted.
4727 * features/riscv/64bit-csr.xml: Deleted.
4728 * features/riscv/rebuild-csr-xml.sh: Deleted.
4729
4730 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4733 whitespace error for declaration of names member variable.
4734 (struct riscv_register_feature): Add new prefer_first_name member
4735 variable, and fix whitespace error in declaration of registers.
4736 (riscv_xreg_feature): Initialize prefer_first_name field.
4737 (riscv_freg_feature): Likewise.
4738 (riscv_virtual_feature): Likewise.
4739 (riscv_csr_feature): Likewise.
4740 (riscv_register_name): Expand on comments. Remove register name
4741 modifications for CSR and virtual registers.
4742
4743 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4746 errors.
4747
4748 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4751 riscv-opc.h.
4752 (class riscv_pending_register_alias): New class.
4753 (riscv_check_tdesc_feature): Take vector of pending aliases and
4754 populate it as appropriate.
4755 (riscv_setup_register_aliases): Delete.
4756 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4757 to riscv_check_tdesc_feature in all cases. Use the vector to
4758 create the register aliases.
4759
4760 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4761
4762 * sol2-tdep.c (sol2_static_transform_name): Remove.
4763 (sol2_init_abi): Don't register it.
4764 * gdbarch.sh (static_transform_name): Remove.
4765 * gdbarch.c, gdbarch.h: Regenerate.
4766
4767 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4768 gdbarch_static_transform_name.
4769 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4770 * stabsread.c (define_symbol) <'X'>: Remove.
4771 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4772 handling.
4773 <'V'>: Likewise.
4774 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4775 <'S'>: Remove call to gdbarch_static_transform_name.
4776
4777 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4778
4779 * procfs.c (procfs_pre_trace): New function.
4780 (procfs_target::create_inferior): Pass it to fork_inferior.
4781
4782 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4783
4784 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4785 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4786 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4787 sol2-tdep.o, sparc-sol2-tdep.o.
4788 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4789 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4790 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4791 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4792
4793 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4794
4795 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4796 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4797 Call sol2_init_abi.
4798 Remove calls to set_gdbarch_skip_solib_resolver,
4799 set_gdbarch_core_pid_to_str.
4800 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4801 (i386_sol2_static_transform_name): Remove.
4802 (i386_sol2_init_abi): Call sol2_init_abi.
4803 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4804 set_gdbarch_static_transform_name,
4805 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4806 Use sol2_sigtramp_p.
4807 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4808 (sol2_sigtramp_p): New function.
4809 (sol2_static_transform_name): New function.
4810 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4811 (sol2_init_abi): New function.
4812 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4813 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4814 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4815 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4816 (sparc_sol2_static_transform_name): Remove.
4817 (sparc32_sol2_init_abi): Call sol2_init_abi.
4818 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4819 set_gdbarch_static_transform_name,
4820 set_gdbarch_skip_solib_resolver,
4821 set_gdbarch_core_pid_to_str.
4822 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4823 (sparc_sol2_static_transform_name): Remove
4824 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4825 call sol2_sigtramp_p.
4826 (sparc64_sol2_init_abi): Call sol2_init_abi.
4827 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4828 set_gdbarch_static_transform_name,
4829 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4830
4831 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4832
4833 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4834 * exec.c (validate_exec_file): If from_tty, set both
4835 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4836 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4837 and from_tty, unconditionally ask a confirmation.
4838
4839 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * target-descriptions.c (tdesc_architecture_name): Protect against
4842 NULL pointer dereference.
4843 (maint_print_xml_tdesc_cmd): New function.
4844 (_initialize_target_descriptions): Register new 'maint print
4845 xml-tdesc' command and give it the filename completer.
4846 * NEWS: Mention new 'maint print xml-tdesc' command.
4847
4848 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 * target-descriptions.c (class tdesc_compatible_info): New class.
4851 (struct target_desc): Change type of compatible vector.
4852 (tdesc_compatible_p): Update for change in type of
4853 target_desc::compatible.
4854 (tdesc_compatible_info_list): New function.
4855 (tdesc_compatible_info_arch_name): New function.
4856 (tdesc_add_compatible): Update for change in type of
4857 target_desc::compatible.
4858 (print_c_tdesc::visit_pre): Likewise.
4859
4860 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4861
4862 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4863 whitespace to underscore.
4864 (maint_print_c_tdesc_cmd): Use fake filename for target
4865 descriptions that came from the target.
4866 (_initialize_target_descriptions): Add filename command completion
4867 for 'maint print c-tdesc'.
4868
4869 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4872 lines.
4873
4874 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4877 lines.
4878 (dwarf2_find_location_expression): Likewise.
4879 (call_site_parameter_matches): Likewise.
4880 (dwarf2_compile_expr_to_ax): Likewise.
4881 (disassemble_dwarf_expression): Likewise.
4882 (loclist_describe_location): Likewise.
4883
4884 2020-06-23 Pedro Alves <palves@redhat.com>
4885
4886 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4887 progspace-and-thread.h. Include scoped-mock-context.h instead.
4888 (register_to_value_test): Use scoped_mock_context.
4889 * regcache.c: Include "scoped-mock-context.h".
4890 (cooked_read_test): Don't error out if a target is already pushed.
4891 Use scoped_mock_context. Adjust.
4892 * scoped-mock-context.h: New file.
4893
4894 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4895
4896 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4897 initializer.
4898 (ada_language::is_string_type_p): New member function.
4899 * c-lang.c (c_language_data): Delete la_is_string_type_p
4900 initializer.
4901 (cplus_language_data): Likewise.
4902 (asm_language_data): Likewise.
4903 (minimal_language_data): Likewise.
4904 * d-lang.c (d_language_data): Likewise.
4905 * f-lang.c (f_is_string_type_p): Delete function, implementation
4906 moved to f_language::is_string_type_p.
4907 (f_language_data): Delete la_is_string_type_p initializer.
4908 (f_language::is_string_type_p): New member function,
4909 implementation from f_is_string_type_p.
4910 * go-lang.c (go_is_string_type_p): Delete function, implementation
4911 moved to go_language::is_string_type_p.
4912 (go_language_data): Delete la_is_string_type_p initializer.
4913 (go_language::is_string_type_p): New member function,
4914 implementation from go_is_string_type_p.
4915 * language.c (language_defn::is_string_type_p): Define new member
4916 function.
4917 (default_is_string_type_p): Make static, add comment copied from
4918 header file.
4919 (unknown_language_data): Delete la_is_string_type_p initializer.
4920 (unknown_language::is_string_type_p): New member function.
4921 (auto_language_data): Delete la_is_string_type_p initializer.
4922 (auto_language::is_string_type_p): New member function.
4923 * language.h (language_data): Delete la_is_string_type_p field.
4924 (language_defn::is_string_type_p): Declare new function.
4925 (default_is_string_type_p): Delete desclaration, move comment to
4926 definition.
4927 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4928 moved to m2_language::is_string_type_p.
4929 (m2_language_data): Delete la_is_string_type_p initializer.
4930 (m2_language::is_string_type_p): New member function,
4931 implementation from m2_is_string_type_p.
4932 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4933 initializer.
4934 * opencl-lang.c (opencl_language_data): Likewise.
4935 * p-lang.c (pascal_is_string_type_p): Delete function,
4936 implementation moved to pascal_language::is_string_type_p.
4937 (pascal_language_data): Delete la_is_string_type_p initializer.
4938 (pascal_language::is_string_type_p): New member function,
4939 implementation from pascal_is_string_type_p.
4940 * rust-lang.c (rust_is_string_type_p): Delete function,
4941 implementation moved to rust_language::is_string_type_p.
4942 (rust_language_data): Delete la_is_string_type_p initializer.
4943 (rust_language::is_string_type_p): New member function,
4944 implementation from rust_is_string_type_p.
4945 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4946 is_string_type_p.
4947
4948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4949
4950 * ada-lang.c (ada_language_data): Delete la_print_typedef
4951 initializer.
4952 (ada_language::print_typedef): New member function.
4953 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4954 (cplus_language_data): Likewise.
4955 (asm_language_data): Likewise.
4956 (minimal_language_data): Likewise.
4957 * d-lang.c (d_language_data): Likewise.
4958 * f-lang.c (f_language_data): Likewise.
4959 (f_language::print_typedef): New member function.
4960 * go-lang.c (go_language_data): Delete la_print_typedef
4961 initializer.
4962 * language.c (language_defn::print_typedef): Define member
4963 function.
4964 (unknown_language_data): Delete la_print_typedef initializer.
4965 (unknown_language::print_typedef): New member function.
4966 (auto_language_data): Delete la_print_typedef initializer.
4967 (auto_language::print_typedef): New member function.
4968 * language.h (language_data): Delete la_print_typedef field.
4969 (language_defn::print_typedef): Declare new member function.
4970 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4971 (default_print_typedef): Delete declaration.
4972 * m2-lang.c (m2_language_data): Delete la_print_typedef
4973 initializer.
4974 (m2_language::print_typedef): New member function.
4975 * objc-lang.c (objc_language_data): Delete la_print_typedef
4976 initializer.
4977 * opencl-lang.c (opencl_language_data): Likewise.
4978 * p-lang.c (pascal_language_data): Likewise.
4979 (pascal_language::print_typedef): New member function.
4980 * rust-lang.c (rust_print_typedef): Delete function,
4981 implementation moved to rust_language::print_typedef.
4982 (rust_language): Delete la_print_typedef initializer.
4983 (rust_language::print_typedef): New member function,
4984 implementation from rust_print_typedef.
4985 * typeprint.c (default_print_typedef): Delete.
4986
4987 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4988
4989 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4990 (ada_language::printstr): New member function.
4991 * c-lang.c (c_language_data): Delete la_printstr initializer.
4992 (cplus_language_data): Likewise.
4993 (asm_language_data): Likewise.
4994 (minimal_language_data): Likewise.
4995 * d-lang.c (d_language_data): Likewise.
4996 * f-lang.c (f_printstr): Rename to f_language::printstr.
4997 (f_language_data): Delete la_printstr initializer.
4998 (f_language::printstr): New member function, implementation from
4999 f_printstr.
5000 * go-lang.c (go_language_data): Delete la_printstr initializer.
5001 * language.c (language_defn::printstr): Define new member
5002 function.
5003 (unk_lang_printstr): Delete.
5004 (unknown_language_data): Delete la_printstr initializer.
5005 (unknown_language::printstr): New member function.
5006 (auto_language_data): Delete la_printstr initializer.
5007 (auto_language::printstr): New member function.
5008 * language.h (language_data): Delete la_printstr field.
5009 (language_defn::printstr): Declare new member function.
5010 (LA_PRINT_STRING): Update call to printstr.
5011 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5012 (m2_language_data): Delete la_printstr initializer.
5013 (m2_language::printstr): New member function, implementation from
5014 m2_printstr.
5015 * objc-lang.c (objc_language_data): Delete la_printstr
5016 initializer.
5017 * opencl-lang.c (opencl_language_data): Likewise.
5018 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5019 (pascal_language_data): Delete la_printstr initializer.
5020 (pascal_language::printstr): New member function, implementation
5021 from pascal_printstr.
5022 * p-lang.h (pascal_printstr): Delete declaration.
5023 * rust-lang.c (rust_printstr): Update header comment.
5024 (rust_language_data): Delete la_printstr initializer.
5025 (rust_language::printstr): New member function.
5026
5027 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5030 (ada_language::printchar): New member function.
5031 * c-lang.c (c_language_data): Delete la_printchar initializer.
5032 (cplus_language_data): Likewise.
5033 (asm_language_data): Likewise.
5034 (minimal_language_data): Likewise.
5035 * d-lang.c (d_language_data): Likewise.
5036 * f-lang.c (f_printchar): Rename to f_language::printchar.
5037 (f_language_data): Delete la_printchar initializer.
5038 (f_language::printchar): New member function, implementation from
5039 f_printchar.
5040 * go-lang.c (go_language_data): Delete la_printchar initializer.
5041 * language.c (unk_lang_printchar): Delete.
5042 (language_defn::printchar): Define new member function.
5043 (unknown_language_data): Delete la_printchar initializer.
5044 (unknown_language::printchar): New member function.
5045 (auto_language_data): Delete la_printchar initializer.
5046 (auto_language::printchar): New member function.
5047 * language.h (language_data): Delete la_printchar field.
5048 (language_defn::printchar): Declare new member function.
5049 (LA_PRINT_CHAR): Update call to printchar.
5050 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5051 (m2_language::printchar): New member function.
5052 * objc-lang.c (objc_language_data): Delete la_printchar
5053 initializer.
5054 * opencl-lang.c (opencl_language_data): Likewise.
5055 * p-lang.c (pascal_language_data): Delete la_printchar
5056 initializer.
5057 (pascal_language::printchar): New member function.
5058 * rust-lang.c (rust_printchar): Rename to
5059 rust_language::printchar.
5060 (rust_language_data): Delete la_printchar initializer.
5061 (rust_language::printchar): New member function, implementation
5062 from rust_printchar.
5063
5064 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5065
5066 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5067 (ada_language_data): Delete la_emitchar initializer.
5068 (ada_language::emitchar): New member function, implementation from
5069 emit_char.
5070 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5071 (cplus_language_data): Likewise.
5072 (asm_language_data): Likewise.
5073 (minimal_language_data): Likewise.
5074 * d-lang.c (d_language_data): Likewise.
5075 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5076 (f_language_data): Delete la_emitchar initializer.
5077 (f_language::emitchar): New member function, implementation from
5078 f_emit_char.
5079 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5080 * language.c (unk_lang_emit_char): Delete.
5081 (language_defn::emitchar): New member function definition.
5082 (unknown_language_data): Delete la_emitchar initializer.
5083 (unknown_language::emitchar): New member function.
5084 (auto_language_data): Delete la_emitchar initializer.
5085 (auto_language::emitchar): New member function.
5086 * language.h (language_data): Delete la_emitchar field.
5087 (language_defn::emitchar): New member field declaration.
5088 (LA_EMIT_CHAR): Update call to emitchar.
5089 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5090 (m2_language_data): Delete la_emitchar initializer.
5091 (m2_language::emitchar): New member function, implementation from
5092 m2_emit_char.
5093 * objc-lang.c (objc_language_data): Delete la_emitchar
5094 initializer.
5095 * opencl-lang.c (opencl_language_data): Likewise.
5096 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5097 (pascal_language_data): Delete la_emitchar initializer.
5098 (pascal_language::emitchar): New member function, implementation
5099 from pascal_emit_char.
5100 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5101 (rust_language_data): Delete la_emitchar initializer.
5102 (rust_language::emitchar): New member function, implementation
5103 from rust_emitchar.
5104
5105 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5106
5107 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5108 (ada_language_data): Delete la_post_parser initializer.
5109 (ada_language::post_parser): New member function.
5110 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5111 (cplus_language_data): Likewise.
5112 (asm_language_data): Likewise.
5113 (minimal_language_data): Likewise.
5114 * d-lang.c (d_language_data): Likewise.
5115 * f-lang.c (f_language_data): Likewise.
5116 * go-lang.c (go_language_data): Likewise.
5117 * language.c (unknown_language_data): Likewise.
5118 (auto_language_data): Likewise.
5119 * language.h (language_data): Delete la_post_parser field.
5120 (language_defn::post_parser): New member function.
5121 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5122 * objc-lang.c (objc_language_data): Likewise.
5123 * opencl-lang.c (opencl_language_data): Likewise.
5124 * p-lang.c (pascal_language_data): Likewise.
5125 * parse.c (parse_exp_in_context): Update call to post_parser.
5126 (null_post_parser): Delete definition.
5127 * parser-defs.h (null_post_parser): Delete declaration.
5128 * rust-lang.c (rust_language_data): Delete la_post_parser
5129 initializer.
5130
5131 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5132
5133 * ada-lang.c (parse): Rename to ada_language::parser.
5134 (ada_language_data): Delete la_parser initializer.
5135 (ada_language::parser): New member function, implementation from
5136 parse.
5137 * c-lang.c (c_language_data): Delete la_parser initializer.
5138 (cplus_language_data): Likewise.
5139 (asm_language_data): Likewise.
5140 (minimal_language_data): Likewise.
5141 * d-lang.c (d_language_data): Likewise.
5142 (d_language::parser): New member function.
5143 * f-lang.c (f_language_data): Delete la_parser initializer.
5144 (f_language::parser): New member function.
5145 * go-lang.c (go_language_data): Delete la_parser initializer.
5146 (go_language::parser): New member function.
5147 * language.c (unk_lang_parser): Delete.
5148 (language_defn::parser): Define new member function.
5149 (unknown_language_data): Delete la_parser initializer.
5150 (unknown_language::parser): New member function.
5151 (auto_language_data): Delete la_parser initializer.
5152 (auto_language::parser): New member function.
5153 * language.h (language_data): Delete la_parser field.
5154 (language_defn::parser): Declare new member function.
5155 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5156 (m2_language::parser): New member function.
5157 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5158 * opencl-lang.c (opencl_language_data): Likewise.
5159 * p-lang.c (pascal_language_data): Likewise.
5160 (pascal_language::parser): New member function.
5161 * parse.c (parse_exp_in_context): Update call to parser.
5162 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5163 (rust_language::parser): New member function.
5164
5165 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5166
5167 * top.c (print_gdb_configuration): Print --with-python-libdir
5168 configuration value.
5169
5170 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5171
5172 * NEWS: Mention change to the alias command.
5173
5174 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5175
5176 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5177 (alias_command_completer)
5178 (make_alias_options_def_group): New functions.
5179 (alias_opts, alias_option_defs): New struct and array.
5180 (alias_usage_error): Update usage.
5181 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5182 Use option framework.
5183 (_initialize_cli_cmds): Update alias command help.
5184 Update aliases command help.
5185 (show_user):
5186 Add NULL for new default_args lookup_cmd argument.
5187 (valid_command_p): Rename to validate_aliased_command.
5188 Add NULL for new default_args lookup_cmd argument. Verify that the
5189 aliased_command has no default args.
5190 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5191 (lookup_cmd_1, lookup_cmd): New argument default_args.
5192 (add_alias_cmd):
5193 Add NULL for new default_args lookup_cmd argument.
5194 (print_help_for_command): Show default args under the layout
5195 alias some_alias = some_aliased_cmd some_alias_default_arg.
5196 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5197 xfree default_args in destructor.
5198 * cli/cli-script.c (process_next_line, do_define_command):
5199 Add NULL for new default_args lookup_cmd argument.
5200 * command.h: Declare new default_args argument in lookup_cmd
5201 and lookup_cmd_1.
5202 * completer.c (complete_line_internal_1):
5203 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5204 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5205 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5206 Likewise.
5207 * infcmd.c (_initialize_infcmd): Likewise.
5208 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5209 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5210 * python/py-param.c (add_setshow_generic): Likewise.
5211 * remote.c (_initialize_remote): Likewise.
5212 * top.c (execute_command): Prepend default_args if command has some.
5213 (set_verbose):
5214 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5215 * tracepoint.c (validate_actionline, encode_actions_1):
5216 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5217
5218 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5219
5220 * jit.c (jit_read_descriptor): Use bool as the return type.
5221 (jit_breakpoint_re_set_internal): Use bool as the return type.
5222 Invert the return value logic; return true if the jit breakpoint
5223 has been successfully initialized.
5224 (jit_inferior_init): Update the call to
5225 jit_breakpoint_re_set_internal.
5226
5227 2020-06-22 Pedro Alves <palves@redhat.com>
5228
5229 PR gdb/25939
5230 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5231 Use the current inferior instead. Don't return
5232 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5233 wait again.
5234 * sol-thread.c (sol_thread_target::wait): Don't reference
5235 inferior_ptid.
5236 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5237 (sol_update_thread_list_callback): Use the current inferior's pid
5238 instead of inferior_ptid.
5239
5240 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5241
5242 * procfs.c: Cleanup many comments.
5243
5244 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5245 (AFTER_WATCHFLAG): Replace by value.
5246
5247 (MAIN_PROC_NAME_FORMAT): Inline ...
5248 (create_procinfo): ... here.
5249
5250 (procfs_debug_inferior): Remove SYS_exec handling.
5251 (syscall_is_exec): Likewise.
5252 (procfs_set_exec_trap): Likewise.
5253
5254 (syscall_is_lwp_exit): Inline in callers.
5255 (syscall_is_exit): Likewise.
5256 (syscall_is_exec): Likewise.
5257 (syscall_is_lwp_create): Likewise.
5258
5259 (invalidate_cache): Remove #if 0 code.
5260
5261 (make_signal_thread_runnable): Remove.
5262 (procfs_target::resume): Remove #if 0 code.
5263
5264 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5265
5266 PR gdb/25939
5267 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5268 call ...
5269 (procfs_target::create_inferior): ... here.
5270
5271 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5272
5273 * exec.c (validate_exec_file): Ensure the build-id is up to
5274 date by calling reopen_exec_file (that checks file timestamp
5275 to decide to re-read the file).
5276
5277 2020-06-18 Pedro Alves <palves@redhat.com>
5278
5279 PR gdb/25412
5280 * gdbthread.h (delete_thread, delete_thread_silent)
5281 (find_thread_ptid): Update comments.
5282 * thread.c (current_thread_): New global.
5283 (is_current_thread): Move higher, and reimplement.
5284 (inferior_thread): Reimplement.
5285 (set_thread_exited): Use bool. Add assertions.
5286 (add_thread_silent): Simplify thread-reuse handling by always
5287 calling delete_thread.
5288 (delete_thread): Remove intro comment.
5289 (find_thread_ptid): Skip exited threads.
5290 (switch_to_thread_no_regs): Write to current_thread_.
5291 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5292 INFERIOR_PTID. Clear current_thread_.
5293
5294 2020-06-18 Pedro Alves <palves@redhat.com>
5295
5296 * aix-thread.c (pd_update): Use switch_to_thread.
5297
5298 2020-06-18 Pedro Alves <palves@redhat.com>
5299
5300 * ravenscar-thread.c (ravenscar_thread_target): Update.
5301 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5302 (ravenscar_thread_target::add_active_thread): ... this. Don't
5303 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5304 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5305
5306 2020-06-18 Pedro Alves <palves@redhat.com>
5307
5308 * nat/windows-nat.c (current_windows_thread): Remove.
5309 * nat/windows-nat.h (current_windows_thread): Remove.
5310 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5311 Adjust.
5312 (display_selectors): Adjust to fetch the current
5313 windows_thread_info based on inferior_ptid.
5314 (fake_create_process): No longer write to current_windows_thread.
5315 (windows_nat_target::get_windows_debug_event):
5316 Don't set inferior_ptid or current_windows_thread.
5317 (windows_nat_target::wait): Adjust to not rely on
5318 current_windows_thread.
5319 (do_initial_windows_stuff): Now a method of windows_nat_target.
5320 Switch to the last_ptid thread.
5321 (windows_nat_target::attach): Adjust.
5322 (windows_nat_target::detach): Use switch_to_no_thread instead of
5323 writing to inferior_ptid directly.
5324 (windows_nat_target::create_inferior): Adjust.
5325
5326 2020-06-18 Pedro Alves <palves@redhat.com>
5327
5328 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5329
5330 2020-06-18 Pedro Alves <palves@redhat.com>
5331
5332 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5333 after creating it, instead of writing to inferior_ptid. Don't
5334 write to inferior_ptid.
5335
5336 2020-06-18 Pedro Alves <palves@redhat.com>
5337
5338 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5339
5340 2020-06-18 Pedro Alves <palves@redhat.com>
5341
5342 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5343 it, instead of writing to inferior_ptid.
5344
5345 2020-06-18 Pedro Alves <palves@redhat.com>
5346
5347 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5348 to inferior_ptid.
5349
5350 2020-06-18 Pedro Alves <palves@redhat.com>
5351
5352 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5353 instead of writing to inferior_ptid directly.
5354
5355 2020-06-18 Pedro Alves <palves@redhat.com>
5356
5357 * corelow.c (core_target::close): Use switch_to_no_thread instead
5358 of writing to inferior_ptid directly.
5359 (add_to_thread_list, core_target_open): Use switch_to_thread
5360 instead of writing to inferior_ptid directly.
5361
5362 2020-06-18 Pedro Alves <palves@redhat.com>
5363
5364 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5365 inferior_ptid.
5366 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5367 inferior_ptid.
5368 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5369 inferior_ptid directly.
5370 (darwin_nat_target::init_thread_list): Switch to thread, instead
5371 of writing to inferior_ptid.
5372 (darwin_nat_target::attach): Don't write to inferior_ptid.
5373 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5374
5375 2020-06-18 Pedro Alves <palves@redhat.com>
5376
5377 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5378 thread.
5379 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5380 Instead use switch_to_thread.
5381 (gnu_nat_target::detach): Use switch_to_no_thread
5382 instead of writing to inferior_ptid directly. Used passed-in
5383 inferior instead of looking up the inferior by pid.
5384
5385 2020-06-18 Pedro Alves <palves@redhat.com>
5386
5387 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5388 inferior_ptid.
5389
5390 2020-06-18 Pedro Alves <palves@redhat.com>
5391
5392 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5393 inferior_ptid.
5394 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5395 thread.
5396 (nto_procfs_target::detach): Avoid referencing
5397 inferior_ptid. Use switch_to_no_thread instead of writing to
5398 inferior_ptid directly.
5399 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5400 instead of writing to inferior_ptid directly.
5401 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5402 to thread.
5403
5404 2020-06-18 Pedro Alves <palves@redhat.com>
5405
5406 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5407 after creating it, instead of writing to inferior_ptid.
5408 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5409 to inferior_ptid directly.
5410 (gdbsim_target::wait): Don't write to inferior_ptid.
5411
5412 2020-06-18 Pedro Alves <palves@redhat.com>
5413
5414 * remote.c (remote_target::remote_notice_new_inferior): Use
5415 switch_to_thread instead of writing to inferior_ptid directly.
5416 (remote_target::add_current_inferior_and_thread): Use
5417 switch_to_no_thread instead of writing to inferior_ptid directly.
5418 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5419 and switch_to_thread instead of using set_current_inferior or
5420 writing to inferior_ptid directly.
5421
5422 2020-06-18 Pedro Alves <palves@redhat.com>
5423
5424 * tracectf.c (ctf_target_open): Switch to added thread instead of
5425 writing to inferior_ptid directly.
5426 (ctf_target::close): Use switch_to_no_thread instead of writing to
5427 inferior_ptid directly.
5428
5429 2020-06-18 Pedro Alves <palves@redhat.com>
5430
5431 * tracefile-tfile.c (tfile_target_open): Don't write to
5432 inferior_ptid directly, instead switch to added thread.
5433 (tfile_target::close): Use switch_to_no_thread instead of writing
5434 to inferior_ptid directly.
5435
5436 2020-06-18 Pedro Alves <palves@redhat.com>
5437
5438 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5439 (procfs_target::detach): Use switch_to_no_thread
5440 instead of writing to inferior_ptid directly.
5441 (do_attach): Change return type to void. Switch to the added
5442 thread.
5443 (procfs_target::create_inferior): Switch to the added thread.
5444 (procfs_do_thread_registers): Don't write to inferior_ptid.
5445
5446 2020-06-18 Pedro Alves <palves@redhat.com>
5447
5448 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5449 of writing to inferior_ptid.
5450 (scoped_restore_exited_inferior): Delete.
5451 (handle_vfork_child_exec_or_exit): Simplify using
5452 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5453 instead of writing to inferior_ptid.
5454 (THREAD_STOPPED_BY): Delete.
5455 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5456 (thread_stopped_by_hw_breakpoint): Delete.
5457 (save_waitstatus): Use
5458 scoped_restore_current_thread+switch_to_thread, and call
5459 target_stopped_by_watchpoint instead of
5460 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5461 instead of thread_stopped_by_sw_breakpoint, and
5462 target_stopped_by_hw_breakpoint instead of
5463 thread_stopped_by_hw_breakpoint.
5464 (handle_inferior_event)
5465 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5466 inferior_ptid directly, nor
5467 set_current_inferior/set_current_program_space. Use
5468 switch_to_thread / switch_to_inferior_no_thread instead.
5469
5470 2020-06-18 Pedro Alves <palves@redhat.com>
5471
5472 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5473 instead of writing to inferior_ptid.
5474
5475 2020-06-18 Pedro Alves <palves@redhat.com>
5476
5477 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5478 added thread.
5479 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5480 to the added thread.
5481 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5482 instead of writing to inferior_ptid.
5483
5484 2020-06-18 Pedro Alves <palves@redhat.com>
5485
5486 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5487 (register_to_value_test): Mock a program_space too. Heap-allocate
5488 the address space. Don't write to inferior_ptid. Use
5489 switch_to_thread instead.
5490
5491 2020-06-18 Pedro Alves <palves@redhat.com>
5492
5493 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5494 Delete.
5495 (find_signalled_thread()): New, factored out from
5496 linux_make_corefile_notes and adjusted to handle exited threads.
5497 (linux_make_corefile_notes): Adjust to use the new
5498 find_signalled_thread.
5499
5500 2020-06-18 Pedro Alves <palves@redhat.com>
5501
5502 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5503 of saving/restoring inferior_ptid.
5504
5505 2020-06-17 Tom Tromey <tom@tromey.com>
5506
5507 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5508 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5509 declare.
5510 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5511
5512 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5515 of partial symtabs.
5516
5517 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * regformats/reg-arm.dat: Remove.
5520 * regformats/reg-bfin.dat: Remove.
5521 * regformats/reg-cris.dat: Remove.
5522 * regformats/reg-crisv32.dat: Remove.
5523 * regformats/reg-m32r.dat: Remove.
5524 * regformats/reg-tilegx.dat: Remove.
5525 * regformats/reg-tilegx32.dat: Remove.
5526
5527 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * features/Makefile (WHICH): Remove arm files.
5530 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5531 * regformats/arm/arm-with-neon.dat: Remove.
5532 * regformats/arm/arm-with-vfpv2.dat: Remove.
5533 * regformats/arm/arm-with-vfpv3.dat: Remove.
5534
5535 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5536
5537 * features/Makefile (XMLTOC): Remove rx.xml.
5538
5539 2020-06-17 Pedro Alves <palves@redhat.com>
5540
5541 * gdbthread.h (thread_control_state) <trap_expected> Update
5542 comments.
5543
5544 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5545
5546 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5547 ada_language::lookup_symbol_nonlocal.
5548 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5549 (ada_language::lookup_symbol_nonlocal): New member function,
5550 implementation from ada_lookup_symbol_nonlocal.
5551 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5552 initializer.
5553 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5554 initializer.
5555 (cplus_language::lookup_symbol_nonlocal): New member function.
5556 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5557 (minimal_language_data) Likewise.
5558 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5559 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5560 initializer.
5561 (d_language::lookup_symbol_nonlocal): New member function.
5562 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5563 initializer.
5564 (f_language::lookup_symbol_nonlocal): New member function.
5565 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5566 initializer.
5567 * language.c (unknown_language_data): Likewise.
5568 (auto_language_data): Likewise.
5569 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5570 field.
5571 (language_defn::lookup_symbol_nonlocal): New member function.
5572 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5573 initializer.
5574 * objc-lang.c (objc_language_data): Likewise.
5575 * opencl-lang.c (opencl_language_data): Likewise.
5576 * p-lang.c (pascal_language_data): Likewise.
5577 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5578 rust_language::lookup_symbol_nonlocal.
5579 (rust_language_data): Delete la_lookup_symbol_nonlocal
5580 initializer.
5581 (rust_language::lookup_symbol_nonlocal): New member function,
5582 implementation from rust_lookup_symbol_nonlocal.
5583 * symtab.c (lookup_symbol_aux): Update call to
5584 lookup_symbol_nonlocal.
5585 (basic_lookup_symbol_nonlocal): Rename to...
5586 (language_defn::lookup_symbol_nonlocal): ...this, and update
5587 header comment. Remove language_defn parameter, and replace with
5588 uses of `this'.
5589 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5590
5591 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5592
5593 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5594 initializer.
5595 (ada_language::value_print_inner): New member function.
5596 * c-lang.c (c_language_data): Delete la_value_print_inner
5597 initializer.
5598 (cplus_language_data): Likewise.
5599 (asm_language_data): Likewise.
5600 (minimal_language_data): Likewise.
5601 * d-lang.c (d_language_data): Likewise.
5602 (d_language::value_print_inner): New member function.
5603 * f-lang.c (f_language_data): Delete la_value_print_inner
5604 initializer.
5605 (f_language::value_print_inner): New member function.
5606 * f-lang.h (f_value_print_innner): Rename to...
5607 (f_value_print_inner): ...this (note spelling of 'inner').
5608 * f-valprint.c (f_value_print_innner): Rename to...
5609 (f_value_print_inner): ...this (note spelling of 'inner').
5610 * go-lang.c (go_language_data): Delete la_value_print_inner
5611 initializer.
5612 (go_language::value_print_inner): New member function.
5613 * language.c (language_defn::value_print_inner): Define new member
5614 function.
5615 (unk_lang_value_print_inner): Delete.
5616 (unknown_language_data): Delete la_value_print_inner initializer.
5617 (unknown_language::value_print_inner): New member function.
5618 (auto_language_data): Delete la_value_print_inner initializer.
5619 (auto_language::value_print_inner): New member function.
5620 * language.h (language_data): Delete la_value_print_inner field.
5621 (language_defn::value_print_inner): Delcare new member function.
5622 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5623 initializer.
5624 (m2_language::value_print_inner): New member function.
5625 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5626 initializer.
5627 * opencl-lang.c (opencl_language_data): Likewise.
5628 * p-lang.c (pascal_language_data): Likewise.
5629 (pascal_language::value_print_inner): New member function.
5630 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5631 initializer.
5632 (rust_language::value_print_inner): New member function.
5633 * valprint.c (do_val_print): Update call to value_print_inner.
5634
5635 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5636
5637 * ada-lang.c (ada_language_data): Delete la_value_print
5638 initializer.
5639 (ada_language::value_print): New member function.
5640 * c-lang.c (c_language_data): Delete la_value_print initializer.
5641 (cplus_language_data): Likewise.
5642 (asm_language_data): Likewise.
5643 (minimal_language_data): Likewise.
5644 * d-lang.c (d_language_data): Likewise.
5645 * f-lang.c (f_language_data): Likewise.
5646 * go-lang.c (go_language_data): Likewise.
5647 * language.c (unk_lang_value_print): Delete.
5648 (language_defn::value_print): Define new member function.
5649 (unknown_language_data): Delete la_value_print initializer.
5650 (unknown_language::value_print): New member function.
5651 (auto_language_data): Delete la_value_print initializer.
5652 (auto_language::value_print): New member function.
5653 * language.h (language_data): Delete la_value_print field.
5654 (language_defn::value_print): Declare new member function.
5655 (LA_VALUE_PRINT): Update call to value_print.
5656 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5657 * objc-lang.c (objc_language_data): Likewise.
5658 * opencl-lang.c (opencl_language_data): Likewise.
5659 * p-lang.c (pascal_language_data): Likewise.
5660 (pascal_language::value_print): New member function.
5661 * rust-lang.c (rust_language_data): Delete la_value_print
5662 initializer.
5663
5664 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5665
5666 * ada-lang.c (ada_watch_location_expression): Rename to
5667 ada_language::watch_location_expression.
5668 (ada_language_data): Delete la_watch_location_expression
5669 initializer.
5670 (ada_language::watch_location_expression): New member function,
5671 implementation from ada_watch_location_expression.
5672 * breakpoint.c (watch_command_1): Update call to
5673 watch_location_expression.
5674 * c-lang.c (c_watch_location_expression): Rename to
5675 language_defn::watch_location_expression.
5676 (c_language_data): Delete la_watch_location_expression
5677 initializer.
5678 (cplus_language_data): Likewise.
5679 (asm_language_data): Likewise.
5680 (minimal_language_data): Likewise.
5681 * c-lang.h (c_watch_location_expression): Delete declaration.
5682 * d-lang.c (d_language_data): Delete la_watch_location_expression
5683 initializer.
5684 * f-lang.c (f_language_data): Likewise.
5685 * go-lang.c (go_language_data): Likewise.
5686 * language.c (language_defn::watch_location_expression): Member
5687 function implementation from c_watch_location_expression.
5688 (unknown_language_data): Delete la_watch_location_expression
5689 initializer.
5690 (auto_language_data): Likewise.
5691 * language.h (language_data): Delete la_watch_location_expression
5692 field.
5693 (language_defn::watch_location_expression): Declare new member
5694 function.
5695 * m2-lang.c (m2_language_data): Delete
5696 la_watch_location_expression initializer.
5697 * objc-lang.c (objc_language_data): Likewise.
5698 * opencl-lang.c (opencl_language_data): Likewise.
5699 * p-lang.c (pascal_language_data): Likewise.
5700 * rust-lang.c (rust_watch_location_expression): Rename to
5701 rust_language::watch_location_expression.
5702 (rust_language_data): Delete la_watch_location_expression
5703 initializer.
5704 (rust_language::watch_location_expression): New member function,
5705 implementation from rust_watch_location_expression.
5706
5707 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5708
5709 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5710 ada_language::collect_symbol_completion_matches.
5711 (ada_language_data): Delete la_collect_symbol_completion_matches
5712 initializer.
5713 (ada_language::collect_symbol_completion_matches): New member
5714 function, implementation from
5715 ada_collect_symbol_completion_matches.
5716 * c-lang.c (c_language_data): Delete
5717 la_collect_symbol_completion_matches initializer.
5718 (cplus_language_data): Likewise.
5719 (asm_language_data): Likewise.
5720 (minimal_language_data): Likewise.
5721 * d-lang.c (d_language_data): Likewise.
5722 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5723 f_language::collect_symbol_completion_matches.
5724 (f_language_data): Delete la_collect_symbol_completion_matches
5725 initializer.
5726 (f_language::collect_symbol_completion_matches) New member
5727 function, implementation from f_collect_symbol_completion_matches.
5728 * go-lang.c (go_language_data): Delete
5729 la_collect_symbol_completion_matches initializer.
5730 * language.c (unknown_language_data): Likewise.
5731 (auto_language_data): Likewise.
5732 * language.h (language_data): Delete
5733 la_collect_symbol_completion_matches field.
5734 (language_defn::collect_symbol_completion_matches): New member
5735 function.
5736 * m2-lang.c (m2_language_data): Delete
5737 la_collect_symbol_completion_matches initializer.
5738 * objc-lang.c (objc_language_data): Likewise.
5739 * opencl-lang.c (opencl_language_data): Likewise.
5740 * p-lang.c (pascal_language_data): Likewise.
5741 * rust-lang.c (rust_language_data): Likewise.
5742 * symtab.c (default_collect_symbol_completion_matches): Delete.
5743 (collect_symbol_completion_matches): Update call to
5744 collect_symbol_completion_matches.
5745 (collect_symbol_completion_matches_type): Likewise.
5746 * symtab.h (default_collect_symbol_completion_matches): Delete
5747 declaration.
5748
5749 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5752 (ada_language_data): Delete la_word_break_characters initializer.
5753 (ada_language::word_break_characters): New member function.
5754 * c-lang.c (c_language_data): Delete la_word_break_characters
5755 initializer.
5756 (cplus_language_data): Likewise.
5757 (asm_language_data): Likewise.
5758 (minimal_language_data): Likewise.
5759 * completer.c: Update global comment.
5760 (advance_to_expression_complete_word_point): Update call to
5761 word_break_characters.
5762 (complete_files_symbols): Likewise.
5763 (complete_line_internal_1): Likewise.
5764 (default_completer_handle_brkchars): Likewise.
5765 (skip_quoted_chars): Likewise.
5766 * d-lang.c (d_language_data): Delete la_word_break_characters
5767 initializer.
5768 * f-lang.c (f_word_break_characters): Delete.
5769 (f_language_data): Delete la_word_break_characters initializer.
5770 (f_language::word_break_characters): New member function.
5771 * go-lang.c (go_language_data): Delete la_word_break_characters
5772 initializer.
5773 * language.c (unknown_language_data): Likewise.
5774 (auto_language_data): Likewise.
5775 * language.h (default_word_break_characters): Move declaration to
5776 earlier in the file.
5777 (language_data): Delete la_word_break_characters field.
5778 (language_defn::word_break_characters): New member function.
5779 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5780 initializer.
5781 * objc-lang.c (objc_language_data): Likewise.
5782 * opencl-lang.c (opencl_language_data): Likewise.
5783 * p-lang.c (pascal_language_data): Likewise.
5784 * rust-lang.c (rust_language_data): Likewise.
5785
5786 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5789 (ada_language_data): Delete la_get_symbol_name_matcher
5790 initializer.
5791 (language_defn::get_symbol_name_matcher_inner): New member
5792 function.
5793 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5794 initializer.
5795 (cplus_language_data): Likewise.
5796 (cplus_language::get_symbol_name_matcher_inner): New member
5797 function.
5798 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5799 (minimal_language_data): Likewise.
5800 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5801 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5802 initializer.
5803 * dictionary.c (iter_match_first_hashed): Update call to
5804 get_symbol_name_matcher.
5805 (iter_match_next_hashed): Likewise.
5806 (iter_match_next_linear): Likewise.
5807 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5808 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5809 initializer.
5810 (f_language::get_symbol_name_matcher_inner): New member function.
5811 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5812 initializer.
5813 * language.c (default_symbol_name_matcher): Update header comment,
5814 make static.
5815 (language_defn::get_symbol_name_matcher): New definition.
5816 (language_defn::get_symbol_name_matcher_inner): Likewise.
5817 (get_symbol_name_matcher): Delete.
5818 (unknown_language_data): Delete la_get_symbol_name_matcher
5819 initializer.
5820 (auto_language_data): Likewise.
5821 * language.h (language_data): Delete la_get_symbol_name_matcher
5822 field.
5823 (language_defn::get_symbol_name_matcher): New member function.
5824 (language_defn::get_symbol_name_matcher_inner): Likewise.
5825 (default_symbol_name_matcher): Delete declaration.
5826 * linespec.c (find_methods): Update call to
5827 get_symbol_name_matcher.
5828 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5829 initializer.
5830 * minsyms.c (lookup_minimal_symbol): Update call to
5831 get_symbol_name_matcher.
5832 (iterate_over_minimal_symbols): Likewise.
5833 * objc-lang.c (objc_language_data): Delete
5834 la_get_symbol_name_matcher initializer.
5835 * opencl-lang.c (opencl_language_data): Likewise.
5836 * p-lang.c (pascal_language_data): Likewise.
5837 * psymtab.c (psymbol_name_matches): Update call to
5838 get_symbol_name_matcher.
5839 * rust-lang.c (rust_language_data): Delete
5840 la_get_symbol_name_matcher initializer.
5841 * symtab.c (symbol_matches_search_name): Update call to
5842 get_symbol_name_matcher.
5843 (compare_symbol_name): Likewise.
5844
5845 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * ada-lang.c (ada_language_data): Delete la_compute_program
5848 initializer.
5849 * c-lang.c (c_language_data): Likewise.
5850 (c_language::compute_program): New member function.
5851 (cplus_language_data): Delete la_compute_program initializer.
5852 (cplus_language::compute_program): New member function.
5853 (asm_language_data): Delete la_compute_program initializer.
5854 (minimal_language_data): Likewise.
5855 * c-lang.h (c_compute_program): Update comment.
5856 (cplus_compute_program): Likewise.
5857 * compile/compile-c-support.c (c_compute_program): Likewise.
5858 (cplus_compute_program): Likewise.
5859 * compile/compile.c (compile_to_object): Update call to
5860 la_compute_program.
5861 * d-lang.c (d_language_data): Delete la_compute_program
5862 initializer.
5863 * f-lang.c (f_language_data): Likewise.
5864 * go-lang.c (go_language_data): Likewise.
5865 * language.c (unknown_language_data): Likewise.
5866 (auto_language_data): Likewise.
5867 * language.h (language_data): Delete la_compute_program field.
5868 (language_defn::compute_program): New member function.
5869 * m2-lang.c (m2_language_data): Delete la_compute_program
5870 initializer.
5871 * objc-lang.c (objc_language_data): Likewise.
5872 * opencl-lang.c (opencl_language_data): Likewise.
5873 * p-lang.c (pascal_language_data): Likewise.
5874 * rust-lang.c (rust_language_data): Likewise.
5875
5876 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5877
5878 * ada-lang.c (ada_language_data) Delete
5879 la_class_name_from_physname initializer.
5880 * c-lang.c (c_language_data): Likewise.
5881 (cplus_language_data): Likewise.
5882 (cplus_language::class_name_from_physname): New member function.
5883 (asm_language_data): Delete la_class_name_from_physname
5884 initializer.
5885 (minimal_language_data): Likewise.
5886 * d-lang.c (d_language_data): Likewise.
5887 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5888 method on language_defn class.
5889 (guess_full_die_structure_name): Likewise.
5890 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5891 initializer.
5892 * go-lang.c (go_language_data): Likewise.
5893 * language.c (language_class_name_from_physname): Delete.
5894 (unk_lang_class_name): Delete.
5895 (unknown_language_data): Delete la_class_name_from_physname
5896 initializer.
5897 (auto_language_data): Likewise.
5898 * language.h (language_data): Delete la_class_name_from_physname
5899 field.
5900 (language_defn::class_name_from_physname): New function.
5901 (language_class_name_from_physname): Delete declaration.
5902 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5903 initializer.
5904 * objc-lang.c (objc_language_data): Likewise.
5905 * opencl-lang.c (opencl_language_data): Likewise.
5906 * p-lang.c (pascal_language_data): Likewise.
5907 * rust-lang.c (rust_language_data): Likewise.
5908
5909 2020-06-16 Tom Tromey <tom@tromey.com>
5910
5911 * tui/tui-data.h (STATUS_NAME): New macro.
5912 * tui/tui-layout.c (tui_remove_some_windows)
5913 (initialize_known_windows, tui_register_window)
5914 (tui_layout_split::remove_windows, initialize_layouts)
5915 (tui_new_layout_command): Don't use hard-coded window names.
5916
5917 2020-06-16 Tom Tromey <tom@tromey.com>
5918
5919 PR tui/25348:
5920 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5921 tui_initialize_readline. Only run once. Call rl_initialize.
5922 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5923 tui_initialize_readline.
5924 * tui/tui-io.c (tui_setup_io): Call
5925 tui_ensure_readline_initialized.
5926 * tui/tui-interp.c (tui_interp::init): Update.
5927
5928 2020-06-16 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5931 Also preserve the status window.
5932
5933 2020-06-16 Tom Tromey <tom@tromey.com>
5934
5935 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5936 where m_window==nullptr.
5937
5938 2020-06-15 Tom Tromey <tromey@adacore.com>
5939
5940 * windows-nat.c (windows_nat::handle_output_debug_string):
5941 Update.
5942 (windows_nat::handle_ms_vc_exception): Update.
5943 * target.h (target_read_string): Change API.
5944 * target.c (target_read_string): Change API.
5945 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5946 Update.
5947 * solib-frv.c (frv_current_sos): Update.
5948 * solib-dsbt.c (dsbt_current_sos): Update.
5949 * solib-darwin.c (darwin_current_sos): Update.
5950 * linux-thread-db.c (inferior_has_bug): Update.
5951 * expprint.c (print_subexp_standard): Update.
5952 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5953 (ada_exception_message_1): Update.
5954
5955 2020-06-15 Tom Tromey <tromey@adacore.com>
5956
5957 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5958
5959 2020-06-15 Tom Tromey <tromey@adacore.com>
5960
5961 * valprint.c (read_string): Update comment.
5962 * target.c (MIN): Remove.
5963 (target_read_string): Rewrite.
5964
5965 2020-06-15 Tom Tromey <tromey@adacore.com>
5966
5967 * corefile.c (read_memory_string): Remove.
5968 * ada-valprint.c (ada_value_print_ptr): Update.
5969 * ada-lang.h (ada_tag_name): Change return type.
5970 * ada-lang.c (type_from_tag): Update.
5971 (ada_tag_name_from_tsd): Change return type. Use
5972 target_read_string.
5973 (ada_tag_name): Likewise.
5974 * gdbcore.h (read_memory_string): Don't declare.
5975
5976 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5977
5978 * symtab.c (rbreak_command): Ignore Windows drive colon.
5979
5980 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * NEWS: Mention removed GDBserver host support.
5983
5984 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5985
5986 * features/riscv/rebuild-csr-xml.sh: Updated.
5987
5988 2020-06-11 Tom Tromey <tom@tromey.com>
5989
5990 PR gdb/18318:
5991 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5992
5993 2020-06-09 Jonny Grant <jg@jguk.org>
5994 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * main.c (captured_main_1): Don't print new line after help.
5997 (print_gdb_help): add mailing list and IRC channel information
5998 to --help. Add new lines between items in the footer. Remove
5999 quotes around bug url.
6000
6001 2020-06-11 Keith Seitz <keiths@redhat.com>
6002
6003 PR gdb/21356
6004 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6005 Resolve typedefs for type length calculations.
6006
6007 2020-06-10 Tom de Vries <tdevries@suse.de>
6008
6009 PR ada/24713
6010 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6011 (write_psymbols): Enable .gdb_index for ada.
6012 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6013 ada.
6014
6015 2020-06-10 Tom de Vries <tdevries@suse.de>
6016
6017 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6018 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6019 namei" instead of "const char *name" argument.
6020 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6021 dw2_symtab_iter_init.
6022
6023 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6024
6025 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6026 to use type::field and field::type instead.
6027
6028 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6029
6030 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6031 to use field::type instead.
6032
6033 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6034
6035 * gdbtypes.h (struct field) <type, set_type>: New methods.
6036 Rename `type` field to...
6037 <m_type>: ... this. Change references throughout to use type or
6038 set_type methods.
6039 (FIELD_TYPE): Use field::type. Change call sites that modify
6040 the field's type to use field::set_type instead.
6041
6042 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6043
6044 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6045 to use type::index_type instead.
6046
6047 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6048
6049 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6050 methods.
6051 (TYPE_INDEX_TYPE): Use type::index_type.
6052 * gdbtypes.c (create_array_type_with_stride): Likewise.
6053
6054 2020-06-07 Tom Tromey <tom@tromey.com>
6055
6056 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6057 parameter.
6058 (generic_value_print): Update.
6059
6060 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 Revert commit 982a38f60b0.
6063 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6064
6065 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6066
6067 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6068 avoid use after free.
6069
6070 2020-06-05 Tom de Vries <tdevries@suse.de>
6071
6072 * NEWS: Fix typos.
6073
6074 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6075
6076 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6077 the per_bfd object.
6078 (dwarf2_read_debug_names): Likewise.
6079 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6080 object when re-using a per_bfd object with an index.
6081
6082 2020-06-03 Tom de Vries <tdevries@suse.de>
6083
6084 PR symtab/26046
6085 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6086 children for C++.
6087 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6088 DW_TAG_subprogram.
6089
6090 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6091
6092 * ada-lang.c (ada_language_data): Delete skip_trampoline
6093 initializer.
6094 * c-lang.c (c_language_data): Likewise.
6095 (cplus_language_data): Likewise.
6096 (cplus_language::skip_trampoline): New member function.
6097 (asm_language_data): Delete skip_trampoline initializer.
6098 (minimal_language_data): Likewise.
6099 * d-lang.c (d_language_data): Likewise.
6100 * f-lang.c (f_language_data): Likewise.
6101 * go-lang.c (go_language_data): Likewise.
6102 * language.c (unk_lang_trampoline): Delete function.
6103 (skip_language_trampoline): Update.
6104 (unknown_language_data): Delete skip_trampoline initializer.
6105 (auto_language_data): Likewise.
6106 * language.h (language_data): Delete skip_trampoline field.
6107 (language_defn::skip_trampoline): New function.
6108 * m2-lang.c (m2_language_data): Delete skip_trampoline
6109 initializer.
6110 * objc-lang.c (objc_skip_trampoline): Delete function, move
6111 implementation to objc_language::skip_trampoline.
6112 (objc_language_data): Delete skip_trampoline initializer.
6113 (objc_language::skip_trampoline): New member function with
6114 implementation from objc_skip_trampoline.
6115 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6116 initializer.
6117 * p-lang.c (pascal_language_data): Likewise.
6118 * rust-lang.c (rust_language_data): Likewise.
6119
6120 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6121
6122 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6123 (ada_language::demangle): New member function.
6124 * c-lang.c (c_language_data): Delete la_demangle initializer.
6125 (cplus_language_data): Delete la_demangle initializer.
6126 (cplus_language::demangle): New member function.
6127 (asm_language_data): Delete la_demangle initializer.
6128 (minimal_language_data): Delete la_demangle initializer.
6129 * d-lang.c (d_language_data): Delete la_demangle initializer.
6130 (d_language::demangle): New member function.
6131 * f-lang.c (f_language_data): Delete la_demangle initializer.
6132 (f_language::demangle): New member function.
6133 * go-lang.c (go_language_data): Delete la_demangle initializer.
6134 (go_language::demangle): New member function.
6135 * language.c (language_demangle): Update.
6136 (unk_lang_demangle): Delete.
6137 (unknown_language_data): Delete la_demangle initializer.
6138 (unknown_language::demangle): New member function.
6139 (auto_language_data): Delete la_demangle initializer.
6140 (auto_language::demangle): New member function.
6141 * language.h (language_data): Delete la_demangle field.
6142 (language_defn::demangle): New function.
6143 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6144 * objc-lang.c (objc_language_data): Delete la_demangle
6145 initializer.
6146 (objc_language::demangle): New member function.
6147 * opencl-lang.c (opencl_language_data): Delete la_demangle
6148 initializer.
6149 * p-lang.c (pascal_language_data): Likewise.
6150 * rust-lang.c (rust_language_data): Likewise.
6151 (rust_language::demangle): New member function.
6152
6153 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6154
6155 * ada-lang.c (ada_language_data): Delete la_print_type
6156 initializer.
6157 (ada_language::print_type): New member function.
6158 * c-lang.c (c_language_data): Delete la_print_type initializer.
6159 (c_language::print_type): New member function.
6160 (cplus_language_data): Delete la_print_type initializer.
6161 (cplus_language::print_type): New member function.
6162 (asm_language_data): Delete la_print_type initializer.
6163 (asm_language::print_type): New member function.
6164 (minimal_language_data): Delete la_print_type initializer.
6165 (minimal_language::print_type): New member function.
6166 * d-lang.c (d_language_data): Delete la_print_type initializer.
6167 (d_language::print_type): New member function.
6168 * f-lang.c (f_language_data): Delete la_print_type initializer.
6169 (f_language::print_type): New member function.
6170 * go-lang.c (go_language_data): Delete la_print_type initializer.
6171 (go_language::print_type): New member function.
6172 * language.c (unk_lang_print_type): Delete.
6173 (unknown_language_data): Delete la_print_type initializer.
6174 (unknown_language::print_type): New member function.
6175 (auto_language_data): Delete la_print_type initializer.
6176 (auto_language::print_type): New member function.
6177 * language.h (language_data): Delete la_print_type field.
6178 (language_defn::print_type): New function.
6179 (LA_PRINT_TYPE): Update.
6180 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6181 (m2_language::print_type): New member function.
6182 * objc-lang.c (objc_language_data): Delete la_print_type
6183 initializer.
6184 (objc_language::print_type): New member function.
6185 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6186 to opencl_language::print_type.
6187 (opencl_language_data): Delete la_print_type initializer.
6188 (opencl_language::print_type): New member function, implementation
6189 from opencl_print_type.
6190 * p-lang.c (pascal_language_data): Delete la_print_type
6191 initializer.
6192 (pascal_language::print_type): New member function.
6193 * rust-lang.c (rust_print_type): Delete, implementation moved to
6194 rust_language::print_type.
6195 (rust_language_data): Delete la_print_type initializer.
6196 (rust_language::print_type): New member function, implementation
6197 from rust_print_type.
6198
6199 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6200
6201 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6202 implementation moves to...
6203 (ada_language::sniff_from_mangled_name): ...here. Update return
6204 type.
6205 (ada_language_data): Delete la_sniff_from_mangled_name
6206 initializer.
6207 * c-lang.c (c_language_data): Likewise.
6208 (cplus_language_data): Likewise.
6209 (cplus_language::sniff_from_mangled_name): New member function,
6210 implementation taken from gdb_sniff_from_mangled_name.
6211 (asm_language_data): Delete la_sniff_from_mangled_name
6212 initializer.
6213 (minimal_language_data): Likewise.
6214 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6215 implementation moves to cplus_language::sniff_from_mangled_name.
6216 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6217 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6218 moves to...
6219 (d_language::sniff_from_mangled_name): ...here.
6220 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6221 * f-lang.c (f_language_data): Likewise.
6222 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6223 moves to...
6224 (go_language::sniff_from_mangled_name): ...here.
6225 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6226 * language.c (language_sniff_from_mangled_name): Delete.
6227 (unknown_language_data): Delete la_sniff_from_mangled_name
6228 initializer.
6229 (auto_language_data): Likewise.
6230 * language.h (language_data): Delete la_sniff_from_mangled_name
6231 field.
6232 (language_defn::sniff_from_mangled_name): New function.
6233 (language_sniff_from_mangled_name): Delete declaration.
6234 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6235 field.
6236 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6237 implementation moves to...
6238 (objc_language::sniff_from_mangled_name): ...here.
6239 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6240 * opencl-lang.c (opencl_language_data): Likewise.
6241 * p-lang.c (pascal_language_data): Likewise.
6242 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6243 implementation moves to...
6244 (rust_language::sniff_from_mangled_name): ...here.
6245 (rust_language_data): Delete la_sniff_from_mangled_name
6246 initializer.
6247 * symtab.c (symbol_find_demangled_name): Call
6248 sniff_from_mangled_name member function.
6249
6250 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6251
6252 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6253 initializer.
6254 * c-lang.c (c_language_data): Likewise.
6255 (cplus_language_data): Likewise.
6256 (cplus_language::search_name_hash): New member function.
6257 (asm_language_data): Delete la_search_name_hash initializer.
6258 (minimal_language_data): Likewise.
6259 * d-lang.c (d_language_data): Likewise.
6260 * dictionary.c (default_search_name_hash): Rename to...
6261 (language_defn::search_name_hash): ...this.
6262 * f-lang.c (f_language_data): Likewise.
6263 (f_language::search_name_hash): New member function.
6264 * go-lang.c (go_language_data): Delete la_search_name_hash
6265 initializer.
6266 * language.c (unknown_language_data): Likewise.
6267 (auto_language_data): Likewise.
6268 * language.h (struct language_data): Delete la_search_name_hash
6269 field.
6270 (language_defn::search_name_hash): Declare new member function.
6271 (default_search_name_hash): Delete declaration.
6272 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6273 initializer.
6274 * objc-lang.c (objc_language_data): Likewise.
6275 * opencl-lang.c (opencl_language_data): Likewise.
6276 * p-lang.c (pascal_language_data): Likewise.
6277 * rust-lang.c (rust_language_data): Likewise.
6278 * symtab.c (search_name_hash): Update call.
6279
6280 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6281
6282 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6283 initializer.
6284 * c-lang.c (class compile_instance): Declare.
6285 (c_language_data): Delete la_get_compile_instance initializer.
6286 (c_language::get_compile_instance): New member function.
6287 (cplus_language_data): Delete la_get_compile_instance initializer.
6288 (cplus_language::get_compile_instance): New member function.
6289 (asm_language_data): Delete la_get_compile_instance initializer.
6290 (minimal_language_data): Likewise.
6291 * c-lang.h (c_get_compile_context): Update comment.
6292 (cplus_get_compile_context): Update comment.
6293 * compile/compile.c (compile_to_object): Update calls, don't rely
6294 on function pointer being NULL.
6295 * d-lang.c (d_language_data): Delete la_get_compile_instance
6296 initializer.
6297 * f-lang.c (f_language_data): Likewise.
6298 * go-lang.c (go_language_data): Likewise.
6299 * language.c (unknown_language_data): Likewise.
6300 (auto_language_data): Likewise.
6301 * language.h (language_data): Delete la_get_compile_instance field.
6302 (language_defn::get_compile_instance): New member function.
6303 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6304 initializer.
6305 * objc-lang.c (objc_language_data): Likewise.
6306 * opencl-lang.c (opencl_language_data): Likewise.
6307 * p-lang.c (pascal_language_data): Likewise.
6308 * rust-lang.c (rust_language_data): Likewise.
6309
6310 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6311
6312 * ada-lang.c (ada_add_all_symbols): Update comment.
6313 (ada_iterate_over_symbols): Delete, move implementation to...
6314 (ada_language::iterate_over_symbols): ...here, a new member
6315 function, rewrite to use range based for loop.
6316 (ada_language_data): Delete la_iterate_over_symbols initializer.
6317 * c-lang.c (c_language_data): Likewise.
6318 (cplus_language_data): Likewise.
6319 (asm_language_data): Likewise.
6320 (minimal_language_data): Likewise.
6321 * d-lang.c (d_language_data): Likewise.
6322 * f-lang.c (f_language_data): Likewise.
6323 * go-lang.c (go_language_data): Likewise.
6324 * language.c (unknown_language_data): Likewise.
6325 (auto_language_data): Likewise.
6326 * language.h (language_data): Delete la_iterate_over_symbols field.
6327 (language_defn::iterate_over_symbols): New member function.
6328 (LA_ITERATE_OVER_SYMBOLS): Update.
6329 * linespec.c (iterate_over_all_matching_symtabs): Update.
6330 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6331 initializer.
6332 * objc-lang.c (objc_language_data): Likewise.
6333 * opencl-lang.c (opencl_language_data): Likewise.
6334 * p-lang.c (pascal_language_data): Likewise.
6335 * rust-lang.c (rust_language_data): Likewise.
6336
6337 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6338
6339 * ada-lang.c (ada_language_data): Delete
6340 la_lookup_transparent_type initializer.
6341 * c-lang.c (c_language_data): Likewise.
6342 (cplus_language_data): Likewise.
6343 (cplus_language::lookup_transparent_type): New member function.
6344 (asm_language_data): Delete la_lookup_transparent_type
6345 initializer.
6346 (minimal_language_data): Likewise.
6347 * d-lang.c (d_language_data): Likewise.
6348 * f-lang.c (f_language_data): Likewise.
6349 * go-lang.c (go_language_data): Likewise.
6350 * language.c (unknown_language_data): Likewise.
6351 (auto_language_data): Likewise.
6352 * language.h (struct language_data): Delete
6353 la_lookup_transparent_type field.
6354 (language_defn::lookup_transparent_type): New member function.
6355 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6356 initializer.
6357 * objc-lang.c (objc_language_data): Likewise.
6358 * opencl-lang.c (opencl_language_data): Likewise.
6359 * p-lang.c (pascal_language_data): Likewise.
6360 * rust-lang.c (rust_language_data): Likewise.
6361 * symtab.c (symbol_matches_domain): Update call.
6362
6363 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6364
6365 * ada-lang.c (ada_language_arch_info): Delete function, move
6366 implementation to...
6367 (ada_language::language_arch_info): ...here, a new member
6368 function.
6369 (ada_language_data): Delete la_language_arch_info.
6370 * c-lang.c (c_language_data): Likewise.
6371 (c_language::language_arch_info): New member function.
6372 (cplus_language_arch_info): Delete function, move
6373 implementation to...
6374 (cplus_language::language_arch_info): ...here, a new member
6375 function.
6376 (cplus_language_data): Delete la_language_arch_info.
6377 (asm_language_data): Likewise.
6378 (asm_language::language_arch_info): New member function.
6379 (minimal_language_data): Delete la_language_arch_info.
6380 (minimal_language::language_arch_info): New member function.
6381 * d-lang.c (d_language_arch_info): Delete function, move
6382 implementation to...
6383 (d_language::language_arch_info): ...here, a new member
6384 function.
6385 (d_language_data): Delete la_language_arch_info.
6386 * f-lang.c (f_language_arch_info): Delete function, move
6387 implementation to...
6388 (f_language::language_arch_info): ...here, a new member
6389 function.
6390 (f_language_data): Delete la_language_arch_info.
6391 * go-lang.c (go_language_arch_info): Delete function, move
6392 implementation to...
6393 (go_language::language_arch_info): ...here, a new member
6394 function.
6395 (go_language_data): Delete la_language_arch_info.
6396 * language.c (unknown_language_data): Likewise.
6397 (unknown_language::language_arch_info): New member function.
6398 (auto_language_data): Delete la_language_arch_info.
6399 (auto_language::language_arch_info): New member function.
6400 (language_gdbarch_post_init): Update call to
6401 la_language_arch_info.
6402 * language.h (language_data): Delete la_language_arch_info
6403 function pointer.
6404 (language_defn::language_arch_info): New function.
6405 * m2-lang.c (m2_language_arch_info): Delete function, move
6406 implementation to...
6407 (m2_language::language_arch_info): ...here, a new member
6408 function.
6409 (m2_language_data): Delete la_language_arch_info.
6410 * objc-lang.c (objc_language_arch_info): Delete function, move
6411 implementation to...
6412 (objc_language::language_arch_info): ...here, a new member
6413 function.
6414 (objc_language_data): Delete la_language_arch_info.
6415 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6416 implementation to...
6417 (opencl_language::language_arch_info): ...here, a new member
6418 function.
6419 (opencl_language_data): Delete la_language_arch_info.
6420 * p-lang.c (pascal_language_arch_info): Delete function, move
6421 implementation to...
6422 (pascal_language::language_arch_info): ...here, a new member
6423 function.
6424 (pascal_language_data): Delete la_language_arch_info.
6425 * rust-lang.c (rust_language_arch_info): Delete function, move
6426 implementation to...
6427 (rust_language::language_arch_info): ...here, a new member
6428 function.
6429 (rust_language_data): Delete la_language_arch_info.
6430
6431 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6432
6433 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6434 initializer.
6435 * c-lang.c (c_language_data): Likewise.
6436 (cplus_language_data): Likewise.
6437 (cplus_language::pass_by_reference_info): New method.
6438 (asm_language_data): Delete la_pass_by_reference initializer.
6439 (minimal_language_data): Likewise.
6440 * cp-abi.c (cp_pass_by_reference): Remove use of
6441 default_pass_by_reference.
6442 * d-lang.c (d_language_data): Likewise.
6443 * f-lang.c (f_language_data): Likewise.
6444 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6445 default_pass_by_reference.
6446 * go-lang.c (go_language_data): Likewise.
6447 * language.c (language_pass_by_reference): Update.
6448 (default_pass_by_reference): Delete.
6449 (unknown_language_data): Delete la_pass_by_reference
6450 initializer.
6451 (auto_language_data): Likewise.
6452 * language.h (struct language_data): Delete la_pass_by_reference
6453 field.
6454 (language_defn::pass_by_reference_info): New member function.
6455 (default_pass_by_reference): Delete declaration.
6456 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6457 initializer.
6458 * objc-lang.c (objc_language_data): Likewise.
6459 * opencl-lang.c (opencl_language_data): Likewise.
6460 * p-lang.c (pascal_language_data): Likewise.
6461 * rust-lang.c (rust_language_data): Likewise.
6462
6463 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 * ada-lang.c (ada_read_var_value): Delete function, move
6466 implementation to...
6467 (ada_language::read_var_value): ...here.
6468 (ada_language_data): Delete la_read_var_value initializer.
6469 * c-lang.c (c_language_data): Likewise.
6470 (cplus_language_data): Likewise.
6471 (minimal_language_data): Likewise.
6472 * d-lang.c (d_language_data): Likewise.
6473 * f-lang.c (f_language_data): Likewise.
6474 * findvar.c (default_read_var_value): Rename to...
6475 (language_defn::read_var_value): ...this.
6476 * findvar.c (read_var_value): Update header comment, and change to
6477 call member function instead of function pointer.
6478 * go-lang.c (go_language_data): Likewise.
6479 * language.c (unknown_language_data): Delete la_read_var_value
6480 initializer.
6481 (auto_language_data): Likewise.
6482 * language.h (struct language_data): Delete la_read_var_value
6483 field.
6484 (language_defn::read_var_value): New member function.
6485 (default_read_var_value): Delete declaration.
6486 * m2-lang.c (m2_language_data): Delete la_read_var_value
6487 initializer.
6488 * objc-lang.c (objc_language_data): Likewise.
6489 * opencl-lang.c (opencl_language_data): Likewise.
6490 * p-lang.c (pascal_language_data): Likewise.
6491 * rust-lang.c (rust_language_data): Likewise.
6492 * value.h (default_read_var_value): Delete declaration.
6493
6494 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * ada-lang.c (ada_print_array_index): Delete function, move
6497 implementation to...
6498 (ada_language::print_array_index): ...here.
6499 (ada_language_data): Delete la_print_array_index initializer.
6500 * c-lang.c (c_language_data): Likewise.
6501 (cplus_language_data): Likewise.
6502 (minimal_language_data): Likewise.
6503 * d-lang.c (d_language_data): Likewise.
6504 * f-lang.c (f_language_data): Likewise.
6505 * go-lang.c (go_language_data): Likewise.
6506 * language.c (default_print_array_index): Delete function, move
6507 implementation to...
6508 (language_defn::print_array_index): ...here.
6509 (unknown_language_data): Delete la_print_array_index initializer.
6510 (auto_language_data): Likewise.
6511 * language.h (struct language_data): Delete la_print_array_index
6512 field.
6513 (language_defn::print_array_index): New member function.
6514 (LA_PRINT_ARRAY_INDEX): Update.
6515 (default_print_array_index): Delete declaration.
6516 * m2-lang.c (m2_language_data): Delete la_print_array_index
6517 initializer.
6518 * objc-lang.c (objc_language_data): Likewise.
6519 * opencl-lang.c (opencl_language_data): Likewise.
6520 * p-lang.c (pascal_language_data): Likewise.
6521 * rust-lang.c (rust_language_data): Likewise.
6522
6523 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6524
6525 * gdb/ada-lang.c (ada_language_defn): Convert to...
6526 (ada_language_data): ...this.
6527 (class ada_language): New class.
6528 (ada_language_defn): New static global.
6529 * gdb/c-lang.c (c_language_defn): Convert to...
6530 (c_language_data): ...this.
6531 (class c_language): New class.
6532 (c_language_defn): New static global.
6533 (cplus_language_defn): Convert to...
6534 (cplus_language_data): ...this.
6535 (class cplus_language): New class.
6536 (cplus_language_defn): New static global.
6537 (asm_language_defn): Convert to...
6538 (asm_language_data): ...this.
6539 (class asm_language): New class.
6540 (asm_language_defn): New static global.
6541 (minimal_language_defn): Convert to...
6542 (minimal_language_data): ...this.
6543 (class minimal_language): New class.
6544 (minimal_language_defn): New static global.
6545 * gdb/d-lang.c (d_language_defn): Convert to...
6546 (d_language_data): ...this.
6547 (class d_language): New class.
6548 (d_language_defn): New static global.
6549 * gdb/f-lang.c (f_language_defn): Convert to...
6550 (f_language_data): ...this.
6551 (class f_language): New class.
6552 (f_language_defn): New static global.
6553 * gdb/go-lang.c (go_language_defn): Convert to...
6554 (go_language_data): ...this.
6555 (class go_language): New class.
6556 (go_language_defn): New static global.
6557 * gdb/language.c (unknown_language_defn): Remove declaration.
6558 (current_language): Initialize to nullptr, real initialization is
6559 moved to _initialize_language.
6560 (languages): Delete global.
6561 (language_defn::languages): Define.
6562 (set_language_command): Use language_defn::languages.
6563 (set_language): Likewise.
6564 (range_error): Likewise.
6565 (language_enum): Likewise.
6566 (language_def): Likewise.
6567 (add_set_language_command): Use language_def::languages for the
6568 language list, and language_def to lookup language pointers.
6569 (skip_language_trampoline): Use language_defn::languages.
6570 (unknown_language_defn): Convert to...
6571 (unknown_language_data): ...this.
6572 (class unknown_language): New class.
6573 (unknown_language_defn): New static global.
6574 (auto_language_defn): Convert to...
6575 (auto_language_data): ...this.
6576 (class auto_language): New class.
6577 (auto_language_defn): New static global.
6578 (language_gdbarch_post_init): Use language_defn::languages.
6579 (_initialize_language): Initialize current_language.
6580 * gdb/language.h (struct language_defn): Rename to...
6581 (struct language_data): ...this.
6582 (struct language_defn): New.
6583 (auto_language_defn): Delete.
6584 (unknown_language_defn): Delete.
6585 (minimal_language_defn): Delete.
6586 (ada_language_defn): Delete.
6587 (asm_language_defn): Delete.
6588 (c_language_defn): Delete.
6589 (cplus_language_defn): Delete.
6590 (d_language_defn): Delete.
6591 (f_language_defn): Delete.
6592 (go_language_defn): Delete.
6593 (m2_language_defn): Delete.
6594 (objc_language_defn): Delete.
6595 (opencl_language_defn): Delete.
6596 (pascal_language_defn): Delete.
6597 (rust_language_defn): Delete.
6598 * gdb/m2-lang.c (m2_language_defn): Convert to...
6599 (m2_language_data): ...this.
6600 (class m2_language): New class.
6601 (m2_language_defn): New static global.
6602 * gdb/objc-lang.c (objc_language_defn): Convert to...
6603 (objc_language_data): ...this.
6604 (class objc_language): New class.
6605 (objc_language_defn): New static global.
6606 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6607 (opencl_language_data): ...this.
6608 (class opencl_language): New class.
6609 (opencl_language_defn): New static global.
6610 * gdb/p-lang.c (pascal_language_defn): Convert to...
6611 (pascal_language_data): ...this.
6612 (class pascal_language): New class.
6613 (pascal_language_defn): New static global.
6614 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6615 language pointer, update comment format.
6616 * gdb/rust-lang.c (rust_language_defn): Convert to...
6617 (rust_language_data): ...this.
6618 (class rust_language): New class.
6619 (rust_language_defn): New static global.
6620
6621 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6624 member variable.
6625 <m_stmt_at_address>: New member variable.
6626 (lnp_state_machine::record_line): Don't record some lines, update
6627 tracking of is_stmt at the same address.
6628 (lnp_state_machine::lnp_state_machine): Initialise new member
6629 variables.
6630
6631 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6632
6633 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6634 "-include gnu-nat-mig.h".
6635 * gnu-nat-mig.h: New file.
6636 * gnu-nat.c: Include "gnu-nat-mig.h".
6637 (exc_server, msg_reply_server, notify_server,
6638 process_reply_server): Remove declarations.
6639
6640 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6641
6642 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6643 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6644 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6645 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6646 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6647 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6648 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6649 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6650 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6651 to gnu_nat_target class.
6652 * gnu-nat.c: Likewise.
6653 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6654 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6655 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6656 object.
6657 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6658 instead of `gnu_target'.
6659
6660 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6661
6662 * i386-gnu-tdep.c: Include "gdbcore.h"
6663 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6664 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6665 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6666 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6667 i386_gnu_sigcontext_addr): New functions
6668 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6669 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6670 tdep.
6671
6672 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6673
6674 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6675 before fork_inferior call. Avoid calling it if target_is_pushed returns
6676 true.
6677
6678 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6679
6680 * gnu-nat.h (gnu_target): New variable declaration.
6681 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6682 gnu_target.
6683 * gnu-nat.c (gnu_target): New variable.
6684 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6685 add_thread_silent, and add_thread calls.
6686 (gnu_nat_target::create_inferior): Pass gnu_target to
6687 add_thread_silent, thread_change_ptid call.
6688 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6689 call.
6690
6691 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6692
6693 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6694 (gnu_nat_target::find_memory_regions): Remove unused
6695 `old_address' variable.
6696
6697 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6698
6699 * gnu-nat.c: Include "gdbarch.h".
6700
6701 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6702
6703 * reply_mig_hack.awk (Error return): Cast function through
6704 void *, to bypass compiler function call check.
6705
6706 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6707
6708 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6709 $(srcdir)/reply_mig_hack.awk.
6710
6711 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6712
6713 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6714
6715 2020-05-30 Jonny Grant <jg@jguk.org>
6716
6717 * configure.ac (ACX_BUGURL): change bug URL to https.
6718
6719 2020-05-30 Pedro Alves <palves@redhat.com>
6720
6721 * cp-support.c (replace_typedefs_template): New.
6722 (replace_typedefs_qualified_name): Handle
6723 DEMANGLE_COMPONENT_TEMPLATE.
6724
6725 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6726
6727 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6728 dwarf2/index-cache.h, dwarf2/index-write.c,
6729 dwarf2/index-write.h, dwarf2/line-header.c,
6730 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6731 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6732 variables and fields from `dwarf2_per_objfile` to just
6733 `per_objfile` throughout.
6734
6735 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6736
6737 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6738 <push_dwarf_reg_entry_value>: Add comment.
6739
6740 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6741 Keith Seitz <keiths@redhat.com>
6742
6743 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6744 instead of PyEval_ReleaseLock.
6745 (class gdbpy_gil): Move to earlier in file.
6746 (finalize_python): Set gdb_python_initialized.
6747 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6748 when not initialized.
6749
6750 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6753 <push_dwarf_reg_entry_value>: Remove assert. Override
6754 per_objfile with caller_per_objfile.
6755
6756 2020-05-28 Tom de Vries <tdevries@suse.de>
6757
6758 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6759 PR gold/15646 workaround to symbol kind "type".
6760
6761 2020-05-27 Tom Tromey <tromey@adacore.com>
6762
6763 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6764
6765 2020-05-27 Tom Tromey <tromey@adacore.com>
6766
6767 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6768 Use htab_find_with_hash.
6769 <add_abbrev>: Remove "abbrev_number" parameter.
6770 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6771 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6772 (hash_abbrev): Add comment.
6773 (abbrev_table::lookup_abbrev): Move to header file.
6774 (abbrev_table::read): Update.
6775
6776 2020-05-27 Tom Tromey <tromey@adacore.com>
6777
6778 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6779 method.
6780 <canonical_name>: New member.
6781 <raw_name>: Rename from "name".
6782 (partial_die_info): Initialize canonical_name.
6783 (scan_partial_symbols): Check raw_name.
6784 (partial_die_parent_scope, partial_die_full_name)
6785 (add_partial_symbol, add_partial_subprogram)
6786 (add_partial_enumeration, load_partial_dies): Use "name" method.
6787 (partial_die_info::name): New method.
6788 (partial_die_info::read, guess_partial_die_structure_name)
6789 (partial_die_info::fixup): Update.
6790
6791 2020-05-27 Tom Tromey <tromey@adacore.com>
6792
6793 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6794 <get_ref_die_offset>: Inline.
6795 <get_ref_die_offset_complaint>: New method.
6796 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6797 (attribute::get_ref_die_offset_complaint): Rename from
6798 get_ref_die_offset. Just issue complaint.
6799
6800 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6801
6802 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6803
6804 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6805
6806 * exec.c (exec_file_attach): Use errno value of first openp failure.
6807
6808 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6809
6810 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6811 Don't close thread handle.
6812
6813 2020-05-27 Tom Tromey <tom@tromey.com>
6814 Simon Marchi <simon.marchi@efficios.com>
6815
6816 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6817 shared_ptr.
6818 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6819 member.
6820 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6821 dwarf2_per_bfd_objfile_data_key>: New globals.
6822 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6823 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6824 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6825 shared.
6826 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6827 short-circuit when sharing.
6828 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6829 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6830
6831 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6834 to...
6835 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6836 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6837
6838 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6841 build_name_components, find_name_components_bounds>:
6842 Add per_objfile parameter.
6843 (struct mapped_index) <symbol_name_at>: Likewise.
6844 (struct mapped_debug_names): Remove constructor.
6845 <dwarf2_per_objfile>: Remove field.
6846 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6847 (mapped_index_base::find_name_components_bounds,
6848 mapped_index_base::build_name_components,
6849 dw2_expand_symtabs_matching_symbol): Likewise.
6850 (class mock_mapped_index) <symbol_name_at>: Likewise.
6851 (check_match): Likewise.
6852 (check_find_bounds_finds): Likewise.
6853 (test_mapped_index_find_name_component_bounds): Update.
6854 (CHECK_MATCH): Update.
6855 (dw2_expand_symtabs_matching): Update.
6856 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6857 per_objfile parameter.
6858 <find_vec_in_debug_names>: Likewise.
6859 <m_per_objfile>: New field.
6860 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6861 parameter.
6862 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6863 (dw2_debug_names_iterator::next): Update.
6864 (dw2_debug_names_lookup_symbol): Update.
6865 (dw2_debug_names_expand_symtabs_for_function): Update.
6866 (dw2_debug_names_map_matching_symbols): Update.
6867 (dw2_debug_names_expand_symtabs_matching): Update.
6868 (dwarf2_read_debug_names): Update.
6869
6870 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6871
6872 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6873 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6874 move to dwarf2_per_objfile.
6875 <read_in_chain>: Remove.
6876 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6877 remove_all_cus, age_comp_units>: New methods.
6878 <m_dwarf2_cus>: New member.
6879 (struct dwarf2_per_cu_data) <cu>: Remove.
6880 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6881 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6882 moved to methods of dwarf2_per_objfile.
6883 (dwarf2_clear_marks): Remove.
6884 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6885 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6886 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6887 (dwarf2_per_objfile::remove_all_cus): New.
6888 (class free_cached_comp_units) <~free_cached_comp_units>:
6889 Update.
6890 (load_cu): Update.
6891 (dw2_do_instantiate_symtab): Adjust.
6892 (fill_in_sig_entry_from_dwo_entry): Adjust.
6893 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6894 (cutu_reader::cutu_reader): Likewise.
6895 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6896 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6897 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6898 and dwarf2_per_objfile::age_comp_units.
6899 (load_partial_comp_unit): Update.
6900 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6901 (process_queue): Likewise.
6902 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6903 backlink.
6904 (dwarf2_read_addr_index): Likewise.
6905 (follow_die_offset): Likewise.
6906 (dwarf2_fetch_die_loc_sect_off): Likewise.
6907 (dwarf2_fetch_constant_bytes): Likewise.
6908 (dwarf2_fetch_die_type_sect_off): Likewise.
6909 (follow_die_sig_1): Likewise.
6910 (load_full_type_unit): Likewise.
6911 (read_signatured_type): Likewise.
6912 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6913 (dwarf2_cu::~dwarf2_cu): Remove.
6914 (dwarf2_per_objfile::get_cu): New.
6915 (dwarf2_per_objfile::set_cu): New.
6916 (age_cached_comp_units): Rename to...
6917 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6918 to std::unordered_map.
6919 (free_one_cached_comp_unit): Rename to...
6920 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6921 to std::unordered_map.
6922 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6923 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6924 a dwarf2_per_objfile in data.
6925 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6926 (dwarf2_clear_marks): Remove.
6927
6928 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6931 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6932 (init_tu_and_read_dwo_dies): Likewise.
6933 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6934 (cutu_reader::cutu_reader): Likewise.
6935 (load_partial_comp_unit): Likewise.
6936 (process_psymtab_comp_unit): Update.
6937 (build_type_psymtabs_1): Update.
6938 (process_skeletonless_type_unit): Update.
6939 (load_full_comp_unit): Update.
6940 (find_partial_die): Update.
6941 (dwarf2_read_addr_index): Update.
6942 (read_signatured_type): Update.
6943
6944 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6947 m_header_read_in>: New fields.
6948 <get_header>: New method.
6949 * dwarf2/read.c (per_cu_header_read_in): Remove.
6950 (dwarf2_per_cu_data::get_header): New.
6951 (dwarf2_per_cu_data::addr_size): Update.
6952 (dwarf2_per_cu_data::offset_size): Update.
6953 (dwarf2_per_cu_data::ref_addr_size): Update.
6954
6955 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6956
6957 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6958 (dw2_do_instantiate_symtab): Update.
6959 (queue_and_load_all_dwo_tus): Change parameter from
6960 dwarf2_per_cu_data to dwarf2_cu.
6961 (dwarf2_fetch_die_loc_sect_off): Update.
6962 (dwarf2_fetch_constant_bytes): Update.
6963 (dwarf2_fetch_die_type_sect_off): Update.
6964
6965 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6966
6967 * dwarf2/read.c (process_full_comp_unit,
6968 process_full_type_unit): Remove per_cu, per_objfile paramters.
6969 Add dwarf2_cu parameter.
6970 (process_queue): Update.
6971
6972 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6973
6974 * dwarf2/read.c (create_cu_from_index_list): Replace
6975 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6976 (create_cus_from_index_list): Likewise.
6977 (create_cus_from_index): Likewise.
6978 (create_signatured_type_table_from_index): Likewise.
6979 (create_cus_from_debug_names_list): Likewise.
6980 (create_cus_from_debug_names): Likewise.
6981 (dwarf2_read_gdb_index): Update.
6982 (dwarf2_read_debug_names): Update.
6983
6984 2020-05-27 Tom Tromey <tom@tromey.com>
6985 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * dwarf2/read.h (struct dwarf2_per_objfile)
6988 <get_type_for_signatured_type, set_type_for_signatured_type>:
6989 New methods.
6990 <m_type_map>: New member.
6991 (struct signatured_type) <type>: Remove.
6992 * dwarf2/read.c
6993 (dwarf2_per_objfile::get_type_for_signatured_type,
6994 dwarf2_per_objfile::set_type_for_signatured_type): New.
6995 (get_signatured_type): Use new methods.
6996
6997 2020-05-27 Tom Tromey <tom@tromey.com>
6998 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7001 (struct dwarf2_per_objfile) <type_units>: New member.
7002 <get_type_unit_group_unshareable>: New method.
7003 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7004 num_symtabs, symtabs>: Remove; move to
7005 type_unit_group_unshareable.
7006 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7007 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7008 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7009
7010 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7011
7012 * dwarf2/read.h (struct dwarf2_per_cu_data):
7013 <dwarf2_per_objfile>: Remove.
7014 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7015 dwarf2_per_objfile.
7016 (create_signatured_type_table_from_index): Likewise.
7017 (create_signatured_type_table_from_debug_names): Likewise.
7018 (create_debug_type_hash_table): Likewise.
7019 (fill_in_sig_entry_from_dwo_entry): Likewise.
7020 (create_type_unit_group): Likewise.
7021 (read_comp_units_from_section): Likewise.
7022 (create_cus_hash_table): Likewise.
7023
7024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7025
7026 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7027 dwarf2_per_cu_data::dwarf2_per_objfile.
7028 (compute_compunit_symtab_includes): Likewise.
7029 (dwarf2_cu::start_symtab): Likewise.
7030
7031 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7032
7033 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7034 parameter.
7035 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7036 (read_namespace_alias): Update.
7037 (lookup_die_type): Update.
7038 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7039 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7040 Update.
7041 (disassemble_dwarf_expression): Update.
7042
7043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * dwarf2/read.h (struct dwarf2_queue_item): Add
7046 dwarf2_per_objfile parameter, assign new parameter.
7047 <per_objfile>: New field.
7048 * dwarf2/read.c (free_one_cached_comp_unit): Add
7049 dwarf2_per_objfile parameter.
7050 (queue_comp_unit): Likewise.
7051 (dw2_do_instantiate_symtab): Update.
7052 (process_psymtab_comp_unit): Update.
7053 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7054 (process_imported_unit_die): Update.
7055 (queue_and_load_dwo_tu): Update.
7056 (follow_die_offset): Update.
7057 (follow_die_sig_1): Update.
7058
7059 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7062 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7063 (read_call_site_scope): Assign per_objfile.
7064 (dwarf2_per_cu_data::objfile): Remove.
7065 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7066 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7067 dwarf2_per_objfile parameter.
7068 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7069 dwarf2_per_objfile parameter.
7070 (dwarf_expr_reg_to_entry_parameter): Add output
7071 dwarf2_per_objfile parameter.
7072 (locexpr_get_frame_base): Update.
7073 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7074 <push_dwarf_reg_entry_value>: Update.
7075 <call_site_to_target_addr>: Update.
7076 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7077 parameter.
7078 (value_of_dwarf_reg_entry): Update.
7079 (rw_pieced_value): Update.
7080 (indirect_synthetic_pointer): Update.
7081 (dwarf2_evaluate_property): Update.
7082 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7083 parameter.
7084 (locexpr_read_variable): Update.
7085 (locexpr_get_symbol_read_needs): Update.
7086 (loclist_read_variable): Update.
7087
7088 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7089
7090 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7091 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7092 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7093 parameter.
7094 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7095 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7096 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7097 parameter.
7098 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7099 sect_variable_value): Add dwarf2_per_objfile parameter.
7100 (class dwarf_evaluate_loc_desc) <dwarf_call,
7101 dwarf_variable_value>: Update.
7102 (fetch_const_value_from_synthetic_pointer): Add
7103 dwarf2_per_objfile parameter.
7104 (fetch_const_value_from_synthetic_pointer): Update.
7105 (coerced_pieced_ref): Update.
7106 (class symbol_needs_eval_context) <dwarf_call,
7107 dwarf_variable_value>: Update.
7108 (dwarf2_compile_expr_to_ax): Update.
7109
7110 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7111
7112 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7113 parameter.
7114 (dwarf2_evaluate_loc_desc_full): Update.
7115
7116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7117
7118 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7119 parameter.
7120 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7121 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7122 dwarf2_per_objfile parameter.
7123 (decode_debug_loc_dwo_addresses): Likewise.
7124 (dwarf2_find_location_expression): Update.
7125 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7126 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7127 parameter.
7128 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7129 parameter.
7130 (locexpr_describe_location_1): Likewise.
7131 (locexpr_describe_location): Update.
7132
7133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7134
7135 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7136 Remove.
7137 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7138 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7139 (dwarf2_compile_property_to_c): Update.
7140 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7141 use text offset from objfile.
7142 (locexpr_tracepoint_var_ref): Update.
7143 (locexpr_generate_c_location): Update.
7144 (loclist_describe_location): Update.
7145 (loclist_tracepoint_var_ref): Update.
7146 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7147 dwarf2_per_objfile parameter.
7148 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7149 use text offset from objfile.
7150 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7151
7152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * dwarf2/expr.h (struct dwarf_expr_context)
7155 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7156 <offset>: Remove.
7157 <per_objfile>: New member.
7158 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7159 dwarf2_per_objfile parameter. Don't set offset, set
7160 per_objfile.
7161 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7162 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7163 a dwarf2_per_objfile object instead of an offset.
7164 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7165 constructor.
7166 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7167 to dwarf2_expr_executor constructor. Don't set offset.
7168 (dwarf2_fetch_cfa_info): Update.
7169 (struct dwarf2_frame_cache) <text_offset>: Remove.
7170 <per_objfile>: New field.
7171 (dwarf2_frame_cache): Update.
7172 (dwarf2_frame_prev_register): Update.
7173 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7174 <dwarf_evaluate_loc_desc>: Add constructor.
7175 (dwarf2_evaluate_loc_desc_full): Update.
7176 (dwarf2_locexpr_baton_eval): Update.
7177 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7178 Add constructor.
7179 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7180
7181 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7182
7183 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7184 addr_sized_int_type>: Move to dwarf2_cu.
7185 <int_type>: Move to dwarf2_per_objfile.
7186 (struct dwarf2_per_objfile) <int_type>: Move here.
7187 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7188 addr_sized_int_type>: Move here.
7189 (read_func_scope): Update.
7190 (read_array_type): Update.
7191 (read_tag_string_type): Update.
7192 (attr_to_dynamic_prop): Update.
7193 (dwarf2_per_cu_data::int_type): Rename to...
7194 (dwarf2_per_objfile::int_type): ... this.
7195 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7196 (dwarf2_cu::addr_sized_int_type): ... this.
7197 (read_subrange_type): Update.
7198 (dwarf2_per_cu_data::addr_type): Rename to...
7199 (dwarf2_cu::addr_type): ... this.
7200 (set_die_type): Update.
7201
7202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7203
7204 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7205 data through per_cu->cu.
7206
7207 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7210 dwarf2_per_cu_data parameter fo dwarf2_cu.
7211 (lookup_dwo_type_unit): Likewise.
7212 (read_cutu_die_from_dwo): Likewise.
7213 (lookup_dwo_unit): Likewise.
7214 (open_and_init_dwo_file): Likewise.
7215 (lookup_dwo_cutu): Likewise.
7216 (lookup_dwo_comp_unit): Likewise.
7217 (lookup_dwo_type_unit): Likewise.
7218 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7219 (cutu_reader::cutu_reader): Update.
7220
7221 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7222
7223 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7224 parameter.
7225 (process_full_type_unit): Likewise.
7226 (process_queue): Update.
7227
7228 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7229
7230 * dwarf2/read.c (recursively_compute_inclusions): Add
7231 dwarf2_per_objfile parameter.
7232 (compute_compunit_symtab_includes): Likewise.
7233 (process_cu_includes): Update.
7234
7235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7238 parameter.
7239 (create_type_unit_group): Update.
7240 (process_psymtab_comp_unit_reader): Update.
7241 (build_type_psymtabs_reader): Update.
7242
7243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7244
7245 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7246 object through m_this_cu->cu.
7247
7248 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7249
7250 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7251 the info parameter.
7252 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7253
7254 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7255
7256 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7257 per_objfile parameter.
7258 (load_full_type_unit): Add per_objfile parameter.
7259 (read_signatured_type): Likewise.
7260 (load_full_comp_unit): Likewise.
7261 (load_cu): Likewise.
7262 (dw2_do_instantiate_symtab): Likewise.
7263 (dw2_get_file_names): Likewise.
7264 (dw2_map_symtabs_matching_filename): Update.
7265 (dw_expand_symtabs_matching_file_matcher): Update.
7266 (dw2_map_symbol_filenames): Update.
7267 (process_psymtab_comp_unit): Add per_objfile parameter.
7268 (build_type_psymtabs_1): Update.
7269 (process_skeletonless_type_unit): Update.
7270 (dwarf2_build_psymtabs_hard): Update.
7271 (load_partial_comp_unit): Add per_objfile parameter.
7272 (scan_partial_symbols): Update.
7273 (load_full_comp_unit): Add per_objfile parameter.
7274 (process_imported_unit_die): Update.
7275 (create_cus_hash_table): Update.
7276 (find_partial_die): Update.
7277 (dwarf2_read_addr_index): Update.
7278 (follow_die_offset): Update.
7279 (dwarf2_fetch_die_loc_sect_off): Update.
7280 (dwarf2_fetch_constant_bytes): Update.
7281 (dwarf2_fetch_die_type_sect_off): Update.
7282 (follow_die_sig_1): Update.
7283 (load_full_type_unit): Add per_objfile parameter.
7284 (read_signatured_type): Likewise.
7285
7286 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7287
7288 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7289 of objfile_name.
7290
7291 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7292
7293 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7294 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7295 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7296 field.
7297 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7298 (create_cus_from_index): Update.
7299 (dwarf2_read_gdb_index): Update.
7300 (create_cus_from_debug_names): Update.
7301 (dwarf2_read_debug_names): Update.
7302 (get_abbrev_section_for_cu): Update.
7303 (create_all_comp_units): Update.
7304 (read_attribute_value): Update.
7305 (get_debug_line_section): Update.
7306 * dwarf2/index-cache.c (index_cache::store): Update.
7307 * dwarf2/index-write.c (save_gdb_index_command): Update.
7308 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7309
7310 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7311
7312 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7313 member.
7314 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7315 dwarf2_per_cu_data::per_bfd.
7316 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7317 (create_type_unit_group): Likewise.
7318 (queue_comp_unit): Remove reference to
7319 per_cu->dwarf2_per_objfile.
7320 (maybe_queue_comp_unit): Likewise.
7321 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7322 (create_cus_hash_table): Assign new field.
7323
7324 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * dwarf2/read.c: Replace
7327 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7328 dwarf2_cu->per_objfile throughout.
7329
7330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7333 parameter, don't use per_cu->dwarf2_per_objfile.
7334 (dw2_instantiate_symtab): Likewise.
7335 (dw2_find_last_source_symtab): Update.
7336 (dw2_map_expand_apply): Update.
7337 (dw2_lookup_symbol): Update.
7338 (dw2_expand_symtabs_for_function): Update.
7339 (dw2_expand_all_symtabs): Update.
7340 (dw2_expand_symtabs_with_fullname): Update.
7341 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7342 don't use per_cu->dwarf2_per_objfile.
7343 (dw2_expand_marked_cus): Update.
7344 (dw2_find_pc_sect_compunit_symtab): Update.
7345 (dw2_debug_names_lookup_symbol): Update.
7346 (dw2_debug_names_expand_symtabs_for_function): Update.
7347 (dw2_debug_names_map_matching_symbols): Update.
7348 (dwarf2_psymtab::expand_psymtab): Update.
7349
7350 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7353 <per_objfile>: New member.
7354 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7355 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7356 call to dwarf2_cu.
7357 (cutu_reader::cutu_reader): Update.
7358 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7359
7360 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7361
7362 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7363 struct dwarf2_per_objfile.
7364 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7365 dwarf2_per_bfd.
7366 * dwarf2/read.c (set_die_type): Update.
7367 (get_die_type_at_offset): Update.
7368
7369 2020-05-27 Tom Tromey <tom@tromey.com>
7370 Simon Marchi <simon.marchi@efficios.com>
7371
7372 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7373 method.
7374 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7375 get_symtab, set_symtab>: New methods.
7376 <m_symtabs>: New field.
7377 (struct dwarf2_psymtab): Derive from partial_symtab.
7378 <readin_p, get_compunit_symtab>: Declare methods.
7379 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7380 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7381 New methods.
7382 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7383 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7384 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7385 (dw2_symtab_iter_next, dw2_print_stats)
7386 (dw2_expand_symtabs_with_fullname)
7387 (dw2_expand_symtabs_matching_one)
7388 (dw_expand_symtabs_matching_file_matcher)
7389 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7390 (dw2_debug_names_iterator::next)
7391 (dw2_debug_names_map_matching_symbols)
7392 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7393 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7394 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7395 New methods.
7396 (get_compunit_symtab, process_full_comp_unit)
7397 (process_full_type_unit): Update.
7398 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7399
7400 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7401
7402 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7403 then introduce a new dwarf2_per_objfile type.
7404 <read_line_string>: Move to the new dwarf2_per_objfile type.
7405 <objfile>: Likewise.
7406 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7407 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7408 dwarf2_per_objfile->per_bfd.
7409 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7410 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7411 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7412 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7413 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7414 (dwarf2_per_objfile::locate_sections): Rename to...
7415 (dwarf2_per_bfd::locate_sections): ... this.
7416 (dwarf2_per_objfile::get_cutu): Rename to...
7417 (dwarf2_per_bfd::get_cutu): ... this.
7418 (dwarf2_per_objfile::get_cu): Rename to...
7419 (dwarf2_per_bfd::get_cu): ... this.
7420 (dwarf2_per_objfile::get_tu): Rename to...
7421 (dwarf2_per_bfd::get_tu): ... this.
7422 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7423 (dwarf2_per_bfd::allocate_per_cu): ... this.
7424 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7425 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7426 (get_gdb_index_contents_ftype): Change parameter from
7427 dwarf2_per_objfile to dwarf2_per_bfd.
7428 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7429 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7430
7431 2020-05-27 Tom Tromey <tom@tromey.com>
7432 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7435 (allocate_piece_closure): Set "per_objfile" member.
7436 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7437 (locexpr_describe_location, loclist_describe_location): Use new
7438 member.
7439 * dwarf2/read.c (read_call_site_scope)
7440 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7441 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7442 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7443 handle_data_member_location): Set per_objfile member.
7444 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7445 member.
7446 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7447
7448 2020-05-27 Tom Tromey <tom@tromey.com>
7449
7450 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7451 allocate_signatured_type>: Declare new methods.
7452 <m_num_psymtabs>: New member.
7453 (struct dwarf2_per_cu_data) <index>: New member.
7454 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7455 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7456 (create_cu_from_index_list): Use allocate_per_cu.
7457 (create_signatured_type_table_from_index)
7458 (create_signatured_type_table_from_debug_names)
7459 (create_debug_type_hash_table, add_type_unit)
7460 (read_comp_units_from_section): Use allocate_signatured_type.
7461
7462 2020-05-27 Tom Tromey <tom@tromey.com>
7463
7464 * psymtab.c (partial_map_expand_apply)
7465 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7466 (psym_lookup_global_symbol_language)
7467 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7468 (psym_print_stats, psym_expand_symtabs_for_function)
7469 (psym_map_symbol_filenames, psym_map_matching_symbols)
7470 (psym_expand_symtabs_matching)
7471 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7472 (maintenance_check_psymtabs): Update.
7473 * psympriv.h (struct partial_symtab) <readin_p,
7474 get_compunit_symtab>: Add objfile parameter.
7475 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7476 Likewise.
7477 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7478 get_compunit_symtab>: Likewise.
7479 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7480
7481 2020-05-27 Tom Tromey <tom@tromey.com>
7482
7483 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7484 member.
7485 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7486 (create_cu_from_index_list)
7487 (create_signatured_type_table_from_index)
7488 (create_signatured_type_table_from_debug_names)
7489 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7490 (dwarf2_create_include_psymtab)
7491 (create_debug_type_hash_table, add_type_unit)
7492 (create_type_unit_group, read_comp_units_from_section)
7493 (dwarf2_compute_name, create_cus_hash_table)
7494 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7495 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7496 obstack.
7497 (dw2_get_real_path): Likewise. Change argument to
7498 dwarf2_per_objfile.
7499
7500 2020-05-27 Luis Machado <luis.machado@linaro.org>
7501
7502 PR tdep/26000
7503 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7504 for ldrd (immediate).
7505
7506 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7507
7508 * command.h: Add comment giving the name of class_tui.
7509 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7510 create the fake command for the help for class_tui.
7511
7512 2020-05-26 Tom Tromey <tromey@adacore.com>
7513
7514 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7515 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7516 (val_atr): New function.
7517 (value_val_atr): Use it.
7518 * ada-valprint.c (print_optional_low_bound): Change low bound
7519 handling for enums.
7520 (val_print_packed_array_elements): Don't call discrete_position.
7521 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7522 discrete_position for enum types.
7523 * language.c (default_print_array_index): Change type.
7524 * language.h (struct language_defn) <la_print_array_index>: Add
7525 index_type parameter, change type of index_value.
7526 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7527 (default_print_array_index): Update.
7528 * valprint.c (maybe_print_array_index): Don't call
7529 value_from_longest. Update.
7530 (value_print_array_elements): Don't call discrete_position.
7531
7532 2020-05-26 Tom Tromey <tromey@adacore.com>
7533
7534 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7535 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7536
7537 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7538
7539 PR gdb/13519
7540 * avr-tdep.c (avr_integer_to_address): Return data or code
7541 address accordingly to the second 'type' argument of the
7542 function.
7543
7544 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7545
7546 * infcmd.c, inferior.h: (construct_inferior_arguments):
7547 Moved function from here to gdbsupport/common-inferior.{h,cc}
7548
7549 2020-05-23 Tom Tromey <tom@tromey.com>
7550
7551 Revert commit eca1f90c:
7552 * NEWS: Remove entry for completion styling.
7553 * completer.c (_rl_completion_prefix_display_length): Move
7554 declaration later.
7555 (gdb_fnprint): Revert.
7556 (gdb_display_match_list_1): Likewise.
7557 * cli/cli-style.c (completion_prefix_style)
7558 (completion_difference_style, completion_suffix_style): Remove.
7559 (_initialize_cli_style): Revert.
7560 * cli/cli-style.h (completion_prefix_style)
7561 (completion_difference_style, completion_suffix_style): Don't
7562 declare.
7563
7564 2020-05-24 Pedro Alves <palves@redhat.com>
7565
7566 * symtab.c (completion_list_add_name): Return boolean indication
7567 of whether the symbol matched.
7568 (completion_list_add_symbol): Don't try to remove C++ aliases if
7569 the symbol didn't match in the first place.
7570 * symtab.h (completion_list_add_name): Return bool.
7571
7572 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7573
7574 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7575 type::field.
7576
7577 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7578
7579 GDB 9.2 released.
7580
7581 2020-05-23 Tom Tromey <tom@tromey.com>
7582
7583 * NEWS: Add entry for completion styling.
7584 * completer.c (_rl_completion_prefix_display_length): Move
7585 declaration earlier.
7586 (gdb_fnprint): Use completion_style.
7587 (gdb_display_match_list_1): Likewise.
7588 * cli/cli-style.c (completion_prefix_style)
7589 (completion_difference_style, completion_suffix_style): New
7590 globals.
7591 (_initialize_cli_style): Register new globals.
7592 * cli/cli-style.h (completion_prefix_style)
7593 (completion_difference_style, completion_suffix_style): Declare.
7594
7595 2020-05-23 Pedro Alves <palves@redhat.com>
7596
7597 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7598 (parse_escape): Use ISDIGIT instead of isdigit.
7599 (puts_debug): Use gdb_isprint instead of isprint.
7600 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7601 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7602 ISSPACE instead of isspace.
7603 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7604 instead of isspace.
7605 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7606 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7607 instead of isxdigit and ISDIGIT instead of isdigit.
7608
7609 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7610
7611 * gdbtypes.h (struct type) <field>: New method.
7612 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7613 or type::field.
7614
7615 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7616
7617 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7618 (TYPE_FIELDS): Use type::fields. Change all call sites that
7619 modify the propery to use type::set_fields instead.
7620
7621 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7624 type::num_fields instead.
7625
7626 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7629 methods.
7630 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7631 that modify the number of fields to use type::set_num_fields
7632 instead.
7633
7634 2020-05-22 Tom Tromey <tromey@adacore.com>
7635
7636 * compile/compile-object-load.h (munmap_list_free): Don't
7637 declare.
7638
7639 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7640
7641 * annotate.c (annotate_source_line): Update return type, add call
7642 to update current symtab and line.
7643 * annotate.h (annotate_source_line): Update return type, and
7644 extend header comment.
7645 * source.c (info_line_command): Check annotation_level before
7646 calling annotate_source_line.
7647 * stack.c (print_frame_info): If calling annotate_source_line
7648 returns true, then don't print any other source line information.
7649
7650 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7653
7654 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7655
7656 * coffread.c (patch_type): Remove NULL check before xfree.
7657 * corefile.c (set_gnutarget): Likewise.
7658 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7659 * exec.c (build_section_table): Likewise.
7660 * remote.c (remote_target::pass_signals): Likewise.
7661 * utils.c (n_spaces): Likewise.
7662 * cli/cli-script.c (document_command): Likewise.
7663 * i386-windows-tdep.c (core_process_module_section): Likewise.
7664 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7665
7666 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * symfile.c (reread_symbols): Clear objfile's section_offsets
7669 vector and section indices, re-compute them by calling
7670 sym_offsets.
7671
7672 2020-05-20 Tom Tromey <tromey@adacore.com>
7673
7674 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7675 (desc_one_bound, desc_index_type): Compute field name.
7676
7677 2020-05-20 Tom de Vries <tdevries@suse.de>
7678
7679 PR symtab/25833
7680 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7681
7682 2020-05-20 Alan Modra <amodra@gmail.com>
7683
7684 PR 25993
7685 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7686 bfd_set_filename.
7687 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7688 passed to bfd_set_filename.
7689 * symfile-mem.c (add_vsyscall_page): Likewise for string
7690 passed to symbol_file_add_from_memory.
7691 (symbol_file_add_from_memory): Make name param a const char* and
7692 don't strdup.
7693
7694 2020-05-20 Alan Modra <amodra@gmail.com>
7695
7696 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7697 rather than accessing bfd->filename directly.
7698 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7699 and use bfd_section_name.
7700 * dwarf2/frame.c (decode_frame_entry): Likewise.
7701 * exec.c (exec_set_section_address): Likewise.
7702 * solib-aix.c (solib_aix_bfd_open): Likewise.
7703 * stap-probe.c (get_stap_base_address): Likewise.
7704 * symfile.c (reread_symbols): Likewise.
7705
7706 2020-05-19 Tom Tromey <tromey@adacore.com>
7707
7708 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7709
7710 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7711
7712 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7713
7714 2020-05-19 Pedro Alves <palves@redhat.com>
7715
7716 * NEWS (set exec-file-mismatch): Adjust entry.
7717 * exec.c: Include "build-id.h".
7718 (validate_exec_file): Try to match build IDs instead of filenames.
7719 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7720 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7721 and pass down 'warn_if_slow'.
7722 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7723 gdb_bfd_open_closure to pass it down.
7724 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7725
7726 2020-05-19 Pedro Alves <palves@redhat.com>
7727
7728 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7729 * target.c (target_fileio_open_1): Rename to target_fileio_open
7730 and make extern. Use bool.
7731 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7732 (target_fileio_read_alloc_1): Adjust.
7733 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7734 (target_fileio_open_warn_if_slow): Delete declaration.
7735
7736 2020-05-19 Pedro Alves <palves@redhat.com>
7737
7738 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7739 Adjust all callers.
7740
7741 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7742
7743 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7744 whether disp is negative.
7745
7746 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7747
7748 * symfile.h (struct symfile_segment_data)
7749 <~symfile_segment_data>: Remove.
7750 <segment_info>: Change to std::vector.
7751 * symfile.c (default_symfile_segments): Update.
7752 * elfread.c (elf_symfile_segments): Update.
7753
7754 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7755
7756 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7757 <segments>: New.
7758 <segment_bases, segment_sizes>: Remove.
7759 * symfile.c (default_symfile_segments): Update.
7760 * elfread.c (elf_symfile_segments): Update.
7761 * remote.c (remote_target::get_offsets): Update.
7762 * solib-target.c (solib_target_relocate_section_addresses):
7763 Update.
7764
7765 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7766
7767 * symfile.h (struct symfile_segment_data): Initialize fields.
7768 <~symfile_segment_data>: Add.
7769 (symfile_segment_data_up): New.
7770 (struct sym_fns) <sym_segments>: Return a
7771 symfile_segment_data_up.
7772 (default_symfile_segments): Return a symfile_segment_data_up.
7773 (free_symfile_segment_data): Remove.
7774 (get_symfile_segment_data): Return a symfile_segment_data_up.
7775 * symfile.c (default_symfile_segments): Likewise.
7776 (get_symfile_segment_data): Likewise.
7777 (free_symfile_segment_data): Remove.
7778 (symfile_find_segment_sections): Update.
7779 * elfread.c (elf_symfile_segments): Return a
7780 symfile_segment_data_up.
7781 * remote.c (remote_target::get_offsets): Update.
7782 * solib-target.c (solib_target_relocate_section_addresses):
7783 Update.
7784 * symfile-debug.c (debug_sym_segments): Return a
7785 symfile_segment_data_up.
7786
7787 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7788
7789 PR build/25981
7790 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7791 Hardcode register numbers.
7792
7793 PR build/25981
7794 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7795 procfs_find_LDT_entry): Remove.
7796 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7797 procfs_find_LDT_entry): Remove.
7798 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7799 Remove.
7800
7801 2020-05-17 Pedro Alves <palves@redhat.com>
7802 Andrew Burgess <andrew.burgess@embecosm.com>
7803 Keno Fischer <keno@juliacomputing.com>
7804
7805 PR gdb/25741
7806 * breakpoint.c (build_target_condition_list): Update comments.
7807 (build_target_command_list): Update comments and skip matching
7808 locations.
7809 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7810 a separate function. Simplify "set breakpoint auto-hw off"
7811 handling.
7812 (insert_breakpoints): Update comment.
7813 (tracepoint_locations_match): New parameter. For breakpoints,
7814 compare location types too, if the caller wants to.
7815 (handle_automatic_hardware_breakpoints): New functions.
7816 (bp_location_is_less_than): Also sort by location type and
7817 hardware breakpoint length.
7818 (update_global_location_list): Handle "set breakpoint auto-hw on"
7819 here.
7820 (update_breakpoint_locations): Ask breakpoint_locations_match to
7821 ignore location types.
7822
7823 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7826 type::name instead.
7827
7828 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7829
7830 * gdbtypes.h (struct type) <name, set_name>: New methods.
7831 (TYPE_CODE): Use type::name. Change all call sites used to set
7832 the name to use type::set_name instead.
7833
7834 2020-05-16 Tom Tromey <tom@tromey.com>
7835
7836 * top.c (quit_force): Update.
7837 * infrun.c (handle_no_resumed): Update.
7838 * top.h (all_uis): New function.
7839 (ALL_UIS): Remove.
7840
7841 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7842
7843 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7844
7845 2020-05-16 Pedro Alves <palves@redhat.com>
7846
7847 * ia64-linux-nat.c
7848 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7849 Declare method.
7850 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7851
7852 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7853
7854 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7855 (sparc64_adi_info): Likewise.
7856
7857 2020-05-15 Tom Tromey <tom@tromey.com>
7858
7859 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7860 block_objfile.
7861 (lookup_objfile_from_block): Remove.
7862 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7863 (lookup_global_symbol): Use block_objfile.
7864 * symtab.h (lookup_objfile_from_block): Don't declare.
7865 * printcmd.c (clear_dangling_display_expressions): Use
7866 block_objfile.
7867 * parse.c (operator_check_standard): Use block_objfile.
7868
7869 2020-05-15 Tom Tromey <tom@tromey.com>
7870
7871 * language.c (language_alloc_type_symbol): Set
7872 SYMBOL_SECTION.
7873 * symtab.c (initialize_objfile_symbol): Remove.
7874 (allocate_symbol): Remove.
7875 (allocate_template_symbol): Remove.
7876 * dwarf2/read.c (fixup_go_packaging): Use "new".
7877 (new_symbol): Use "new".
7878 (read_variable): Don't call initialize_objfile_symbol. Use
7879 "new".
7880 (read_func_scope): Use "new".
7881 * xcoffread.c (process_xcoff_symbol): Don't call
7882 initialize_objfile_symbol.
7883 (SYMBOL_DUP): Remove.
7884 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7885 "new".
7886 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7887 (allocate_template_symbol): Don't declare.
7888 (struct symbol): Add copy constructor. Change defaults.
7889 * jit.c (finalize_symtab): Use "new".
7890 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7891 Use "new".
7892 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7893 (common_block_end): Use "new".
7894 * mdebugread.c (parse_symbol): Use "new".
7895 (new_symbol): Likewise.
7896
7897 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7898
7899 * NEWS: Mention changes to help and apropos.
7900
7901 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7902
7903 * command.h (enum command_class): Improve comments, document
7904 that class_alias is for user-defined aliases, give the class
7905 name for each class, remove unused class_xdb.
7906 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7907 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7908 by a precise class.
7909 * infcmd.c (_initialize_infcmd): Likewise.
7910 * reverse.c (_initialize_reverse): Likewise.
7911 * stack.c (_initialize_stack): Likewise.
7912 * symfile.c (_initialize_symfile): Likewise.
7913 * tracepoint.c (_initialize_tracepoint): Likewise.
7914
7915 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7916
7917 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7918 when their aliased command is traversed.
7919 (help_cmd): Add fput_command_names_styled call to
7920 output command name and aliases when command has an alias.
7921
7922 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7923
7924 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7925 * cli/cli-decode.c (help_cmd_list): Declare as static,
7926 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7927 a command together with the command.
7928 (fput_command_name_styled, fput_command_names_styled): New functions.
7929 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7930 fput_command_name_styled.
7931 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7932 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7933
7934 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7935
7936 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7937 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7938 * command.h (cmd_show_list): Likewise.
7939 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7940 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7941
7942 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7943
7944 * unittests/command-def-selftests.c (traverse_command_structure):
7945 Verify all commands of a list have the same prefix command and
7946 that only the top cmdlist commands have a null prefix.
7947
7948 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7949
7950 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7951 as prefix, not one of its aliases.
7952 (set_cmd_prefix): Remove.
7953 (do_add_cmd): Centralize the setting of the prefix of a command, when
7954 command is defined after its full chain of prefix commands.
7955 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7956 (add_setshow_cmd_full): Likewise.
7957 (update_prefix_field_of_prefixed_commands): New function.
7958 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7959 update_prefix_field_of_prefixed_commands.
7960 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7961 addresses of remote_set_cmdlist and remote_show_cmdlist given
7962 as argument, not the address of an argument.
7963 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7964 * gdb/remote.c (_initialize_remote): Likewise.
7965
7966 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7967
7968 * cli/cli-cmds.c (alias_command): Check for an existing alias
7969 using lookup_cmd_composition, as valid_command_p is too strict
7970 and forbids aliases that are the prefix of an existing alias
7971 or command.
7972 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7973 command is properly recognised as a valid command.
7974
7975 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7976
7977 * unittests/help-doc-selftests.c: Rename to
7978 unittests/command-def-selftests.c
7979 * unittests/command-def-selftests.c (help_doc_tests): Update some
7980 comments.
7981 (command_structure_tests, traverse_command_structure): New namespace
7982 and function.
7983 (command_structure_invariants_tests): New function.
7984 (_initialize_command_def_selftests) Renamed from
7985 _initialize_help_doc_selftests, register command_structure_invariants
7986 selftest.
7987
7988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7989
7990 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7991 an alias of 'show'.
7992
7993 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7994
7995 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7996 ada_is_fixed_point_type. Update all callers.
7997 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7998 all callers.
7999 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8000 Update all callers.
8001 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8002 print_fixed_point_type. Update all callers.
8003 * ada-valprint.c (ada_value_print_num): Replace call to
8004 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8005
8006 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8007
8008 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8009 processors.
8010 (cpu_supports_bts): Add CV_AMD case.
8011
8012 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8013 Simon Marchi <simon.marchi@efficios.com>
8014
8015 * infrun.c (stop_all_threads): Collect multiple wait events at
8016 each pass.
8017
8018 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8021 type::code instead.
8022
8023 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * gdbtypes.h (struct type) <code, set_code>: New methods.
8026 (TYPE_CODE): Use type::code. Change all call sites used to set
8027 the code to use type::set_code instead.
8028
8029 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8030 Tom de Vries <tdevries@suse.de>
8031 Pedro Alves <palves@redhat.com>
8032
8033 PR threads/25478
8034 * infrun.c (stop_all_threads): Do NOT ignore
8035 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8036 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8037 received.
8038 (handle_no_resumed): Remove code handling a live inferior with no
8039 threads.
8040 * remote.c (has_single_non_exited_thread): New.
8041 (remote_target::update_thread_list): Do not delete a thread if is
8042 the last thread of the process.
8043 * thread.c (thread_select): Call delete_exited_threads instead of
8044 prune_threads.
8045
8046 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8047
8048 * infrun.c (stop_all_threads): Enable/disable thread events of all
8049 targets. Move a debug message denoting the end of the function
8050 into the SCOPED_EXIT block.
8051
8052 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8053
8054 * process-stratum-target.h: Include <set>.
8055 (all_non_exited_process_targets, switch_to_target_no_thread): New
8056 function declarations.
8057 * process-stratum-target.c (all_non_exited_process_targets)
8058 (switch_to_target_no_thread): New function implementations.
8059
8060 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8061
8062 * infrun.c (handle_inferior_event): Extract out a piece of code
8063 into...
8064 (mark_non_executing_threads): ...this new function.
8065
8066 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8067
8068 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8069 use.
8070
8071 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8072
8073 * regcache.c (regcache_read_pc_protected): New function
8074 implementation that returns 0 if the PC cannot read via
8075 'regcache_read_pc'.
8076 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8077 instead of 'regcache_read_pc'.
8078 (keep_going_pass_signal): Ditto.
8079
8080 2020-05-13 Tom Tromey <tromey@adacore.com>
8081
8082 * ada-lang.c (align_value): Remove.
8083 (ada_template_to_fixed_record_type_1): Use align_up.
8084
8085 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8086
8087 * async-event.c: Update the copyright year.
8088 * async-event.h: Update the copyright year.
8089
8090 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * objfiles.h (is_addr_in_objfile,
8093 shared_objfile_contains_address_p): Return bool.
8094 * objfile.c (is_addr_in_objfile,
8095 shared_objfile_contains_address_p): Return bool.
8096
8097 2020-05-11 Tom Tromey <tromey@adacore.com>
8098
8099 * cli/cli-cmds.c (info_command): Restore.
8100 (_initialize_cli_cmds): Use add_prefix_command for "info".
8101 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8102
8103 2020-05-11 Tom Tromey <tromey@adacore.com>
8104
8105 * ada-lang.c (ada_value_primitive_field): Now public.
8106 * ada-lang.h (ada_value_primitive_field): Declare.
8107 * ada-valprint.c (print_field_values): Use
8108 ada_value_primitive_field for wrapper fields.
8109
8110 2020-05-11 Tom de Vries <tdevries@suse.de>
8111
8112 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8113 MODULE_DOMAIN.
8114
8115 2020-05-11 Tom de Vries <tdevries@suse.de>
8116
8117 PR symtab/25941
8118 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8119 with length 0, if not gdb-produced.
8120 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8121
8122 2020-05-09 Tom de Vries <tdevries@suse.de>
8123
8124 PR gdb/25955
8125 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8126 calculation.
8127
8128 2020-05-09 Tom Tromey <tom@tromey.com>
8129
8130 * top.c (server_command): Now bool.
8131 * top.h (server_command): Now bool.
8132
8133 2020-05-08 Tom Tromey <tromey@adacore.com>
8134
8135 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8136 already being processed.
8137
8138 2020-05-08 Tom Tromey <tom@tromey.com>
8139
8140 * printcmd.c (struct display) <next>: Remove.
8141 <display>: New constructor.
8142 <exp_string>: Now a std::string.
8143 <enabled_p>: Now a bool.
8144 (display_number): Move definition earlier.
8145 (displays): Rename from display_chain. Now a std::vector.
8146 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8147 (display_command): Update.
8148 (do_one_display, disable_display)
8149 (enable_disable_display_command, do_enable_disable_display):
8150 Update.
8151 (free_display): Remove.
8152 (clear_displays): Rewrite.
8153 (delete_display): Update.
8154 (map_display_numbers): Use function_view. Remove "data"
8155 parameter. Update.
8156 (do_delete_display): Remove.
8157 (undisplay_command): Update.
8158 (do_one_display, do_displays, disable_display)
8159 (info_display_command): Update.
8160 (do_enable_disable_display): Remove.
8161 (enable_disable_display_command)
8162 (clear_dangling_display_expressions): Update.
8163
8164 2020-05-08 Tom Tromey <tom@tromey.com>
8165
8166 * symtab.c (set_symbol_cache_size)
8167 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8168 (maintenance_print_symbol_cache_statistics): Update.
8169 * symmisc.c (print_symbol_bcache_statistics)
8170 (print_objfile_statistics, maintenance_print_objfiles)
8171 (maintenance_info_symtabs, maintenance_check_symtabs)
8172 (maintenance_expand_symtabs, maintenance_info_line_tables):
8173 Update.
8174 * symfile-debug.c (set_debug_symfile): Update.
8175 * source.c (forget_cached_source_info): Update.
8176 * python/python.c (gdbpy_progspaces): Update.
8177 * psymtab.c (maintenance_info_psymtabs): Update.
8178 * probe.c (parse_probes): Update.
8179 * linespec.c (iterate_over_all_matching_symtabs)
8180 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8181 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8182 * exec.c (exec_target::close): Update.
8183 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8184 * breakpoint.c (print_one_breakpoint_location)
8185 (create_longjmp_master_breakpoint)
8186 (create_std_terminate_master_breakpoint): Update.
8187 * progspace.c (program_spaces): Now a std::vector.
8188 (maybe_new_address_space): Update.
8189 (add_program_space): Remove.
8190 (program_space::program_space): Update.
8191 (remove_program_space): Update.
8192 (number_of_program_spaces): Remove.
8193 (print_program_space, update_address_spaces): Update.
8194 * progspace.h (program_spaces): Change type.
8195 (ALL_PSPACES): Remove.
8196 (number_of_program_spaces): Don't declare.
8197 (struct program_space) <next>: Remove.
8198
8199 2020-05-08 Tom Tromey <tom@tromey.com>
8200
8201 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8202 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8203 (enable_break): Update.
8204 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8205 (frv_fdpic_find_canonical_descriptor): Update.
8206 (frv_fetch_objfile_link_map): Update.
8207 * progspace.c (program_space::free_all_objfiles): Update.
8208 (program_space::solibs): New method.
8209 * progspace.h (struct program_space) <solibs>: New method.
8210 * solist.h (master_so_list): Don't declare.
8211 (ALL_SO_LIBS): Remove.
8212 * solib.h (so_list_head): Remove.
8213 (update_solib_list): Update comment.
8214 * solib.c (master_so_list): Remove.
8215 (solib_used, update_solib_list, solib_add)
8216 (info_sharedlibrary_command, clear_solib)
8217 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8218
8219 2020-05-08 Tom Tromey <tom@tromey.com>
8220
8221 * extension.c (extension_languages): Now a std::array.
8222 (ALL_EXTENSION_LANGUAGES): Remove.
8223 (get_ext_lang_defn, get_ext_lang_of_file)
8224 (eval_ext_lang_from_control_command): Update.
8225 (finish_ext_lang_initialization)
8226 (auto_load_ext_lang_scripts_for_objfile)
8227 (ext_lang_type_printers::ext_lang_type_printers)
8228 (apply_ext_lang_type_printers)
8229 (ext_lang_type_printers::~ext_lang_type_printers)
8230 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8231 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8232 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8233 (get_matching_xmethod_workers, ext_lang_colorize)
8234 (ext_lang_before_prompt): Update.
8235 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8236
8237 2020-05-08 Tom Tromey <tom@tromey.com>
8238
8239 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8240 overload.
8241 <swap_string, m_string>: Remove.
8242 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8243 Update.
8244 * stabsread.c (define_symbol, read_type): Update.
8245 * linespec.c (find_linespec_symbols): Update.
8246 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8247 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8248 * dbxread.c (read_dbx_symtab): Update.
8249 * cp-support.h (cp_canonicalize_string_full)
8250 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8251 Return unique_xmalloc_ptr.
8252 * cp-support.c (inspect_type): Update.
8253 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8254 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8255 Likewise.
8256 * c-typeprint.c (print_name_maybe_canonical): Update.
8257 * break-catch-throw.c (check_status_exception_catchpoint):
8258 Update.
8259
8260 2020-05-08 Tom de Vries <tdevries@suse.de>
8261
8262 * infrun.c (follow_fork): Copy current_line and current_symtab to
8263 child thread.
8264
8265 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8266
8267 * async-event.c (struct async_signal_handler, struct
8268 async_event_handler): Reformat, remove typedef.
8269
8270 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8271
8272 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8273 access thistype->main_type->dyn_prop_list directly.
8274
8275 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8278 (remove_dyn_prop): Remove. Update all users to use
8279 type::remove_dyn_prop.
8280 * gdbtypes.c (remove_dyn_prop): Rename to...
8281 (type::remove_dyn_prop): ... this.
8282
8283 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8284
8285 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8286 (add_dyn_prop): Remove. Update all users to use
8287 type::add_dyn_prop.
8288 * gdbtypes.c (add_dyn_prop): Rename to...
8289 (type::add_dyn_prop): ... this.
8290
8291 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8292
8293 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8294 (get_dyn_prop): Remove. Update all users to use
8295 type::dyn_prop.
8296 * gdbtypes.c (get_dyn_prop): Rename to...
8297 (type::dyn_prop): ... this.
8298
8299 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8300
8301 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8302
8303 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8304
8305 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8306 instruction, skip it if it's there.
8307
8308 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8309
8310 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8311
8312 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8313
8314 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8315 * gdbtypes.c (recursive_dump_type): Remove use of
8316 TYPE_INCOMPLETE.
8317
8318 2020-05-03 Tom Tromey <tom@tromey.com>
8319
8320 * breakpoint.c (catch_command, tcatch_command): Remove.
8321 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8322 add_show_prefix_cmd.
8323 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8324 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8325 Remove.
8326 (add_internal_problem_command): Use add_basic_prefix_cmd,
8327 add_show_prefix_cmd.
8328 * mips-tdep.c (set_mipsfpu_command): Remove.
8329 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8330 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8331 (_initialize_index_cache): Use add_basic_prefix_cmd.
8332 * memattr.c (dummy_cmd): Remove.
8333 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8334 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8335 (_initialize_tui_win): Use add_basic_prefix_cmd,
8336 add_show_prefix_cmd.
8337 * cli/cli-logging.c (set_logging_command): Remove.
8338 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8339 add_show_prefix_cmd.
8340 (show_logging_command): Remove.
8341 * target.c (target_command): Remove.
8342 (add_target): Use add_basic_prefix_cmd.
8343
8344 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8345
8346 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8347
8348 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8349
8350 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8351 info_command.
8352
8353 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8354
8355 * nbsd-nat.c (nbsd_enable_proc_events)
8356 (nbsd_nat_target::post_startup_inferior): Add.
8357 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8358 (nbsd_nat_target::update_thread_list): Rewrite.
8359 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8360 "PTRACE_LWP_CREATE".
8361 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8362
8363 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8364
8365 * stack.c (_initialize_stack): Remove duplicated creation
8366 of "frame" command and "f" alias.
8367
8368 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8369
8370 PR gdb/18706
8371 * gdbtypes.c (check_typedef): Calculate size of array of
8372 stubbed type.
8373
8374 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8375
8376 PR gdb/15559
8377 * i386-tdep.c (i386_push_dummy_call): Call
8378 i386_thiscall_push_dummy_call.
8379 (i386_thiscall_push_dummy_call): New function.
8380 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8381 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8382 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8383
8384 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8385
8386 * gdbarch.sh (do_read): Add shellcheck disable directive for
8387 warning SC2162.
8388
8389 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8390
8391 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8392 "referenced but not assigned" warning.
8393
8394 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8395
8396 * gdbarch.sh: Remove code that sets fallbackdefault.
8397
8398 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8399
8400 * gdbarch.sh: Use shell operators && and || instead of
8401 -a and -o.
8402
8403 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8404
8405 * gdbarch.sh: Use $(...) instead of `...`.
8406
8407 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8408
8409 * gdbarch.sh: Use double quotes around variables.
8410
8411 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8412
8413 * gdbarch.sh: Use %s with printf, instead of variables in the
8414 format string.
8415
8416 2020-04-29 Tom Tromey <tromey@adacore.com>
8417
8418 PR ada/25875:
8419 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8420 type fields here.
8421 (read_enumeration_type): Call
8422 update_enumeration_type_from_children later. Update comments.
8423 (process_enumeration_scope): Don't create type fields.
8424
8425 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8426
8427 * nbsd-tdep.c: Include "xml-syscall.h".
8428 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8429
8430 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8431
8432 * nbsd-nat.c: Include "sys/wait.h".
8433 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8434 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8435 (nbsd_nat_target::remove_exec_catchpoint)
8436 (nbsd_nat_target::set_syscall_catchpoint): Add.
8437 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8438 (nbsd_nat_target::insert_exec_catchpoint)
8439 (nbsd_nat_target::remove_exec_catchpoint)
8440 (nbsd_nat_target::set_syscall_catchpoint): Add.
8441 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8442 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8443 `nbsd_get_syscall_number'.
8444
8445 2020-04-29 Tom Tromey <tom@tromey.com>
8446
8447 * stack.c (print_block_frame_labels): Remove.
8448
8449 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8450
8451 PR gdb/17320
8452 * ada-valprint.c (val_print_packed_array_elements): Move array
8453 end bracket to new line.
8454 (ada_val_print_string): Remove extra spaces before first array
8455 element.
8456 * c-valprint.c (c_value_print_array): Likewise.
8457 * m2-valprint.c (m2_print_array_contents): Likewise.
8458 (m2_value_print_inner): Likewise.
8459 * p-valprint.c (pascal_value_print_inner): Likewise.
8460 * valprint.c (generic_val_print_array): Likewise.
8461 (value_print_array_elements): Move first array element and array
8462 end bracket to new line.
8463
8464 2020-04-29 Tom de Vries <tdevries@suse.de>
8465
8466 PR symtab/25889
8467 * linespec.c (find_method): Fix ix calculation.
8468
8469 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8470
8471 * syscalls/update-netbsd.sh: New file.
8472 * syscalls/netbsd.xml: Regenerate.
8473 * data-directory/Makefile.in: Register `netbsd.xml' in
8474 `SYSCALLS_FILES'.
8475
8476 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8477
8478 * syscalls/update-freebsd.sh: Add double quotes.
8479
8480 2020-04-28 Tom Tromey <tom@tromey.com>
8481
8482 * NEWS: Update.
8483 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8484 (cmdpy_init): Allow class_tui.
8485
8486 2020-04-28 Mark Williams <mark@myosotissp.com>
8487
8488 PR gdb/24480
8489 * dwarf2read.c: Add missing assingments to list_in_scope when
8490 start_symtab was already called.
8491
8492 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8493
8494 PR gdb/25881
8495 * dwarf2/read.c (offset_map_type): Use
8496 gdb:hash_enum<sect_offset> as hash function.
8497
8498 2020-04-28 Tom de Vries <tdevries@suse.de>
8499
8500 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8501 with DW_AT_signature.
8502
8503 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * configure.ac: Remove check for fs_base/gs_base in
8506 user_regs_struct.
8507 * configure: Re-generate.
8508 * config.in: Re-generate.
8509 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8510 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8511 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8512
8513 2020-04-27 Luis Machado <luis.machado@linaro.org>
8514
8515 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8516 problematic inline frame unwinding situation.
8517 * frame.c (frame_id_computed_p): New function.
8518 * frame.h (frame_id_computed_p): New prototype.
8519
8520 2020-04-26 Tom Tromey <tom@tromey.com>
8521
8522 * command.h (enum command_class) <class_pseudo>: Remove.
8523
8524 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8525
8526 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8527 and whitespace.
8528
8529 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8530
8531 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8532 `PT_GET_PROCESS_STATE' block.
8533
8534 2020-04-24 Tom Tromey <tom@tromey.com>
8535
8536 * symtab.h (symbol_get_demangled_name): Don't declare.
8537 * symtab.c (symbol_get_demangled_name): Remove.
8538 (general_symbol_info::natural_name)
8539 (general_symbol_info::demangled_name): Update.
8540
8541 2020-04-24 Tom Tromey <tom@tromey.com>
8542
8543 PR rust/25025:
8544 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8545
8546 2020-04-24 Tom Tromey <tom@tromey.com>
8547
8548 PR symtab/12707:
8549 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8550 exists.
8551 (new_symbol): Likewise.
8552 * compile/compile-object-load.c (get_out_value_type): Use
8553 symbol_matches_search_name.
8554
8555 2020-04-24 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/read.c (add_partial_symbol): Do not call
8558 compute_and_set_names.
8559
8560 2020-04-24 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8563 overload.
8564
8565 2020-04-24 Tom Tromey <tom@tromey.com>
8566
8567 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8568 (add_psymbol_to_list): New overload. Make old overload call new
8569 one.
8570 * psympriv.h (add_psymbol_to_list): New overload.
8571
8572 2020-04-24 Tom Tromey <tom@tromey.com>
8573
8574 * dwarf2/read.c (partial_die_info::read) <case
8575 DW_AT_linkage_name>: Use value_as_string.
8576 (dwarf2_string_attr): Use value_as_string.
8577 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8578 method.
8579 * dwarf2/attribute.c (attribute::value_as_string): New method.
8580
8581 2020-04-24 Tom Tromey <tom@tromey.com>
8582
8583 * symtab.c (general_symbol_info::natural_name)
8584 (general_symbol_info::demangled_name): Check for language_rust.
8585
8586 2020-04-24 Tom Tromey <tom@tromey.com>
8587
8588 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8589 (dwarf2_physname): ... from here.
8590 (partial_die_info::read): Add Rust "{" hack.
8591
8592 2020-04-24 Tom Tromey <tom@tromey.com>
8593
8594 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8595 method.
8596 (symbol_set_demangled_name): Don't declare.
8597 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8598 symbol_set_demangled_name.
8599 (general_symbol_info::set_language)
8600 (general_symbol_info::compute_and_set_names): Update.
8601 * minsyms.c (minimal_symbol_reader::install): Update.
8602 * dwarf2/read.c (new_symbol): Update.
8603
8604 2020-04-24 Tom Tromey <tromey@adacore.com>
8605
8606 PR python/23662:
8607 * python/py-type.c (convert_field): Handle
8608 FIELD_LOC_KIND_DWARF_BLOCK.
8609 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8610 (typy_get_dynamic): Nw function.
8611 (type_object_getset): Add "dynamic".
8612 * NEWS: Add entry.
8613
8614 2020-04-24 Tom Tromey <tromey@adacore.com>
8615
8616 * ada-typeprint.c (print_choices, print_variant_part)
8617 (print_record_field_types_dynamic): New functions.
8618 (print_record_field_types): Use print_record_field_types_dynamic.
8619
8620 2020-04-24 Tom Tromey <tromey@adacore.com>
8621
8622 * dwarf2/read.c (handle_data_member_location): New overload.
8623 (dwarf2_add_field): Use it.
8624 (decode_locdesc): Add "computed" parameter. Update comment.
8625 * gdbtypes.c (is_dynamic_type_internal): Also look for
8626 FIELD_LOC_KIND_DWARF_BLOCK.
8627 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8628 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8629 virtual base classes.
8630 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8631 FIELD_LOC_KIND_DWARF_BLOCK.
8632
8633 2020-04-24 Tom Tromey <tromey@adacore.com>
8634
8635 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8636 * gdbtypes.c (is_dynamic_type_internal): Check
8637 TYPE_HAS_DYNAMIC_LENGTH.
8638 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8639 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8640 New macros.
8641 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8642 constant.
8643
8644 2020-04-24 Tom Tromey <tromey@adacore.com>
8645
8646 * dwarf2/read.c (struct variant_field): Rewrite.
8647 (struct variant_part_builder): New.
8648 (struct nextfield): Remove "variant" field. Add "offset".
8649 (struct field_info): Add "current_variant_part" and
8650 "variant_parts".
8651 (alloc_discriminant_info): Remove.
8652 (alloc_rust_variant): New function.
8653 (quirk_rust_enum): Update.
8654 (dwarf2_add_field): Set "offset" member. Don't handle
8655 DW_TAG_variant_part.
8656 (offset_map_type): New typedef.
8657 (convert_variant_range, create_one_variant)
8658 (create_one_variant_part, create_variant_parts)
8659 (add_variant_property): New functions.
8660 (dwarf2_attach_fields_to_type): Call add_variant_property.
8661 (read_structure_type): Don't handle DW_TAG_variant_part.
8662 (handle_variant_part, handle_variant): New functions.
8663 (handle_struct_member_die): Use them.
8664 (process_structure_scope): Don't handle variant parts.
8665 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8666 (struct discriminant_info): Remove.
8667 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8668 (struct main_type) <flag_discriminated_union>: Remove.
8669 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8670 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8671 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8672 Update.
8673 * valops.c (value_union_variant): Remove.
8674 * value.h (value_union_variant): Don't declare.
8675
8676 2020-04-24 Tom Tromey <tromey@adacore.com>
8677
8678 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8679 (ada_value_primitive_packed_val): Update.
8680 * ada-valprint.c (ada_value_print_1): Update.
8681 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8682 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8683 just an address. Use evaluate_for_locexpr_baton.
8684 (dwarf2_evaluate_property): Update.
8685 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8686 array_view.
8687 * findvar.c (default_read_var_value): Update.
8688 * gdbtypes.c (compute_variant_fields_inner)
8689 (resolve_dynamic_type_internal): Update.
8690 (resolve_dynamic_type): Change type of valaddr parameter.
8691 * gdbtypes.h (resolve_dynamic_type): Update.
8692 * valarith.c (value_subscripted_rvalue): Update.
8693 * value.c (value_from_contents_and_address): Update.
8694
8695 2020-04-24 Tom Tromey <tromey@adacore.com>
8696
8697 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8698 "push_initial_value" parameter.
8699 (dwarf2_evaluate_property): Likewise.
8700 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8701
8702 2020-04-24 Tom Tromey <tromey@adacore.com>
8703
8704 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8705 (variant::matches, compute_variant_fields_recurse)
8706 (compute_variant_fields_inner, compute_variant_fields): New
8707 functions.
8708 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8709 Use resolved_type after type is made.
8710 (operator==): Add new cases.
8711 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8712 (struct discriminant_range, struct variant, struct variant_part):
8713 New.
8714 (union dynamic_prop_data) <variant_parts, original_type>: New
8715 members.
8716 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8717 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8718 constants.
8719 * value.c (unpack_bits_as_long): Now public.
8720 * value.h (unpack_bits_as_long): Declare.
8721
8722 2020-04-24 Tom Tromey <tromey@adacore.com>
8723
8724 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8725 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8726
8727 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8728
8729 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8730
8731 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8732
8733 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8734 (remove_fork_catchpoint, post_startup_inferior)
8735 (post_attach): Move...
8736 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8737 (remove_fork_catchpoint, post_startup_inferior)
8738 (post_attach): ...here.
8739 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8740 (remove_fork_catchpoint, post_startup_inferior)
8741 (post_attach): Move...
8742 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8743 (remove_fork_catchpoint, post_startup_inferior)
8744 (post_attach): ...here.
8745
8746 2020-04-24 Tom Tromey <tromey@adacore.com>
8747
8748 * nat/windows-nat.h (struct windows_thread_info)
8749 <pc_adjusted>: New member.
8750 * windows-nat.c (windows_fetch_one_register): Check
8751 pc_adjusted.
8752 (windows_nat_target::get_windows_debug_event)
8753 (windows_nat_target::wait): Set pc_adjusted.
8754
8755 2020-04-24 Tom de Vries <tdevries@suse.de>
8756
8757 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8758 Run gdb-add-index inside temp dir.
8759
8760 2020-04-23 Tom Tromey <tromey@adacore.com>
8761
8762 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8763 in loop.
8764
8765 2020-04-23 Luis Machado <luis.machado@linaro.org>
8766
8767 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8768 get_frame_register instead of gdbarch_unwind_pc.
8769
8770 2020-04-23 Tom de Vries <tdevries@suse.de>
8771
8772 * symtab.c (lookup_global_symbol): Prefer def over decl.
8773
8774 2020-04-23 Tom de Vries <tdevries@suse.de>
8775
8776 PR symtab/25807
8777 * block.c (best_symbol, better_symbol): Promote to external.
8778 * block.h (best_symbol, better_symbol): Declare.
8779 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8780 decl.
8781
8782 2020-04-23 Tom Tromey <tromey@adacore.com>
8783
8784 PR ada/25837:
8785 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8786 "const char *", not a "const std::string &".
8787 <name_and_matcher::operator==>: Update.
8788 * unittests/lookup_name_info-selftests.c: Change type of
8789 "result".
8790
8791 2020-04-23 Tom Tromey <tom@tromey.com>
8792
8793 * inferior.h (iterate_over_inferiors): Don't declare.
8794 * inferior.c (iterate_over_inferiors): Remove.
8795 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8796 Remove.
8797 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8798 use iterate_over_inferiors.
8799 (darwin_resume_inferior_it)
8800 (struct resume_inferior_threads_param)
8801 (darwin_resume_inferior_threads_it): Remove.
8802 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8803
8804 2020-04-23 Tom de Vries <tdevries@suse.de>
8805
8806 * blockframe.c (find_pc_partial_function): Use
8807 find_pc_sect_compunit_symtab rather than
8808 objfile->sf->qf->find_pc_sect_compunit_symtab.
8809
8810 2020-04-22 Tom de Vries <tdevries@suse.de>
8811
8812 PR symtab/25764
8813 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8814 in psymtabs.
8815
8816 2020-04-22 Tom de Vries <tdevries@suse.de>
8817
8818 PR symtab/25801
8819 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8820 symtabs.
8821
8822 2020-04-22 Tom de Vries <tdevries@suse.de>
8823
8824 PR symtab/25700
8825 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8826 CU if already created.
8827
8828 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8829
8830 * infrun.c (displaced_step_fixup): Switch to the event_thread
8831 before calling displaced_step_restore, not after.
8832
8833 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8834
8835 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8836 its inferior is not recorded by us.
8837 (record_btrace_target_open): Replace call to
8838 all_non_exited_threads () with call to current_inferior
8839 ()->non_exited_threads ().
8840 (record_btrace_target::stop_recording): Likewise.
8841 (record_btrace_target::close): Likewise.
8842 (record_btrace_target::wait): Likewise.
8843 (record_btrace_target::record_stop_replaying): Likewise.
8844
8845 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8846
8847 * btrace.c (btrace_enable): Throw an error on double enables and
8848 when enabling recording fails.
8849 (btrace_disable): Throw an error if the thread is not recorded.
8850
8851 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8852
8853 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8854 request if we do not have a thread_info.
8855
8856 2020-04-21 Tom de Vries <tdevries@suse.de>
8857
8858 PR gdb/25471
8859 * thread.c
8860 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8861 exception in get_frame_id.
8862
8863 2020-04-20 Tom Tromey <tromey@adacore.com>
8864
8865 * python/python.c (struct gdbpy_event): Mark move constructor as
8866 noexcept.
8867 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8868 constructor as noexcept.
8869 * completer.h (struct completion_result): Mark move constructor as
8870 noexcept.
8871 * completer.c (completion_result::completion_result): Use
8872 initialization style. Don't call reset_match_list.
8873
8874 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8875
8876 * MAINTAINERS (Write After Approval): Add myself.
8877
8878 2020-04-18 Tom Tromey <tom@tromey.com>
8879
8880 * windows-tdep.c (init_w32_command_list)
8881 (w32_prefix_command_valid): Restore.
8882 (_initialize_windows_tdep): Call init_w32_command_list.
8883
8884 2020-04-18 Tom Tromey <tom@tromey.com>
8885
8886 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8887 * value.c (value_fn_field): Update.
8888 * valops.c (find_function_in_inferior)
8889 (value_allocate_space_in_inferior): Update.
8890 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8891 Update.
8892 * tui/tui-source.c (tui_source_window::set_contents): Update.
8893 * symtab.c (lookup_global_or_static_symbol)
8894 (find_function_start_sal_1, skip_prologue_sal)
8895 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8896 * symmisc.c (dump_msymbols, dump_symtab_1)
8897 (maintenance_print_one_line_table): Update.
8898 * symfile.c (init_entry_point_info, section_is_mapped)
8899 (list_overlays_command, simple_read_overlay_table)
8900 (simple_overlay_update_1): Update.
8901 * stap-probe.c (handle_stap_probe): Update.
8902 * stabsread.c (dbx_init_float_type, define_symbol)
8903 (read_one_struct_field, read_enum_type, read_range_type): Update.
8904 * source.c (info_line_command): Update.
8905 * python/python.c (gdbpy_source_objfile_script)
8906 (gdbpy_execute_objfile_script): Update.
8907 * python/py-type.c (save_objfile_types): Update.
8908 * python/py-objfile.c (py_free_objfile): Update.
8909 * python/py-inferior.c (python_new_objfile): Update.
8910 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8911 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8912 (maintenance_check_psymtabs): Update.
8913 * printcmd.c (info_address_command): Update.
8914 * objfiles.h (struct objfile) <arch>: New method, from
8915 get_objfile_arch.
8916 (get_objfile_arch): Don't declare.
8917 * objfiles.c (get_objfile_arch): Remove.
8918 (filter_overlapping_sections): Update.
8919 * minsyms.c (msymbol_is_function): Update.
8920 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8921 (output_nondebug_symbol): Update.
8922 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8923 (mdebug_expand_psymtab): Update.
8924 * machoread.c (macho_add_oso_symfile): Update.
8925 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8926 Update.
8927 * linux-fork.c (checkpoint_command): Update.
8928 * linespec.c (convert_linespec_to_sals): Update.
8929 * jit.c (finalize_symtab): Update.
8930 * infrun.c (insert_exception_resume_from_probe): Update.
8931 * ia64-tdep.c (ia64_find_unwind_table): Update.
8932 * hppa-tdep.c (internalize_unwinds): Update.
8933 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8934 Update.
8935 * gcore.c (call_target_sbrk): Update.
8936 * elfread.c (record_minimal_symbol, elf_symtab_read)
8937 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8938 (elf_gnu_ifunc_resolve_by_got): Update.
8939 * dwarf2/read.c (create_addrmap_from_index)
8940 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8941 (read_debug_names_from_section)
8942 (process_psymtab_comp_unit_reader, add_partial_symbol)
8943 (add_partial_subprogram, process_full_comp_unit)
8944 (read_file_scope, read_func_scope, read_lexical_block_scope)
8945 (read_call_site_scope, dwarf2_ranges_read)
8946 (dwarf2_record_block_ranges, dwarf2_add_field)
8947 (mark_common_block_symbol_computed, read_tag_pointer_type)
8948 (read_tag_string_type, dwarf2_init_float_type)
8949 (dwarf2_init_complex_target_type, read_base_type)
8950 (partial_die_info::read, partial_die_info::read)
8951 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8952 (dwarf2_fetch_die_loc_sect_off): Update.
8953 * dwarf2/loc.c (dwarf2_find_location_expression)
8954 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8955 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8956 (dwarf2_loc_desc_get_symbol_read_needs)
8957 (locexpr_describe_location_piece, locexpr_describe_location_1)
8958 (loclist_describe_location): Update.
8959 * dwarf2/index-write.c (write_debug_names): Update.
8960 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8961 * dtrace-probe.c (dtrace_process_dof): Update.
8962 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8963 (process_one_symbol): Update.
8964 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8965 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8966 (coff_read_enum_type): Update.
8967 * cli/cli-cmds.c (edit_command, list_command): Update.
8968 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8969 * breakpoint.c (create_overlay_event_breakpoint)
8970 (create_longjmp_master_breakpoint)
8971 (create_std_terminate_master_breakpoint)
8972 (create_exception_master_breakpoint, get_sal_arch): Update.
8973 * block.c (block_gdbarch): Update.
8974 * annotate.c (annotate_source_line): Update.
8975
8976 2020-04-17 Tom Tromey <tromey@adacore.com>
8977
8978 * auto-load.c (show_auto_load_cmd): Remove.
8979 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8980 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8981 (maintenance_print_arc_command): Remove.
8982 * tui/tui-win.c (tui_command): Remove.
8983 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8984 * tui/tui-layout.c (tui_layout_command): Remove.
8985 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8986 * python/python.c (user_set_python, user_show_python): Remove.
8987 (_initialize_python): Use add_basic_prefix_cmd,
8988 add_show_prefix_cmd.
8989 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8990 (install_gdb_commands): Use add_basic_prefix_cmd,
8991 add_show_prefix_cmd.
8992 (info_guile_command): Remove.
8993 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8994 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8995 add_show_prefix_cmd.
8996 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8997 Remove do_set and do_show parameters.
8998 * cli/cli-style.c (set_style, show_style): Remove.
8999 (_initialize_cli_style): Use add_basic_prefix_cmd,
9000 add_show_prefix_cmd.
9001 (cli_style_option::add_setshow_commands): Remove do_set and
9002 do_show parameters.
9003 (cli_style_option::add_setshow_commands): Use
9004 add_basic_prefix_cmd, add_show_prefix_cmd.
9005 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9006 (set_style_name): Remove.
9007 * cli/cli-dump.c (dump_command, append_command): Remove.
9008 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9009 (tekhex_dump_command, binary_dump_command)
9010 (binary_append_command): Remove.
9011 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9012 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9013 (init_w32_command_list): Remove; move into ...
9014 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9015 * valprint.c (set_print, show_print, set_print_raw)
9016 (show_print_raw): Remove.
9017 (_initialize_valprint): Use add_basic_prefix_cmd,
9018 add_show_prefix_cmd.
9019 * typeprint.c (set_print_type, show_print_type): Remove.
9020 (_initialize_typeprint): Use add_basic_prefix_cmd,
9021 add_show_prefix_cmd.
9022 * record.c (set_record_command, show_record_command): Remove.
9023 (_initialize_record): Use add_basic_prefix_cmd,
9024 add_show_prefix_cmd.
9025 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9026 add_show_prefix_cmd.
9027 (info_command, show_command, set_debug, show_debug): Remove.
9028 * top.h (set_history, show_history): Don't declare.
9029 * top.c (set_history, show_history): Remove.
9030 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9031 (unset_tdesc_cmd): Remove.
9032 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9033 add_show_prefix_cmd.
9034 * symtab.c (info_module_command): Remove.
9035 (_initialize_symtab): Use add_basic_prefix_cmd.
9036 * symfile.c (overlay_command): Remove.
9037 (_initialize_symfile): Use add_basic_prefix_cmd.
9038 * sparc64-tdep.c (info_adi_command): Remove.
9039 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9040 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9041 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9042 add_show_prefix_cmd.
9043 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9044 (_initialize_serial): Use add_basic_prefix_cmd,
9045 add_show_prefix_cmd.
9046 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9047 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9048 add_show_prefix_cmd.
9049 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9050 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9051 add_show_prefix_cmd.
9052 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9053 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9054 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9055 add_show_prefix_cmd.
9056 * remote.c (remote_command, set_remote_cmd): Remove.
9057 (_initialize_remote): Use add_basic_prefix_cmd.
9058 * record-full.c (set_record_full_command)
9059 (show_record_full_command): Remove.
9060 (_initialize_record_full): Use add_basic_prefix_cmd,
9061 add_show_prefix_cmd.
9062 * record-btrace.c (cmd_set_record_btrace)
9063 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9064 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9065 (cmd_show_record_btrace_pt): Remove.
9066 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9067 add_show_prefix_cmd.
9068 * ravenscar-thread.c (set_ravenscar_command)
9069 (show_ravenscar_command): Remove.
9070 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9071 add_show_prefix_cmd.
9072 * mips-tdep.c (show_mips_command, set_mips_command)
9073 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9074 add_show_prefix_cmd.
9075 * maint.c (maintenance_command, maintenance_info_command)
9076 (maintenance_check_command, maintenance_print_command)
9077 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9078 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9079 add_show_prefix_cmd.
9080 (show_per_command_cmd): Remove.
9081 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9082 Remove.
9083 (maintenance_show_test_settings_cmd): Remove.
9084 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9085 add_show_prefix_cmd.
9086 * maint-test-options.c (maintenance_test_options_command):
9087 Remove.
9088 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9089 * macrocmd.c (macro_command): Remove
9090 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9091 * language.c (set_check, show_check): Remove.
9092 (_initialize_language): Use add_basic_prefix_cmd,
9093 add_show_prefix_cmd.
9094 * infcmd.c (unset_command): Remove.
9095 (_initialize_infcmd): Use add_basic_prefix_cmd.
9096 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9097 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9098 add_show_prefix_cmd.
9099 * go32-nat.c (go32_info_dos_command): Remove.
9100 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9101 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9102 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9103 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9104 (_initialize_frame): Use add_basic_prefix_cmd,
9105 add_show_prefix_cmd.
9106 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9107 (_initialize_dcache): Use add_basic_prefix_cmd,
9108 add_show_prefix_cmd.
9109 * cp-support.c (maint_cplus_command): Remove.
9110 (_initialize_cp_support): Use add_basic_prefix_cmd.
9111 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9112 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9113 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9114 add_basic_prefix_cmd, add_show_prefix_cmd.
9115 * breakpoint.c (save_command): Remove.
9116 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9117 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9118 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9119 add_show_prefix_cmd.
9120 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9121 (set_ada_command, show_ada_command): Remove.
9122 (_initialize_ada_language): Use add_basic_prefix_cmd,
9123 add_show_prefix_cmd.
9124 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9125
9126 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9127
9128 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9129 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9130
9131 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9132
9133 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9134 warning messages.
9135
9136 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9137
9138 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9139 import table is not at beginning of .idata section.
9140
9141 2020-04-16 Pedro Alves <palves@redhat.com>
9142
9143 * inferior.c (delete_inferior): Use delete operator directly
9144 instead of delete_program_space.
9145 * progspace.c (add_program_space): New, factored out from
9146 program_space::program_space.
9147 (remove_program_space): New, factored out from
9148 delete_program_space.
9149 (program_space::program_space): Remove intro comment. Rewrite.
9150 (program_space::~program_space): Remove intro comment. Call
9151 remove_program_space.
9152 (delete_program_space): Delete.
9153 * progspace.h (program_space::program_space): Make explicit. Move
9154 intro comment here, adjusted.
9155 (program_space::~program_space): Move intro comment here,
9156 adjusted.
9157 (delete_program_space): Remove.
9158
9159 2020-04-16 Tom Tromey <tromey@adacore.com>
9160
9161 * windows-nat.c (windows_nat::handle_access_violation): New
9162 function.
9163 * nat/windows-nat.h (handle_access_violation): Declare.
9164 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9165 windows-nat.c. Call handle_access_violation.
9166
9167 2020-04-16 Tom de Vries <tdevries@suse.de>
9168
9169 PR symtab/25791
9170 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9171 CUs without psymtab.
9172
9173 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9174
9175 * python/python.c (do_start_initialization): Don't call
9176 PyEval_InitThreads for Python 3.9 and beyond.
9177
9178 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9179
9180 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9181 thread functions.
9182 (obsd_nat_target::wait): Likewise.
9183
9184 2020-04-15 Tom Tromey <tromey@adacore.com>
9185
9186 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9187 (DEBUG_EXCEPT): Use debug_printf.
9188
9189 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9190
9191 * completer.c (class completion_tracker::completion_hash_entry)
9192 <hash_name>: New member function.
9193 (completion_tracker::discard_completions): New callback to hash a
9194 completion_hash_entry, pass this to htab_create_alloc.
9195
9196 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9197
9198 * windows-nat.c (windows_make_so): Warn rather than stopping with
9199 an error if realpath() fails.
9200
9201 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9202
9203 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9204 (nbsd_nat_target::info_proc): Add do_status.
9205
9206 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9207 Tom de Vries <tdevries@suse.de>
9208
9209 PR symtab/25718
9210 * psympriv.h (struct partial_symtab::read_symtab)
9211 (struct partial_symtab::expand_psymtab)
9212 (struct partial_symtab::read_dependencies): Update comments.
9213 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9214 read_symtab for includer.
9215 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9216 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9217 (struct dwarf2_include_psymtab::m_readin): Remove.
9218 (struct dwarf2_include_psymtab::includer): New member function.
9219 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9220
9221 2020-04-14 Tom de Vries <tdevries@suse.de>
9222
9223 PR symtab/25720
9224 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9225 with NULL symbol_matcher and lookup_name.
9226 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9227 and lookup_name.
9228 * dwarf2/read.c (dw2_expand_symtabs_matching)
9229 (dw2_debug_names_expand_symtabs_matching): Same.
9230 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9231 Make lookup_name a pointer. Update comment.
9232 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9233 lookup_name being a pointer.
9234 * symfile.c (expand_symtabs_matching): Same.
9235 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9236 * linespec.c (iterate_over_all_matching_symtabs): Same.
9237
9238 2020-04-13 Tom Tromey <tom@tromey.com>
9239
9240 * run-on-main-thread.c: Update include.
9241 * unittests/main-thread-selftests.c: Update include.
9242 * tui/tui-win.c: Update include.
9243 * tui/tui-io.c: Update include.
9244 * tui/tui-interp.c: Update include.
9245 * tui/tui-hooks.c: Update include.
9246 * top.h: Update include.
9247 * top.c: Update include.
9248 * ser-base.c: Update include.
9249 * remote.c: Update include.
9250 * remote-notif.c: Update include.
9251 * remote-fileio.c: Update include.
9252 * record-full.c: Update include.
9253 * record-btrace.c: Update include.
9254 * python/python.c: Update include.
9255 * posix-hdep.c: Update include.
9256 * mingw-hdep.c: Update include.
9257 * mi/mi-main.c: Update include.
9258 * mi/mi-interp.c: Update include.
9259 * main.c: Update include.
9260 * linux-nat.c: Update include.
9261 * interps.c: Update include.
9262 * infrun.c: Update include.
9263 * inf-loop.c: Update include.
9264 * event-top.c: Update include.
9265 * event-loop.c: Move to ../gdbsupport/.
9266 * event-loop.h: Move to ../gdbsupport/.
9267 * async-event.h: Update include.
9268 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9269
9270 2020-04-13 Tom Tromey <tom@tromey.com>
9271
9272 * tui/tui-win.c: Include async-event.h.
9273 * remote.c: Include async-event.h.
9274 * remote-notif.c: Include async-event.h.
9275 * record-full.c: Include async-event.h.
9276 * record-btrace.c: Include async-event.h.
9277 * infrun.c: Include async-event.h.
9278 * event-top.c: Include async-event.h.
9279 * event-loop.h: Move some declarations to async-event.h.
9280 * event-loop.c: Don't include ser-event.h or top.h. Move some
9281 code to async-event.c.
9282 * async-event.h: New file.
9283 * async-event.c: New file.
9284 * Makefile.in (COMMON_SFILES): Add async-event.c.
9285 (HFILES_NO_SRCDIR): Add async-event.h.
9286
9287 2020-04-13 Tom Tromey <tom@tromey.com>
9288
9289 * utils.c (flush_streams): New function.
9290 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9291
9292 2020-04-13 Tom Tromey <tom@tromey.com>
9293
9294 * event-loop.c (handle_file_event): Use warning, not
9295 printf_unfiltered.
9296
9297 2020-04-13 Tom Tromey <tom@tromey.com>
9298
9299 * event-loop.c: Include <chrono>.
9300
9301 2020-04-13 Tom Tromey <tom@tromey.com>
9302
9303 * gdb_select.h: Move to ../gdbsupport/.
9304 * event-loop.c: Update include path.
9305 * top.c: Update include path.
9306 * ser-base.c: Update include path.
9307 * ui-file.c: Update include path.
9308 * ser-tcp.c: Update include path.
9309 * guile/scm-ports.c: Update include path.
9310 * posix-hdep.c: Update include path.
9311 * ser-unix.c: Update include path.
9312 * gdb_usleep.c: Update include path.
9313 * mingw-hdep.c: Update include path.
9314 * inflow.c: Update include path.
9315 * infrun.c: Update include path.
9316 * event-top.c: Update include path.
9317
9318 2020-04-13 Tom Tromey <tom@tromey.com>
9319
9320 * configure: Rebuild.
9321 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9322
9323 2020-04-13 Tom Tromey <tom@tromey.com>
9324
9325 * event-loop.h (start_event_loop): Don't declare.
9326 * event-loop.c (start_event_loop): Move...
9327 * main.c (start_event_loop): ...here. Now static.
9328
9329 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9330
9331 * MAINTAINERS: Update my email address.
9332
9333 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9334
9335 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9336 IP_ALL.
9337
9338 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9339
9340 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9341 (nbsd_nat_target::info_proc): Add do_cmdline.
9342
9343 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9344
9345 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9346 (nbsd_nat_target::info_proc): Add do_cwd.
9347
9348 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9349
9350 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9351
9352 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9353
9354 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9355 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9356 (nbsd_nat_target::info_proc): New functions.
9357 * nbsd-nat.c (kinfo_get_vmmap): New function.
9358 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9359 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9360 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9361 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9362 functions.
9363 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9364 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9365 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9366 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9367 (KINFO_VME_FLAG_GROWS_DOWN): New.
9368
9369 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9370
9371 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9372 bit shift.
9373
9374 2020-04-10 Tom Tromey <tromey@adacore.com>
9375
9376 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9377
9378 2020-04-10 Tom Tromey <tromey@adacore.com>
9379
9380 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9381 separate debug files.
9382
9383 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9384
9385 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9386 Move to...
9387 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9388 ... here.
9389 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9390 Check for STATUS_WX86_BREAKPOINT.
9391 (windows_nat_target::wait): Same.
9392
9393 2020-04-10 Tom de Vries <tdevries@suse.de>
9394
9395 PR cli/25808
9396 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9397
9398 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9399
9400 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9401 (Write After Approval): Remove Tom de Vries.
9402
9403 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9404
9405 revert partially:
9406 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9407
9408 * buildsym.c (record_line): Fix undefined behavior and preserve
9409 lines at eof.
9410
9411 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9412
9413 * auxv.h (svr4_auxv_parse): New.
9414 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9415 and generic_auxv_parse.
9416 (svr4_auxv_parse): Add.
9417 * obsd-tdep.c: Include "auxv.h".
9418 (obsd_auxv_parse): Remove.
9419 (obsd_init_abi): Remove comment.
9420 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9421 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9422 * nbsd-tdep.c: Include "auxv.h".
9423 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9424
9425 2020-04-08 Tom Tromey <tromey@adacore.com>
9426
9427 * nat/windows-nat.h (last_wait_event): Don't declare.
9428 (wait_for_debug_event): Update comment.
9429 * nat/windows-nat.c (last_wait_event): Now static.
9430
9431 2020-04-08 Tom Tromey <tromey@adacore.com>
9432
9433 * windows-nat.c (wait_for_debug_event): Move to
9434 nat/windows-nat.c.
9435 * nat/windows-nat.h (wait_for_debug_event): Declare.
9436 * nat/windows-nat.c (wait_for_debug_event): Move from
9437 windows-nat.c. No longer static.
9438
9439 2020-04-08 Tom Tromey <tromey@adacore.com>
9440
9441 * windows-nat.c (get_windows_debug_event): Use
9442 fetch_pending_stop.
9443 * nat/windows-nat.h (fetch_pending_stop): Declare.
9444 * nat/windows-nat.c (fetch_pending_stop): New function.
9445
9446 2020-04-08 Tom Tromey <tromey@adacore.com>
9447
9448 * windows-nat.c (windows_continue): Use matching_pending_stop and
9449 continue_last_debug_event.
9450 * nat/windows-nat.h (matching_pending_stop)
9451 (continue_last_debug_event): Declare.
9452 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9453 (matching_pending_stop, continue_last_debug_event): New
9454 functions.
9455
9456 2020-04-08 Tom Tromey <tromey@adacore.com>
9457
9458 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9459 (handle_exception_result): Move to nat/windows-nat.h.
9460 (DEBUG_EXCEPTION_SIMPLE): Remove.
9461 (windows_nat::handle_ms_vc_exception): New function.
9462 (handle_exception): Move to nat/windows-nat.c.
9463 (get_windows_debug_event): Update.
9464 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9465 nat/windows-nat.c.
9466 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9467 (handle_exception_result): Move from windows-nat.c.
9468 (handle_exception): Declare.
9469 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9470 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9471 windows-nat.c.
9472
9473 2020-04-08 Tom Tromey <tromey@adacore.com>
9474
9475 * windows-nat.c (exception_count, event_count): Remove.
9476 (handle_exception, get_windows_debug_event)
9477 (do_initial_windows_stuff): Update.
9478
9479 2020-04-08 Tom Tromey <tromey@adacore.com>
9480
9481 * windows-nat.c (windows_nat::handle_load_dll)
9482 (windows_nat::handle_unload_dll): Rename. No longer static.
9483 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9484 Declare.
9485
9486 2020-04-08 Tom Tromey <tromey@adacore.com>
9487
9488 * complaints.h (stop_whining): Declare at top-level.
9489 (complaint): Don't declare stop_whining.
9490
9491 2020-04-08 Tom Tromey <tromey@adacore.com>
9492
9493 * windows-nat.c (windows_nat::handle_output_debug_string):
9494 Rename. No longer static.
9495 * nat/windows-nat.h (handle_output_debug_string): Declare.
9496
9497 2020-04-08 Tom Tromey <tromey@adacore.com>
9498
9499 * windows-nat.c (current_process_handle, current_process_id)
9500 (main_thread_id, last_sig, current_event, last_wait_event)
9501 (current_windows_thread, desired_stop_thread_id, pending_stops)
9502 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9503 (display_selectors, fake_create_process)
9504 (get_windows_debug_event): Update.
9505 * nat/windows-nat.h (current_process_handle, current_process_id)
9506 (main_thread_id, last_sig, current_event, last_wait_event)
9507 (current_windows_thread, desired_stop_thread_id, pending_stops)
9508 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9509 * nat/windows-nat.c (current_process_handle, current_process_id)
9510 (main_thread_id, last_sig, current_event, last_wait_event)
9511 (current_windows_thread, desired_stop_thread_id, pending_stops)
9512 (siginfo_er): New globals. Move from windows-nat.c.
9513
9514 2020-04-08 Tom Tromey <tromey@adacore.com>
9515
9516 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9517 (handle_load_dll): Update.
9518 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9519
9520 2020-04-08 Tom Tromey <tromey@adacore.com>
9521
9522 * windows-nat.c (enum thread_disposition_type): Move to
9523 nat/windows-nat.h.
9524 (windows_nat::thread_rec): Rename from thread_rec. No longer
9525 static.
9526 (windows_add_thread, windows_nat_target::fetch_registers)
9527 (windows_nat_target::store_registers, handle_exception)
9528 (windows_nat_target::resume, get_windows_debug_event)
9529 (windows_nat_target::get_tib_address)
9530 (windows_nat_target::thread_name)
9531 (windows_nat_target::thread_alive): Update.
9532 * nat/windows-nat.h (enum thread_disposition_type): Move from
9533 windows-nat.c.
9534 (thread_rec): Declare.
9535
9536 2020-04-08 Tom Tromey <tromey@adacore.com>
9537
9538 * windows-nat.c: Add "using namespace".
9539 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9540 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9541
9542 2020-04-08 Tom Tromey <tromey@adacore.com>
9543
9544 * nat/windows-nat.h (struct windows_thread_info): Declare
9545 destructor.
9546 * nat/windows-nat.c (~windows_thread_info): New.
9547
9548 2020-04-08 Tom Tromey <tromey@adacore.com>
9549
9550 PR gdb/22992
9551 * windows-nat.c (current_event): Update comment.
9552 (last_wait_event, desired_stop_thread_id): New globals.
9553 (struct pending_stop): New.
9554 (pending_stops): New global.
9555 (windows_nat_target) <stopped_by_sw_breakpoint>
9556 <supports_stopped_by_sw_breakpoint>: New methods.
9557 (windows_fetch_one_register): Add assertions. Adjust PC.
9558 (windows_continue): Handle pending stops. Suspend other threads
9559 when stepping. Use last_wait_event
9560 (wait_for_debug_event): New function.
9561 (get_windows_debug_event): Use wait_for_debug_event. Handle
9562 pending stops. Queue spurious stops.
9563 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9564 (windows_nat_target::kill): Use wait_for_debug_event.
9565 * nat/windows-nat.h (struct windows_thread_info)
9566 <stopped_at_software_breakpoint>: New field.
9567 * nat/windows-nat.c (windows_thread_info::resume): Clear
9568 stopped_at_software_breakpoint.
9569
9570 2020-04-08 Tom Tromey <tromey@adacore.com>
9571
9572 * windows-nat.c (enum thread_disposition_type): New.
9573 (thread_rec): Replace "get_context" parameter with "disposition";
9574 change type.
9575 (windows_add_thread, windows_nat_target::fetch_registers)
9576 (windows_nat_target::store_registers, handle_exception)
9577 (windows_nat_target::resume, get_windows_debug_event)
9578 (windows_nat_target::get_tib_address)
9579 (windows_nat_target::thread_name)
9580 (windows_nat_target::thread_alive): Update.
9581
9582 2020-04-08 Tom Tromey <tromey@adacore.com>
9583
9584 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9585 (windows_continue): Use windows_continue::resume.
9586 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9587 resume>: Declare new methods.
9588 * nat/windows-nat.c: New file.
9589 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9590
9591 2020-04-08 Tom Tromey <tromey@adacore.com>
9592
9593 * windows-nat.c (windows_add_thread, windows_delete_thread)
9594 (windows_nat_target::fetch_registers)
9595 (windows_nat_target::store_registers, fake_create_process)
9596 (windows_nat_target::resume, windows_nat_target::resume)
9597 (get_windows_debug_event, windows_nat_target::wait)
9598 (windows_nat_target::pid_to_str)
9599 (windows_nat_target::get_tib_address)
9600 (windows_nat_target::get_ada_task_ptid)
9601 (windows_nat_target::thread_name)
9602 (windows_nat_target::thread_alive): Use lwp, not tid.
9603
9604 2020-04-08 Tom Tromey <tromey@adacore.com>
9605
9606 * windows-nat.c (handle_exception)
9607 (windows_nat_target::thread_name): Update.
9608 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9609 <name>: Now unique_xmalloc_ptr.
9610
9611 2020-04-08 Tom Tromey <tromey@adacore.com>
9612
9613 * windows-nat.c (thread_rec)
9614 (windows_nat_target::fetch_registers): Update.
9615 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9616 Update comment.
9617 <debug_registers_changed, reload_context>: Now bool.
9618
9619 2020-04-08 Tom Tromey <tromey@adacore.com>
9620
9621 * windows-nat.c (windows_add_thread): Use new.
9622 (windows_init_thread_list, windows_delete_thread): Use delete.
9623 (get_windows_debug_event): Update.
9624 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9625 destructor, and initializers.
9626
9627 2020-04-08 Tom Tromey <tromey@adacore.com>
9628
9629 * windows-nat.c (struct windows_thread_info): Remove.
9630 * nat/windows-nat.h: New file.
9631
9632 2020-04-08 Tom Tromey <tromey@adacore.com>
9633
9634 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9635 (thread_rec, windows_add_thread, windows_delete_thread)
9636 (windows_continue): Update.
9637
9638 2020-04-08 Tom Tromey <tromey@adacore.com>
9639
9640 * windows-nat.c (struct windows_thread_info): Remove typedef.
9641 (thread_head): Remove.
9642 (thread_list): New global.
9643 (thread_rec, windows_add_thread, windows_init_thread_list)
9644 (windows_delete_thread, windows_continue): Update.
9645
9646 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9647
9648 * windows-tdep.h (windows_init_abi): Add comment.
9649 (cygwin_init_abi): New declaration.
9650 * windows-tdep.c: Split signal enumeration in two, one for
9651 Windows and one for Cygwin.
9652 (windows_gdb_signal_to_target): Only deal with signal of the
9653 Windows OS ABI.
9654 (cygwin_gdb_signal_to_target): New function.
9655 (windows_init_abi): Rename to windows_init_abi_common, don't set
9656 gdb_signal_to_target gdbarch method. Add new new function with
9657 this name.
9658 (cygwin_init_abi): New function.
9659 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9660 comment. Don't call windows_init_abi.
9661 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9662 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9663 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9664 i386_windows_init_abi_common, don't call windows_init_abi. Add
9665 a new function of this name.
9666 (i386_cygwin_init_abi): New function.
9667 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9668 OS ABI Cygwin.
9669
9670 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9671
9672 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9673 parameter.c.
9674 (dwarf2_read_gdb_index): Update.
9675
9676 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9677
9678 * nbsd-tdep.c: Include "objfiles.h".
9679 (nbsd_skip_solib_resolver): New.
9680 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9681
9682 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9683
9684 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9685 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9686 with DW_LLE_base_addressx are being emitted in DWARFv5.
9687 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9688 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9689 unsigned integer.
9690
9691 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9692
9693 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9694 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9695 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9696 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9697 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9698 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9699 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9700
9701
9702 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9703
9704 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9705 (read_loclist_index): New function definition.
9706 (lookup_loclist_base): New function definition.
9707 (read_loclist_header): New function definition.
9708 (dwarf2_cu): Add loclist_base and loclist_header field.
9709 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9710 (read_full_die_1): Read the value of DW_AT_loclists_base.
9711 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9712 (read_attribute_value): Handle DW_FORM_loclistx.
9713 (skip_one_die): Handle DW_FORM_loclistx.
9714 (loclist_header): New structure declaration.
9715 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9716
9717 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9718
9719 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9720 constructor. Remove `addr` parameter from other constructor and
9721 add `per_cu` parameter.
9722 * dwarf2/read.c (create_partial_symtab): Update.
9723
9724 2020-04-07 Tom de Vries <tdevries@suse.de>
9725
9726 PR symtab/25796
9727 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9728 (partial_die_info::fixup): Inherit has_const_value.
9729
9730 2020-04-07 Tom de Vries <tdevries@suse.de>
9731
9732 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9733 symbols without address.
9734
9735 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9736
9737 * nbsd-nat.h (struct thread_info): Add forward declaration.
9738 (nbsd_nat_target::thread_alive): Add.
9739 (nbsd_nat_target::thread_name): Likewise.
9740 (nbsd_nat_target::update_thread_list): Likewise.
9741 (update_thread_list::post_attach): Likewise.
9742 (post_attach::pid_to_str): Likewise.
9743 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9744 (nbsd_thread_lister): Add.
9745 (nbsd_nat_target::thread_alive): Likewise.
9746 (nbsd_nat_target::thread_name): Likewise.
9747 (nbsd_add_threads): Likewise.
9748 (update_thread_list::post_attach): Likewise.
9749 (nbsd_nat_target::update_thread_list): Likewise.
9750 (post_attach::pid_to_str): Likewise.
9751
9752 2020-04-06 Tom Tromey <tromey@adacore.com>
9753
9754 * ada-valprint.c (print_variant_part): Extract the variant field.
9755 (print_field_values): Use the field as the outer value when
9756 recursing.
9757
9758 2020-04-06 Tom Tromey <tromey@adacore.com>
9759
9760 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9761 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9762 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9763 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9764 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9765
9766 2020-04-06 Tom Tromey <tromey@adacore.com>
9767
9768 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9769 TYPE_CODE_ERROR.
9770
9771 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9772
9773 * nbsd-tdep.c: Include "gdbarch.h".
9774 Define enum with NetBSD signal numbers.
9775 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9776 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9777 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9778 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9779 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9780 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9781 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9782 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9783 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9784 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9785 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9786 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9787
9788 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9789
9790 PR gdb/25325
9791 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9792
9793 2020-04-03 Tom Tromey <tromey@adacore.com>
9794
9795 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9796 Read constant block.
9797
9798 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9799
9800 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9801 (gdb_bfd_get_full_section_contents): New declaration.
9802 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9803 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9804 gdb_bfd_get_full_section_contents.
9805
9806 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9807
9808 * exec.c (build_section_table): Replace internal_error with
9809 gdb_assert.
9810 (section_table_xfer_memory_partial): Likewise.
9811 * mdebugread.c (parse_partial_symbols): Likewise.
9812 * psymtab.c (lookup_partial_symbol): Likewise.
9813 * utils.c (wrap_here): Likewise.
9814
9815 2020-04-02 Tom Tromey <tromey@adacore.com>
9816
9817 * f-lang.c (build_fortran_types): Use arch_type to initialize
9818 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9819
9820 2020-04-02 Tom Tromey <tromey@adacore.com>
9821
9822 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9823 of attributes.
9824
9825 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9826 Bernd Edlinger <bernd.edlinger@hotmail.de>
9827 Tom Tromey <tromey@adacore.com>
9828
9829 * buildsym.c (buildsym_compunit::record_line): Remove
9830 deduplication code.
9831
9832 2020-04-02 Tom de Vries <tdevries@suse.de>
9833
9834 PR ada/24671
9835 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9836
9837 2020-04-02 Tom de Vries <tdevries@suse.de>
9838
9839 * dwarf2/read.c (dwarf2_gdb_index_functions,
9840 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9841 NULL.
9842 * psymtab.c (psym_lookup_global_symbol_language): New function.
9843 (psym_functions): Init psym_lookup_global_symbol_language with
9844 psym_lookup_global_symbol_language.
9845 * symfile-debug.c (debug_sym_quick_functions): Init
9846 lookup_global_symbol_language with NULL.
9847 * symfile.c (set_initial_language): Remove fixme comment.
9848 * symfile.h (struct quick_symbol_functions): Add
9849 lookup_global_symbol_language.
9850 * symtab.c (find_quick_global_symbol_language): New function.
9851 (find_main_name): Use find_quick_global_symbol_language.
9852
9853 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9854
9855 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9856
9857 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9858
9859 * buildsym.c (record_line): Fix undefined behavior and preserve
9860 lines at eof.
9861
9862 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9863
9864 * buildsym.c (record_line): Fix the resizing condition.
9865
9866 2020-04-01 Tom Tromey <tom@tromey.com>
9867
9868 * value.h (value_literal_complex): Add comment.
9869 * valops.c (value_literal_complex): Refer to value.h.
9870
9871 2020-04-01 Tom Tromey <tom@tromey.com>
9872
9873 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9874 (scalar_type): New rule, from typebase.
9875 (typebase): Use scalar_type. Recognize complex types.
9876 (field_name): Handle FLOAT_KEYWORD.
9877 (ident_tokens): Add _Complex and __complex__.
9878
9879 2020-04-01 Tom Tromey <tom@tromey.com>
9880
9881 PR exp/25299:
9882 * valarith.c (promotion_type, complex_binop): New functions.
9883 (scalar_binop): Handle complex numbers. Use promotion_type.
9884 (value_pos, value_neg, value_complement): Handle complex numbers.
9885
9886 2020-04-01 Tom Tromey <tom@tromey.com>
9887
9888 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9889 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9890 (parse_number): Handle complex numbers.
9891
9892 2020-04-01 Tom Tromey <tom@tromey.com>
9893
9894 * c-valprint.c (c_decorations): Change complex suffix to "i".
9895
9896 2020-04-01 Tom Tromey <tom@tromey.com>
9897
9898 * valprint.c (generic_value_print_complex): Use accessors.
9899 * value.h (value_real_part, value_imaginary_part): Declare.
9900 * valops.c (value_real_part, value_imaginary_part): New
9901 functions.
9902 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9903
9904 2020-04-01 Tom Tromey <tom@tromey.com>
9905
9906 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9907 (read_range_type): Update.
9908 * mdebugread.c (basic_type): Update.
9909 * go-lang.c (build_go_types): Use init_complex_type.
9910 * gdbtypes.h (struct main_type) <complex_type>: New member.
9911 (init_complex_type): Update.
9912 (arch_complex_type): Don't declare.
9913 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9914 Make name if none given. Use alloc_type_copy. Look for cached
9915 complex type.
9916 (arch_complex_type): Remove.
9917 (gdbtypes_post_init): Use init_complex_type.
9918 * f-lang.c (build_fortran_types): Use init_complex_type.
9919 * dwarf2/read.c (read_base_type): Update.
9920 * d-lang.c (build_d_types): Use init_complex_type.
9921 * ctfread.c (read_base_type): Update.
9922
9923 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9924
9925 * infrun.c (stop_all_threads): Update assertion, plus when
9926 stopping threads, take into account that we might be trying
9927 to stop an all-stop target.
9928 (stop_waiting): Call 'stop_all_threads' if there exists a
9929 non-stop target.
9930
9931 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9932
9933 * target.h (exists_non_stop_target): New function declaration.
9934 * target.c (exists_non_stop_target): New function.
9935
9936 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9937
9938 PR gdb/24789
9939 * eval.c (is_integral_or_integral_reference): New function.
9940 (evaluate_subexp_standard): Allow integer references in
9941 pointer arithmetic.
9942
9943 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9944
9945 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9946 check for no ptid in the stop reply when the target is non-stop.
9947
9948 2020-04-01 Tom Tromey <tromey@adacore.com>
9949
9950 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9951 "name" parameter to rvalue reference. Initialize m_name_holder.
9952 <lookup_name_info>: New overloads.
9953 <name>: Return gdb::string_view.
9954 <c_str>: New method.
9955 <make_ignore_params>: Update.
9956 <search_name_hash>: Update.
9957 <language_lookup_name>: Return const char *.
9958 <m_name>: Change type.
9959 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9960 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9961 (lookup_name_info::match_any): Update.
9962 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9963 Update.
9964 * minsyms.c (linkage_name_str): Update.
9965 * language.c (default_symbol_name_matcher): Update.
9966 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9967 Update.
9968 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9969 (ada_lookup_name_info::ada_lookup_name_info): Update.
9970 (literal_symbol_name_matcher): Update.
9971
9972 2020-04-01 Tom Tromey <tromey@adacore.com>
9973
9974 * psymtab.c (psymtab_search_name): Remove function.
9975 (psym_lookup_symbol): Create search name and lookup name here.
9976 (lookup_partial_symbol): Remove "name" parameter; add
9977 lookup_name.
9978 (psym_expand_symtabs_for_function): Update.
9979
9980 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9981
9982 PR tui/25597:
9983 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9984
9985 2020-03-31 Tom Tromey <tromey@adacore.com>
9986
9987 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9988 memcpy.
9989
9990 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9991
9992 * features/riscv/32bit-csr.xml: Regenerated.
9993 * features/riscv/64bit-csr.xml: Regenerated.
9994
9995 2020-03-30 Tom Tromey <tromey@adacore.com>
9996
9997 * ada-valprint.c (print_variant_part): Update.
9998 * ada-lang.h (ada_which_variant_applies): Update.
9999 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10000 outer_valaddr parameters; replace with "outer" value parameter.
10001 (to_fixed_variant_branch_type): Update.
10002
10003 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10004
10005 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10006 <list>. Remove inclusion of observable.h.
10007 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10008 (struct arch_lwp_info): New struct.
10009 (class ppc_linux_dreg_interface): New class.
10010 (struct ppc_linux_process_info): New struct.
10011 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10012 <low_new_clone, low_forget_process, low_prepare_to_resume>
10013 <copy_thread_dreg_state, mark_thread_stale>
10014 <mark_debug_registers_changed, register_hw_breakpoint>
10015 <clear_hw_breakpoint, register_wp, clear_wp>
10016 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10017 <num_memory_accesses, get_trigger_type>
10018 <create_watchpoint_request, hwdebug_point_cmp>
10019 <init_arch_lwp_info, get_arch_lwp_info>
10020 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10021 methods.
10022 <struct ptid_hash>: New inner struct.
10023 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10024 members.
10025 (saved_dabr_value, hwdebug_info, max_slots_number)
10026 (struct hw_break_tuple, struct thread_points, ppc_threads)
10027 (have_ptrace_hwdebug_interface)
10028 (hwdebug_find_thread_points_by_tid)
10029 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10030 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10031 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10032 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10033 use m_dreg_interface.
10034 (hwdebug_point_cmp): Change to...
10035 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10036 reference arguments instead of pointers.
10037 (ppc_linux_nat_target::ranged_break_num_registers): Use
10038 m_dreg_interface.
10039 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10040 m_dreg_interface. Call register_hw_breakpoint.
10041 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10042 m_dreg_interface. Call clear_hw_breakpoint.
10043 (get_trigger_type): Change to...
10044 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10045 comment.
10046 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10047 use m_dreg_interface. Call register_hw_breakpoint.
10048 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10049 use m_dreg_interface. Call clear_hw_breakpoint.
10050 (can_use_watchpoint_cond_accel): Change to...
10051 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10052 method. Update comment, use m_dreg_interface and
10053 m_process_info.
10054 (calculate_dvc): Change to...
10055 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10056 m_dreg_interface.
10057 (num_memory_accesses): Change to...
10058 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10059 (check_condition): Change to...
10060 (ppc_linux_nat_target::check_condition): ...this method.
10061 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10062 comment, use m_dreg_interface.
10063 (create_watchpoint_request): Change to...
10064 (ppc_linux_nat_target::create_watchpoint_request): ...this
10065 method. Use m_dreg_interface.
10066 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10067 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10068 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10069 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10070 (ppc_linux_nat_target::low_forget_process)
10071 (ppc_linux_nat_target::low_new_fork)
10072 (ppc_linux_nat_target::low_new_clone)
10073 (ppc_linux_nat_target::low_delete_thread)
10074 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10075 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10076 only call mark_thread_stale.
10077 (ppc_linux_thread_exit): Remove.
10078 (ppc_linux_nat_target::stopped_data_address): Change to...
10079 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10080 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10081 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10082 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10083 comment. Call low_stopped_data_address.
10084 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10085 m_dreg_interface.
10086 (ppc_linux_nat_target::masked_watch_num_registers): Use
10087 m_dreg_interface.
10088 (ppc_linux_nat_target::copy_thread_dreg_state)
10089 (ppc_linux_nat_target::mark_thread_stale)
10090 (ppc_linux_nat_target::mark_debug_registers_changed)
10091 (ppc_linux_nat_target::register_hw_breakpoint)
10092 (ppc_linux_nat_target::clear_hw_breakpoint)
10093 (ppc_linux_nat_target::register_wp)
10094 (ppc_linux_nat_target::clear_wp)
10095 (ppc_linux_nat_target::init_arch_lwp_info)
10096 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10097 (_initialize_ppc_linux_nat): Remove observer callback.
10098
10099 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10100
10101 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10102 (ppc_linux_nat_target::auxv_parse)
10103 (ppc_linux_nat_target::read_description)
10104 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10105 Move up.
10106
10107 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10108
10109 * linux-nat.h (low_new_clone): New method.
10110 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10111
10112 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10113
10114 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10115 (dbx_expand_psymtab): ... this.
10116 (start_psymtab): Update.
10117 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10118 (mdebug_expand_psymtab): ... this.
10119 (parse_partial_symbols): Update.
10120 (new_psymtab): Update.
10121 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10122 (xcoff_expand_psymtab): ... this.
10123 (xcoff_start_psymtab): Update.
10124
10125 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10126
10127 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10128 <expand_dependencies>: ... this.
10129 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10130 (partial_symtab::expand_dependencies): ... this.
10131 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10132 Update.
10133 (dwarf2_psymtab::expand_psymtab): Update.
10134 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10135 * mdebugread.c (psymtab_to_symtab_1): Update.
10136 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10137
10138 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10139
10140 * psympriv.h (discard_psymtab): Remove.
10141 * dbxread.c (dbx_end_psymtab): Update.
10142 * xcoffread.c (xcoff_end_psymtab): Update.
10143
10144 2020-03-28 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10147 comment.
10148
10149 2020-03-28 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10152
10153 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10154
10155 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10156
10157 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10158
10159 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10160
10161 2020-03-26 Tom Tromey <tom@tromey.com>
10162
10163 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10164 (mark_common_block_symbol_computed, read_tag_string_type)
10165 (attr_to_dynamic_prop, read_subrange_type): Update.
10166 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10167 to be methods on struct attribute.
10168 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10169 (read_call_site_scope, partial_die_info::read)
10170 (partial_die_info::read, lookup_die_type, follow_die_ref):
10171 Update.
10172 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10173 from dwarf2_get_ref_die_offset.
10174 (attribute::constant_value): New method, from
10175 dwarf2_get_attr_constant_value.
10176 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10177 Declare method.
10178 <constant_value>: New method.
10179
10180 2020-03-26 Tom Tromey <tom@tromey.com>
10181
10182 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10183 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10184 (dwarf_type_encoding_name): Move to stringify.c.
10185 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10186 * dwarf2/stringify.c: New file.
10187 * dwarf2/stringify.h: New file.
10188
10189 2020-03-26 Tom Tromey <tom@tromey.com>
10190
10191 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10192 Rewrite.
10193
10194 2020-03-26 Tom Tromey <tom@tromey.com>
10195
10196 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10197 methods.
10198 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10199 (lookup_ranges_base): Likewise.
10200 (read_cutu_die_from_dwo, read_full_die_1): Update.
10201
10202 2020-03-26 Tom Tromey <tom@tromey.com>
10203
10204 * dwarf2/read.c (read_import_statement, read_file_scope)
10205 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10206 (read_lexical_block_scope, read_call_site_scope)
10207 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10208 (handle_struct_member_die, process_structure_scope)
10209 (update_enumeration_type_from_children)
10210 (process_enumeration_scope, read_array_type, read_common_block)
10211 (read_namespace, read_module, read_subroutine_type): Update.
10212 (sibling_die): Remove.
10213
10214 2020-03-26 Tom Tromey <tom@tromey.com>
10215
10216 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10217 (build_type_psymtabs_reader, read_structure_type)
10218 (read_enumeration_type, read_full_die_1): Update.
10219 (dwarf2_attr_no_follow): Move to die.h.
10220 * dwarf2/die.h (struct die_info) <attr>: New method.
10221
10222 2020-03-26 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10225 <base_address>: Now an optional.
10226 (dwarf2_find_base_address, dwarf2_rnglists_process)
10227 (dwarf2_ranges_process, fill_in_loclist_baton)
10228 (dwarf2_symbol_mark_computed): Update.
10229
10230 2020-03-26 Tom Tromey <tom@tromey.com>
10231
10232 * dwarf2/read.c (struct die_info): Move to die.h.
10233 * dwarf2/die.h: New file.
10234
10235 2020-03-26 Tom Tromey <tom@tromey.com>
10236
10237 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10238 * dwarf2/read.c
10239 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10240 Move to line-header.c.
10241 (read_checked_initial_length_and_offset, read_formatted_entries):
10242 Likewise.
10243 (dwarf_decode_line_header): Split into two.
10244 * dwarf2/line-header.c
10245 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10246 Move from read.c.
10247 (read_checked_initial_length_and_offset, read_formatted_entries):
10248 Likewise.
10249 (dwarf_decode_line_header): New function, split from read.c.
10250
10251 2020-03-26 Tom Tromey <tom@tromey.com>
10252
10253 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10254 Declare method.
10255 * dwarf2/read.c (read_attribute_value): Update.
10256 (dwarf2_per_objfile::read_line_string): Rename from
10257 read_indirect_line_string.
10258 (read_formatted_entries): Update.
10259
10260 2020-03-26 Tom Tromey <tom@tromey.com>
10261
10262 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10263 variable.
10264
10265 2020-03-26 Tom Tromey <tom@tromey.com>
10266
10267 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10268 const.
10269 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10270 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10271 parameter const.
10272
10273 2020-03-26 Tom Tromey <tom@tromey.com>
10274
10275 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10276 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10277 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10278 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10279
10280 2020-03-26 Tom Tromey <tom@tromey.com>
10281
10282 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10283 file_names_size, file_full_name, file_file_name>: Use const.
10284 <file_name_at, file_names>: Add const overload.
10285 * dwarf2/line-header.c (line_header::file_file_name)
10286 (line_header::file_full_name): Update.
10287
10288 2020-03-26 Tom Tromey <tom@tromey.com>
10289
10290 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10291 (macro_start_file, consume_improper_spaces)
10292 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10293 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10294 (dwarf_decode_macros): Move to macro.c.
10295 * dwarf2/macro.c: New file.
10296 * dwarf2/macro.h: New file.
10297 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10298
10299 2020-03-26 Tom Tromey <tom@tromey.com>
10300
10301 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10302 method.
10303 * dwarf2/section.c: New method. From
10304 read_indirect_string_at_offset_from.
10305 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10306 (read_indirect_string_at_offset_from): Move to section.c.
10307 (read_indirect_string_at_offset): Rewrite.
10308 (read_indirect_line_string_at_offset): Remove.
10309 (read_indirect_string, read_indirect_line_string)
10310 (dwarf_decode_macro_bytes): Update.
10311
10312 2020-03-26 Tom Tromey <tom@tromey.com>
10313
10314 * dwarf2/section.h (struct dwarf2_section_info)
10315 <overload_complaint>: Declare.
10316 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10317 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10318 Rename from dwarf2_section_buffer_overflow_complaint.
10319 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10320 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10321
10322 2020-03-26 Tom Tromey <tom@tromey.com>
10323
10324 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10325 Declare.
10326 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10327 Move from read.c.
10328 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10329 to section.c.
10330
10331 2020-03-26 Tom Tromey <tom@tromey.com>
10332
10333 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10334
10335 2020-03-26 Tom Tromey <tom@tromey.com>
10336
10337 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10338 "builder".
10339 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10340 parameter.
10341 (dwarf_decode_macros): Update.
10342
10343 2020-03-26 Tom Tromey <tom@tromey.com>
10344
10345 * dwarf2/read.c (read_attribute_value): Update.
10346 (read_indirect_string_from_dwz): Move to dwz.c; change into
10347 method.
10348 (dwarf_decode_macro_bytes): Update.
10349 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10350 * dwarf2/dwz.c: New file.
10351 * Makefile.in (COMMON_SFILES): Add dwz.c.
10352
10353 2020-03-26 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10356 * dwarf2/read.c: Add include.
10357 * dwarf2/index-write.c: Add include.
10358 * dwarf2/index-cache.c: Add include.
10359 * dwarf2/dwz.h: New file.
10360
10361 2020-03-25 Tom Tromey <tom@tromey.com>
10362
10363 * compile/compile-object-load.c (get_out_value_type): Mention
10364 correct symbol name in error message.
10365
10366 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10367
10368 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10369
10370 2020-03-25 Tom de Vries <tdevries@suse.de>
10371
10372 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10373 * symmisc.c (dump_symtab_1): Print user and includes fields.
10374 (maintenance_info_symtabs): Same.
10375
10376 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10377
10378 PR gdb/25534
10379 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10380 (riscv_regcache_cooked_write): New function.
10381 (riscv_push_dummy_call): Use new function.
10382 (riscv_return_value): Likewise.
10383
10384 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10385
10386 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10387 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10388 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10389 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10390 * infrun.c (follow_fork): Likewise.
10391 (follow_fork_inferior): Likewise.
10392 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10393 * linux-nat.h (class linux_nat_target): Likewise.
10394 * remote.c (class remote_target) <follow_fork>: Likewise.
10395 (remote_target::follow_fork): Likewise.
10396 * target-delegates.c: Re-generate.
10397 * target.c (default_follow_fork): Likewise.
10398 (target_follow_fork): Likewise.
10399 * target.h (struct target_ops) <follow_fork>: Likewise.
10400 (target_follow_fork): Likewise.
10401
10402 2020-03-24 Tom de Vries <tdevries@suse.de>
10403
10404 * psymtab.c (maintenance_info_psymtabs): Print user field.
10405
10406 2020-03-20 Tom Tromey <tromey@adacore.com>
10407
10408 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10409 const.
10410 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10411 const.
10412
10413 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10414
10415 * ptrace.m4: Don't check for ptrace declaration.
10416 * config.in: Re-generate.
10417 * configure: Re-generate.
10418 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10419 not defined.
10420
10421 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10422
10423 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10424 `PTRACE_TYPE_RET'.
10425 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10426 * sparc-nat.c (gdb_ptrace): Likewise.
10427 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10428
10429 2020-03-20 Tom Tromey <tromey@adacore.com>
10430
10431 * c-exp.y (lex_one_token): Fix assert.
10432
10433 2020-03-20 Tom Tromey <tromey@adacore.com>
10434
10435 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10436 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10437 strncpy call.
10438
10439 2020-03-20 Tom Tromey <tromey@adacore.com>
10440
10441 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10442
10443 2020-03-20 Tom Tromey <tromey@adacore.com>
10444
10445 * ada-valprint.c (print_variant_part): Remove parameters; switch
10446 to value-based API.
10447 (print_field_values): Likewise.
10448 (ada_val_print_struct_union): Likewise.
10449 (ada_value_print_1): Update.
10450
10451 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10452
10453 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10454 nbsd_nat_target instead of inf_ptrace_target.
10455 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10456 nbsd_nat_target.
10457
10458 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10459
10460 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10461 it to the ptrace call.
10462 * (store_registers): Likewise.
10463
10464 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10465
10466 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10467 it to the ptrace call.
10468 * (store_registers): Likewise.
10469
10470 2020-03-19 Luis Machado <luis.machado@linaro.org>
10471
10472 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10473 valid, fetch vg value from ptrace.
10474
10475 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10476 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10477 * inf-ptrace.c: Likewise.
10478 * (gdb_ptrace): Add.
10479 * (inf_ptrace_target::resume): Update.
10480 * (inf_ptrace_target::xfer_partial): Likewise.
10481 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10482 * (inf_ptrace_peek_poke): Update.
10483
10484 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10485
10486 * x86-bsd-nat.c (gdb_ptrace): New.
10487 * (x86bsd_dr_set): Add new argument `ptid'.
10488 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10489 x86bsd_dr_set_addr): Update.
10490
10491 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10492
10493 * remote.c (remote_target::process_stop_reply): Handle events for
10494 all threads differently.
10495
10496 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10497
10498 * completer.c (completion_tracker::remove_completion): Define new
10499 function.
10500 * completer.h (completion_tracker::remove_completion): Declare new
10501 function.
10502 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10503 when adding a C++ function symbol.
10504
10505 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10506
10507 * completer.c (completion_tracker::completion_hash_entry): Define
10508 new class.
10509 (advance_to_filename_complete_word_point): Call
10510 recompute_lowest_common_denominator.
10511 (completion_tracker::completion_tracker): Call discard_completions
10512 to setup the hash table.
10513 (completion_tracker::discard_completions): Allow for being called
10514 from the constructor, pass new equal function, and element deleter
10515 when constructing the hash table. Initialise new class member
10516 variables.
10517 (completion_tracker::maybe_add_completion): Remove use of
10518 m_entries_vec, and store more information into m_entries_hash.
10519 (completion_tracker::recompute_lcd_visitor): New function, most
10520 content taken from...
10521 (completion_tracker::recompute_lowest_common_denominator):
10522 ...here, this now just visits each item in the hash calling the
10523 above visitor.
10524 (completion_tracker::build_completion_result): Remove use of
10525 m_entries_vec, call recompute_lowest_common_denominator.
10526 * completer.h (completion_tracker::have_completions): Remove use
10527 of m_entries_vec.
10528 (completion_tracker::completion_hash_entry): Declare new class.
10529 (completion_tracker::recompute_lowest_common_denominator): Change
10530 function signature.
10531 (completion_tracker::recompute_lcd_visitor): Declare new function.
10532 (completion_tracker::m_entries_vec): Delete.
10533 (completion_tracker::m_entries_hash): Initialize to NULL.
10534 (completion_tracker::m_lowest_common_denominator_valid): New
10535 member variable.
10536 (completion_tracker::m_lowest_common_denominator_max_length): New
10537 member variable.
10538
10539 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10540
10541 * regformats/regdef.h: Put reg in gdb namespace.
10542
10543 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10544
10545 * i386-bsd-nat.c (gdb_ptrace): New.
10546 * (i386bsd_fetch_inferior_registers,
10547 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10548 * (i386bsd_fetch_inferior_registers,
10549 i386bsd_store_inferior_registers) Use gdb_ptrace.
10550
10551 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10552
10553 * amd64-bsd-nat.c (gdb_ptrace): New.
10554 * (amd64bsd_fetch_inferior_registers,
10555 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10556 * (amd64bsd_fetch_inferior_registers,
10557 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10558
10559 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10560
10561 * user-regs.c (user_reg::read): Rename to...
10562 (user_reg::xread): ...this.
10563 * (append_user_reg): Rename argument `read' to `xread'.
10564 * (user_reg_add_builtin): Likewise.
10565 * (user_reg_add): Likewise.
10566 * (value_of_user_reg): Likewise.
10567
10568 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10569
10570 * sparc-nat.c (gdb_ptrace): New.
10571 * sparc-nat.c (sparc_fetch_inferior_registers)
10572 (sparc_store_inferior_registers) Remove obsolete comment.
10573 * sparc-nat.c (sparc_fetch_inferior_registers)
10574 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10575 * sparc-nat.c (sparc_fetch_inferior_registers)
10576 (sparc_store_inferior_registers) Use gdb_ptrace.
10577
10578 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10579
10580 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10581 it to the ptrace call.
10582 * sh-nbsd-nat.c (store_registers): Likewise.
10583
10584 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10585
10586 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10587 nbsd_nat_target instead of inf_ptrace_target.
10588 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10589 nbsd_nat_target.
10590
10591 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10592
10593 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10594
10595 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10596
10597 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10598 <sys/sysctl.h>.
10599 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10600
10601 2020-03-17 Tom de Vries <tdevries@suse.de>
10602
10603 PR gdb/23710
10604 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10605 fields.
10606 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10607 fields.
10608 (process_imported_unit_die): Skip import of c++ CUs.
10609
10610 2020-03-16 Tom Tromey <tom@tromey.com>
10611
10612 * p-valprint.c (pascal_object_print_value): Initialize
10613 base_value.
10614
10615 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10616 Shahab Vahedi <shahab@synopsys.com>
10617
10618 * Makefile.in: Add arch/arc.o
10619 * configure.tgt: Likewise.
10620 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10621 (_initialize_arc_tdep): Don't initialize old target descriptions.
10622 (arc_read_description): New function to cache target descriptions.
10623 * arc-tdep.h (arc_read_description): Add proto type.
10624 * arch/arc.c: New file.
10625 * arch/arc.h: Likewise.
10626 * features/Makefile: Replace old target descriptions with new.
10627 * features/arc-arcompact.c: Remove.
10628 * features/arc-arcompact.xml: Likewise.
10629 * features/arc-v2.c: Likewise
10630 * features/arc-v2.xml: Likewise
10631 * features/arc/aux-arcompact.xml: New file.
10632 * features/arc/aux-v2.xml: Likewise.
10633 * features/arc/core-arcompact.xml: Likewise.
10634 * features/arc/core-v2.xml: Likewise.
10635 * features/arc/aux-arcompact.c: Generate.
10636 * features/arc/aux-v2.c: Likewise.
10637 * features/arc/core-arcompact.c: Likewise.
10638 * features/arc/core-v2.c: Likewise.
10639 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10640
10641 2020-03-16 Tom Tromey <tromey@adacore.com>
10642
10643 PR gdb/25663:
10644 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10645 putting value into bcache.
10646
10647 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10648
10649 PR gdb/21500
10650 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10651 to...
10652 (amd64_windows_init_abi_common): ... this. Don't set size of
10653 long type.
10654 (amd64_windows_init_abi): New function.
10655 (amd64_cygwin_init_abi): New function.
10656 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10657 the Cygwin OS ABI.
10658 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10659 comment.
10660
10661 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10662
10663 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10664 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10665 (pe_import_directory_entry): New struct type.
10666 (is_linked_with_cygwin_dll): New function.
10667 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10668 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10669 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10670
10671 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10674 i386_cygwin_core_osabi_sniffer.
10675
10676 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10677
10678 * i386-cygwin-tdep.c: Rename to...
10679 * i386-windows-tdep.c: ... this.
10680 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10681 i386-windows-tdep.c.
10682 * configure.tgt: Likewise.
10683
10684 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10687 * osabi.c (gdb_osabi_names): Add "Windows".
10688 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10689 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10690 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10691 i386_cygwin_osabi_sniffer.
10692 (_initialize_i386_cygwin_tdep): Register OS ABI
10693 GDB_OSABI_WINDOWS for i386.
10694 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10695 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10696 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10697 for x86-64.
10698 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10699 when the target matches '*-*-mingw*'.
10700
10701 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10702
10703 * defs.h (enum gdb_osabi): Move to...
10704 * osabi.h (enum gdb_osabi): ... here.
10705 * gdbarch.sh: Include osabi.h in gdbarch.h.
10706 * gdbarch.h: Re-generate.
10707
10708 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10709
10710 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10711 function.
10712 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10713
10714 2020-03-14 Tom Tromey <tom@tromey.com>
10715
10716 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10717 for C++.
10718 (c_type_print_modifier): Likewise. Add "language" parameter.
10719 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10720 (c_type_print_base_1): Update.
10721 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10722 constants.
10723 * type-stack.c (type_stack::insert): Handle tp_atomic and
10724 tp_restrict.
10725 (type_stack::follow_type_instance_flags): Likewise.
10726 (type_stack::follow_types): Likewise. Merge type-following code.
10727 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10728 (space_identifier, cv_with_space_id)
10729 (const_or_volatile_or_space_identifier_noopt)
10730 (const_or_volatile_or_space_identifier): Remove.
10731 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10732 rules.
10733 (ptr_operator, typebase): Update.
10734 (enum token_flag) <FLAG_C>: New constant.
10735 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10736 "_Atomic".
10737 (lex_one_token): Handle FLAG_C.
10738
10739 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10740
10741 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10742 it to the ptrace call.
10743 * m68k-bsd-nat.c (store_registers): Likewise.
10744
10745 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10746
10747 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10748 gdb_byte *.
10749 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10750 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10751 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10752
10753 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10754
10755 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10756 nbsd_nat_target instead of inf_ptrace_target.
10757 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10758 nbsd_nat_target.
10759
10760 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10761
10762 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10763 register_t.
10764
10765 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10766
10767 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10768 it to the ptrace call.
10769 * alpha-bsd-nat.c (store_registers): Likewise.
10770
10771 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10772
10773 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10774 includes.
10775 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10776 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10777 fill_fpregset): Likewise.
10778
10779 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10780
10781 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10782 nbsd_nat_target instead of inf_ptrace_target.
10783 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10784 nbsd_nat_target.
10785
10786 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10787
10788 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10789 register_t.
10790
10791 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10792
10793 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10794 it to the ptrace call.
10795 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10796 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10797 * arm-nbsd-nat.c (store_register): Likewise.
10798 * arm-nbsd-nat.c (store_regs): Likewise.
10799 * arm-nbsd-nat.c (store_fp_register): Likewise.
10800 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10801
10802 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10803
10804 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10805 nbsd_nat_target instead of inf_ptrace_target.
10806 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10807 nbsd_nat_target.
10808
10809 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10810
10811 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10812 it to the ptrace call.
10813 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10814
10815 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10816
10817 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10818 it to the ptrace call.
10819 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10820
10821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10822
10823 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10824 gdb_byte *.
10825 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10826
10827 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10828
10829 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10830 instead of inf_ptrace_target.
10831 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10832 nbsd_nat_target.
10833
10834 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10835
10836 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10837 register_t.
10838
10839 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10840
10841 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10842 register_t.
10843
10844 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10845
10846 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10847 register_t.
10848
10849 2020-03-13 Tom Tromey <tom@tromey.com>
10850
10851 * value.h (val_print): Don't declare.
10852 * valprint.h (val_print_array_elements)
10853 (val_print_scalar_formatted, generic_val_print): Don't declare.
10854 * valprint.c (generic_val_print_array): Take a struct value.
10855 (generic_val_print_ptr, generic_val_print_memberptr)
10856 (generic_val_print_bool, generic_val_print_int)
10857 (generic_val_print_char, generic_val_print_complex)
10858 (generic_val_print): Remove.
10859 (generic_value_print): Update.
10860 (do_val_print): Remove unused parameters. Don't call
10861 la_val_print.
10862 (val_print): Remove.
10863 (common_val_print): Update. Don't call value_check_printable.
10864 (val_print_scalar_formatted, val_print_array_elements): Remove.
10865 * rust-lang.c (rust_val_print): Remove.
10866 (rust_language_defn): Update.
10867 * p-valprint.c (pascal_val_print): Remove.
10868 (pascal_value_print_inner): Update.
10869 (pascal_object_print_val_fields, pascal_object_print_val):
10870 Remove.
10871 (pascal_object_print_static_field): Update.
10872 * p-lang.h (pascal_val_print): Don't declare.
10873 * p-lang.c (pascal_language_defn): Update.
10874 * opencl-lang.c (opencl_language_defn): Update.
10875 * objc-lang.c (objc_language_defn): Update.
10876 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10877 * m2-lang.h (m2_val_print): Don't declare.
10878 * m2-lang.c (m2_language_defn): Update.
10879 * language.h (struct language_defn) <la_val_print>: Remove.
10880 * language.c (unk_lang_value_print_inner): Rename. Change
10881 argument types.
10882 (unknown_language_defn, auto_language_defn): Update.
10883 * go-valprint.c (go_val_print): Remove.
10884 * go-lang.h (go_val_print): Don't declare.
10885 * go-lang.c (go_language_defn): Update.
10886 * f-valprint.c (f_val_print): Remove.
10887 * f-lang.h (f_value_print): Don't declare.
10888 * f-lang.c (f_language_defn): Update.
10889 * d-valprint.c (d_val_print): Remove.
10890 * d-lang.h (d_value_print): Don't declare.
10891 * d-lang.c (d_language_defn): Update.
10892 * cp-valprint.c (cp_print_value_fields)
10893 (cp_print_value_fields_rtti, cp_print_value): Remove.
10894 (cp_print_static_field): Update.
10895 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10896 (c_val_print_struct, c_val_print_union, c_val_print_int)
10897 (c_val_print_memberptr, c_val_print): Remove.
10898 * c-lang.h (c_val_print_array, cp_print_value_fields)
10899 (cp_print_value_fields_rtti): Don't declare.
10900 * c-lang.c (c_language_defn, cplus_language_defn)
10901 (asm_language_defn, minimal_language_defn): Update.
10902 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10903 (ada_val_print_enum): Take a struct value.
10904 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10905 (ada_val_print): Remove.
10906 (ada_value_print_1): Update.
10907 (printable_val_type): Remove.
10908 * ada-lang.h (ada_val_print): Don't declare.
10909 * ada-lang.c (ada_language_defn): Update.
10910
10911 2020-03-13 Tom Tromey <tom@tromey.com>
10912
10913 * valprint.c (do_val_print): Update.
10914 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10915 a struct value.
10916 (value_to_value_object_no_release): Declare.
10917 * python/py-value.c (value_to_value_object_no_release): New
10918 function.
10919 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10920 struct value.
10921 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10922 function.
10923 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10924 a struct value.
10925 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10926 Declare.
10927 (gdbscm_apply_val_pretty_printer): Take a struct value.
10928 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10929 value.
10930 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10931 value.
10932 * extension-priv.h (struct extension_language_ops)
10933 <apply_val_pretty_printer>: Take a struct value.
10934 * cp-valprint.c (cp_print_value): Create a struct value.
10935 (cp_print_value): Update.
10936
10937 2020-03-13 Tom Tromey <tom@tromey.com>
10938
10939 * ada-valprint.c (print_field_values): Call common_val_print.
10940
10941 2020-03-13 Tom Tromey <tom@tromey.com>
10942
10943 * ada-valprint.c (val_print_packed_array_elements): Remove
10944 bitoffset and val parameters. Call common_val_print.
10945 (ada_val_print_string): Remove offset, address, and original_value
10946 parameters.
10947 (ada_val_print_array): Update.
10948 (ada_value_print_array): New function.
10949 (ada_value_print_1): Call it.
10950
10951 2020-03-13 Tom Tromey <tom@tromey.com>
10952
10953 * ada-valprint.c (ada_value_print): Use common_val_print.
10954
10955 2020-03-13 Tom Tromey <tom@tromey.com>
10956
10957 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10958
10959 2020-03-13 Tom Tromey <tom@tromey.com>
10960
10961 * ada-valprint.c (ada_value_print_num): New function.
10962 (ada_value_print_1): Use it.
10963
10964 2020-03-13 Tom Tromey <tom@tromey.com>
10965
10966 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10967
10968 2020-03-13 Tom Tromey <tom@tromey.com>
10969
10970 * ada-valprint.c (ada_value_print_ptr): New function.
10971 (ada_value_print_1): Use it.
10972
10973 2020-03-13 Tom Tromey <tom@tromey.com>
10974
10975 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10976 call common_val_print.
10977 (ada_val_print_1): Update.
10978 (ada_value_print_1): New function.
10979 (ada_value_print_inner): Rewrite.
10980
10981 2020-03-13 Tom Tromey <tom@tromey.com>
10982
10983 * cp-valprint.c (cp_print_value_fields): Update.
10984 (cp_print_value): New function.
10985
10986 2020-03-13 Tom Tromey <tom@tromey.com>
10987
10988 * m2-valprint.c (m2_value_print_inner): Use
10989 cp_print_value_fields.
10990 * cp-valprint.c (cp_print_value_fields): New function.
10991 * c-valprint.c (c_value_print_struct): New function.
10992 (c_value_print_inner): Use c_value_print_struct.
10993 * c-lang.h (cp_print_value_fields): Declare.
10994
10995 2020-03-13 Tom Tromey <tom@tromey.com>
10996
10997 * c-valprint.c (c_value_print_array): New function.
10998 (c_value_print_inner): Use it.
10999
11000 2020-03-13 Tom Tromey <tom@tromey.com>
11001
11002 * c-valprint.c (c_value_print_memberptr): New function.
11003 (c_value_print_inner): Use it.
11004
11005 2020-03-13 Tom Tromey <tom@tromey.com>
11006
11007 * c-valprint.c (c_value_print_int): New function.
11008 (c_value_print_inner): Use it.
11009
11010 2020-03-13 Tom Tromey <tom@tromey.com>
11011
11012 * c-valprint.c (c_value_print_ptr): New function.
11013 (c_value_print_inner): Use it.
11014
11015 2020-03-13 Tom Tromey <tom@tromey.com>
11016
11017 * c-valprint.c (c_value_print_inner): Rewrite.
11018
11019 2020-03-13 Tom Tromey <tom@tromey.com>
11020
11021 * valprint.c (generic_value_print_complex): New function.
11022 (generic_value_print): Use it.
11023
11024 2020-03-13 Tom Tromey <tom@tromey.com>
11025
11026 * valprint.c (generic_val_print_float): Don't call
11027 val_print_scalar_formatted.
11028 (generic_val_print, generic_value_print): Update.
11029
11030 2020-03-13 Tom Tromey <tom@tromey.com>
11031
11032 * valprint.c (generic_value_print_char): New function
11033 (generic_value_print): Use it.
11034
11035 2020-03-13 Tom Tromey <tom@tromey.com>
11036
11037 * valprint.c (generic_value_print_int): New function.
11038 (generic_value_print): Use it.
11039
11040 2020-03-13 Tom Tromey <tom@tromey.com>
11041
11042 * valprint.c (generic_value_print_bool): New function.
11043 (generic_value_print): Use it.
11044
11045 2020-03-13 Tom Tromey <tom@tromey.com>
11046
11047 * valprint.c (generic_val_print_func): Simplify.
11048 (generic_val_print, generic_value_print): Update.
11049
11050 2020-03-13 Tom Tromey <tom@tromey.com>
11051
11052 * valprint.c (generic_val_print_flags): Remove.
11053 (generic_val_print, generic_value_print): Update.
11054 (val_print_type_code_flags): Add original_value parameter.
11055
11056 2020-03-13 Tom Tromey <tom@tromey.com>
11057
11058 * valprint.c (generic_val_print): Update.
11059 (generic_value_print): Update.
11060 * valprint.c (generic_val_print_enum): Don't call
11061 val_print_scalar_formatted.
11062
11063 2020-03-13 Tom Tromey <tom@tromey.com>
11064
11065 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11066 * valprint.c (generic_value_print_ptr): New function.
11067
11068 2020-03-13 Tom Tromey <tom@tromey.com>
11069
11070 * valprint.c (generic_value_print): Rewrite.
11071
11072 2020-03-13 Tom Tromey <tom@tromey.com>
11073
11074 * p-valprint.c (pascal_object_print_value_fields)
11075 (pascal_object_print_value): New functions.
11076
11077 2020-03-13 Tom Tromey <tom@tromey.com>
11078
11079 * p-valprint.c (pascal_value_print_inner): Rewrite.
11080
11081 2020-03-13 Tom Tromey <tom@tromey.com>
11082
11083 * f-valprint.c (f_value_print_innner): Rewrite.
11084
11085 2020-03-13 Tom Tromey <tom@tromey.com>
11086
11087 * m2-valprint.c (m2_print_unbounded_array): New overload.
11088 (m2_print_unbounded_array): Update.
11089 (m2_print_array_contents): Take a struct value.
11090 (m2_value_print_inner): Rewrite.
11091
11092 2020-03-13 Tom Tromey <tom@tromey.com>
11093
11094 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11095 (d_value_print_inner): New function.
11096 * d-lang.h (d_value_print_inner): Declare.
11097 * d-lang.c (d_language_defn): Use d_value_print_inner.
11098
11099 2020-03-13 Tom Tromey <tom@tromey.com>
11100
11101 * go-valprint.c (go_value_print_inner): New function.
11102 * go-lang.h (go_value_print_inner): Declare.
11103 * go-lang.c (go_language_defn): Use go_value_print_inner.
11104
11105 2020-03-13 Tom Tromey <tom@tromey.com>
11106
11107 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11108 API.
11109 (rust_val_print): Rewrite.
11110 (rust_value_print_inner): New function, from rust_val_print.
11111 (rust_language_defn): Use rust_value_print_inner.
11112
11113 2020-03-13 Tom Tromey <tom@tromey.com>
11114
11115 * ada-valprint.c (ada_value_print_inner): New function.
11116 * ada-lang.h (ada_value_print_inner): Declare.
11117 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11118
11119 2020-03-13 Tom Tromey <tom@tromey.com>
11120
11121 * f-valprint.c (f_value_print_innner): New function.
11122 * f-lang.h (f_value_print_innner): Declare.
11123 * f-lang.c (f_language_defn): Use f_value_print_innner.
11124
11125 2020-03-13 Tom Tromey <tom@tromey.com>
11126
11127 * p-valprint.c (pascal_value_print_inner): New function.
11128 * p-lang.h (pascal_value_print_inner): Declare.
11129 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11130
11131 2020-03-13 Tom Tromey <tom@tromey.com>
11132
11133 * m2-valprint.c (m2_value_print_inner): New function.
11134 * m2-lang.h (m2_value_print_inner): Declare.
11135 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11136
11137 2020-03-13 Tom Tromey <tom@tromey.com>
11138
11139 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11140 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11141 * c-valprint.c (c_value_print_inner): New function.
11142 * c-lang.h (c_value_print_inner): Declare.
11143 * c-lang.c (c_language_defn, cplus_language_defn)
11144 (asm_language_defn, minimal_language_defn): Use
11145 c_value_print_inner.
11146
11147 2020-03-13 Tom Tromey <tom@tromey.com>
11148
11149 * p-valprint.c (pascal_object_print_value_fields): Now static.
11150 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11151
11152 2020-03-13 Tom Tromey <tom@tromey.com>
11153
11154 * c-valprint.c (c_val_print_array): Simplify.
11155
11156 2020-03-13 Tom Tromey <tom@tromey.com>
11157
11158 * valprint.c (value_print_array_elements): New function.
11159 * valprint.h (value_print_array_elements): Declare.
11160
11161 2020-03-13 Tom Tromey <tom@tromey.com>
11162
11163 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11164 * mips-tdep.c (mips_print_register): Use
11165 value_print_scalar_formatted.
11166
11167 2020-03-13 Tom Tromey <tom@tromey.com>
11168
11169 * valprint.h (value_print_scalar_formatted): Declare.
11170 * valprint.c (value_print_scalar_formatted): New function.
11171
11172 2020-03-13 Tom Tromey <tom@tromey.com>
11173
11174 * valprint.h (generic_value_print): Declare.
11175 * valprint.c (generic_value_print): New function.
11176
11177 2020-03-13 Tom Tromey <tom@tromey.com>
11178
11179 * valprint.c (do_val_print): Call la_value_print_inner, if
11180 available.
11181 * rust-lang.c (rust_language_defn): Update.
11182 * p-lang.c (pascal_language_defn): Update.
11183 * opencl-lang.c (opencl_language_defn): Update.
11184 * objc-lang.c (objc_language_defn): Update.
11185 * m2-lang.c (m2_language_defn): Update.
11186 * language.h (struct language_defn) <la_value_print_inner>: New
11187 member.
11188 * language.c (unknown_language_defn, auto_language_defn): Update.
11189 * go-lang.c (go_language_defn): Update.
11190 * f-lang.c (f_language_defn): Update.
11191 * d-lang.c (d_language_defn): Update.
11192 * c-lang.c (c_language_defn, cplus_language_defn)
11193 (asm_language_defn, minimal_language_defn): Update.
11194 * ada-lang.c (ada_language_defn): Update.
11195
11196 2020-03-13 Tom Tromey <tom@tromey.com>
11197
11198 * c-valprint.c (c_value_print): Use common_val_print.
11199
11200 2020-03-13 Tom Tromey <tom@tromey.com>
11201
11202 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11203
11204 2020-03-13 Tom Tromey <tom@tromey.com>
11205
11206 * f-valprint.c (f77_print_array_1, f_val_print): Use
11207 common_val_print.
11208
11209 2020-03-13 Tom Tromey <tom@tromey.com>
11210
11211 * riscv-tdep.c (riscv_print_one_register_info): Use
11212 common_val_print.
11213
11214 2020-03-13 Tom Tromey <tom@tromey.com>
11215
11216 * mi/mi-main.c (output_register): Use common_val_print.
11217
11218 2020-03-13 Tom Tromey <tom@tromey.com>
11219
11220 * infcmd.c (default_print_one_register_info): Use
11221 common_val_print.
11222
11223 2020-03-13 Tom Tromey <tom@tromey.com>
11224
11225 * valprint.h (common_val_print_checked): Declare.
11226 * valprint.c (common_val_print_checked): New function.
11227 * stack.c (print_frame_arg): Use common_val_print_checked.
11228
11229 2020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * valprint.c (do_val_print): New function, from val_print.
11232 (val_print): Use do_val_print.
11233 (common_val_print): Use do_val_print.
11234
11235 2020-03-13 Tom Tromey <tom@tromey.com>
11236
11237 * valprint.c (value_print): Use scoped_value_mark.
11238
11239 2020-03-13 Tom de Vries <tdevries@suse.de>
11240
11241 PR symtab/25646
11242 * psymtab.c (partial_symtab::partial_symtab): Don't set
11243 globals_offset and statics_offset. Push element onto
11244 current_global_psymbols and current_static_psymbols stacks.
11245 (concat): New function.
11246 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11247 element from current_global_psymbols and current_static_psymbols
11248 stacks. Concat popped elements to global_psymbols and
11249 static_symbols.
11250 (add_psymbol_to_list): Use current_global_psymbols and
11251 current_static_psymbols stacks.
11252 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11253 current_static_psymbols fields.
11254
11255 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11256
11257 * corelow.c (sniff_core_bfd): Remove.
11258 (class core_target) <m_core_vec>: Remove.
11259 (core_target::core_target): Update.
11260 (core_file_fns): Remove.
11261 (deprecated_add_core_fns): Remove.
11262 (default_core_sniffer): Remove.
11263 (sniff_core_bfd): Remove.
11264 (default_check_format): Remove.
11265 (gdb_check_format): Remove.
11266 (core_target_open): Update.
11267 (core_target::get_core_register_section): Update.
11268 (get_core_registers_cb): Update.
11269 (core_target::fetch_registers): Update.
11270 * gdbcore.h (struct core_fns): Remove.
11271 (deprecated_add_core_fns): Remove.
11272 (default_core_sniffer): Remove.
11273 (default_check_format): Remove.
11274
11275 2020-03-12 Tom Tromey <tom@tromey.com>
11276
11277 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11278 CORE_ADDR.
11279 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11280
11281 2020-03-12 Tom Tromey <tom@tromey.com>
11282
11283 * remote.c (remote_target::download_tracepoint)
11284 (remote_target::enable_tracepoint)
11285 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11286 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11287 sprintf_vma.
11288
11289 2020-03-12 Tom Tromey <tom@tromey.com>
11290
11291 * symfile-mem.c: Update CORE_ADDR size assert.
11292
11293 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11294
11295 * selftest.m4: Move to gdbsupport/.
11296 * acinclude.m4: Update path to selftest.m4.
11297
11298 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11299
11300 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11301 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11302 gdbarch-selfselftests.c and selftest-arch.c.
11303 (SUBDIR_UNITTESTS_OBS): Rename to...
11304 (SELFTESTS_OBS): ... this.
11305 (COMMON_SFILES): Remove disasm-selftests.c and
11306 gdbarch-selftests.c.
11307 * configure.ac: Don't add selftest-arch.{c,o} to
11308 CONFIG_{SRCS,OBS}.
11309 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11310 preprocessor conditions.
11311
11312 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11313
11314 * configure.ac: Don't source bfd/development.sh.
11315 * selftest.m4: Modify comment.
11316 * configure: Re-generate.
11317
11318 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11319
11320 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11321 not "true" or "false".
11322 * configure: Re-generate.
11323
11324 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11325
11326 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11327 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11328 renamed to arm_nbsd_supply_gregset.
11329 (fetch_register): Update to call arm_nbsd_supply_gregset.
11330 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11331 (arm_netbsd_nat_target::fetch_registers): Update.
11332 (fetch_elfcore_registers): Removed.
11333 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11334 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11335 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11336 not require NetBSD system headers.
11337 (arm_nbsd_regset): New struct.
11338 (arm_nbsd_iterate_over_regset_sections): New function.
11339 (arm_netbsd_init_abi_common): Updated to call
11340 set_gdbarch_iterate_over_regset_sections.
11341 * arm-nbsd-tdep.h: New file.
11342
11343 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11344
11345 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11346 recursion.
11347
11348 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11349
11350 * configure: Re-generate.
11351
11352 2020-03-11 Tom Tromey <tromey@adacore.com>
11353
11354 * ada-typeprint.c (print_choices): Fix comment.
11355
11356 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11357
11358 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11359 previous item in the list, when the list has no items.
11360
11361 2020-03-11 Tom de Vries <tdevries@suse.de>
11362
11363 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11364 PROP_LOCLIST handling code.
11365
11366 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11367
11368 * buildsym-legacy.c (record_line): Pass extra parameter to
11369 record_line.
11370 * buildsym.c (buildsym_compunit::record_line): Take an extra
11371 parameter, reduce duplication in the line table, and record the
11372 is_stmt flag in the line table.
11373 * buildsym.h (buildsym_compunit::record_line): Add extra
11374 parameter.
11375 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11376 non-statement lines.
11377 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11378 this to the symtab builder.
11379 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11380 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11381 through to dwarf_record_line_1.
11382 * infrun.c (process_event_stop_test): When stepping, don't stop at
11383 a non-statement instruction, and only refresh the step info when
11384 we land in the middle of a line's range. Also add an extra
11385 comment.
11386 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11387 field.
11388 * record-btrace.c (btrace_find_line_range): Only record lines
11389 marked as is-statement.
11390 * stack.c (frame_show_address): Show the frame address if we are
11391 in a non-statement sal.
11392 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11393 (maintenance_print_one_line_table): Print a header for the is_stmt
11394 column, and include is_stmt information in the output.
11395 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11396 preference to non-statements.
11397 (find_pcs_for_symtab_line): Prefer is-statement entries.
11398 (find_line_common): Likewise.
11399 * symtab.h (struct linetable_entry): Add is_stmt field.
11400 (struct symtab_and_line): Likewise.
11401 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11402 arranging the line table.
11403
11404 2020-03-07 Tom de Vries <tdevries@suse.de>
11405
11406 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11407 DIE.
11408
11409 2020-03-07 Tom Tromey <tom@tromey.com>
11410
11411 * valops.c (value_literal_complex): Remove obsolete comment.
11412 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11413 comment.
11414
11415 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11416
11417 * infrun.h: Forward-declare thread_info.
11418 (set_step_info): Add thread_info parameter, add doc.
11419 * infrun.c (set_step_info): Add thread_info parameter, move doc
11420 to header.
11421 * infrun.c (process_event_stop_test): Pass thread to
11422 set_step_info call.
11423 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11424 set_step_info.
11425 (prepare_one_step): Add thread_info parameter, pass it to
11426 set_step_frame and prepare_one_step (recursive) call.
11427 (step_1): Pass thread to prepare_one_step call.
11428 (step_command_fsm::should_stop): Pass thread to
11429 prepare_one_step.
11430 (until_next_fsm): Pass thread to set_step_frame call.
11431 (finish_command): Pass thread to set_step_info call.
11432
11433 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11434
11435 * windows-tdep.c (windows_solib_create_inferior_hook):
11436 Check if inferior is running.
11437
11438 2020-03-06 Tom de Vries <tdevries@suse.de>
11439
11440 * NEWS: Fix "the the".
11441 * ctfread.c: Same.
11442
11443 2020-03-06 Tom de Vries <tdevries@suse.de>
11444
11445 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11446
11447 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11448
11449 * .dir-locals.el: Add a comment referencing the other copies of
11450 this file.
11451
11452 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11453
11454 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11455 psargs.
11456
11457 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11458
11459 * .gitattributes: New file.
11460
11461 2020-03-04 Tom Tromey <tom@tromey.com>
11462
11463 * symmisc.c (print_symbol_bcache_statistics)
11464 (print_objfile_statistics): Update.
11465 * symfile.c (allocate_symtab): Use intern.
11466 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11467 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11468 macro_cache>: Remove.
11469 <string_cache>: New member.
11470 (struct objfile) <intern>: New methods.
11471 * elfread.c (elf_symtab_read): Use intern.
11472 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11473 (dwarf2_compute_name, dwarf2_physname)
11474 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11475 names.
11476 (guess_partial_die_structure_name): Update.
11477 (partial_die_info::fixup): Intern name.
11478 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11479 name.
11480 (dwarf2_name): Intern name. Update.
11481 * buildsym.c (buildsym_compunit::get_macro_table): Use
11482 string_cache.
11483
11484 2020-03-04 Tom Tromey <tom@tromey.com>
11485
11486 * jit.c (bfd_open_from_target_memory): Make "target" const.
11487 * corefile.c (gnutarget): Now const.
11488 * gdbcore.h (gnutarget): Now const.
11489
11490 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11491
11492 * NEWS: Mention support for WOW64 processes.
11493 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11494 (amd64_windows_segment_register_p): Remove static.
11495 (_initialize_amd64_windows_nat): Update.
11496 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11497 * i386-windows-nat.c (context_offset): Update.
11498 (i386_mappings): Rename and remove static.
11499 (i386_windows_segment_register_p): Remove static.
11500 (_initialize_i386_windows_nat): Update.
11501 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11502 (STATUS_WX86_SINGLE_STEP): New macro.
11503 (EnumProcessModulesEx): New macro.
11504 (Wow64SuspendThread): New macro.
11505 (Wow64GetThreadContext): New macro.
11506 (Wow64SetThreadContext): New macro.
11507 (Wow64GetThreadSelectorEntry): New macro.
11508 (windows_set_context_register_offsets): Add static.
11509 (windows_set_segment_register_p): Likewise.
11510 (windows_add_thread): Adapt for WOW64 processes.
11511 (windows_fetch_one_register): Likewise.
11512 (windows_nat_target::fetch_registers): Likewise.
11513 (windows_store_one_register): Likewise.
11514 (display_selector): Likewise.
11515 (display_selectors): Likewise.
11516 (handle_exception): Likewise.
11517 (windows_continue): Likewise.
11518 (windows_nat_target::resume): Likewise.
11519 (windows_add_all_dlls): Likewise.
11520 (do_initial_windows_stuff): Likewise.
11521 (windows_nat_target::attach): Likewise.
11522 (windows_get_exec_module_filename): Likewise.
11523 (windows_nat_target::create_inferior): Likewise.
11524 (windows_xfer_siginfo): Likewise.
11525 (_initialize_loadable): Initialize Wow64SuspendThread,
11526 Wow64GetThreadContext, Wow64SetThreadContext,
11527 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11528 * windows-nat.h (windows_set_context_register_offsets):
11529 Remove declaration.
11530 (windows_set_segment_register_p): Likewise.
11531 (i386_windows_segment_register_p): Add declaration.
11532 (amd64_windows_segment_register_p): Likewise.
11533
11534 2020-03-04 Luis Machado <luis.machado@linaro.org>
11535
11536 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11537 in "info registers" for AArch64/ARM.
11538
11539 The change caused "info registers" to not print GPR's.
11540
11541 gdb/ChangeLog:
11542
11543 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11544
11545 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11546 when reg->group is empty and reggroup is not.
11547
11548 2020-03-03 Tom Tromey <tromey@adacore.com>
11549
11550 * dwarf2/frame.c (struct dwarf2_frame_cache)
11551 <checked_tailcall_bottom, entry_cfa_sp_offset,
11552 entry_cfa_sp_offset_p>: Remove members.
11553 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11554 (dwarf2_frame_prev_register): Don't call
11555 dwarf2_tailcall_sniffer_first.
11556 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11557 * frame-unwind.c (add_unwinder): New fuction.
11558 (frame_unwind_init): Use it. Add tailcall unwinder.
11559
11560 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11561 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11562
11563 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11564 value should be printed as true.
11565
11566 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11567
11568 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11569 (windows_init_abi): Set and use windows_so_ops.
11570
11571 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11572
11573 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11574 when verifying if dealing with a convenience variable.
11575
11576 2020-03-03 Luis Machado <luis.machado@linaro.org>
11577
11578 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11579
11580 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11581
11582 * infrun.c (gdbarch_supports_displaced_stepping): New.
11583 (use_displaced_stepping): Break up conditions in smaller pieces.
11584 Use gdbarch_supports_displaced_stepping.
11585 (displaced_step_prepare_throw): Use
11586 gdbarch_supports_displaced_stepping.
11587
11588 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11589
11590 * NEWS: Mention new behaviour of the history filename.
11591 * top.c (write_history_p): Add comment.
11592 (show_write_history_p): Add header comment, give a different
11593 message when history writing is on, but the history filename is
11594 empty.
11595 (history_filename): Add comment.
11596 (history_filename_empty): New function.
11597 (show_history_filename): Add header comment, give a different
11598 message when the filename is empty.
11599 (init_history): Compare history_filename against nullptr, and only
11600 read history if the filename is not empty.
11601 (set_history_filename): Add header comment, and only make
11602 non-empty filenames absolute.
11603 (init_main): Make the filename argument to 'set history filename'
11604 optional.
11605
11606 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11607
11608 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11609 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11610 (fetch_fp_register): Update.
11611 (fetch_fp_regs): Update.
11612 (store_fp_register): Update.
11613 (store_fp_regs): Update.
11614 (arm_netbsd_nat_target::read_description): New function.
11615 (fetch_elfcore_registers): Update.
11616
11617 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11618
11619 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11620 general_thread if the stop reply is missing a thread-id.
11621 (remote_target::process_stop_reply): Use the first non-exited
11622 thread if the target didn't pass a thread-id.
11623 * infrun.c (do_target_wait): Move call to
11624 switch_to_inferior_no_thread to ....
11625 (do_target_wait_1): ... here.
11626
11627 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11628
11629 * debuginfod-support.c: Include defs.h first.
11630
11631 2020-02-28 Tom de Vries <tdevries@suse.de>
11632
11633 * symfile.c (set_initial_language): Use default language for lookup.
11634
11635 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11636
11637 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11638 reader variable, pass `this` to read_cutu_die_from_dwo.
11639
11640 2020-02-27 Aaron Merey <amerey@redhat.com>
11641
11642 * source.c (open_source_file): Check for nullptr when computing
11643 srcpath.
11644
11645 2020-02-27 Tom Tromey <tromey@adacore.com>
11646
11647 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11648 member.
11649 (dwarf2_add_field): Don't update nfields.
11650 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11651
11652 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11653
11654 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11655 abs.
11656
11657 2020-02-26 Tom Tromey <tom@tromey.com>
11658
11659 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11660 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11661 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11662 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11663 per_cu_data.
11664
11665 2020-02-26 Tom Tromey <tom@tromey.com>
11666
11667 * dwarf2/index-write.c (psym_index_map): Change type.
11668 (add_address_entry_worker, write_one_signatured_type)
11669 (recursively_count_psymbols, recursively_write_psymbols)
11670 (class debug_names, psyms_seen_size, write_gdbindex)
11671 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11672
11673 2020-02-26 Aaron Merey <amerey@redhat.com>
11674
11675 * Makefile.in: Handle optional debuginfod support.
11676 * NEWS: Update.
11677 * README: Add --with-debuginfod summary.
11678 * config.in: Regenerate.
11679 * configure: Regenerate.
11680 * configure.ac: Handle optional debuginfod support.
11681 * debuginfod-support.c: debuginfod helper functions.
11682 * debuginfod-support.h: Ditto.
11683 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11684 summary.
11685 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11686 when a dwz file cannot be found.
11687 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11688 debuginfo file cannot be found.
11689 * source.c (open_source_file): Query debuginfod servers when a
11690 source file cannot be found.
11691 * top.c (print_gdb_configuration): Include
11692 --{with,without}-debuginfod in the output.
11693
11694 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11695
11696 * thread.c (thr_try_catch_cmd): Print thread name.
11697
11698 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11699
11700 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11701 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11702 dwarf2_fetch_die_type_sect_off): Move to...
11703 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11704 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11705 dwarf2_fetch_die_type_sect_off): ... here.
11706 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11707 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11708 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11709
11710 2020-02-26 Tom de Vries <tdevries@suse.de>
11711
11712 PR gdb/25603
11713 * symfile.c (set_initial_language): Exit-early if
11714 language_mode == language_mode_manual.
11715
11716 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11717
11718 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11719 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11720 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11721
11722 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11723
11724 * gdbtypes.c (create_array_type_with_stride): Handle negative
11725 array strides.
11726 * valarith.c (value_subscripted_rvalue): Likewise.
11727
11728 2020-02-25 Luis Machado <luis.machado@linaro.org>
11729
11730 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11731
11732 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11733
11734 * loc.h (dwarf2_get_die_type): Move to...
11735 * read.h (dwarf2_get_die_type): ... here.
11736 * read.c (dwarf2_get_die_type): Move doc to header.
11737
11738 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11739
11740 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11741 'gnulib/Makefile.in' to the list.
11742
11743 2020-02-24 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11746 Remove.
11747 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11748 XOBNEWVEC.
11749
11750 2020-02-24 Tom Tromey <tom@tromey.com>
11751
11752 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11753 New method.
11754 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11755 (dw2_do_instantiate_symtab, dw2_get_file_names)
11756 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11757
11758 2020-02-24 Tom Tromey <tom@tromey.com>
11759
11760 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11761 make_scoped_restore.
11762 (dwarf2_psymtab::read_symtab): Don't clear
11763 reading_partial_symbols.
11764
11765 2020-02-24 Tom de Vries <tdevries@suse.de>
11766
11767 PR gdb/25592
11768 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11769
11770 2020-02-24 Tom de Vries <tdevries@suse.de>
11771
11772 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11773 commands layout next/prev/regs.
11774
11775 2020-02-22 Tom Tromey <tom@tromey.com>
11776
11777 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11778 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11779
11780 2020-02-22 Tom Tromey <tom@tromey.com>
11781
11782 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11783
11784 2020-02-22 Tom Tromey <tom@tromey.com>
11785
11786 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11787 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11788 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11789 * tui/tui.c (_initialize_tui): Add usage text.
11790
11791 2020-02-22 Tom Tromey <tom@tromey.com>
11792
11793 * tui/tui-win.c (tui_set_focus_command)
11794 (tui_set_win_height_command): Use error_no_arg.
11795 (_initialize_tui_win): Update help text.
11796 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11797
11798 2020-02-22 Tom Tromey <tom@tromey.com>
11799
11800 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11801 * tui/tui-disasm.h (struct tui_disasm_window)
11802 <display_start_addr>: Declare.
11803 * tui/tui-source.h (struct tui_source_window)
11804 <display_start_addr>: Declare.
11805 * tui/tui-winsource.h (struct tui_source_window_base)
11806 <show_source_line, display_start_addr>: New methods.
11807 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11808 Rename and move to protected section.
11809 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11810 (tui_source_window_base::do_erase_source_content): Update.
11811 (tui_source_window_base::show_source_line): Now a method.
11812 (tui_source_window_base::show_source_content)
11813 (tui_source_window_base::tui_source_window_base)
11814 (tui_source_window_base::rerender)
11815 (tui_source_window_base::refill)
11816 (tui_source_window_base::do_scroll_horizontal)
11817 (tui_source_window_base::set_is_exec_point_at)
11818 (tui_source_window_base::update_breakpoint_info)
11819 (tui_source_window_base::update_exec_info): Update.
11820 * tui/tui-source.c (tui_source_window::set_contents)
11821 (tui_source_window::showing_source_p)
11822 (tui_source_window::do_scroll_vertical)
11823 (tui_source_window::location_matches_p)
11824 (tui_source_window::line_is_displayed): Update.
11825 (tui_source_window::display_start_addr): New method.
11826 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11827 (tui_disasm_window::do_scroll_vertical)
11828 (tui_disasm_window::location_matches_p): Update.
11829 (tui_disasm_window::display_start_addr): New method.
11830
11831 2020-02-22 Tom Tromey <tom@tromey.com>
11832
11833 * NEWS: Add entry for gdb.register_window_type.
11834 * tui/tui-layout.h (window_factory): New typedef.
11835 (tui_register_window): Declare.
11836 * tui/tui-layout.c (saved_tui_windows): New global.
11837 (tui_apply_current_layout): Use it.
11838 (tui_register_window): New function.
11839 * python/python.c (do_start_initialization): Call
11840 gdbpy_initialize_tui.
11841 (python_GdbMethods): Add "register_window_type" function.
11842 * python/python-internal.h (gdbpy_register_tui_window)
11843 (gdbpy_initialize_tui): Declare.
11844 * python/py-tui.c: New file.
11845 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11846
11847 2020-02-22 Tom Tromey <tom@tromey.com>
11848
11849 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11850
11851 2020-02-22 Tom Tromey <tom@tromey.com>
11852
11853 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11854 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11855 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11856 (tui_set_win_focus_to): Move from tui-win.c.
11857
11858 2020-02-22 Tom Tromey <tom@tromey.com>
11859
11860 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11861 functions.
11862 (known_window_types): New global.
11863 (tui_get_window_by_name): Reimplement.
11864 (initialize_known_windows): New function.
11865 (validate_window_name): Rewrite.
11866 (_initialize_tui_layout): Call initialize_known_windows.
11867
11868 2020-02-22 Tom Tromey <tom@tromey.com>
11869
11870 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11871 Remove constants.
11872 * tui/tui-winsource.h (struct tui_source_window_base)
11873 <tui_source_window_base>: Remove parameter.
11874 * tui/tui-winsource.c
11875 (tui_source_window_base::tui_source_window_base): Remove
11876 parameter.
11877 (tui_source_window_base::refill): Update.
11878 * tui/tui-stack.h (struct tui_locator_window)
11879 <tui_locator_window>: Update.
11880 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11881 Default the constructor.
11882 * tui/tui-regs.h (struct tui_data_item_window)
11883 <tui_data_item_window>: Default the constructor.
11884 (struct tui_data_window) <tui_data_window>: Likewise.
11885 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11886 Default the constructor.
11887 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11888 Default the constructor.
11889 <type>: Remove.
11890 (struct tui_win_info) <tui_win_info>: Default the constructor.
11891 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11892 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11893 Default the constructor.
11894
11895 2020-02-22 Tom Tromey <tom@tromey.com>
11896
11897 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11898 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11899 * tui/tui-win.c (tui_resize_all): Don't call
11900 tui_delete_invisible_windows.
11901 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11902 done.
11903 (tui_set_layout): Update.
11904 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11905 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11906 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11907
11908 2020-02-22 Tom Tromey <tom@tromey.com>
11909
11910 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11911 correctly.
11912
11913 2020-02-22 Tom Tromey <tom@tromey.com>
11914
11915 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11916
11917 2020-02-22 Tom Tromey <tom@tromey.com>
11918
11919 * tui/tui-winsource.h (struct tui_source_window_iterator)
11920 <inner_iterator>: New etytypedef.
11921 <tui_source_window_iterator>: Take "end" parameter.
11922 <tui_source_window_iterator>: Take iterator.
11923 <operator*, advance>: Update.
11924 <m_iter>: Change type.
11925 <m_end>: New field.
11926 (struct tui_source_windows) <begin, end>: Update.
11927 * tui/tui-layout.c (tui_windows): New global.
11928 (tui_apply_current_layout): Clear tui_windows.
11929 (tui_layout_window::apply): Update tui_windows.
11930 * tui/tui-data.h (tui_windows): Declare.
11931 (all_tui_windows): Now inline function.
11932 (class tui_window_iterator, struct all_tui_windows): Remove.
11933
11934 2020-02-22 Tom Tromey <tom@tromey.com>
11935
11936 PR tui/17850:
11937 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11938 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11939 "height" argument.
11940 (class tui_layout_window) <get_sizes>: Likewise.
11941 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11942 argument.
11943 <get_sizes>: Add "height" argument.
11944 <m_vertical>: New field.
11945 * tui/tui-layout.c (tui_layout_split::clone): Update.
11946 (tui_layout_split::get_sizes): Add "height" argument.
11947 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11948 (tui_new_layout_command): Parse "-horizontal".
11949 (_initialize_tui_layout): Update help string.
11950 (tui_layout_split::specification): Add "-horizontal" when needed.
11951 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11952 argument.
11953 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11954 New methods.
11955
11956 2020-02-22 Tom Tromey <tom@tromey.com>
11957
11958 * tui/tui-layout.h (enum tui_adjust_result): New.
11959 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11960 (class tui_layout_window) <adjust_size>: Return
11961 tui_adjust_result. Rewrite.
11962 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11963 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11964
11965 2020-02-22 Tom Tromey <tom@tromey.com>
11966
11967 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11968 parameter and return types.
11969 (class tui_layout_base) <specification>: Add "depth".
11970 (class tui_layout_window) <specification>: Add "depth".
11971 (class tui_layout_split) <specification>: Add "depth".
11972 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11973 and return types.
11974 (tui_new_layout_command): Parse sub-layouts.
11975 (_initialize_tui_layout): Update help string.
11976 (tui_layout_window::specification): Add "depth".
11977 (add_layout_command): Update.
11978
11979 2020-02-22 Tom Tromey <tom@tromey.com>
11980
11981 * NEWS: Add "tui new-layout" item.
11982 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11983 Add new-layout command to help text.
11984 (validate_window_name): New function.
11985 (tui_new_layout_command): New function.
11986 (_initialize_tui_layout): Register "new-layout".
11987 (tui_layout_window::specification): New method.
11988 (tui_layout_window::specification): New method.
11989 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11990 method.
11991 (class tui_layout_window) <specification>: New method.
11992 (class tui_layout_split) <specification>: New method.
11993
11994 2020-02-22 Tom Tromey <tom@tromey.com>
11995
11996 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11997 * tui/tui-win.c (window_name_completer): Update comment.
11998 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11999 Declare method.
12000 (class tui_layout_window) <replace_window>: Likewise.
12001 (class tui_layout_split) <replace_window>: Likewise.
12002 (tui_set_layout): Don't declare.
12003 (tui_set_initial_layout): Declare function.
12004 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12005 (asm_regs_layout): New globals.
12006 (tui_current_layout, show_layout): Remove.
12007 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12008 (find_layout, tui_apply_layout): New function.
12009 (layout_completer): Remove.
12010 (tui_next_layout): Reimplement.
12011 (tui_next_layout_command): New function.
12012 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12013 (tui_regs_layout): Reimplement.
12014 (tui_regs_layout_command): New function.
12015 (extract_display_start_addr): Rewrite.
12016 (next_layout, prev_layout): Remove.
12017 (tui_layout_window::replace_window): New method.
12018 (tui_layout_split::replace_window): New method.
12019 (destroy_layout): New function.
12020 (layout_list): New global.
12021 (add_layout_command): New function.
12022 (initialize_layouts): Update.
12023 (tui_layout_command): New function.
12024 (_initialize_tui_layout): Install "layout" commands.
12025 * tui/tui-data.h (enum tui_layout_type): Remove.
12026 (tui_current_layout): Don't declare.
12027
12028 2020-02-22 Tom Tromey <tom@tromey.com>
12029
12030 * tui/tui-regs.c (tui_reg_layout): Remove.
12031 (tui_reg_command): Use tui_regs_layout.
12032 * tui/tui-layout.h (tui_reg_command): Declare.
12033 * tui/tui-layout.c (tui_reg_command): New function.
12034
12035 2020-02-22 Tom Tromey <tom@tromey.com>
12036
12037 * tui/tui.c (tui_rl_delete_other_windows): Call
12038 tui_remove_some_windows.
12039 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12040 Declare method.
12041 (class tui_layout_window) <remove_windows>: New method.
12042 (class tui_layout_split) <remove_windows>: Declare.
12043 (tui_remove_some_windows): Declare.
12044 * tui/tui-layout.c (tui_remove_some_windows): New function.
12045 (tui_layout_split::remove_windows): New method.
12046
12047 2020-02-22 Tom Tromey <tom@tromey.com>
12048
12049 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12050 * tui/tui-layout.h (tui_next_layout): Declare.
12051 * tui/tui-layout.c (tui_next_layout): New function.
12052
12053 2020-02-22 Tom Tromey <tom@tromey.com>
12054
12055 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12056 correct coordinates.
12057
12058 2020-02-22 Tom Tromey <tom@tromey.com>
12059
12060 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12061 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12062 DATA_WIN case.
12063
12064 2020-02-22 Tom Tromey <tom@tromey.com>
12065
12066 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12067 TUI_DISASM_WIN, not tui_win_list.
12068
12069 2020-02-22 Tom Tromey <tom@tromey.com>
12070
12071 * valprint.c (generic_val_print_enum_1)
12072 (val_print_type_code_flags): Style member names.
12073 * rust-lang.c (val_print_struct, rust_print_enum)
12074 (rust_print_struct_def, rust_internal_print_type): Style member
12075 names.
12076 * p-valprint.c (pascal_object_print_value_fields): Style member
12077 names. Only call fprintf_symbol_filtered for static members.
12078 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12079 * f-valprint.c (f_val_print): Style member names.
12080 * f-typeprint.c (f_type_print_base): Style member names.
12081 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12082 call fprintf_symbol_filtered for static members.
12083 (cp_print_class_member): Style member names.
12084 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12085 member names.
12086 * ada-valprint.c (ada_print_scalar): Style enum names.
12087 (ada_val_print_enum): Likewise.
12088 * ada-typeprint.c (print_enum_type): Style enum names.
12089
12090 2020-02-21 Tom Tromey <tom@tromey.com>
12091
12092 * psympriv.h (struct partial_symtab): Update comment.
12093
12094 2020-02-21 Tom Tromey <tromey@adacore.com>
12095
12096 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12097 type is CORE_ADDR.
12098
12099 2020-02-21 Tom de Vries <tdevries@suse.de>
12100
12101 PR gdb/25534
12102 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12103 if dependencies[i]->user != NULL.
12104
12105 2020-02-21 Ali Tamur <tamur@google.com>
12106
12107 * dwarf2/read.c (dwarf2_name): Add null check.
12108
12109 2020-02-20 Tom Tromey <tom@tromey.com>
12110
12111 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12112 ">=", in binary search.
12113 (dwarf2_find_containing_comp_unit): New overload.
12114 (run_test): New self-test.
12115 (_initialize_dwarf2_read): Register new test.
12116
12117 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12118
12119 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12120 * riscv-tdep.h: Likewise.
12121 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12122 rv32-only CSR.
12123 * features/riscv/64bit-csr.xml: Regenerated.
12124
12125 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12126 Tom Tromey <tom@tromey.com>
12127
12128 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12129 of 'fputc_unfiltered'.
12130 (putchar_unfiltered): Call 'fputc_unfiltered'.
12131 (fputc_unfiltered): Call 'fputs_unfiltered'.
12132
12133 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12134
12135 * config.in: Regenerate.
12136 * configure: Regenerate.
12137 * configure.ac: Add --with-python-libdir option.
12138 * main.c: Use WITH_PYTHON_LIBDIR.
12139
12140 2020-02-19 Tom Tromey <tom@tromey.com>
12141
12142 * symtab.c (general_symbol_info::compute_and_set_names): Use
12143 obstack_strndup. Simplify call to symbol_set_demangled_name.
12144
12145 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12146
12147 * dwarf2/read.c (allocate_signatured_type_table,
12148 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12149 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12150 Remove objfile parameter, update all callers.
12151
12152 2020-02-19 Doug Evans <dje@google.com>
12153
12154 PR rust/25535
12155 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12156 rust_enum_variant calculation.
12157
12158 2020-02-19 Tom Tromey <tromey@adacore.com>
12159
12160 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12161
12162 2020-02-19 Tom Tromey <tromey@adacore.com>
12163
12164 * ada-lang.c (cache_symbol): Use obstack_strdup.
12165
12166 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12167
12168 * configure: Regenerate.
12169
12170 2020-02-19 Tom Tromey <tromey@adacore.com>
12171
12172 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12173 NULL check.
12174
12175 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12176
12177 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12178
12179 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12180
12181 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12182 if GDBSERVER is not defined.
12183 (riscv_tdesc_cache): Likewise, also store const target_desc.
12184 (STATIC_IN_GDB): Define.
12185 (riscv_create_target_description): Update declaration with
12186 STATIC_IN_GDB.
12187 (riscv_lookup_target_description): New function, only define if
12188 GDBSERVER is not defined.
12189 * arch/riscv.h (riscv_create_target_description): Declare only
12190 when GDBSERVER is defined.
12191 (riscv_lookup_target_description): New declaration when GDBSERVER
12192 is not defined.
12193 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12194 (riscv_linux_read_features): ...this, and return
12195 riscv_gdbarch_features instead of target_desc.
12196 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12197 (riscv_linux_read_description): Rename to...
12198 (riscv_linux_read_features): ...this.
12199 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12200 Update to use riscv_gdbarch_features and
12201 riscv_lookup_target_description.
12202 * riscv-tdep.c (riscv_find_default_target_description): Use
12203 riscv_lookup_target_description instead of
12204 riscv_create_target_description.
12205
12206 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12207
12208 * valprint.c (generic_val_print_enum_1): When printing a flag
12209 enum with value 0 and there is no enumerator with value 0, print
12210 just "0" instead of "(unknown: 0x0)".
12211
12212 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12213
12214 * valprint.c (generic_val_print_enum_1): Print unknown part of
12215 flag enum in hex.
12216
12217 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12218
12219 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12220 flag enums to contain duplicate enumerators.
12221 * valprint.c (generic_val_print_enum_1): Update comment.
12222
12223 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12224
12225 * dwarf2/read.c: Include "count-one-bits.h".
12226 (update_enumeration_type_from_children): If an enumerator has
12227 multiple bits set, don't treat the enumeration as a "flag enum".
12228 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12229 of flag enums have 0 or 1 bit set.
12230
12231 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12232
12233 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12234 conversion.
12235 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12236 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12237 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12238 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12239 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12240
12241 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12242
12243 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12244
12245 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12246
12247 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12248 displaced_step_closure_up.
12249 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12250 (struct displaced_step_closure_up):
12251 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12252 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12253 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12254 Likewise.
12255 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12256 * gdbarch.c, gdbarch.h: Re-generate.
12257 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12258 displaced_step_closure_up.
12259 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12260 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12261 * infrun.h (displaced_step_closure_up): New type alias.
12262 (struct displaced_step_inferior_state) <step_closure>: Change
12263 type to displaced_step_closure_up.
12264 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12265 displaced_step_closure_up.
12266 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12267
12268 2020-02-14 Tom Tromey <tom@tromey.com>
12269
12270 * minidebug.c (gnu_debug_key): New global.
12271 (find_separate_debug_file_in_section): Use it.
12272
12273 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12274
12275 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12276 std::unique_ptr.
12277 * gdbarch.c: Re-generate.
12278 * gdbarch.h: Re-generate.
12279 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12280 change.
12281 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12282 type to std::unique_ptr.
12283 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12284 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12285 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12286 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12287 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12288 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12289 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12290 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12291 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12292
12293 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12294
12295 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12296 std::unique_ptr.
12297 (displaced_step_clear): Rename to...
12298 (displaced_step_reset): ... this. Just call displaced->reset ().
12299 (displaced_step_clear_cleanup): Rename to...
12300 (displaced_step_reset_cleanup): ... this.
12301 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12302 (displaced_step_fixup): Likewise.
12303 (resume_1): Likewise.
12304 (handle_inferior_event): Restore child's memory before calling
12305 displaced_step_fixup on the parent.
12306 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12307 to std::unique_ptr.
12308 <step_closure>: Change type to std::unique_ptr.
12309
12310 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12311
12312 * arm-tdep.c: Include count-one-bits.h.
12313 (cleanup_block_store_pc): Use count_one_bits.
12314 (cleanup_block_load_pc): Use count_one_bits.
12315 (arm_copy_block_xfer): Use count_one_bits.
12316 (thumb2_copy_block_xfer): Use count_one_bits.
12317 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12318 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12319 (thumb_get_next_pcs_raw): Use count_one_bits.
12320 (arm_get_next_pcs_raw): Use count_one_bits_l.
12321 * arch/arm.c (bitcount): Remove.
12322 * arch/arm.h (bitcount): Remove.
12323
12324 2020-02-14 Tom Tromey <tromey@adacore.com>
12325
12326 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12327 Update.
12328 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12329 * dwarf2/loc.c (call_site_find_chain_1): Return
12330 unique_xmalloc_ptr.
12331 (call_site_find_chain): Likewise.
12332
12333 2020-02-14 Richard Biener <rguenther@suse.de>
12334
12335 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12336 on expression with division operators.
12337
12338 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12339
12340 * MAINTAINERS (Write After Approval): Adding myself.
12341
12342 2020-02-12 Tom Tromey <tom@tromey.com>
12343
12344 * event-loop.c (event_data, gdb_event, event_handler_func):
12345 Remove.
12346
12347 2020-02-12 Tom Tromey <tom@tromey.com>
12348
12349 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12350 (dwarf2_frame_objfile_data): Add comment.
12351 (find_comp_unit, set_comp_unit): New functions.
12352 (dwarf2_frame_find_fde): Use find_comp_unit.
12353 (dwarf2_build_frame_info): Use set_comp_unit.
12354
12355 2020-02-12 Tom Tromey <tom@tromey.com>
12356
12357 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12358 (comp_unit): Don't initialize objfile.
12359 (execute_cfa_program): Add text_offset parameter.
12360 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12361 (dwarf2_frame_cache): Update.
12362 (dwarf2_build_frame_info): Don't set "objfile" member.
12363
12364 2020-02-12 Tom Tromey <tom@tromey.com>
12365
12366 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12367 (decode_frame_entry): Likewise.
12368 (dwarf2_build_frame_info): Update.
12369
12370 2020-02-12 Tom Tromey <tom@tromey.com>
12371
12372 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12373 (decode_frame_entry_1): Use the comp_unit obstack.
12374
12375 2020-02-12 Tom Tromey <tom@tromey.com>
12376
12377 * dwarf2/frame.c (struct comp_unit): Add initializers and
12378 constructor.
12379 (dwarf2_frame_objfile_data): Store a comp_unit.
12380 (dwarf2_frame_find_fde): Update.
12381 (dwarf2_build_frame_info): Use "new".
12382
12383 2020-02-12 Tom Tromey <tom@tromey.com>
12384
12385 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12386 (dwarf2_fde_table): Typedef for std::vector.
12387 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12388 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12389 (decode_frame_entry): Update.
12390 (dwarf2_build_frame_info): Use "new".
12391
12392 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12393
12394 * arm-tdep.c (arm_gdbarch_init): Update.
12395 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12396 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12397 have_neon, is_m>: Change to bool.
12398
12399 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12400
12401 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12402
12403 2020-02-12 Tom Tromey <tom@tromey.com>
12404
12405 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12406
12407 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12408
12409 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12410 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12411
12412 2020-02-11 Tom Tromey <tom@tromey.com>
12413
12414 * psymtab.h: Update comment.
12415
12416 2020-02-11 Tom Tromey <tom@tromey.com>
12417
12418 * gdb_obstack.h (struct auto_obstack): Use
12419 DISABLE_COPY_AND_ASSIGN.
12420
12421 2020-02-11 Tom Tromey <tom@tromey.com>
12422
12423 * dwarf2/frame.h (struct objfile): Don't forward declare.
12424
12425 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12426
12427 * cris-tdep.c (cris_supply_gregset): Change signature to match
12428 what struct regset expects.
12429 (cris_regset): New struct.
12430 (fetch_core_registers): Remove.
12431 (cris_iterate_over_regset_sections): New function.
12432 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12433 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12434
12435 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12436
12437 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12438 registers.
12439
12440 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12441
12442 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12443
12444 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12445
12446 * configure: Re-generate.
12447
12448 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12449
12450 * configure: Re-generate.
12451
12452 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12453
12454 * acinclude: Update warning.m4 path.
12455 * warning.m4: Move to gdbsupport.
12456
12457 2020-02-11 Tom Tromey <tromey@adacore.com>
12458
12459 * remote.c (remote_console_output): Update.
12460 * printcmd.c (printf_command): Update.
12461 * event-loop.c (gdb_wait_for_event): Update.
12462 * linux-nat.c (sigchld_handler): Update.
12463 * remote-sim.c (gdb_os_write_stdout): Update.
12464 (gdb_os_flush_stdout): Update.
12465 (gdb_os_flush_stderr): Update.
12466 (gdb_os_write_stderr): Update.
12467 * exceptions.c (print_exception): Update.
12468 * remote-fileio.c (remote_fileio_func_read): Update.
12469 (remote_fileio_func_write): Update.
12470 * tui/tui.c (tui_enable): Update.
12471 * tui/tui-interp.c (tui_interp::init): Update.
12472 * utils.c (init_page_info): Update.
12473 (putchar_unfiltered, fputc_unfiltered): Update.
12474 (gdb_flush): Update.
12475 (emit_style_escape): Update.
12476 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12477 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12478 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12479 (stderr_file::write): Update.
12480 (stderr_file::puts): Update.
12481 * ui-file.h (ui_file_isatty, ui_file_write)
12482 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12483 (ui_file_puts): Don't declare.
12484
12485 2020-02-10 Tom de Vries <tdevries@suse.de>
12486
12487 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12488 sentinel to char *.
12489
12490 2020-02-09 Tom de Vries <tdevries@suse.de>
12491
12492 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12493 filename if it matches "<artificial>".
12494
12495 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12496
12497 * windows-tdep.c (struct enum_value_name): New struct.
12498 (create_enum): New function.
12499 (windows_get_siginfo_type): Create and use enum types.
12500
12501 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12502
12503 * NEWS: Mention $_siginfo support for Windows.
12504 * windows-nat.c (handle_exception): Set siginfo_er.
12505 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12506 (windows_xfer_siginfo): New function.
12507 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12508 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12509 (init_windows_gdbarch_data): New function.
12510 (get_windows_gdbarch_data): New function.
12511 (windows_get_siginfo_type): New function.
12512 (windows_init_abi): Register windows_get_siginfo_type.
12513 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12514
12515 2020-02-08 Tom Tromey <tom@tromey.com>
12516
12517 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12518 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12519 <keep>: Declare method.
12520 <m_keep>: Remove member.
12521 <~cutu_reader>: Remove.
12522 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12523 (cutu_reader::cutu_reader): Update.
12524 (cutu_reader::keep): Rename from ~cutu_reader.
12525 (process_psymtab_comp_unit, build_type_psymtabs_1)
12526 (process_skeletonless_type_unit, load_partial_comp_unit)
12527 (load_full_comp_unit, dwarf2_read_addr_index)
12528 (read_signatured_type): Update.
12529
12530 2020-02-08 Tom Tromey <tom@tromey.com>
12531
12532 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12533 "want_partial_unit" parameter.
12534 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12535 Inline check for DW_TAG_partial_unit.
12536 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12537
12538 2020-02-08 Tom Tromey <tom@tromey.com>
12539
12540 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12541 read.c.
12542 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12543 read.c.
12544
12545 2020-02-08 Tom Tromey <tom@tromey.com>
12546
12547 * dwarf2/read.c (read_address): Move to comp-unit.c.
12548 (dwarf2_rnglists_process, dwarf2_ranges_process)
12549 (read_attribute_value, dwarf_decode_lines_1)
12550 (var_decode_location, decode_locdesc): Update.
12551 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12552 read.c. Remove "cu" parameter.
12553 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12554 method.
12555
12556 2020-02-08 Tom Tromey <tom@tromey.com>
12557
12558 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12559 (read_indirect_line_string): Update.
12560 * dwarf2/comp-unit.c (read_offset): Remove.
12561 (read_comp_unit_head): Update.
12562 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12563 method.
12564 (read_offset): Don't declare.
12565
12566 2020-02-08 Tom Tromey <tom@tromey.com>
12567
12568 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12569 * dwarf2/read.c (struct comp_unit_head): Move to
12570 dwarf2/comp-unit.h.
12571 (enum class rcuh_kind): Move to comp-unit.h.
12572 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12573 (read_comp_unit_head, error_check_comp_unit_head)
12574 (read_and_check_comp_unit_head): Move to comp-unit.c.
12575 (read_offset, dwarf_unit_type_name): Likewise.
12576 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12577 (cutu_reader::cutu_reader, read_call_site_scope)
12578 (find_partial_die, follow_die_offset): Update.
12579 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12580
12581 2020-02-08 Tom Tromey <tom@tromey.com>
12582
12583 * dwarf2/read.c (read_offset_1): Move to leb.c.
12584 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12585 (dwarf_decode_macro_bytes): Update.
12586 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12587 * dwarf2/leb.h (read_offset): Declare.
12588
12589 2020-02-08 Tom Tromey <tom@tromey.com>
12590
12591 * dwarf2/read.c (dwarf2_section_size): Remove.
12592 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12593 Update.
12594 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12595
12596 2020-02-08 Tom Tromey <tom@tromey.com>
12597
12598 * dwarf2/read.c (read_initial_length): Move to leb.c.
12599 * dwarf2/leb.h (read_initial_length): Declare.
12600 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12601 handle_nonstd parameter.
12602 * dwarf2/frame.c (read_initial_length): Remove.
12603 (decode_frame_entry_1): Update.
12604
12605 2020-02-08 Tom Tromey <tom@tromey.com>
12606
12607 * dwarf2/loc.c (dwarf2_find_location_expression)
12608 (dwarf_evaluate_loc_desc::get_tls_address)
12609 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12610 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12611 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12612 (dwarf2_compile_property_to_c)
12613 (dwarf2_loc_desc_get_symbol_read_needs)
12614 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12615 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12616 (loclist_describe_location, loclist_tracepoint_var_ref)
12617 (loclist_generate_c_location): Update.
12618 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12619 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12620 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12621 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12622 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12623 (dwarf2_per_cu_data::addr_size)
12624 (dwarf2_per_cu_data::ref_addr_size)
12625 (dwarf2_per_cu_data::text_offset)
12626 (dwarf2_per_cu_data::addr_type): Now methods.
12627 (per_cu_header_read_in): Make per_cu "const".
12628 (dwarf2_version): Remove.
12629 (dwarf2_per_cu_data::int_type): Now a method.
12630 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12631 (set_die_type, read_array_type, read_subrange_index_type)
12632 (read_tag_string_type, read_subrange_type): Update.
12633 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12634 offset_size, ref_addr_size, text_offset, addr_type, version,
12635 objfile, int_type, addr_sized_int_type>: Declare methods.
12636
12637 2020-02-08 Tom Tromey <tom@tromey.com>
12638
12639 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12640 Move earlier.
12641
12642 2020-02-08 Tom Tromey <tom@tromey.com>
12643
12644 * dwarf2/read.h (dwarf_line_debug): Declare.
12645 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12646 * dwarf2/read.c: Move line_header code to new files.
12647 (dwarf_line_debug): No longer static.
12648 * dwarf2/line-header.c: New file.
12649 * dwarf2/line-header.h: New file.
12650
12651 2020-02-08 Tom Tromey <tom@tromey.com>
12652
12653 * dwarf2/read.c (struct line_header) <file_full_name,
12654 file_file_name>: Return unique_xmalloc_ptr.
12655 (line_header::file_file_name): Update.
12656 (line_header::file_full_name): Update.
12657 (dw2_get_file_names_reader): Update.
12658 (macro_start_file): Update.
12659
12660 2020-02-08 Tom Tromey <tom@tromey.com>
12661
12662 * dwarf2/read.c (struct line_header) <file_full_name,
12663 file_file_name>: Declare methods.
12664 (dw2_get_file_names_reader): Update.
12665 (file_file_name): Now a method.
12666 (file_full_name): Likewise.
12667 (macro_start_file): Update.
12668
12669 2020-02-08 Tom Tromey <tom@tromey.com>
12670
12671 * dwarf2/read.c (dwarf_always_disassemble)
12672 (show_dwarf_always_disassemble): Move to loc.c.
12673 (_initialize_dwarf2_read): Move "always-disassemble" registration
12674 to loc.c.
12675 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12676 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12677 static.
12678 (show_dwarf_always_disassemble): Move from read.c.
12679 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12680
12681 2020-02-08 Tom Tromey <tom@tromey.com>
12682
12683 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12684 (create_quick_file_names_table): Return htab_up.
12685 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12686 Update.
12687 * dwarf2/read.h (struct dwarf2_per_objfile)
12688 <quick_file_names_table>: Now htab_up.
12689
12690 2020-02-08 Tom Tromey <tom@tromey.com>
12691
12692 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12693
12694 2020-02-08 Tom Tromey <tom@tromey.com>
12695
12696 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12697 Rewrite.
12698 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12699 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12700 (abbrev_table::abbrev_table): No longer inline.
12701 (ABBREV_HASH_SIZE): Remove.
12702 (abbrev_table::m_abbrevs): Now an htab_up.
12703
12704 2020-02-08 Tom Tromey <tom@tromey.com>
12705
12706 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12707 (cutu_reader): Update.
12708 (build_type_psymtabs_1): Update.
12709 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12710 (abbrev_table::alloc_abbrev): Update.
12711 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12712 (abbrev_table::read): New static method, renamed from
12713 abbrev_table_read_table.
12714 (abbrev_table::alloc_abbrev)
12715 (abbrev_table::add_abbrev): Now private.
12716 (abbrev_table::abbrev_table): Now private.
12717 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12718
12719 2020-02-08 Tom Tromey <tom@tromey.com>
12720
12721 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12722 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12723 htab_up.
12724
12725 2020-02-08 Tom Tromey <tom@tromey.com>
12726
12727 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12728 htab_up.
12729 (lookup_dwo_unit_in_dwp): Update.
12730 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12731 on obstack.
12732
12733 2020-02-08 Tom Tromey <tom@tromey.com>
12734
12735 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12736 obstack.
12737
12738 2020-02-08 Tom Tromey <tom@tromey.com>
12739
12740 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12741 line_header_hash.
12742 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12743 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12744 Change type to htab_up.
12745
12746 2020-02-08 Tom Tromey <tom@tromey.com>
12747
12748 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12749 htab_up. Don't allocate on obstack.
12750 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12751 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12752 Change type to htab_up.
12753
12754 2020-02-08 Tom Tromey <tom@tromey.com>
12755
12756 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12757 Change type to htab_up.
12758 * dwarf2/read.c (create_signatured_type_table_from_index)
12759 (create_signatured_type_table_from_debug_names)
12760 (create_all_type_units, add_type_unit)
12761 (lookup_dwo_signatured_type, lookup_signatured_type)
12762 (process_skeletonless_type_unit): Update.
12763 (create_debug_type_hash_table, create_debug_types_hash_table):
12764 Change type of types_htab.
12765 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12766 htab_up. Don't allocate on obstack.
12767 (create_cus_hash_table): Change type of cus_htab parameter.
12768 (struct dwo_file) <cus, tus>: Now htab_up.
12769 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12770 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12771 (queue_and_load_all_dwo_tus): Update.
12772 * dwarf2/index-write.c (write_gdbindex): Update.
12773 (write_debug_names): Update.
12774
12775 2020-02-08 Tom Tromey <tom@tromey.com>
12776
12777 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12778 dwarf2/read.c. Remove "next" member. Add constructor ntad
12779 destructor.
12780 (struct dwarf2_per_objfile) <queue>: New member.
12781 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12782 dwarf2/read.h.
12783 (dwarf2_queue, dwarf2_queue_tail): Remove.
12784 (class dwarf2_queue_guard): Add parameter to constructor. Use
12785 DISABLE_COPY_AND_ASSIGN.
12786 <m_per_objfile>: New member.
12787 <~dwarf2_queue_guard>: Rewrite.
12788 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12789 Update.
12790 (~dwarf2_queue_item): New.
12791
12792 2020-02-08 Tom Tromey <tom@tromey.com>
12793
12794 * dwarf2/read.c (struct die_info) <has_children>: New member.
12795 (dw2_get_file_names_reader): Remove has_children.
12796 (dw2_get_file_names): Update.
12797 (read_cutu_die_from_dwo): Remove has_children.
12798 (cutu_reader::init_tu_and_read_dwo_dies)
12799 (cutu_reader::cutu_reader): Update.
12800 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12801 Remove has_children.
12802 (build_type_psymtabs_1, process_skeletonless_type_unit)
12803 (load_partial_comp_unit, load_full_comp_unit): Update.
12804 (create_dwo_cu_reader): Remove has_children.
12805 (create_cus_hash_table, read_die_and_children): Update.
12806 (read_full_die_1,read_full_die): Remove has_children.
12807 (read_signatured_type): Update.
12808 (class cutu_reader) <has_children>: Remove.
12809
12810 2020-02-08 Tom Tromey <tom@tromey.com>
12811
12812 * dwarf2/expr.c: Rename from dwarf2expr.c.
12813 * dwarf2/expr.h: Rename from dwarf2expr.h.
12814 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12815 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12816 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12817 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12818 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12819 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12820 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12821 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12822 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12823 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12824 * dwarf2/loc.c: Rename from dwarf2loc.c.
12825 * dwarf2/loc.h: Rename from dwarf2loc.h.
12826 * dwarf2/read.c: Rename from dwarf2read.c.
12827 * dwarf2/read.h: Rename from dwarf2read.h.
12828 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12829 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12830 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12831 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12832 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12833 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12834 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12835 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12836 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12837 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12838 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12839 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12840 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12841 Update.
12842 * Makefile.in (COMMON_SFILES): Update.
12843 (HFILES_NO_SRCDIR): Update.
12844
12845 2020-02-08 Tom Tromey <tom@tromey.com>
12846
12847 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12848 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12849
12850 2020-02-08 Tom Tromey <tom@tromey.com>
12851
12852 * dwarf2read.h (struct die_info): Don't declare.
12853
12854 2020-02-08 Tom Tromey <tom@tromey.com>
12855
12856 * dwarf2read.h (die_info_ptr): Remove typedef.
12857
12858 2020-02-08 Tom Tromey <tom@tromey.com>
12859
12860 * dwarf2read.c (read_call_site_scope)
12861 (handle_data_member_location, dwarf2_add_member_fn)
12862 (mark_common_block_symbol_computed, read_common_block)
12863 (attr_to_dynamic_prop, partial_die_info::read)
12864 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12865 (dwarf2_symbol_mark_computed, set_die_type): Update.
12866 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12867 method.
12868 (attr_form_is_block): Don't declare.
12869 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12870
12871 2020-02-08 Tom Tromey <tom@tromey.com>
12872
12873 * dwarf2read.c (dwarf2_find_base_address, )
12874 (read_call_site_scope, rust_containing_type)
12875 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12876 (handle_data_member_location, dwarf2_add_member_fn)
12877 (get_alignment, read_structure_type, process_structure_scope)
12878 (mark_common_block_symbol_computed, read_common_block)
12879 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12880 (partial_die_info::read, read_attribute_value, new_symbol)
12881 (lookup_die_type, dwarf2_get_ref_die_offset)
12882 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12883 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12884 (dwarf2_symbol_mark_computed): Update.
12885 * dwarf2/attribute.h (struct attribute) <value_as_address,
12886 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12887 methods.
12888 (value_as_address, attr_form_is_section_offset)
12889 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12890 * dwarf2/attribute.c (attribute::value_as_address)
12891 (attribute::form_is_section_offset, attribute::form_is_constant)
12892 (attribute::form_is_ref): Now methods.
12893
12894 2020-02-08 Tom Tromey <tom@tromey.com>
12895
12896 * dwarf2read.c (struct attribute, DW_STRING)
12897 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12898 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12899 (attr_form_is_block, attr_form_is_section_offset)
12900 (attr_form_is_constant, attr_form_is_ref): Move.
12901 * dwarf2/attribute.h: New file.
12902 * dwarf2/attribute.c: New file, from dwarf2read.c.
12903 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12904
12905 2020-02-08 Tom Tromey <tom@tromey.com>
12906
12907 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12908 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12909 Move.
12910 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12911 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12912 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12913 abbrev.c.
12914 * dwarf2/abbrev.h: New file.
12915 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12916 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12917
12918 2020-02-08 Tom Tromey <tom@tromey.com>
12919
12920 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12921 (dwarf2_section_size, dwarf2_get_section_info)
12922 (create_signatured_type_table_from_debug_names)
12923 (create_addrmap_from_aranges, read_debug_names_from_section)
12924 (get_gdb_index_contents_from_section, read_comp_unit_head)
12925 (error_check_comp_unit_head, read_abbrev_offset)
12926 (create_debug_type_hash_table, init_cu_die_reader)
12927 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12928 (read_comp_units_from_section, create_cus_hash_table)
12929 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12930 (create_dwp_v2_section, dwarf2_rnglists_process)
12931 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12932 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12933 (read_indirect_string_from_dwz, read_addr_index_1)
12934 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12935 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12936 (fill_in_loclist_baton): Update.
12937 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12938 get_containing_section, get_bfd_owner, get_bfd_section,
12939 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12940 (dwarf2_read_section, get_section_name, get_section_file_name)
12941 (get_containing_section, get_section_bfd_owner)
12942 (get_section_bfd_section, get_section_name, get_section_file_name)
12943 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12944 declare.
12945 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12946 (dwarf2_section_info::get_bfd_owner)
12947 (dwarf2_section_info::get_bfd_section)
12948 (dwarf2_section_info::get_name)
12949 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12950 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12951 (dwarf2_section_info::read): Now methods.
12952 * dwarf-index-write.c (class debug_names): Update.
12953
12954 2020-02-08 Tom Tromey <tom@tromey.com>
12955
12956 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12957 Move to dwarf2/section.h.
12958 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12959 (get_section_bfd_section, get_section_name)
12960 (get_section_file_name, get_section_id, get_section_flags)
12961 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12962 dwarf2/section.c.
12963 * dwarf2/section.h: New file.
12964 * dwarf2/section.c: New file, from dwarf2read.c.
12965 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12966
12967 2020-02-08 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12970 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12971 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12972 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12973 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12974 * dwarf2/leb.h: New file, from dwarf2read.c.
12975 * dwarf2/leb.c: New file, from dwarf2read.c.
12976 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12977 Remove.
12978 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12979 (COMMON_SFILES): Add dwarf2/leb.c.
12980
12981 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12982
12983 GDB 9.1 released.
12984
12985 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12986
12987 PR gdb/25190:
12988 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12989 * gdb/remote.c (remote_console_output): Update.
12990 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12991 (ui_file_puts): ...this.
12992 * gdb/ui-file.h (ui_file_puts): Add declaration.
12993 * gdb/utils.c (emit_style_escape): Update.
12994 (flush_wrap_buffer): Update.
12995 (fputs_maybe_filtered): Update.
12996 (fputs_unfiltered): Add function.
12997
12998 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12999
13000 * gdb/event-loop.c (gdb_wait_for_event): Update.
13001 * gdb/printcmd.c (printf_command): Update.
13002 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13003 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13004 (gdb_os_flush_stderr): Update.
13005 * gdb/remote.c (remote_console_output): Update.
13006 * gdb/ui-file.c (gdb_flush): Rename to...
13007 (ui_file_flush): ...this.
13008 (stderr_file::write): Update.
13009 (stderr_file::puts): Update.
13010 * gdb/ui-file.h (gdb_flush): Rename to...
13011 (ui_file_flush): ...this.
13012 * gdb/utils.c (gdb_flush): Add function.
13013 * gdb/utils.h (gdb_flush): Add declaration.
13014
13015 2020-02-07 Tom Tromey <tromey@adacore.com>
13016
13017 PR breakpoints/24915:
13018 * source.c (find_and_open_source): Do not check basenames_may_differ.
13019
13020 2020-02-07 Tom Tromey <tom@tromey.com>
13021
13022 * README: Update gdbserver documentation.
13023 * gdbserver: Move to top level.
13024 * configure.tgt (build_gdbserver): Remove.
13025 * configure.ac: Remove --enable-gdbserver.
13026 * configure: Rebuild.
13027 * Makefile.in (distclean): Don't mention gdbserver.
13028
13029 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13030
13031 * source-cache.c (source_cache::ensure): Surround
13032 get_plain_source_lines with a try/catch.
13033 (source_cache::get_line_charpos): Get rid of try/catch
13034 and only check for the return value of "ensure".
13035 * tui/tui-source.c (tui_source_window::set_contents):
13036 Simplify "nlines" calculation.
13037
13038 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13039
13040 * MAINTAINERS (Write After Approval): Add myself.
13041
13042 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13043
13044 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13045 function call.
13046
13047 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13048
13049 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13050
13051 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13052
13053 * nat/riscv-linux-tdesc.h: New file.
13054 * nat/riscv-linux-tdesc.c: New file, taking code from...
13055 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13056 ... here.
13057 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13058 NATDEPFILES.
13059
13060 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13061
13062 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13063 we don't set the fake simulator ptid to the null_ptid.
13064
13065 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13066
13067 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13068 * gdbthread.h (class thread_info) <resumed>: Likewise.
13069 * infrun.c (resume_1): Likewise.
13070 (proceed): Likewise.
13071 (infrun_thread_stop_requested): Likewise.
13072 (stop_all_threads): Likewise.
13073 (handle_inferior_event): Likewise.
13074 (restart_threads): Likewise.
13075 (finish_step_over): Likewise.
13076 (keep_going_stepped_thread): Likewise.
13077 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13078 (linux_handle_extended_wait): Likewise.
13079 * record-btrace.c (get_thread_current_frame_id): Likewise.
13080 * record-full.c (record_full_wait_1): Likewise.
13081 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13082 * target.c (target_resume): Likewise.
13083 * thread.c (set_running_thread): Likewise.
13084
13085 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13086
13087 * f-valprint.c (f77_print_array_1): Changed datatype of index
13088 variable to LONGEST from int to enable it to contain bound
13089 values correctly.
13090
13091 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13092
13093 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13094 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13095 offsets according to FLEN determined.
13096 (riscv_linux_nat_target::read_description): Determine FLEN
13097 dynamically.
13098 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13099 according to FLEN determined.
13100 (riscv_linux_nat_target::store_registers): Likewise.
13101
13102 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13103
13104 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13105 when reg->group is empty and reggroup is not.
13106
13107 2020-01-31 Tom Tromey <tromey@adacore.com>
13108
13109 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13110 Call beneath target's mourn_inferior after unpushing.
13111
13112 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13113
13114 PR tui/9765
13115 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13116 have enough lines to fill the screen, still return the lowest
13117 address we found.
13118
13119 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13120
13121 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13122 '-', '<', and '>' commands.
13123
13124 2020-01-29 Pedro Alves <palves@redhat.com>
13125 Sergio Durigan Junior <sergiodj@redhat.com>
13126
13127 * infcmd.c (construct_inferior_arguments): Assert that
13128 'argc' is greater than 0.
13129
13130 2020-01-29 Luis Machado <luis.machado@linaro.org>
13131
13132 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13133 (BRK_INSN_MASK): Define to 0xd4200000.
13134 (aarch64_program_breakpoint_here_p): New function.
13135 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13136 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13137 breakpoint.c.
13138 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13139 breakpoint.h
13140 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13141 call gdbarch_program_breakpoint_here_p.
13142 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13143 default_program_breakpoint_here_p, changed return type to bool and
13144 simplified.
13145 * breakpoint.h (program_breakpoint_here): Moved prototype to
13146 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13147 return type to bool.
13148 * gdbarch.c: Regenerate.
13149 * gdbarch.h: Regenerate.
13150 * gdbarch.sh (program_breakpoint_here_p): New method.
13151 * infrun.c (handle_signal_stop): Call
13152 gdbarch_program_breakpoint_here_p.
13153
13154 2020-01-26 Tom Tromey <tom@tromey.com>
13155
13156 * ctfread.c (struct ctf_fp_info): Reindent.
13157 (_initialize_ctfread): Remove.
13158
13159 2020-01-26 Tom Tromey <tom@tromey.com>
13160
13161 * psymtab.c (partial_map_expand_apply)
13162 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13163 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13164 (psym_print_stats, psym_expand_symtabs_for_function)
13165 (psym_map_symbol_filenames, psym_map_matching_symbols)
13166 (psym_expand_symtabs_matching)
13167 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13168 (maintenance_check_psymtabs): Use new methods.
13169 * psympriv.h (struct partial_symtab) <readin_p,
13170 get_compunit_symtab>: New methods.
13171 <readin, compunit_symtab>: Remove members.
13172 (struct standard_psymtab): New.
13173 (struct legacy_psymtab): Derive from standard_psymtab.
13174 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13175 standard_psymtab.
13176 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13177
13178 2020-01-26 Tom Tromey <tom@tromey.com>
13179
13180 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13181 read_dependencies. Add assert.
13182 * psymtab.c (partial_symtab::read_dependencies): New method.
13183 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13184 method.
13185 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13186 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13187 read_dependencies.
13188 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13189 Add assert.
13190
13191 2020-01-26 Tom Tromey <tom@tromey.com>
13192
13193 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13194 Call expand_psymtab.
13195 (xcoff_read_symtab): Call expand_psymtab.
13196 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13197 legacy_expand_psymtab.
13198 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13199 method.
13200 (struct legacy_psymtab) <expand_psymtab>: Implement.
13201 <legacy_expand_psymtab>: New member.
13202 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13203 (parse_partial_symbols): Set legacy_expand_psymtab.
13204 (psymtab_to_symtab_1): Change argument order. Call
13205 expand_psymtab.
13206 (new_psymtab): Set legacy_expand_psymtab.
13207 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13208 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13209 expand_psymtab.
13210 (dwarf2_psymtab::expand_psymtab): Rename from
13211 psymtab_to_symtab_1. Call expand_psymtab.
13212 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13213 (dbx_end_psymtab): Likewise.
13214 (dbx_psymtab_to_symtab_1): Change argument order. Call
13215 expand_psymtab.
13216 (dbx_read_symtab): Call expand_psymtab.
13217 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13218 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13219 (ctf_psymtab::read_symtab): Call expand_psymtab.
13220
13221 2020-01-26 Tom Tromey <tom@tromey.com>
13222
13223 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13224 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13225 messages.
13226 * mdebugread.c (mdebug_read_symtab): Remove prints.
13227 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13228 assert.
13229 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13230
13231 2020-01-26 Tom Tromey <tom@tromey.com>
13232
13233 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13234 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13235 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13236 legacy_symtab.
13237 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13238 * psymtab.c (psymtab_to_symtab): Call method.
13239 (dump_psymtab): Update.
13240 * psympriv.h (struct partial_symtab): Add virtual destructor.
13241 <read_symtab>: New method.
13242 (struct legacy_symtab): New.
13243 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13244 (struct pst_map) <pst>: Now a legacy_psymtab.
13245 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13246 (new_psymtab): Use legacy_psymtab.
13247 * dwarf2read.h (struct dwarf2_psymtab): New.
13248 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13249 * dwarf2read.c (dwarf2_create_include_psymtab)
13250 (dwarf2_build_include_psymtabs, create_type_unit_group)
13251 (create_partial_symtab, process_psymtab_comp_unit_reader)
13252 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13253 (set_partial_user): Use dwarf2_psymtab.
13254 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13255 (psymtab_to_symtab_1, process_full_comp_unit)
13256 (process_full_type_unit, dwarf2_ranges_read)
13257 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13258 (dwarf_decode_lines): Use dwarf2_psymtab.
13259 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13260 (add_address_entry_worker, write_one_signatured_type)
13261 (recursively_count_psymbols, recursively_write_psymbols)
13262 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13263 (write_debug_names): Likewise.
13264 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13265 <pst>: Now a legacy_psymtab.
13266 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13267 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13268 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13269 * ctfread.c (struct ctf_psymtab): New.
13270 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13271 ctf_psymtab.
13272 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13273 (create_partial_symtab): Return a ctf_psymtab.
13274 (scan_partial_symbols): Update.
13275
13276 2020-01-26 Tom Tromey <tom@tromey.com>
13277
13278 * xcoffread.c (xcoff_start_psymtab): Use new.
13279 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13280 renamed from start_psymtab_common.
13281 * psympriv.h (struct partial_symtab): Add new constructor.
13282 (start_psymtab_common): Don't declare.
13283 * mdebugread.c (parse_partial_symbols): Use new.
13284 * dwarf2read.c (create_partial_symtab): Use new.
13285 * dbxread.c (start_psymtab): Use new.
13286 * ctfread.c (create_partial_symtab): Use new.
13287
13288 2020-01-26 Tom Tromey <tom@tromey.com>
13289
13290 * xcoffread.c (xcoff_end_psymtab): Use new.
13291 * psymtab.c (start_psymtab_common): Use new.
13292 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13293 Update.
13294 * psympriv.h (struct partial_symtab): Add parameters to
13295 constructor. Don't inline.
13296 (allocate_psymtab): Don't declare.
13297 * mdebugread.c (new_psymtab): Use new.
13298 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13299 * dbxread.c (dbx_end_psymtab): Use new.
13300
13301 2020-01-26 Tom Tromey <tom@tromey.com>
13302
13303 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13304 allocate_psymtab. Update documentation.
13305 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13306 allocate_psymtab. Do not use new.
13307 (allocate_psymtab): Use new. Update.
13308
13309 2020-01-26 Tom Tromey <tom@tromey.com>
13310
13311 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13312 * psymtab.c (psym_print_stats): Update.
13313 * psympriv.h (struct partial_symtab) <readin,
13314 psymtabs_addrmap_supported, anonymous>: Now bool.
13315 * mdebugread.c (psymtab_to_symtab_1): Update.
13316 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13317 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13318 (process_full_comp_unit, process_full_type_unit): Update.
13319 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13320 * ctfread.c (psymtab_to_symtab): Update.
13321
13322 2020-01-26 Tom Tromey <tom@tromey.com>
13323
13324 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13325 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13326 * psymtab.c (psymtab_storage): Delete psymtabs.
13327 (psymtab_storage::allocate_psymtab): Use new.
13328 (psymtab_storage::discard_psymtab): Use delete.
13329 * psympriv.h (struct partial_symtab): Add constructor and
13330 initializers.
13331
13332 2020-01-26 Tom Tromey <tom@tromey.com>
13333
13334 * machoread.c: Do not include psympriv.h.
13335
13336 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13337
13338 * NEWS: Mention the new option and the set/show commands.
13339
13340 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13341
13342 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13343 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13344 (validate_exec_file): New variables, enums, functions.
13345 (exec_file_locate_attach, print_section_info): Style the filenames.
13346 (_initialize_exec): Install show_exec_file_mismatch_command and
13347 set_exec_file_mismatch_command.
13348 * gdbcore.h (validate_exec_file): Declare.
13349 * infcmd.c (attach_command): Call validate_exec_file.
13350 * remote.c ( remote_target::remote_add_inferior): Likewise.
13351
13352 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13353
13354 * frame.c (find_frame_sal): Move call to get_next_frame into more
13355 inner scope.
13356 * inline-frame.c (inilne_state) <inline_state>: Update argument
13357 types.
13358 (inilne_state) <skipped_symbol>: Rename to...
13359 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13360 (skip_inline_frames): Build vector of skipped symbols and use this
13361 to reate the inline_state.
13362 (inline_skipped_symbol): Add a comment and some assertions, fetch
13363 skipped symbol from the list.
13364
13365 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13366
13367 * buildsym.c (lte_is_less_than): Delete.
13368 (buildsym_compunit::end_symtab_with_blockvector): Create local
13369 lambda function to sort line table entries, and use
13370 std::stable_sort instead of std::sort.
13371 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13372 markers when looking for a previous line.
13373
13374 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13375
13376 * dwarf2read.c (lnp_state_machine::record_line): Include
13377 end_sequence parameter in debug print out. Record the line if we
13378 are at an end_sequence marker even if it's not the start of a
13379 statement.
13380 * symmisc.c (maintenance_print_one_line_table): Print end of
13381 sequence markers with 'END' not '0'.
13382
13383 2020-01-24 Pedro Alves <palves@redhat.com>
13384
13385 PR gdb/25410
13386 * thread.c (scoped_restore_current_thread::restore): Use
13387 switch_to_inferior_no_thread.
13388 * exec.c: Include "progspace-and-thread.h".
13389 (add_target_sections, remove_target_sections):
13390 scoped_restore_current_pspace_and_thread instead of
13391 scoped_restore_current_thread.
13392 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13393 and aspace to the inferior before calling clone_program_space.
13394 Remove stale comment.
13395
13396 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13397
13398 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13399 (arm_netbsd_nat_target::fetch_registers): ...this.
13400 (arm_nbsd_nat_target::store_registers): Rename to...
13401 (arm_netbsd_nat_target::store_registers): ...this.
13402
13403 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13404
13405 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13406 register_t.
13407
13408 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13409
13410 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13411 Update comment.
13412 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13413 Likewise.
13414 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13415 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13416 the correct replacement (iterate_over_regset_sections).
13417 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13418 Update comment.
13419
13420 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13421
13422 PR gdb/23718
13423 * gdb/python/python.c (execute_gdb_command): Call
13424 async_enable_stdin in catch block.
13425
13426 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13427
13428 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13429 SWITCH_THRU_ALL_UIS.
13430
13431 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13432
13433 PR tui/9765
13434 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13435 comment, add extra parameter, and update to store previous symbol
13436 when appropriate.
13437 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13438 add extra parameter.
13439 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13440 remove unneeded parameter, add try/catch around gdb_print_insn,
13441 rewrite to add items to asm_lines vector.
13442 (tui_find_backward_disassembly_start_address): New function.
13443 (tui_find_disassembly_address): Updated throughout.
13444 (tui_disasm_window::set_contents): Update for changes to
13445 tui_disassemble.
13446 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13447 number of lines to scroll.
13448
13449 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13450
13451 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13452 (SECT_OFF_DATA): Likewise.
13453 (SECT_OFF_RODATA): Likewise.
13454 (SECT_OFF_TEXT): Likewise.
13455 (SECT_OFF_BSS): Likewise.
13456 (struct objfile) <text_section_offset, data_section_offset>: New
13457 methods.
13458 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13459 objfile::text_section_offset.
13460 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13461 * coffread.c (coff_symtab_read): Likewise.
13462 (enter_linenos): Likewise.
13463 (process_coff_symbol): Likewise.
13464 * ctfread.c (get_objfile_text_range): Likewise.
13465 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13466 Use objfile::data_section_offset.
13467 * dwarf2-frame.c (execute_cfa_program): Use
13468 objfile::text_section_offset.
13469 (dwarf2_frame_find_fde): Likewise.
13470 * dwarf2read.c (create_addrmap_from_index): Likewise.
13471 (create_addrmap_from_aranges): Likewise.
13472 (dw2_find_pc_sect_compunit_symtab): Likewise.
13473 (process_psymtab_comp_unit_reader): Likewise.
13474 (add_partial_symbol): Likewise.
13475 (add_partial_subprogram): Likewise.
13476 (process_full_comp_unit): Likewise.
13477 (read_file_scope): Likewise.
13478 (read_func_scope): Likewise.
13479 (read_lexical_block_scope): Likewise.
13480 (read_call_site_scope): Likewise.
13481 (dwarf2_rnglists_process): Likewise.
13482 (dwarf2_ranges_process): Likewise.
13483 (dwarf2_ranges_read): Likewise.
13484 (dwarf_decode_lines_1): Likewise.
13485 (new_symbol): Likewise.
13486 (dwarf2_fetch_die_loc_sect_off): Likewise.
13487 (dwarf2_per_cu_text_offset): Likewise.
13488 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13489 * hppa-tdep.c (read_unwind_info): Likewise.
13490 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13491 * psympriv.h (struct partial_symtab): Likewise.
13492 * psymtab.c (find_pc_sect_psymtab): Likewise.
13493 * solib-svr4.c (enable_break): Likewise.
13494 * stap-probe.c (relocate_address): Use
13495 objfile::data_section_offset.
13496 * xcoffread.c (enter_line_range): Use
13497 objfile::text_section_offset.
13498 (read_xcoff_symtab): Likewise.
13499
13500 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13501
13502 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13503 declaration to narrower scopes.
13504
13505 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13506
13507 * darwin-nat.h (struct darwin_exception_msg, enum
13508 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13509 Move up.
13510 (class darwin_nat_target) <wait_1, check_new_threads,
13511 decode_exception_message, decode_message, stop_inferior,
13512 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13513 * darwin-nat.c (darwin_check_new_threads): Rename to...
13514 (darwin_nat_target::check_new_threads): ... this.
13515 (darwin_suspend_inferior_it): Remove.
13516 (darwin_decode_exception_message): Rename to...
13517 (darwin_nat_target::decode_exception_message): ... this.
13518 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13519 (darwin_decode_message): Rename to...
13520 (darwin_nat_target::decode_message): ... this.
13521 (cancel_breakpoint): Rename to...
13522 (darwin_nat_target::cancel_breakpoint): ... this.
13523 (darwin_wait): Rename to...
13524 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13525 instead of iterate_over_inferiors.
13526 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13527 (darwin_stop_inferior): Rename to...
13528 (darwin_nat_target::stop_inferior): ... this.
13529 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13530 (darwin_init_thread_list): Rename to...
13531 (darwin_nat_target::init_thread_list): ... this.
13532 (darwin_ptrace_him): Rename to...
13533 (darwin_nat_target::ptrace_him): ... this.
13534 (darwin_nat_target::create_inferior): Pass lambda function to
13535 fork_inferior.
13536 (darwin_nat_target::detach): Call stop_inferior instead of
13537 darwin_stop_inferior.
13538 * fork-inferior.h (fork_inferior): Change init_trace_fun
13539 parameter to gdb::function_view.
13540 * fork-inferior.c (fork_inferior): Likewise.
13541
13542 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13543
13544 * i386-cygwin-tdep.c (core_process_module_section): Update.
13545 * windows-nat.c (struct lm_info_windows): Add text_offset.
13546 (windows_xfer_shared_libraries): Update.
13547 * windows-tdep.c (windows_xfer_shared_library):
13548 Add text_offset_cached argument.
13549 * windows-tdep.h (windows_xfer_shared_library): Update.
13550
13551 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13552
13553 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13554
13555 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13556
13557 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13558 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13559 replace with range-based for.
13560 (gdbsim_interrupt_inferior): Remove.
13561 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13562 with a range-based for. Inline code from
13563 gdbsim_interrupt_inferior.
13564
13565 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13566
13567 * infrun.c (proceed): Fix indentation.
13568
13569 2020-01-21 Tom Tromey <tromey@adacore.com>
13570
13571 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13572 * python/python.c (python_extension_ops): Update.
13573 (gdbpy_colorize): New function.
13574 * python/lib/gdb/__init__.py (colorize): New function.
13575 * extension.h (ext_lang_colorize): Declare.
13576 * extension.c (ext_lang_colorize): New function.
13577 * extension-priv.h (struct extension_language_ops) <colorize>: New
13578 member.
13579 * cli/cli-style.c (_initialize_cli_style): Update help text.
13580
13581 2020-01-21 Luis Machado <luis.machado@linaro.org>
13582
13583 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13584 <cond>: Change type to bool.
13585 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13586 (aarch64_displaced_step_cb): Likewise.
13587 (aarch64_displaced_step_tb): Likewise.
13588
13589 2020-01-21 Luis Machado <luis.machado@linaro.org>
13590
13591 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13592 output.
13593
13594 2020-01-21 Luis Machado <luis.machado@linaro.org>
13595
13596 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13597 <pc_adjust>: Adjust the documentation.
13598 (aarch64_displaced_step_fixup): Check if PC really moved before
13599 adjusting it.
13600
13601 2020-01-19 Tom Tromey <tom@tromey.com>
13602
13603 * disasm.c (~gdb_disassembler): New destructor.
13604 (gdb_buffered_insn_length): Call disassemble_free_target.
13605 * disasm.h (class gdb_disassembler): Declare destructor. Use
13606 DISABLE_COPY_AND_ASSIGN.
13607
13608 2020-01-19 Tom Tromey <tom@tromey.com>
13609
13610 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13611 (die_reader_func_ftype): Remove.
13612 (cutu_reader): New class.
13613 (dw2_get_file_names_reader): Remove "data" parameter.
13614 (dw2_get_file_names): Use cutu_reader.
13615 (create_debug_type_hash_table): Update.
13616 (read_cutu_die_from_dwo): Update comment.
13617 (lookup_dwo_unit): Add dwo_name parameter.
13618 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13619 die_reader_func_ftype and data parameters.
13620 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13621 Remove die_reader_func_ftype and data parameters.
13622 (~cutu_reader): New; from init_cutu_and_read_dies.
13623 (cutu_reader::cutu_reader): Rename from
13624 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13625 and data parameters.
13626 (init_cutu_and_read_dies_simple): Remove.
13627 (struct process_psymtab_comp_unit_data): Remove.
13628 (process_psymtab_comp_unit_reader): Remove data parameter; add
13629 want_partial_unit and pretend_language parameters.
13630 (process_psymtab_comp_unit): Use cutu_reader.
13631 (build_type_psymtabs_reader): Remove data parameter.
13632 (build_type_psymtabs_1): Use cutu_reader.
13633 (process_skeletonless_type_unit): Likewise.
13634 (load_partial_comp_unit_reader): Remove.
13635 (load_partial_comp_unit): Use cutu_reader.
13636 (load_full_comp_unit_reader): Remove.
13637 (load_full_comp_unit): Use cutu_reader.
13638 (struct create_dwo_cu_data): Remove.
13639 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13640 dwo_unit parameters.
13641 (create_cus_hash_table): Use cutu_reader.
13642 (struct dwarf2_read_addr_index_data): Remove.
13643 (dwarf2_read_addr_index_reader): Remove.
13644 (dwarf2_read_addr_index): Use cutu_reader.
13645 (read_signatured_type_reader): Remove.
13646 (read_signatured_type): Use cutu_reader.
13647
13648 2020-01-19 Tom Tromey <tom@tromey.com>
13649
13650 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13651 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13652 (tui_wrefresh): Declare.
13653 * tui/tui-wingeneral.c (suppress_output): New global.
13654 (tui_suppress_output, ~tui_suppress_output): New constructor and
13655 destructor.
13656 (tui_wrefresh): New function.
13657 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13658 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13659 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13660 method.
13661 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13662 tui_wrefresh.
13663 (tui_data_window::no_refresh): New method.
13664 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13665 (tui_reg_command): Use tui_suppress_output
13666 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13667 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13668 method.
13669 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13670
13671 2020-01-19 Tom Tromey <tom@tromey.com>
13672
13673 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13674 Handle case where symtab is null.
13675
13676 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13677
13678 * linux-fork.c (one_fork_p): Simplify.
13679
13680 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13681
13682 * top.c (struct qt_args): Remove.
13683 (kill_or_detach): Change return type to void, replace `void *`
13684 parameter with a proper one.
13685 (print_inferior_quit_action): Likewise.
13686 (quit_confirm): Use range-based for loop to iterate over inferiors.
13687 (quit_force): Likewise.
13688
13689 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13690
13691 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13692 `void *` parameter with proper parameters.
13693 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13694 (print_one_inferior): Change return type to void, replace `void *`
13695 parameter with proper parameters.
13696 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13697 inferiors.
13698 (get_other_inferior): Remove.
13699 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13700 inferiors.
13701
13702 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13703
13704 * mi/mi-interp.c (report_initial_inferior): Remove.
13705 (mi_interp::init): Use range-based for to iterate over inferiors.
13706
13707 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13708
13709 * python/py-inferior.c (build_inferior_list): Remove.
13710 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13711
13712 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13713
13714 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13715 (btrace_stitch_trace): Likewise.
13716 * charset.c (intermediate_encoding): Likewise (vaild).
13717 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13718 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13719 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13720
13721 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13722
13723 * windows-tdep.c (windows_get_tlb_type):
13724 Add rtl_user_process_parameters type.
13725
13726 2020-01-16 Pedro Alves <palves@redhat.com>
13727 Norbert Lange <nolange79@gmail.com>
13728
13729 PR build/24805
13730 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13731 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13732 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13733 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13734 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13735 (ps_plog): Redeclare exported functions with default visibility.
13736
13737 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13738
13739 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13740 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13741
13742 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13743
13744 * infcmd.c (post_create_inferior): Use get_thread_regcache
13745 instead of get_current_regcache.
13746
13747 2020-01-14 Tom Tromey <tom@tromey.com>
13748
13749 PR symtab/12535:
13750 * python/python.c (gdbpy_decode_line): Treat empty string the same
13751 as no argument.
13752
13753 2020-01-14 Tom Tromey <tom@tromey.com>
13754
13755 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13756
13757 2020-01-14 Tom Tromey <tom@tromey.com>
13758
13759 * nat/linux-btrace.c: Don't include <config.h>.
13760 * nat/linux-ptrace.c: Don't include <config.h>.
13761 * nat/x86-linux-dregs.c: Don't include <config.h>.
13762
13763 2020-01-14 Tom Tromey <tom@tromey.com>
13764
13765 * configure: Rebuild.
13766 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13767
13768 2020-01-14 Tom Tromey <tom@tromey.com>
13769
13770 * nat/x86-linux-dregs.c: Include configh.h.
13771 * nat/linux-ptrace.c: Include configh.h.
13772 * nat/linux-btrace.c: Include configh.h.
13773 * defs.h: Include config.h, bfd.h.
13774 * configure.ac: Don't source common.host.
13775 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13776 * configure: Rebuild.
13777 * acinclude.m4: Update path.
13778 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13779 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13780 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13781 (CLIBS): Add LIBSUPPORT.
13782 (CDEPS): Likewise.
13783 (COMMON_SFILES): Remove gdbsupport files.
13784 (HFILES_NO_SRCDIR): Likewise.
13785 (stamp-version): Update path to create-version.sh.
13786 (ALLDEPFILES): Remove gdbsupport files.
13787
13788 2020-01-14 Tom Tromey <tom@tromey.com>
13789
13790 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13791 USE_WIN32API when needed.
13792 * configure.ac (USE_WIN32API): Don't define.
13793 (WIN32LIBS): Use WIN32APILIBS.
13794 * configure: Rebuild.
13795
13796 2020-01-14 Tom Tromey <tom@tromey.com>
13797
13798 * configure: Rebuild.
13799 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13800
13801 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13802
13803 * skip.c (skip_function_command): Make skip w/o arguments use the
13804 name of the inlined function if pc is inside any inlined function.
13805
13806 2020-01-14 Luis Machado <luis.machado@linaro.org>
13807
13808 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13809 * infrun.c (resume_1): Likewise.
13810 (handle_inferior_event): Remove stale comment.
13811 * linux-nat.c (linux_nat_target::resume): Update comments.
13812 (save_stop_reason): Likewise.
13813 (linux_nat_filter_event): Likewise.
13814 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13815
13816 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13817
13818 * elfread.c (record_minimal_symbol): Set section index to 0 for
13819 non-allocatable sections.
13820
13821
13822 2020-01-13 Ali Tamur <tamur@google.com>
13823
13824 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13825 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13826 to gdb::optional. Update comments.
13827 (dwo_file): Update comments.
13828 (read_attribute): Update API to take an additional out parameter,
13829 need_reprocess. This is used to mark attributes that need other
13830 attributes (e.g. str_offsets_base) for correct computation which may not
13831 have been read yet.
13832 (read_attribute_reprocess): New function declaration.
13833 (read_addr_index): Likewise.
13834 (read_dwo_str_index): Likewise.
13835 (read_stub_str_index): Likewise.
13836 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13837 (lookup_addr_base): New function definition.
13838 (lookup_ranges_base): Likewise.
13839 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13840 lookup_ranges_base.
13841 (init_cutu_and_read_dies): Update comments.
13842 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13843 unit. This is used to inherit parent's str_offsets_base and addr_base.
13844 Update comments.
13845 (init_cutu_and_read_dies_simple): Reflect API changes.
13846 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13847 (create_cus_hash_table): Change API to take parent compile unit.
13848 Reflect API changes.
13849 (open_and_init_dwo_file): Reflect API changes.
13850 (dwarf2_get_pc_bounds): Update comments.
13851 (dwarf2_record_block_ranges): Likewise.
13852 (read_full_die_1): Change implementation to reprocess attributes that
13853 need str_offsets_base and addr_base.
13854 (partial_die_info::read): Likewise.
13855 (read_attribute_reprocess): New function definition.
13856 (read_attribute_value): Change API to take an additional out parameter,
13857 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13858 when a non-dwo compile unit has index based attributes.
13859 (read_attribute): Reflect API changes.
13860 (read_addr_index_1): Reflect API changes. Update comments.
13861 (dwarf2_read_addr_index_data): Reflect API changes.
13862 (dwarf2_read_addr_index): Likewise.
13863 (read_str_index): Change API and implementation. This becomes a helper
13864 to be used by the new string index related methods. Update error
13865 message and comments.
13866 (read_dwo_str_index): New function definition.
13867 (read_stub_str_index): Likewise.
13868 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13869 * symfile.h (dwarf2_debug_sections): Likewise.
13870 * xcoffread.c (dwarf2_debug_sections): Likewise.
13871
13872 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13873
13874 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13875 core_reg_sect type to gdb_byte *.
13876 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13877 * cris-tdep.c (fetch_core_registers): Likewise.
13878 * corelow.c (core_target::get_core_register_section): Change
13879 type of `contents` to gdb::byte_vector.
13880
13881 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13882
13883 * tui/tui-wingeneral.c (box_win): Position the title in the center
13884 of the border.
13885
13886 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13887
13888 * corelow.c (core_target::get_core_register_section): Use
13889 std::vector instead of alloca.
13890
13891 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13892
13893 * warning.m4: Add -Wmissing-declarations to build_warnings.
13894 * configure: Re-generate.
13895
13896 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13897
13898 * python/python.c (init__gdb_module): Add declaration.
13899
13900 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13901
13902 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13903 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13904 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13905 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13906 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13907 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13908 * ada-exp.y (_initialize_ada_exp): Add declaration.
13909 * ada-lang.c (_initialize_ada_language): Add declaration.
13910 * ada-tasks.c (_initialize_tasks): Add declaration.
13911 * agent.c (_initialize_agent): Add declaration.
13912 * aix-thread.c (_initialize_aix_thread): Add declaration.
13913 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13914 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13915 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13916 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13917 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13918 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13919 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13920 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13921 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13922 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13923 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13924 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13925 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13926 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13927 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13928 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13929 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13930 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13931 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13932 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13933 * annotate.c (_initialize_annotate): Add declaration.
13934 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13935 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13936 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13937 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13938 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13939 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13940 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13941 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13942 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13943 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13944 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13945 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13946 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13947 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13948 * auto-load.c (_initialize_auto_load): Add declaration.
13949 * auxv.c (_initialize_auxv): Add declaration.
13950 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13951 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13952 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13953 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13954 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13955 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13956 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13957 * breakpoint.c (_initialize_breakpoint): Add declaration.
13958 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13959 * btrace.c (_initialize_btrace): Add declaration.
13960 * charset.c (_initialize_charset): Add declaration.
13961 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13962 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13963 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13964 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13965 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13966 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13967 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13968 * coffread.c (_initialize_coffread): Add declaration.
13969 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13970 * compile/compile.c (_initialize_compile): Add declaration.
13971 * complaints.c (_initialize_complaints): Add declaration.
13972 * completer.c (_initialize_completer): Add declaration.
13973 * copying.c (_initialize_copying): Add declaration.
13974 * corefile.c (_initialize_core): Add declaration.
13975 * corelow.c (_initialize_corelow): Add declaration.
13976 * cp-abi.c (_initialize_cp_abi): Add declaration.
13977 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13978 * cp-support.c (_initialize_cp_support): Add declaration.
13979 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13980 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13981 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13982 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13983 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13984 * ctfread.c (_initialize_ctfread): Add declaration.
13985 * d-lang.c (_initialize_d_language): Add declaration.
13986 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13987 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13988 * dbxread.c (_initialize_dbxread): Add declaration.
13989 * dcache.c (_initialize_dcache): Add declaration.
13990 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13991 * disasm.c (_initialize_disasm): Add declaration.
13992 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13993 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13994 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13995 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13996 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13997 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13998 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13999 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14000 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14001 * elfread.c (_initialize_elfread): Add declaration.
14002 * exec.c (_initialize_exec): Add declaration.
14003 * extension.c (_initialize_extension): Add declaration.
14004 * f-lang.c (_initialize_f_language): Add declaration.
14005 * f-valprint.c (_initialize_f_valprint): Add declaration.
14006 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14007 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14008 * filesystem.c (_initialize_filesystem): Add declaration.
14009 * findcmd.c (_initialize_mem_search): Add declaration.
14010 * findvar.c (_initialize_findvar): Add declaration.
14011 * fork-child.c (_initialize_fork_child): Add declaration.
14012 * frame-base.c (_initialize_frame_base): Add declaration.
14013 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14014 * frame.c (_initialize_frame): Add declaration.
14015 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14016 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14017 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14018 * gcore.c (_initialize_gcore): Add declaration.
14019 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14020 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14021 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14022 * gdbarch.c (_initialize_gdbarch): Add declaration.
14023 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14024 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14025 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14026 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14027 * go-lang.c (_initialize_go_language): Add declaration.
14028 * go32-nat.c (_initialize_go32_nat): Add declaration.
14029 * guile/guile.c (_initialize_guile): Add declaration.
14030 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14031 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14032 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14033 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14034 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14035 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14036 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14037 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14038 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14039 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14040 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14041 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14042 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14043 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14044 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14045 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14046 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14047 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14048 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14049 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14050 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14051 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14052 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14053 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14054 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14055 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14056 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14057 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14058 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14059 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14060 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14061 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14062 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14063 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14064 * infcall.c (_initialize_infcall): Add declaration.
14065 * infcmd.c (_initialize_infcmd): Add declaration.
14066 * inflow.c (_initialize_inflow): Add declaration.
14067 * infrun.c (_initialize_infrun): Add declaration.
14068 * interps.c (_initialize_interpreter): Add declaration.
14069 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14070 * jit.c (_initialize_jit): Add declaration.
14071 * language.c (_initialize_language): Add declaration.
14072 * linux-fork.c (_initialize_linux_fork): Add declaration.
14073 * linux-nat.c (_initialize_linux_nat): Add declaration.
14074 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14075 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14076 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14077 * m2-lang.c (_initialize_m2_language): Add declaration.
14078 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14079 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14080 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14081 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14082 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14083 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14084 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14085 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14086 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14087 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14088 * machoread.c (_initialize_machoread): Add declaration.
14089 * macrocmd.c (_initialize_macrocmd): Add declaration.
14090 * macroscope.c (_initialize_macroscope): Add declaration.
14091 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14092 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14093 * maint.c (_initialize_maint_cmds): Add declaration.
14094 * mdebugread.c (_initialize_mdebugread): Add declaration.
14095 * memattr.c (_initialize_mem): Add declaration.
14096 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14097 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14098 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14099 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14100 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14101 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14102 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14103 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14104 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14105 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14106 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14107 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14108 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14109 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14110 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14111 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14112 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14113 * mipsread.c (_initialize_mipsread): Add declaration.
14114 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14115 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14116 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14117 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14118 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14119 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14120 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14121 * nto-procfs.c (_initialize_procfs): Add declaration.
14122 * objc-lang.c (_initialize_objc_language): Add declaration.
14123 * observable.c (_initialize_observer): Add declaration.
14124 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14125 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14126 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14127 * osabi.c (_initialize_gdb_osabi): Add declaration.
14128 * osdata.c (_initialize_osdata): Add declaration.
14129 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14130 * parse.c (_initialize_parse): Add declaration.
14131 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14132 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14133 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14134 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14135 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14136 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14137 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14138 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14139 * printcmd.c (_initialize_printcmd): Add declaration.
14140 * probe.c (_initialize_probe): Add declaration.
14141 * proc-api.c (_initialize_proc_api): Add declaration.
14142 * proc-events.c (_initialize_proc_events): Add declaration.
14143 * proc-service.c (_initialize_proc_service): Add declaration.
14144 * procfs.c (_initialize_procfs): Add declaration.
14145 * producer.c (_initialize_producer): Add declaration.
14146 * psymtab.c (_initialize_psymtab): Add declaration.
14147 * python/python.c (_initialize_python): Add declaration.
14148 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14149 * record-btrace.c (_initialize_record_btrace): Add declaration.
14150 * record-full.c (_initialize_record_full): Add declaration.
14151 * record.c (_initialize_record): Add declaration.
14152 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14153 * regcache.c (_initialize_regcache): Add declaration.
14154 * reggroups.c (_initialize_reggroup): Add declaration.
14155 * remote-notif.c (_initialize_notif): Add declaration.
14156 * remote-sim.c (_initialize_remote_sim): Add declaration.
14157 * remote.c (_initialize_remote): Add declaration.
14158 * reverse.c (_initialize_reverse): Add declaration.
14159 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14160 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14161 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14162 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14163 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14164 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14165 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14166 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14167 Add declaration.
14168 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14169 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14170 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14171 * rust-exp.y (_initialize_rust_exp): Add declaration.
14172 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14173 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14174 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14175 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14176 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14177 * score-tdep.c (_initialize_score_tdep): Add declaration.
14178 * ser-go32.c (_initialize_ser_dos): Add declaration.
14179 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14180 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14181 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14182 * ser-uds.c (_initialize_ser_socket): Add declaration.
14183 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14184 * serial.c (_initialize_serial): Add declaration.
14185 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14186 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14187 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14188 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14189 * skip.c (_initialize_step_skip): Add declaration.
14190 * sol-thread.c (_initialize_sol_thread): Add declaration.
14191 * solib-aix.c (_initialize_solib_aix): Add declaration.
14192 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14193 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14194 * solib-frv.c (_initialize_frv_solib): Add declaration.
14195 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14196 * solib-target.c (_initialize_solib_target): Add declaration.
14197 * solib.c (_initialize_solib): Add declaration.
14198 * source-cache.c (_initialize_source_cache): Add declaration.
14199 * source.c (_initialize_source): Add declaration.
14200 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14201 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14202 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14203 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14204 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14205 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14206 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14207 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14208 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14209 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14210 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14211 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14212 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14213 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14214 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14215 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14216 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14217 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14218 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14219 * stabsread.c (_initialize_stabsread): Add declaration.
14220 * stack.c (_initialize_stack): Add declaration.
14221 * stap-probe.c (_initialize_stap_probe): Add declaration.
14222 * std-regs.c (_initialize_frame_reg): Add declaration.
14223 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14224 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14225 * symfile.c (_initialize_symfile): Add declaration.
14226 * symmisc.c (_initialize_symmisc): Add declaration.
14227 * symtab.c (_initialize_symtab): Add declaration.
14228 * target.c (_initialize_target): Add declaration.
14229 * target-connection.c (_initialize_target_connection): Add
14230 declaration.
14231 * target-dcache.c (_initialize_target_dcache): Add declaration.
14232 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14233 * thread.c (_initialize_thread): Add declaration.
14234 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14235 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14236 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14237 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14238 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14239 * tracectf.c (_initialize_ctf): Add declaration.
14240 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14241 * tracefile.c (_initialize_tracefile): Add declaration.
14242 * tracepoint.c (_initialize_tracepoint): Add declaration.
14243 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14244 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14245 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14246 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14247 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14248 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14249 * tui/tui.c (_initialize_tui): Add declaration.
14250 * typeprint.c (_initialize_typeprint): Add declaration.
14251 * ui-style.c (_initialize_ui_style): Add declaration.
14252 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14253 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14254 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14255 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14256 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14257 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14258 * unittests/filtered_iterator-selftests.c
14259 (_initialize_filtered_iterator_selftests): Add declaration.
14260 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14261 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14262 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14263 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14264 * unittests/main-thread-selftests.c
14265 (_initialize_main_thread_selftests): Add declaration.
14266 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14267 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14268 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14269 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14270 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14271 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14272 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14273 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14274 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14275 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14276 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14277 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14278 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14279 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14280 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14281 declaration.
14282 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14283 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14284 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14285 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14286 * user-regs.c (_initialize_user_regs): Add declaration.
14287 * utils.c (_initialize_utils): Add declaration.
14288 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14289 * valops.c (_initialize_valops): Add declaration.
14290 * valprint.c (_initialize_valprint): Add declaration.
14291 * value.c (_initialize_values): Add declaration.
14292 * varobj.c (_initialize_varobj): Add declaration.
14293 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14294 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14295 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14296 * windows-nat.c (_initialize_windows_nat): Add declaration.
14297 (_initialize_check_for_gdb_ini): Add declaration.
14298 (_initialize_loadable): Add declaration.
14299 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14300 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14301 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14302 * xcoffread.c (_initialize_xcoffread): Add declaration.
14303 * xml-support.c (_initialize_xml_support): Add declaration.
14304 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14305 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14306 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14307 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14308
14309 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14310
14311 * regformats/regdat.sh: Generate declaration for init function.
14312
14313 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14314
14315 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14316 up.
14317 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14318 close_one_inferior>: New methods.
14319 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14320 pass down target to find_inferior_pid.
14321 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14322 Pass down target to find_inferior_ptid.
14323 (gdbsim_target::create_inferior): Pass down target to
14324 add_thread_silent.
14325 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14326 target down to find_inferior_ptid and switch_to_thread.
14327 (gdbsim_target::close): Update to call close_one_inferior.
14328 (struct resume_data): Remove.
14329 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14330 directly, rather than through a void pointer.
14331 (gdbsim_target::resume): Update to call resume_one_inferior.
14332
14333 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14334
14335 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14336
14337 2020-01-12 Pedro Alves <palves@redhat.com>
14338
14339 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14340 directly for the current inferior instead of
14341 discard_all_inferiors.
14342 (discard_all_inferiors): Delete.
14343
14344 2020-01-11 Tom Tromey <tom@tromey.com>
14345
14346 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14347 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14348 deprecated_safe_get_selected_frame.
14349
14350 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14351
14352 * inferior.c (print_inferior): Switch inferior before printing it.
14353
14354 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14355 Pedro Alves <palves@redhat.com>
14356
14357 * progspace-and-thread.c (switch_to_program_space_and_thread):
14358 Assert there's an inferior for PSPACE. Use
14359 switch_to_inferior_no_thread to switch the inferior too.
14360 * progspace.c (program_space::~program_space): Call
14361 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14362 (program_space::free_all_objfiles): Don't call clear_symtab_users
14363 here.
14364 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14365
14366 2020-01-10 Pedro Alves <palves@redhat.com>
14367
14368 * NEWS: Mention multi-target debugging, "info connections", and
14369 "add-inferior -no-connection".
14370
14371 2020-01-10 Pedro Alves <palves@redhat.com>
14372
14373 * infrun.c: Include "target-connection.h".
14374 (check_multi_target_resumption): New.
14375 (proceed): Call it.
14376 * target-connection.c (make_target_connection_string): Make
14377 extern.
14378 * target-connection.h (make_target_connection_string): Declare.
14379
14380 2020-01-10 Pedro Alves <palves@redhat.com>
14381
14382 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14383 * inferior.c (uiout_field_connection): New function.
14384 (print_inferior): Add new "connection-id" column.
14385 (add_inferior_command): Show connection number/string of added
14386 inferior.
14387 * process-stratum-target.h
14388 (process_stratum_target::connection_string): New virtual method.
14389 (process_stratum_target::connection_number): New field.
14390 * remote.c (remote_target::connection_string): New override.
14391 * target-connection.c: New file.
14392 * target-connection.h: New file.
14393 * target.c (decref_target): Remove process_stratum targets from
14394 the connection list.
14395 (target_stack::push): Add process_stratum targets to the
14396 connection list.
14397
14398 2020-01-10 Pedro Alves <palves@redhat.com>
14399
14400 Revert:
14401 2016-04-12 Pedro Alves <palves@redhat.com>
14402 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14403 Remove references to name.
14404 * serial.h (struct serial) <name>: Delete.
14405
14406 2020-01-10 Pedro Alves <palves@redhat.com>
14407
14408 * gdbarch-selftests.c (register_to_value_test): Remove "target
14409 already pushed" check.
14410
14411 2020-01-10 Pedro Alves <palves@redhat.com>
14412 John Baldwin <jhb@FreeBSD.org>
14413
14414 * aarch64-linux-nat.c
14415 (aarch64_linux_nat_target::thread_architecture): Adjust.
14416 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14417 (task_command_1): Likewise.
14418 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14419 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14420 (aix_thread_target::store_registers)
14421 (aix_thread_target::thread_alive): Adjust.
14422 * amd64-fbsd-tdep.c: Include "inferior.h".
14423 (amd64fbsd_get_thread_local_address): Pass down target.
14424 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14425 thread's gdbarch instead of target_gdbarch.
14426 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14427 get_last_target_status.
14428 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14429 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14430 inferiors.
14431 (update_inserted_breakpoint_locations): Skip if inferiors with no
14432 execution.
14433 (update_global_location_list): When handling moribund locations,
14434 find representative inferior for location's pspace, and use thread
14435 count of its process_stratum target.
14436 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14437 * bsd-uthread.c (bsd_uthread_target::wait): Use
14438 as_process_stratum_target and adjust thread_change_ptid and
14439 add_thread calls.
14440 (bsd_uthread_target::update_thread_list): Use
14441 as_process_stratum_target and adjust find_thread_ptid,
14442 thread_change_ptid and add_thread calls.
14443 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14444 find_thread_ptid call.
14445 * corelow.c (add_to_thread_list): Adjust add_thread call.
14446 (core_target_open): Adjust add_thread_silent and thread_count
14447 calls.
14448 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14449 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14450 * event-top.c (async_disconnect): Pop targets from all inferiors.
14451 * exec.c (add_target_sections): Push exec target on all inferiors
14452 sharing the program space.
14453 (remove_target_sections): Remove the exec target from all
14454 inferiors sharing the program space.
14455 (exec_on_vfork): New.
14456 * exec.h (exec_on_vfork): Declare.
14457 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14458 Pass it down.
14459 (fbsd_nat_target::update_thread_list): Adjust.
14460 (fbsd_nat_target::resume): Adjust.
14461 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14462 down.
14463 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14464 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14465 get_thread_arch_regcache call.
14466 * fork-child.c (gdb_startup_inferior): Pass target down to
14467 startup_inferior and set_executing.
14468 * gdbthread.h (struct process_stratum_target): Forward declare.
14469 (add_thread, add_thread_silent, add_thread_with_info)
14470 (in_thread_list): Add process_stratum_target parameter.
14471 (find_thread_ptid(inferior*, ptid_t)): New overload.
14472 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14473 parameter.
14474 (all_threads()): Delete overload.
14475 (all_threads, all_non_exited_threads): Add process_stratum_target
14476 parameter.
14477 (all_threads_safe): Use brace initialization.
14478 (thread_count): Add process_stratum_target parameter.
14479 (set_resumed, set_running, set_stop_requested, set_executing)
14480 (threads_are_executing, finish_thread_state): Add
14481 process_stratum_target parameter.
14482 (switch_to_thread): Use is_current_thread.
14483 * i386-fbsd-tdep.c: Include "inferior.h".
14484 (i386fbsd_get_thread_local_address): Pass down target.
14485 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14486 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14487 have_inferiors check.
14488 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14489 (inf_ptrace_target::attach): Adjust.
14490 * infcall.c (run_inferior_call): Adjust.
14491 * infcmd.c (run_command_1): Pass target to
14492 scoped_finish_thread_state.
14493 (proceed_thread_callback): Skip inferiors with no execution.
14494 (continue_command): Rename 'all_threads' local to avoid hiding
14495 'all_threads' function. Adjust get_last_target_status call.
14496 (prepare_one_step): Adjust set_running call.
14497 (signal_command): Use user_visible_resume_target. Compare thread
14498 pointers instead of inferior_ptid.
14499 (info_program_command): Adjust to pass down target.
14500 (attach_command): Mark target's 'thread_executing' flag.
14501 (stop_current_target_threads_ns): New, factored out from ...
14502 (interrupt_target_1): ... this. Switch inferior before making
14503 target calls.
14504 * inferior-iter.h
14505 (struct all_inferiors_iterator, struct all_inferiors_range)
14506 (struct all_inferiors_safe_range)
14507 (struct all_non_exited_inferiors_range): Filter on
14508 process_stratum_target too. Remove explicit.
14509 * inferior.c (inferior::inferior): Push dummy target on target
14510 stack.
14511 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14512 Add process_stratum_target parameter, and pass it down.
14513 (have_live_inferiors): Adjust.
14514 (switch_to_inferior_and_push_target): New.
14515 (add_inferior_command, clone_inferior_command): Handle
14516 "-no-connection" parameter. Use
14517 switch_to_inferior_and_push_target.
14518 (_initialize_inferior): Mention "-no-connection" option in
14519 the help of "add-inferior" and "clone-inferior" commands.
14520 * inferior.h: Include "process-stratum-target.h".
14521 (interrupt_target_1): Use bool.
14522 (struct inferior) <push_target, unpush_target, target_is_pushed,
14523 find_target_beneath, top_target, process_target, target_at,
14524 m_stack>: New.
14525 (discard_all_inferiors): Delete.
14526 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14527 (all_inferiors, all_non_exited_inferiors): Add
14528 process_stratum_target parameter.
14529 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14530 (target_last_proc_target): New global.
14531 (follow_fork_inferior): Push target on new inferior. Pass target
14532 to add_thread_silent. Call exec_on_vfork. Handle target's
14533 reference count.
14534 (follow_fork): Adjust get_last_target_status call. Also consider
14535 target.
14536 (follow_exec): Push target on new inferior.
14537 (struct execution_control_state) <target>: New field.
14538 (user_visible_resume_target): New.
14539 (do_target_resume): Call target_async.
14540 (resume_1): Set target's threads_executing flag. Consider resume
14541 target.
14542 (commit_resume_all_targets): New.
14543 (proceed): Also consider resume target. Skip threads of inferiors
14544 with no execution. Commit resumtion in all targets.
14545 (start_remote): Pass current inferior to wait_for_inferior.
14546 (infrun_thread_stop_requested): Consider target as well. Pass
14547 thread_info pointer to clear_inline_frame_state instead of ptid.
14548 (infrun_thread_thread_exit): Consider target as well.
14549 (random_pending_event_thread): New inferior parameter. Use it.
14550 (do_target_wait): Rename to ...
14551 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14552 down.
14553 (threads_are_resumed_pending_p, do_target_wait): New.
14554 (prepare_for_detach): Adjust calls.
14555 (wait_for_inferior): New inferior parameter. Handle it. Use
14556 do_target_wait_1 instead of do_target_wait.
14557 (fetch_inferior_event): Adjust. Switch to representative
14558 inferior. Pass target down.
14559 (set_last_target_status): Add process_stratum_target parameter.
14560 Save target in global.
14561 (get_last_target_status): Add process_stratum_target parameter and
14562 handle it.
14563 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14564 (context_switch): Check inferior_ptid == null_ptid before calling
14565 inferior_thread().
14566 (get_inferior_stop_soon): Pass down target.
14567 (wait_one): Rename to ...
14568 (poll_one_curr_target): ... this.
14569 (struct wait_one_event): New.
14570 (wait_one): New.
14571 (stop_all_threads): Adjust.
14572 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14573 event's target.
14574 (switch_back_to_stepped_thread): Also consider target.
14575 (print_stop_event): Update.
14576 (normal_stop): Update. Also consider the resume target.
14577 * infrun.h (wait_for_inferior): Remove declaration.
14578 (user_visible_resume_target): New declaration.
14579 (get_last_target_status, set_last_target_status): New
14580 process_stratum_target parameter.
14581 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14582 process_stratum_target parameter, and use it.
14583 (clear_inline_frame_state (thread_info*)): New.
14584 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14585 process_stratum_target parameter.
14586 (clear_inline_frame_state (thread_info*)): Declare.
14587 * linux-fork.c (delete_checkpoint_command): Pass target down to
14588 find_thread_ptid.
14589 (checkpoint_command): Adjust.
14590 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14591 instead of just tweaking inferior_ptid.
14592 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14593 (exit_lwp): Pass target down to find_thread_ptid.
14594 (attach_proc_task_lwp_callback): Pass target down to
14595 add_thread/set_running/set_executing.
14596 (linux_nat_target::attach): Pass target down to
14597 thread_change_ptid.
14598 (get_detach_signal): Pass target down to find_thread_ptid.
14599 Consider last target status's target.
14600 (linux_resume_one_lwp_throw, resume_lwp)
14601 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14602 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14603 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14604 (linux_nat_target::async_wait_fd): New.
14605 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14606 target down.
14607 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14608 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14609 * linux-thread-db.c (struct thread_db_info::process_target): New
14610 field.
14611 (add_thread_db_info): Save target.
14612 (get_thread_db_info): New process_stratum_target parameter. Also
14613 match target.
14614 (delete_thread_db_info): New process_stratum_target parameter.
14615 Also match target.
14616 (thread_from_lwp): Adjust to pass down target.
14617 (thread_db_notice_clone): Pass down target.
14618 (check_thread_db_callback): Pass down target.
14619 (try_thread_db_load_1): Always push the thread_db target.
14620 (try_thread_db_load, record_thread): Pass target down.
14621 (thread_db_target::detach): Pass target down. Always unpush the
14622 thread_db target.
14623 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14624 target down. Always unpush the thread_db target.
14625 (find_new_threads_callback, thread_db_find_new_threads_2)
14626 (thread_db_target::update_thread_list): Pass target down.
14627 (thread_db_target::pid_to_str): Pass current inferior down.
14628 (thread_db_target::get_thread_local_address): Pass target down.
14629 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14630 target down.
14631 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14632 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14633 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14634 (procfs_init_inferior): Rename to ...
14635 (procfs_target::procfs_init_inferior): ... this and adjust.
14636 (procfs_target::create_inferior, procfs_notice_thread)
14637 (procfs_do_thread_registers): Adjust.
14638 * ppc-fbsd-tdep.c: Include "inferior.h".
14639 (ppcfbsd_get_thread_local_address): Pass down target.
14640 * proc-service.c (ps_xfer_memory): Switch current inferior and
14641 program space as well.
14642 (get_ps_regcache): Pass target down.
14643 * process-stratum-target.c
14644 (process_stratum_target::thread_address_space)
14645 (process_stratum_target::thread_architecture): Pass target down.
14646 * process-stratum-target.h
14647 (process_stratum_target::threads_executing): New field.
14648 (as_process_stratum_target): New.
14649 * ravenscar-thread.c
14650 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14651 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14652 down.
14653 * record-btrace.c (record_btrace_target::info_record): Adjust.
14654 (record_btrace_target::record_method)
14655 (record_btrace_target::record_is_replaying)
14656 (record_btrace_target::fetch_registers)
14657 (get_thread_current_frame_id, record_btrace_target::resume)
14658 (record_btrace_target::wait, record_btrace_target::stop): Pass
14659 target down.
14660 * record-full.c (record_full_wait_1): Switch to event thread.
14661 Pass target down.
14662 * regcache.c (regcache::regcache)
14663 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14664 process_stratum_target parameter and handle it.
14665 (current_thread_target): New global.
14666 (get_thread_regcache): Add process_stratum_target parameter and
14667 handle it. Switch inferior before calling target method.
14668 (get_thread_regcache): Pass target down.
14669 (get_thread_regcache_for_ptid): Pass target down.
14670 (registers_changed_ptid): Add process_stratum_target parameter and
14671 handle it.
14672 (registers_changed_thread, registers_changed): Pass target down.
14673 (test_get_thread_arch_aspace_regcache): New.
14674 (current_regcache_test): Define a couple local test_target_ops
14675 instances and use them for testing.
14676 (readwrite_regcache): Pass process_stratum_target parameter.
14677 (cooked_read_test, cooked_write_test): Pass mock_target down.
14678 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14679 (get_thread_arch_aspace_regcache): Add process_stratum_target
14680 parameter.
14681 (regcache::target): New method.
14682 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14683 (regcache::registers_changed_ptid): Add process_stratum_target
14684 parameter.
14685 (regcache::m_target): New field.
14686 (registers_changed_ptid): Add process_stratum_target parameter.
14687 * remote.c (remote_state::supports_vCont_probed): New field.
14688 (remote_target::async_wait_fd): New method.
14689 (remote_unpush_and_throw): Add remote_target parameter.
14690 (get_current_remote_target): Adjust.
14691 (remote_target::remote_add_inferior): Push target.
14692 (remote_target::remote_add_thread)
14693 (remote_target::remote_notice_new_inferior)
14694 (get_remote_thread_info): Pass target down.
14695 (remote_target::update_thread_list): Skip threads of inferiors
14696 bound to other targets. (remote_target::close): Don't discard
14697 inferiors. (remote_target::add_current_inferior_and_thread)
14698 (remote_target::process_initial_stop_replies)
14699 (remote_target::start_remote)
14700 (remote_target::remote_serial_quit_handler): Pass down target.
14701 (remote_target::remote_unpush_target): New remote_target
14702 parameter. Unpush the target from all inferiors.
14703 (remote_target::remote_unpush_and_throw): New remote_target
14704 parameter. Pass it down.
14705 (remote_target::open_1): Check whether the current inferior has
14706 execution instead of checking whether any inferior is live. Pass
14707 target down.
14708 (remote_target::remote_detach_1): Pass down target. Use
14709 remote_unpush_target.
14710 (extended_remote_target::attach): Pass down target.
14711 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14712 (remote_target::append_resumption): Pass down target.
14713 (remote_target::append_pending_thread_resumptions)
14714 (remote_target::remote_resume_with_hc, remote_target::resume)
14715 (remote_target::commit_resume): Pass down target.
14716 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14717 (remote_target::interrupt_query)
14718 (remote_target::remove_new_fork_children)
14719 (remote_target::check_pending_events_prevent_wildcard_vcont)
14720 (remote_target::remote_parse_stop_reply)
14721 (remote_target::process_stop_reply): Pass down target.
14722 (first_remote_resumed_thread): New remote_target parameter. Pass
14723 it down.
14724 (remote_target::wait_as): Pass down target.
14725 (unpush_and_perror): New remote_target parameter. Pass it down.
14726 (remote_target::readchar, remote_target::remote_serial_write)
14727 (remote_target::getpkt_or_notif_sane_1)
14728 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14729 down target.
14730 (remote_target::mourn_inferior): Pass down target. Use
14731 remote_unpush_target.
14732 (remote_target::core_of_thread)
14733 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14734 (remote_target::pid_to_exec_file)
14735 (remote_target::thread_handle_to_thread_info): Pass down target.
14736 (remote_target::async_wait_fd): New.
14737 * riscv-fbsd-tdep.c: Include "inferior.h".
14738 (riscv_fbsd_get_thread_local_address): Pass down target.
14739 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14740 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14741 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14742 Adjust.
14743 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14744 * solib-svr4.c (enable_break): Pass down target.
14745 * spu-multiarch.c (parse_spufs_run): Pass down target.
14746 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14747 * target-delegates.c: Regenerate.
14748 * target.c (g_target_stack): Delete.
14749 (current_top_target): Return the current inferior's top target.
14750 (target_has_execution_1): Refer to the passed-in inferior's top
14751 target.
14752 (target_supports_terminal_ours): Check whether the initial
14753 inferior was already created.
14754 (decref_target): New.
14755 (target_stack::push): Incref/decref the target.
14756 (push_target, push_target, unpush_target): Adjust.
14757 (target_stack::unpush): Defref target.
14758 (target_is_pushed): Return bool. Adjust to refer to the current
14759 inferior's target stack.
14760 (dispose_inferior): Delete, and inline parts ...
14761 (target_preopen): ... here. Only dispose of the current inferior.
14762 (target_detach): Hold strong target reference while detaching.
14763 Pass target down.
14764 (target_thread_name): Add assertion.
14765 (target_resume): Pass down target.
14766 (target_ops::beneath, find_target_at): Adjust to refer to the
14767 current inferior's target stack.
14768 (get_dummy_target): New.
14769 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14770 has a thread running.
14771 (initialize_targets): Rename to ...
14772 (_initialize_target): ... this.
14773 * target.h: Include "gdbsupport/refcounted-object.h".
14774 (struct target_ops): Inherit refcounted_object.
14775 (target_ops::shortname, target_ops::longname): Make const.
14776 (target_ops::async_wait_fd): New method.
14777 (decref_target): Declare.
14778 (struct target_ops_ref_policy): New.
14779 (target_ops_ref): New typedef.
14780 (get_dummy_target): Declare function.
14781 (target_is_pushed): Return bool.
14782 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14783 (all_matching_threads_iterator::all_matching_threads_iterator):
14784 Handle filter target.
14785 * thread-iter.h (struct all_matching_threads_iterator, struct
14786 all_matching_threads_range, class all_non_exited_threads_range):
14787 Filter by target too. Remove explicit.
14788 * thread.c (threads_executing): Delete.
14789 (inferior_thread): Pass down current inferior.
14790 (clear_thread_inferior_resources): Pass down thread pointer
14791 instead of ptid_t.
14792 (add_thread_silent, add_thread_with_info, add_thread): Add
14793 process_stratum_target parameter. Use it for thread and inferior
14794 searches.
14795 (is_current_thread): New.
14796 (thread_info::deletable): Use it.
14797 (find_thread_ptid, thread_count, in_thread_list)
14798 (thread_change_ptid, set_resumed, set_running): New
14799 process_stratum_target parameter. Pass it down.
14800 (set_executing): New process_stratum_target parameter. Pass it
14801 down. Adjust reference to 'threads_executing'.
14802 (threads_are_executing): New process_stratum_target parameter.
14803 Adjust reference to 'threads_executing'.
14804 (set_stop_requested, finish_thread_state): New
14805 process_stratum_target parameter. Pass it down.
14806 (switch_to_thread): Also match inferior.
14807 (switch_to_thread): New process_stratum_target parameter. Pass it
14808 down.
14809 (update_threads_executing): Reimplement.
14810 * top.c (quit_force): Pop targets from all inferior.
14811 (gdb_init): Don't call initialize_targets.
14812 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14813 Declare.
14814 (windows_add_thread, windows_delete_thread): Adjust.
14815 (get_windows_debug_event): Rename to ...
14816 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14817 * tracefile-tfile.c (tfile_target_open): Pass down target.
14818 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14819 Forward declare.
14820 (switch_to_thread): Add process_stratum_target parameter.
14821 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14822 parameter. Use it.
14823 (mi_on_resume): Pass target down.
14824 * nat/fork-inferior.c (startup_inferior): Add
14825 process_stratum_target parameter. Pass it down.
14826 * nat/fork-inferior.h (startup_inferior): Add
14827 process_stratum_target parameter.
14828 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14829
14830 2020-01-10 Pedro Alves <palves@redhat.com>
14831
14832 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14833 directly. Instead find the first thread in the thread list and
14834 use switch_to_thread.
14835
14836 2020-01-10 Pedro Alves <palves@redhat.com>
14837
14838 * remote.c (remote_target::remote_add_inferior): Don't bind a
14839 process to the current inferior if the current inferior is already
14840 bound to a process.
14841
14842 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14843 Pedro Alves <palves@redhat.com>
14844
14845 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14846 If no process is specified, return null_ptid instead of
14847 inferior_ptid.
14848 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14849 TARGET_WAITKIND_SIGNALLED with no pid.
14850
14851 2020-01-10 Pedro Alves <palves@redhat.com>
14852
14853 * remote.c (first_remote_resumed_thread): New.
14854 (remote_target::wait_as): Use it as default event_ptid instead of
14855 inferior_ptid.
14856
14857 2020-01-10 Pedro Alves <palves@redhat.com>
14858
14859 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14860
14861 2020-01-10 Pedro Alves <palves@redhat.com>
14862
14863 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14864 not -1.
14865
14866 2020-01-10 Pedro Alves <palves@redhat.com>
14867
14868 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14869 ptid to get_last_target_status.
14870 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14871 ptid to get_last_target_status.
14872 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14873 get_last_target_status.
14874 (info_program_command): Don't pass a target_waitstatus to
14875 get_last_target_status.
14876 * infrun.c (init_wait_for_inferior): Use
14877 nullify_last_target_wait_ptid.
14878 (get_last_target_status): Handle nullptr arguments.
14879 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14880 (print_stop_event): Don't pass a ptid to get_last_target_status.
14881 (normal_stop): Don't pass a ptid to get_last_target_status.
14882 * infrun.h (get_last_target_status, set_last_target_status): Move
14883 comments here and update.
14884 (nullify_last_target_wait_ptid): Declare.
14885 * linux-fork.c (fork_load_infrun_state): Remove local extern
14886 declaration of nullify_last_target_wait_ptid.
14887 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14888 to get_last_target_status.
14889
14890 2020-01-10 Pedro Alves <palves@redhat.com>
14891
14892 * gdbthread.h (scoped_restore_current_thread)
14893 <dont_restore, restore, m_dont_restore>: Declare.
14894 * thread.c (thread_alive): Add assertion. Return bool.
14895 (switch_to_thread_if_alive): New.
14896 (prune_threads): Switch inferior/thread.
14897 (print_thread_info_1): Switch thread before calling target methods.
14898 (scoped_restore_current_thread::restore): New, factored out from
14899 ...
14900 (scoped_restore_current_thread::~scoped_restore_current_thread):
14901 ... this.
14902 (scoped_restore_current_thread::scoped_restore_current_thread):
14903 Add assertion.
14904 (thread_apply_all_command, thread_select): Use
14905 switch_to_thread_if_alive.
14906 * infrun.c (proceed, restart_threads, handle_signal_stop)
14907 (switch_back_to_stepped_thread): Switch current thread before
14908 calling target methods.
14909
14910 2020-01-10 Pedro Alves <palves@redhat.com>
14911
14912 * inferior.c (switch_to_inferior_no_thread): New function,
14913 factored out from ...
14914 (inferior_command): ... here.
14915 * inferior.h (switch_to_inferior_no_thread): Declare.
14916 * mi/mi-main.c (run_one_inferior): Use
14917 switch_to_inferior_no_thread.
14918
14919 2020-01-10 Pedro Alves <palves@redhat.com>
14920
14921 * infcmd.c (kill_command): Remove dead code.
14922
14923 2020-01-10 Pedro Alves <palves@redhat.com>
14924
14925 * remote.c (remote_target::mourn_inferior): No longer check
14926 whether the target is running.
14927
14928 2020-01-10 Pedro Alves <palves@redhat.com>
14929
14930 * corelow.c (core_target::has_execution): Change parameter type to
14931 inferior pointer.
14932 * inferior.c (number_of_live_inferiors): Use
14933 inferior::has_execution instead of target_has_execution_1.
14934 * inferior.h (inferior::has_execution): New.
14935 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14936 inferior::has_execution instead of target_has_execution_1.
14937 * process-stratum-target.c
14938 (process_stratum_target::has_execution): Change parameter type to
14939 inferior pointer. Check the inferior's PID instead of
14940 inferior_ptid.
14941 * process-stratum-target.h
14942 (process_stratum_target::has_execution): Change parameter type to
14943 inferior pointer.
14944 * record-full.c (record_full_core_target::has_execution): Change
14945 parameter type to inferior pointer.
14946 * target.c (target_has_execution_1): Change parameter type to
14947 inferior pointer.
14948 (target_has_execution_current): Adjust.
14949 * target.h (target_ops::has_execution): Change parameter type to
14950 inferior pointer.
14951 (target_has_execution_1): Change parameter type to inferior
14952 pointer. Change return type to bool.
14953 * tracefile.h (tracefile_target::has_execution): Change parameter
14954 type to inferior pointer.
14955
14956 2020-01-10 Pedro Alves <palves@redhat.com>
14957
14958 * exceptions.c (print_flush): Remove current_top_target() check.
14959
14960 2020-01-10 Pedro Alves <palves@redhat.com>
14961
14962 * remote.c (show_remote_exec_file): Show the current inferior's
14963 exec-file instead of the command variable's value.
14964
14965 2020-01-10 Pedro Alves <palves@redhat.com>
14966
14967 * record-full.c (record_full_resume_ptid): New global.
14968 (record_full_target::resume): Set it.
14969 (record_full_wait_1): Use record_full_resume_ptid instead of
14970 inferior_ptid.
14971
14972 2020-01-10 Pedro Alves <palves@redhat.com>
14973
14974 * gdbthread.h (scoped_restore_current_thread)
14975 <dont_restore, restore, m_dont_restore>: Declare.
14976 * thread.c (thread_alive): Add assertion. Return bool.
14977 (switch_to_thread_if_alive): New.
14978 (prune_threads): Switch inferior/thread.
14979 (print_thread_info_1): Switch thread before calling target methods.
14980 (scoped_restore_current_thread::restore): New, factored out from
14981 ...
14982 (scoped_restore_current_thread::~scoped_restore_current_thread):
14983 ... this.
14984 (scoped_restore_current_thread::scoped_restore_current_thread):
14985 Add assertion.
14986 (thread_apply_all_command, thread_select): Use
14987 switch_to_thread_if_alive.
14988
14989 2020-01-10 George Barrett <bob@bob131.so>
14990
14991 * stap-probe.c (stap_modify_semaphore): Don't check for null
14992 semaphores.
14993 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14994 for null semaphores.
14995
14996 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14997
14998 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14999 all source windows, and maintain horizontal scroll status while
15000 doing so.
15001
15002 2020-01-09 Tom Tromey <tom@tromey.com>
15003
15004 PR tui/18932:
15005 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15006 update_source_window, not print_source_lines.
15007
15008 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15009
15010 * tui/tui.c (tui_enable): Register tui hooks after calling
15011 tui_display_main.
15012
15013 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15014
15015 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15016
15017 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15018
15019 * thread.c (print_thread_info_1): Fix indentation.
15020
15021 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15022
15023 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15024 unique_xmalloc_ptr outside the if to always free the demangled name.
15025
15026 2020-01-08 Tom Tromey <tromey@adacore.com>
15027
15028 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15029 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15030 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15031 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15032 Remove.
15033 (section_offsets): New typedef.
15034 * symtab.c (fixup_section, get_msymbol_address): Update.
15035 * symmisc.c (dump_msymbols): Update.
15036 * symfile.h (relative_addr_info_to_section_offsets)
15037 (symfile_map_offsets_to_segments): Update.
15038 * symfile.c (build_section_addr_info_from_objfile)
15039 (init_objfile_sect_indices): Update.
15040 (struct place_section_arg): Change type of "offsets".
15041 (place_section): Update.
15042 (relative_addr_info_to_section_offsets): Change type of
15043 "section_offsets". Remove "num_sections" parameter.
15044 (default_symfile_offsets, syms_from_objfile_1)
15045 (set_objfile_default_section_offset): Update.
15046 (reread_symbols): No need to preserve section offsets by hand.
15047 (symfile_map_offsets_to_segments): Change type of "offsets".
15048 * stap-probe.c (relocate_address): Update.
15049 * stabsread.h (process_one_symbol): Update.
15050 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15051 (solib_target_relocate_section_addresses): Update.
15052 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15053 Update.
15054 * solib-frv.c (frv_relocate_main_executable): Update.
15055 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15056 * solib-aix.c (solib_aix_get_section_offsets): Change return
15057 type.
15058 (solib_aix_solib_create_inferior_hook): Update.
15059 * remote.c (remote_target::get_offsets): Update.
15060 * psymtab.c (find_pc_sect_psymtab): Update.
15061 * psympriv.h (struct partial_symbol) <address, text_low,
15062 text_high>: Update.
15063 * objfiles.h (obj_section_offset): Update.
15064 (struct objfile) <section_offsets>: Change type.
15065 <num_sections>: Remove.
15066 (objfile_relocate): Update.
15067 * objfiles.c (entry_point_address_query): Update
15068 (relocate_one_symbol): Change type of "section_offsets".
15069 (objfile_relocate1, objfile_relocate1): Change type of
15070 "new_offsets".
15071 (objfile_rebase1): Update.
15072 * mipsread.c (mipscoff_symfile_read): Update.
15073 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15074 parameter.
15075 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15076 (parse_external, psymtab_to_symtab_1): Update.
15077 * machoread.c (macho_symfile_offsets): Update.
15078 * ia64-tdep.c (ia64_find_unwind_table): Update.
15079 * hppa-tdep.c (read_unwind_info): Update.
15080 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15081 * dwarf2read.c (create_addrmap_from_index)
15082 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15083 (process_psymtab_comp_unit_reader, add_partial_symbol)
15084 (add_partial_subprogram, process_full_comp_unit)
15085 (read_file_scope, read_func_scope, read_lexical_block_scope)
15086 (read_call_site_scope, dwarf2_rnglists_process)
15087 (dwarf2_ranges_process, dwarf2_ranges_read)
15088 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15089 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15090 Update.
15091 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15092 Update.
15093 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15094 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15095 (process_one_symbol): Change type of "section_offsets".
15096 * ctfread.c (get_objfile_text_range): Update.
15097 * coffread.c (coff_symtab_read, enter_linenos)
15098 (process_coff_symbol): Update.
15099 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15100 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15101
15102 2020-01-08 Tom Tromey <tromey@adacore.com>
15103
15104 * dwarf2read.c (parse_macro_definition): Use std::string.
15105 (parse_macro_definition): Likewise.
15106
15107 2020-01-08 Tom Tromey <tromey@adacore.com>
15108
15109 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15110 (ATTR_ALLOC_CHUNK): Remove.
15111
15112 2020-01-08 Tom Tromey <tromey@adacore.com>
15113
15114 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15115
15116 2020-01-08 Tom Tromey <tromey@adacore.com>
15117
15118 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15119 (dwarf2_compute_name, open_dwo_file): Likewise.
15120 (process_enumeration_scope): Use std::vector.
15121 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15122 (partial_die_info::fixup, dwarf2_start_subfile)
15123 (guess_full_die_structure_name, dwarf2_name): Likewise.
15124 (determine_prefix): Update.
15125 (guess_full_die_structure_name): Make return type const.
15126 (partial_die_full_name): Return unique_xmalloc_ptr.
15127 (DW_FIELD_ALLOC_CHUNK): Remove.
15128
15129 2020-01-07 Tom Tromey <tromey@adacore.com>
15130
15131 PR build/24937:
15132 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15133
15134 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15135
15136 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15137
15138 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15139
15140 * stack.c (print_frame_info): Move disassemble_next_line code
15141 inside source_print block.
15142
15143 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15144
15145 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15146 gdb/signals.h, as we are now using native signal symbols.
15147
15148 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15149
15150 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15151 overflow by an early check of content vs threshold.
15152 * tui/tui-source.c (tui_source_window::line_is_displayed):
15153 Likewise.
15154
15155 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15156
15157 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15158
15159 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15160
15161 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15162 export table if no section contains it's RVA.
15163
15164 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15165
15166 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15167
15168 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15169
15170 * source.c (print_source_lines_base): Set last_line_listed.
15171
15172 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15173
15174 * tui/tui-disasm.c: Remove trailing spaces.
15175
15176 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15177 Pedro Alves <palves@redhat.com>
15178
15179 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15180 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15181 (windows_gdb_signal_to_target): New function, uses the above
15182 enumeration to convert GDB internal signal codes to equivalent
15183 Windows codes.
15184 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15185 * windows-nat.c: Include "gdb_wait.h".
15186 (get_windows_debug_event): Extract the fatal exception from the
15187 exit status and convert to the equivalent Posix signal number.
15188 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15189 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15190 * gdbsupport/gdb_wait.c: New file, implements
15191 windows_status_to_termsig.
15192 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15193 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15194
15195 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15196
15197 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15198 show_layout.
15199
15200 2020-01-05 Luis Machado <luis.machado@linaro.org>
15201
15202 * aarch64-linux-nat.c
15203 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15204 and bfd_mach_aarch64.
15205
15206 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15207
15208 * ui-file.c (stdio_file::can_emit_style_escape)
15209 (tee_file::can_emit_style_escape): Ensure style is used also on
15210 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15211 to gdb_stdout.
15212 * main.c (set_gdb_data_directory): Use file style to output the
15213 warning that the given pathname is not a directory.
15214 * top.c (show_history_filename, gdb_safe_append_history)
15215 (show_gdb_datadir): Use file style.
15216
15217 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15218
15219 * solib-target.c (struct lm_info_target):
15220 Change offsets to be a unique_xmalloc_ptr.
15221 (solib_target_relocate_section_addresses): Update.
15222
15223 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15224
15225 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15226
15227 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15228
15229 * MAINTAINERS (Write After Approval): Add myself.
15230
15231 2020-01-02 Luis Machado <luis.machado@linaro.org>
15232
15233 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15234 Cell BE architecture.
15235 * target.h (struct target_ops) <thread_architecture>: Likewise.
15236
15237 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15238
15239 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15240
15241 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15242
15243 * MAINTAINERS (Write After Approval): Add myself.
15244
15245 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15246
15247 * gdbarch.sh: Update copyright year range of generated files.
15248
15249 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15250
15251 Update copyright year range in all GDB files.
15252
15253 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15254
15255 * copyright.py: Convert to Python 3.
15256
15257 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15258
15259 * copyright.py: Adapt after move of gnulib directory from gdb
15260 directory to toplevel directory.
15261
15262 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15263
15264 * copyright.py (main): Exit if run from the wrong directory.
15265
15266 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15267
15268 * top.c (print_gdb_version): Change copyright year to 2020.
15269
15270 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15271
15272 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15273
15274 For older changes see ChangeLog-2019.
15275 \f
15276 Local Variables:
15277 mode: change-log
15278 left-margin: 8
15279 fill-column: 74
15280 version-control: never
15281 coding: utf-8
15282 End:
This page took 0.488255 seconds and 5 git commands to generate.