[gdb/testsuite] Remove hardcoded filenames in gdb.dwarf2/*.exp
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
76547ab3
TV
12020-10-14 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/26733
4 * solib.c (solib_contains_address_p): Handle
5 'solib->sections == nullptr'.
6
d3a07122
SM
72020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
8
9 PR gdb/26642
10 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
11 target can't do async.
12 * target.c (target_wait): Assert that we don't pass
13 TARGET_WNOHANG to a target that can't async.
14
1b71cfcf
KR
152020-10-13 Kamil Rytarowski <n54@gmx.com>
16
17 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
18 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
19 * alpha-bsd-nat.c: Adjust include.
20 * alpha-bsd-tdep.h: Adjust comment.
21 * alpha-nbsd-tdep.c: Rename to ...
22 * alpha-netbsd-tdep.c: ... this, adjust include.
23 * amd64-nbsd-nat.c: Rename to ...
24 * amd64-netbsd-nat.c: ... this, adjust include.
25 * amd64-nbsd-tdep.c: Rename to ...
26 * amd64-netbsd-tdep.c: ... this, adjust include.
27 * amd64-tdep.h: Adjust include.
28 * arm-nbsd-nat.c: Rename to ...
29 * arm-netbsd-nat.c: ... this, adjust include.
30 * arm-nbsd-tdep.c: Rename to ...
31 * arm-netbsd-tdep.c: ... this, adjust include.
32 * arm-nbsd-tdep.h: Rename to ...
33 * arm-netbsd-tdep.h: ... this, adjust include.
34 * configure.nat: Adjust file lists.
35 * configure.tgt: Likewise.
36 * hppa-nbsd-nat.c: Rename to ...
37 * hppa-netbsd-nat.c: ... this, adjust include.
38 * hppa-nbsd-tdep.c: Rename to ...
39 * hppa-netbsd-tdep.c: ... this, adjust include.
40 * i386-nbsd-nat.c: Rename to ...
41 * i386-netbsd-nat.c: ... this, adjust include.
42 * i386-nbsd-tdep.c: Rename to ...
43 * i386-netbsd-tdep.c: ... this, adjust include.
44 * m68k-bsd-nat.c: Adjust include.
45 * mips-nbsd-nat.c: Rename to ...
46 * mips-netbsd-nat.c: ... this, adjust include.
47 * mips-nbsd-tdep.c: Rename to ...
48 * mips-netbsd-tdep.c: ... this, adjust include.
49 * mips-nbsd-tdep.h: Rename to ...
50 * mips-netbsd-tdep.h: ... this.
51 * nbsd-nat.c: Rename to ...
52 * netbsd-nat.c: ... this, adjust include.
53 * nbsd-nat.h: Rename to ...
54 * netbsd-nat.h: ... this, adjust include.
55 * nbsd-tdep.c: Rename to ...
56 * netbsd-tdep.c: ... this, adjust include.
57 * nbsd-tdep.h: Rename to ...
58 * netbsd-tdep.h: ... this.
59 * ppc-nbsd-nat.c: Rename to ...
60 * ppc-netbsd-nat.c: ... this, adjust include.
61 * ppc-nbsd-tdep.c: Rename to ...
62 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
63 * ppc-nbsd-tdep.h: Rename to ...
64 * ppc-netbsd-tdep.h: ... this.
65 * sh-nbsd-nat.c: Rename to ...
66 * sh-netbsd-nat.c: ... this, adjust include.
67 * sh-nbsd-tdep.c: Rename to ...
68 * sh-netbsd-tdep.c: ... this, adjust include.
69 * sparc-nbsd-nat.c: Rename to ...
70 * sparc-netbsd-nat.c: ... this.
71 * sparc-nbsd-tdep.c: Rename to ...
72 * sparc-netbsd-tdep.c: ... this, adjust include.
73 * sparc64-nbsd-nat.c: Rename to ...
74 * sparc64-netbsd-nat.c: ... this.
75 * sparc64-nbsd-tdep.c: Rename to ...
76 * sparc64-netbsd-tdep.c: ... this, adjust include.
77 * sparc64-tdep.h: Adjust comment.
78 * vax-bsd-nat.c: Adjust include.
79 * vax-nbsd-tdep.c: Rename to ...
80 * vax-netbsd-tdep.c: ... this, adjust include.
81
d7a78e5c
TT
822020-10-12 Tom Tromey <tom@tromey.com>
83
84 * target.h (struct target_ops) <get_section_table>: Update.
85 (target_get_section_table): Update.
86 * target.c (target_get_section_table, target_section_by_addr)
87 (memory_xfer_partial_1): Update.
88 * target-section.h (target_section_table): Now an alias.
89 * target-delegates.c: Rebuild.
90 * target-debug.h (target_debug_print_target_section_table_p):
91 Rename from target_debug_print_struct_target_section_table_p.
92 * symfile.c (build_section_addr_info_from_section_table): Update.
93 * solib.c (solib_map_sections, solib_contains_address_p): Update.
94 * solib-svr4.c (scan_dyntag): Update.
95 * solib-dsbt.c (scan_dyntag): Update.
96 * remote.c (remote_target::remote_xfer_live_readonly_partial):
97 Update.
98 * record-full.c (record_full_core_target::xfer_partial): Update.
99 * progspace.h (struct program_space) <target_sections>: Update.
100 * exec.h (print_section_info): Update.
101 * exec.c (exec_target::close, build_section_table)
102 (add_target_sections, add_target_sections_of_objfile)
103 (remove_target_sections, exec_on_vfork)
104 (section_table_available_memory)
105 (section_table_xfer_memory_partial)
106 (exec_target::get_section_table, exec_target::xfer_partial)
107 (print_section_info, set_section_command)
108 (exec_set_section_address, exec_target::has_memory): Update.
109 * corelow.c (core_target::build_file_mappings)
110 (core_target::xfer_partial, core_target::info_proc_mappings)
111 (core_target::info_proc_mappings): Update.
112 * bfd-target.c (class target_bfd): Update
113
eda214ce
TT
1142020-10-12 Tom Tromey <tom@tromey.com>
115
116 * progspace.c (program_space::~program_space): Don't call
117 clear_section_table.
118 * exec.h (clear_section_table): Don't declare.
119 * exec.c (exec_target::close): Update.
120 (clear_section_table): Remove.
121
91840ee3
TT
1222020-10-12 Tom Tromey <tom@tromey.com>
123
124 * exec.c (add_target_sections_of_objfile): Simplify.
125
2d128614
TT
1262020-10-12 Tom Tromey <tom@tromey.com>
127
128 * solib.c (solib_map_sections): Update.
129 * record-full.c (record_full_core_open_1): Update.
130 * exec.h (build_section_table): Return a target_section_table.
131 * exec.c (exec_file_attach): Update.
132 (build_section_table): Return a target_section_table.
133 * corelow.c (core_target::core_target): Update.
134 * bfd-target.c (target_bfd::target_bfd): Update.
135
bb2a6777
TT
1362020-10-12 Tom Tromey <tom@tromey.com>
137
138 * target.c (target_section_by_addr, memory_xfer_partial_1):
139 Update.
140 * target-section.h (struct target_section_table): Use
141 std::vector.
142 * symfile.h (build_section_addr_info_from_section_table): Take a
143 target_section_table.
144 * symfile.c (build_section_addr_info_from_section_table): Take a
145 target_section_table.
146 * solist.h (struct so_list) <sections>: Change type.
147 <sections_end>: Remove.
148 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
149 (solib_contains_address_p): Update.
150 * solib-svr4.c (scan_dyntag): Update.
151 * solib-dsbt.c (scan_dyntag): Update.
152 * remote.c (remote_target::remote_xfer_live_readonly_partial):
153 Update.
154 * record-full.c (record_full_core_start, record_full_core_end):
155 Remove.
156 (record_full_core_sections): New global.
157 (record_full_core_open_1, record_full_core_target::xfer_partial):
158 Update.
159 * exec.h (build_section_table, section_table_xfer_memory_partial)
160 (add_target_sections): Take a target_section_table.
161 * exec.c (exec_file_attach, clear_section_table): Update.
162 (resize_section_table): Remove.
163 (build_section_table, add_target_sections): Take a
164 target_section_table.
165 (add_target_sections_of_objfile, remove_target_sections)
166 (exec_on_vfork): Update.
167 (section_table_available_memory): Take a target_section_table.
168 (section_table_read_available_memory): Update.
169 (section_table_xfer_memory_partial): Take a target_section_table.
170 (print_section_info, set_section_command)
171 (exec_set_section_address, exec_target::has_memory): Update.
172 * corelow.c (class core_target) <m_core_section_table,
173 m_core_file_mappings>: Remove braces.
174 <~core_target>: Remove.
175 (core_target::core_target): Update.
176 (core_target::~core_target): Remove.
177 (core_target::build_file_mappings)
178 (core_target::xfer_memory_via_mappings)
179 (core_target::xfer_partial, core_target::info_proc_mappings):
180 Update.
181 * bfd-target.c (target_bfd::xfer_partial): Update.
182 (target_bfd::target_bfd): Update.
183 (target_bfd::~target_bfd): Remove.
184
7b466b10
TT
1852020-10-12 Tom Tromey <tom@tromey.com>
186
187 * target.h (struct target_section, struct target_section_table):
188 Move to target-section.h.
189 * target-section.h: New file.
190
87a37e5e
PA
1912020-10-12 Pedro Alves <pedro@palves.net>
192
193 PR exp/26602
194 * valops.c (struct struct_field_searcher): New.
195 (update_search_result): Rename to ...
196 (struct_field_searcher::update_result): ... this. Simplify
197 prototype. Record all found fields.
198 (do_search_struct_field): Rename to ...
199 (struct_field_searcher::search): ... this. Simplify prototype.
200 Maintain stack of visited baseclass path. Call update_result for
201 fields too. Keep searching fields in baseclasses instead of
202 stopping at the first found field.
203 (search_struct_field): Use struct_field_searcher. When looking
204 for fields, report ambiguous access attempts.
205
9370fd51
AB
2062020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 * frame.c (inside_main_func): Check full symbols as well as
209 minimal symbols.
210
59c8a30b
JB
2112020-10-09 Joel Brobecker <brobecker@adacore.com>
212
213 * ada-lang.c (advance_wild_match): Rewrite the function's
214 description. Change the type of target0, t0 and t1 to char.
215
7c184d33
TT
2162020-10-09 Tom Tromey <tromey@adacore.com>
217
218 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
219
5c4258f4
TT
2202020-10-09 Tom Tromey <tromey@adacore.com>
221
222 * ada-lang.h (ada_encode): Return std::string.
223 * ada-lang.c (ada_encode_1): Return std::string.
224 (ada_encode): Likewise.
225 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
226 Update.
227 * ada-exp.y (block_lookup, write_var_or_type): Update.
228
3d87245c
HD
2292020-10-09 Hannes Domani <ssbssa@yahoo.de>
230
231 PR exp/26714
232 * printcmd.c (print_formatted): Handle void results as
233 unformatted prints.
234
bbb826f5
AB
2352020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * arch/aarch32.c (aarch32_create_target_description): Release the
238 target_desc_up as late as possible.
239 * arch/aarch64.c (aarch64_create_target_description): Likewise.
240 * arch/amd64.c (amd64_create_target_description): Likewise.
241 * arch/arc.c (arc_create_target_description): Return a
242 target_desc_up, don't release it.
243 * arch/arc.h (arc_create_target_description): Update declaration.
244 (arc_lookup_target_description): Move target_desc_up into the
245 cache, and return a borrowed pointer.
246 * arch/arm.c (arm_create_target_description): Release the
247 target_desc_up as late as possible.
248 * arch/i386.c (i386_create_target_description): Likewise.
249 * arch/riscv.h (riscv_create_target_description): Update
250 declaration to match definition.
251 * arch/tic6x.c (tic6x_create_target_description): Release the
252 target_desc_up as late as possible.
253
361cb219
AB
2542020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
257 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
258
f5c4b229
JV
2592020-10-09 Jan Vrany <jan.vrany@labware.com>
260
261 * source.c (directory_command): Notify observers that "directories"
262 parameter has changed.
263
b2701685
TT
2642020-10-08 Tom Tromey <tom@tromey.com>
265
266 * cli/cli-cmds.c (print_disassembly): Style function name and
267 addresses. Add _() wrappers.
268
ada508b6
SV
2692020-10-08 Shahab Vahedi <shahab@synopsys.com>
270
271 * NEWS: Mention ARC support in GDBserver.
272
51a948fd
AB
2732020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * arch/aarch32.c (aarch32_create_target_description): Release
276 unique_ptr returned from allocate_target_description.
277 * arch/aarch64.c (aarch64_create_target_description): Likewise.
278 * arch/amd64.c (amd64_create_target_description): Likewise.
279 * arch/arc.c (arc_create_target_description): Likewise.
280 * arch/arm.c (arm_create_target_description): Likewise.
281 * arch/i386.c (i386_create_target_description): Likewise.
282 * arch/riscv.c (riscv_create_target_description): Update return
283 type. Handle allocate_target_description returning a unique_ptr.
284 (riscv_lookup_target_description): Update to handle unique_ptr.
285 * arch/tic6x.c (tic6x_create_target_description): Release
286 unique_ptr returned from allocate_target_description.
287 * features/microblaze-with-stack-protect.c: Regenerate.
288 * features/microblaze.c: Regenerate.
289 * features/mips-dsp-linux.c: Regenerate.
290 * features/mips-linux.c: Regenerate.
291 * features/mips64-dsp-linux.c: Regenerate.
292 * features/mips64-linux.c: Regenerate.
293 * features/nds32.c: Regenerate.
294 * features/nios2.c: Regenerate.
295 * features/or1k.c: Regenerate.
296 * features/rs6000/powerpc-32.c: Regenerate.
297 * features/rs6000/powerpc-32l.c: Regenerate.
298 * features/rs6000/powerpc-403.c: Regenerate.
299 * features/rs6000/powerpc-403gc.c: Regenerate.
300 * features/rs6000/powerpc-405.c: Regenerate.
301 * features/rs6000/powerpc-505.c: Regenerate.
302 * features/rs6000/powerpc-601.c: Regenerate.
303 * features/rs6000/powerpc-602.c: Regenerate.
304 * features/rs6000/powerpc-603.c: Regenerate.
305 * features/rs6000/powerpc-604.c: Regenerate.
306 * features/rs6000/powerpc-64.c: Regenerate.
307 * features/rs6000/powerpc-64l.c: Regenerate.
308 * features/rs6000/powerpc-7400.c: Regenerate.
309 * features/rs6000/powerpc-750.c: Regenerate.
310 * features/rs6000/powerpc-860.c: Regenerate.
311 * features/rs6000/powerpc-altivec32.c: Regenerate.
312 * features/rs6000/powerpc-altivec32l.c: Regenerate.
313 * features/rs6000/powerpc-altivec64.c: Regenerate.
314 * features/rs6000/powerpc-altivec64l.c: Regenerate.
315 * features/rs6000/powerpc-e500.c: Regenerate.
316 * features/rs6000/powerpc-e500l.c: Regenerate.
317 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
318 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
319 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
320 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
321 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
322 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
323 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
324 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
325 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
326 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
327 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
328 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
329 * features/rs6000/powerpc-vsx32.c: Regenerate.
330 * features/rs6000/powerpc-vsx32l.c: Regenerate.
331 * features/rs6000/powerpc-vsx64.c: Regenerate.
332 * features/rs6000/powerpc-vsx64l.c: Regenerate.
333 * features/rs6000/rs6000.c: Regenerate.
334 * features/rx.c: Regenerate.
335 * features/s390-gs-linux64.c: Regenerate.
336 * features/s390-linux32.c: Regenerate.
337 * features/s390-linux32v1.c: Regenerate.
338 * features/s390-linux32v2.c: Regenerate.
339 * features/s390-linux64.c: Regenerate.
340 * features/s390-linux64v1.c: Regenerate.
341 * features/s390-linux64v2.c: Regenerate.
342 * features/s390-te-linux64.c: Regenerate.
343 * features/s390-tevx-linux64.c: Regenerate.
344 * features/s390-vx-linux64.c: Regenerate.
345 * features/s390x-gs-linux64.c: Regenerate.
346 * features/s390x-linux64.c: Regenerate.
347 * features/s390x-linux64v1.c: Regenerate.
348 * features/s390x-linux64v2.c: Regenerate.
349 * features/s390x-te-linux64.c: Regenerate.
350 * features/s390x-tevx-linux64.c: Regenerate.
351 * features/s390x-vx-linux64.c: Regenerate.
352 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
353 from allocate_target_description.
354 * target-descriptions.c (allocate_target_description): Update
355 return type.
356 (print_c_tdesc::visit_pre): Release unique_ptr returned from
357 allocate_target_description.
358
485c47e5
TT
3592020-10-07 Tom Tromey <tromey@adacore.com>
360
361 * unittests/search-memory-selftests.c: New file.
362 * Makefile.in (SELFTESTS_SRCS): Add
363 unittests/search-memory-selftests.c.
364
3a135a91
TT
3652020-10-07 Tom Tromey <tromey@adacore.com>
366
367 PR gdb/16930:
368 * findcmd.c (_initialize_mem_search): Mention that the range is
369 inclusive.
370
4a72de73
TT
3712020-10-07 Tom Tromey <tromey@adacore.com>
372
373 * target.h (simple_search_memory): Don't declare.
374 * target.c (simple_search_memory): Move to gdbsupport.
375 (default_search_memory): Update.
376 * remote.c (remote_target::search_memory): Update.
377
a038ffd8
SM
3782020-10-07 Simon Marchi <simon.marchi@efficios.com>
379
380 * Makefile.in (COMPILE): Add CXXFLAGS.
381 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
382 (check-headers): Add CXXFLAGS.
383
cc463201
AK
3842020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
385
386 * arc-linux-tdep.h: New file.
387 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
388 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
389 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
390 arc_linux_gregset, arc_linux_v2_regset,
391 arc_linux_iterate_over_regset_sections,
392 arc_linux_core_read_description): Implement.
393 (arc_linux_init_osabi): Set iterate_over_regset_sections.
394 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
395 (arc_gdbarch_features_create): Add.
396 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
397
e4bd363f
SV
3982020-10-07 Shahab Vahedi <shahab@synopsys.com>
399
400 * arch/arc.h: Rename "arc_gdbarch_features" to
401 "arc_arch_features".
402 * arc-tdep.h: Likewise.
403 * arc-tdep.c: Likewise.
404
b68bef99
TBA
4052020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406
407 * infcmd.c (attach_command): Remove the redundant call to
408 `clear_proceed_status`.
409
4641551a
KR
4102020-10-07 Kamil Rytarowski <n54@gmx.com>
411
412 * nat/netbsd-nat.c (write_memory, read_memory): Update.
413
91e5e8db
KR
4142020-10-07 Kamil Rytarowski <n54@gmx.com>
415
416 * nat/netbsd-nat.c (write_memory, read_memory): Add.
417 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
418 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
419
64c03bdb
SM
4202020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
421
422 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
423 (_initialize_break_catch_sig): Don't allocate array.
424
31a8f60f
AB
4252020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * symtab.c (find_pc_line): Return unmapped addresses when the
428 requested address is also unmapped.
429
9e6dbd8b
SM
4302020-10-05 Simon Marchi <simon.marchi@efficios.com>
431
432 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
433 tui/tui-out.h.
434
a1d217e8
SM
4352020-10-05 Simon Marchi <simon.marchi@efficios.com>
436
437 * amd64-windows-tdep.c (amd64_windows_return_value): Use
438 type::is_vector instead of TYPE_VECTOR.
439
7d144117
SM
4402020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
441
442 * auto-load.c (auto_load_objfile_script_1): Don't use
443 debugfile_holder as temporary variable when stripping drive
444 letter.
445
cd096ec8
HD
4462020-10-05 Hannes Domani <ssbssa@yahoo.de>
447
448 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
449 Add TYPE_CODE_COMPLEX.
450 (amd64_windows_return_value): Fix types returned via XMM0.
451
b58e7f72
AH
4522020-10-05 Alan Hayward <alan.hayward@arm.com>
453
454 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
455 AArch64/ARM maintainers.
456
8d378f27
SM
4572020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * NEWS: Mention set/show debug event-loop.
460
d5519913
TT
4612020-10-02 Tom Tromey <tromey@adacore.com>
462
463 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
464 REG_EXTENDED.
465
18b67edc
SM
4662020-10-02 Simon Marchi <simon.marchi@efficios.com>
467
468 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
469 * procfs.c (procfs_inferior_created): Remove.
470 (_initialize_procfs): Don't register procfs_inferior_created.
471
6b01403b
SM
4722020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * async-event.c (invoke_async_signal_handlers): Add debug
475 print.
476 (check_async_event_handlers): Likewise.
477 * event-top.c (show_debug_event_loop): New function.
478 (_initialize_event_top): Register "set debug event-loop"
479 setting.
480
ba988419
SM
4812020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
484 * debug.h: Remove.
485 * infrun.c: Include gdbsupport/common-debug.h.
486 * linux-nat.c: Likewise.
487
db20ebdf
SM
4882020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * async-event.h (create_async_signal_handler): Add name
491 parameter.
492 (create_async_event_handler): Likewise.
493 * async-event.c (struct async_signal_handler) <name>: New field.
494 (struct async_event_handler) <name>: New field.
495 (create_async_signal_handler): Assign name.
496 (create_async_event_handler): Assign name.
497 * event-top.c (async_init_signals): Pass name when creating
498 handler.
499 * infrun.c (_initialize_infrun): Likewise.
500 * record-btrace.c (record_btrace_push_target): Likewise.
501 * record-full.c (record_full_open): Likewise.
502 * remote-notif.c (remote_notif_state_allocate): Likewise.
503 * remote.c (remote_target::open_1): Likewise.
504 * tui/tui-win.c (tui_initialize_win): Likewise.
505
2554f6f5
SM
5062020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * async-event.c (initialize_async_signal_handlers): Pass name to
509 add_file_handler
510 * event-top.c (ui_register_input_event_handler): Likewise.
511 * linux-nat.c (linux_nat_target::async): Likewise.
512 * run-on-main-thread.c (_initialize_run_on_main_thread):
513 Likewise
514 * ser-base.c (reschedule): Likewise.
515 (ser_base_async): Likewise.
516 * tui/tui-io.c: Likewise.
517 * top.h (struct ui) <num>: New field.
518 * top.c (highest_ui_num): New variable.
519 (ui::ui): Initialize num.
520
a7aba266
SM
5212020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * observable.h <inferior_created>: Remove parameters. Update all
524 listeners.
525 * inferior.h (post_create_inferior): Remove target parameter.
526 Update all callers.
527
048fde1e 5282020-10-02 Nitika Achra <Nitika.Achra@amd.com>
529
530 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
531 and DW_MACRO_undef_strx.
532 (dwarf_decode_macros): Likewise
533 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
534 which is the value of DW_AT_str_offsets_base.
535 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
536 str_offsets_base.
537
064280be
KR
5382020-10-01 Kamil Rytarowski <n54@gmx.com>
539
540 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
541
6ff33035
KR
5422020-10-01 Kamil Rytarowski <n54@gmx.com>
543
544 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
545 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
546
1eb6eb79
KR
5472020-10-01 Kamil Rytarowski <n54@gmx.com>
548
549 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
550
95eb9e54
TV
5512020-09-30 Tom de Vries <tdevries@suse.de>
552
553 PR symtab/26683
554 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
555
cae21f8e
TT
5562020-09-30 Tom Tromey <tromey@adacore.com>
557
558 * dwarf2/read.c (handle_variant): Use constant_value.
559
529908cb
TT
5602020-09-29 Tom Tromey <tom@tromey.com>
561
562 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
563 (read_file_scope, dwarf2_get_pc_bounds)
564 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
565 (read_structure_type, handle_struct_member_die)
566 (read_enumeration_type, read_array_type, read_set_type)
567 (read_tag_pointer_type, read_tag_reference_type)
568 (read_subroutine_type, read_base_type, read_subrange_type)
569 (read_full_die_1, partial_die_info::read)
570 (partial_die_info::read, by, new_symbol)
571 (dwarf2_const_value_data, dwarf2_const_value_attr)
572 (dump_die_shallow, dwarf2_fetch_constant_bytes)
573 (prepare_one_comp_unit): Update.
574 * dwarf2/attribute.h (DW_UNSND): Remove.
575
c45bc3f8
TT
5762020-09-29 Tom Tromey <tom@tromey.com>
577
578 * dwarf2/read.c (read_func_scope, prototyped_function_p)
579 (read_subroutine_type, partial_die_info::read)
580 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
581 (dwarf2_add_member_fn): Update.
582 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
583 * dwarf2/attribute.c (attribute::as_boolean): New method.
584
23dca5c3
TT
5852020-09-29 Tom Tromey <tom@tromey.com>
586
587 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
588 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
589 method.
590 * dwarf2/attribute.c (attribute::as_virtuality): New method.
591
52c14d11
TT
5922020-09-29 Tom Tromey <tom@tromey.com>
593
594 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
595 the attribute's form.
596
e8e5c158
TT
5972020-09-29 Tom Tromey <tom@tromey.com>
598
599 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
600 (dwarf2_add_member_fn): Update.
601 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
602 * dwarf2/attribute.c (attribute::defaulted): New method, from
603 is_valid_DW_AT_defaulted.
604
d4df075e
TT
6052020-09-29 Tom Tromey <tom@tromey.com>
606
607 * dwarf2/read.c (dw2_get_file_names_reader)
608 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
609 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
610 (dwarf2_symbol_mark_computed): Use as_unsigned.
611 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
612 method.
613 <form_is_section_offset>: Update comment.
614
bf23a268
TT
6152020-09-29 Tom Tromey <tom@tromey.com>
616
617 * dwarf2/read.c (dwarf2_access_attribute): Rename from
618 dwarf2_default_access_attribute. Look up attribute.
619 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
620 Update.
621
7a5f294d
TT
6222020-09-29 Tom Tromey <tom@tromey.com>
623
624 * dwarf2/read.c (skip_one_die): Update.
625 (read_full_die_1): Change how reprocessing is done.
626 (partial_die_info::read): Update.
627 (read_attribute_value): Remove need_reprocess parameter.
628 (read_attribute): Likewise.
629 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
630 New method.
631
36d378cf
TT
6322020-09-29 Tom Tromey <tom@tromey.com>
633
634 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
635 (dwarf2_const_value_attr, dump_die_shallow)
636 (dwarf2_fetch_constant_bytes): Update.
637 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
638 comment.
639 <set_address>: New method.
640 (DW_ADDR): Remove.
641 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
642 (attribute::as_string, attribute::as_address): Add assert.
643
fe56917a
TT
6442020-09-29 Tom Tromey <tom@tromey.com>
645
646 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
647 (read_attribute_reprocess, read_attribute_value): Update.
648 (read_attribute): Clear requires_reprocessing.
649 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
650 form_requires_reprocessing>: New methods.
651 <string_init>: Clear requires_reprocessing.
652 <set_unsigned_reprocess>: New method.
653 <name>: Shrink by one bit.
654 <requires_reprocessing>: New member.
655 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
656 method.
657
414ad644
TT
6582020-09-29 Tom Tromey <tom@tromey.com>
659
660 * dwarf2/read.c (read_attribute_value): Update.
661 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
662 set_unsigned>: New methods.
663 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
664
1bc397c5
TT
6652020-09-29 Tom Tromey <tom@tromey.com>
666
667 * dwarf2/read.c (get_alignment, read_array_order)
668 (read_attribute_value, dwarf2_const_value_attr)
669 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
670 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
671 New methods.
672 (DW_SND): Remove.
673
630ed6b9
TT
6742020-09-29 Tom Tromey <tom@tromey.com>
675
676 * dwarf2/read.c (read_attribute_value, lookup_die_type)
677 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
678 Update.
679 * dwarf2/attribute.h (struct attribute) <as_signature,
680 set_signature>: New methods.
681 (DW_SIGNATURE): Remove.
682
9d2246fc
TT
6832020-09-29 Tom Tromey <tom@tromey.com>
684
685 * dwarf2/read.c (read_call_site_scope)
686 (handle_data_member_location, dwarf2_add_member_fn)
687 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
688 (partial_die_info::read, read_attribute_value)
689 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
690 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
691 (dwarf2_symbol_mark_computed): Update.
692 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
693 methods.
694 (DW_BLOCK): Remove.
695 * dwarf2/attribute.c (attribute::form_is_block): Add
696 DW_FORM_data16.
697
c6481205
TT
6982020-09-29 Tom Tromey <tom@tromey.com>
699
700 * dwarf2/read.c (read_cutu_die_from_dwo)
701 (read_attribute_reprocess, read_attribute_value, read_attribute)
702 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
703 (dwarf2_fetch_constant_bytes): Update.
704 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
705 <set_string_noncanonical, set_string_canonical>: New methods.
706 <string_is_canonical>: Update comment.
707 <canonical_string_p>: Add assert.
708 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
709 * dwarf2/attribute.c (attribute::form_is_string): New method.
710 (attribute::string): Use it.
711
3b64bf15
TT
7122020-09-29 Tom Tromey <tom@tromey.com>
713
714 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
715 (dump_die_shallow): Use canonical_string_p.
716 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
717 method.
718
2c830f54
TT
7192020-09-29 Tom Tromey <tom@tromey.com>
720
721 * dwarf2/read.c (partial_die_info::read)
722 (dwarf2_const_value_attr, anonymous_struct_prefix, )
723 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
724 attribute::as_string.
725
6c412691
TT
7262020-09-29 Tom Tromey <tom@tromey.com>
727
728 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
729 DW_ADDR.
730 (attribute::string): Don't use DW_STRING.
731 (attribute::get_ref_die_offset): Don't use DW_UNSND.
732 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
733
95f982e5
TT
7342020-09-29 Tom Tromey <tom@tromey.com>
735
736 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
737 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
738 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
739 * dwarf2/attribute.h (struct attribute): Rename methods.
740 * dwarf2/attribute.c (attribute::as_address): Rename from
741 value_as_address.
742 (attribute::as_string): Rename from value_as_string.
743
f800b00e
TT
7442020-09-29 Tom Tromey <tom@tromey.com>
745
746 * dwarf2/read.c (partial_die_info::read) <case
747 DW_AT_linkage_name>: Use value_as_string.
748 (dwarf2_string_attr): Use value_as_string.
749 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
750 method.
751 * dwarf2/attribute.c (attribute::value_as_string): New method.
752
de38d64a
PA
7532020-09-29 Pedro Alves <pedro@palves.net>
754
755 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
756 defined before using '#pragma GCC diagnostic' instead of checking
757 __clang__.
758
9aed480c
TT
7592020-09-28 Tom Tromey <tom@tromey.com>
760
761 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
762 (handle_signal_stop): Update.
763 * procfs.c (procfs_target::insert_watchpoint): Update.
764 * target.h (target_have_steppable_watchpoint): Now a function.
765
8a3ecb79
TT
7662020-09-28 Tom Tromey <tom@tromey.com>
767
768 * infrun.c (set_schedlock_func): Update.
769 * target.h (target_can_lock_scheduler): Now a function.
770
55f6301a
TT
7712020-09-28 Tom Tromey <tom@tromey.com>
772
773 * inferior.h (class inferior) <has_execution>: Update.
774 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
775 * valops.c (find_function_in_inferior)
776 (value_allocate_space_in_inferior): Update.
777 * top.c (kill_or_detach): Update.
778 * target.c (target_preopen, set_target_permissions): Update.
779 (target_has_execution_current): Remove.
780 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
781 Update.
782 * solib.c (update_solib_list, reload_shared_libraries): Update.
783 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
784 * solib-dsbt.c (enable_break): Update.
785 * score-tdep.c (score7_fetch_inst): Update.
786 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
787 Update.
788 * remote.c (remote_target::start_remote)
789 (remote_target::remote_check_symbols, remote_target::open_1)
790 (remote_target::remote_detach_1, remote_target::verify_memory)
791 (remote_target::xfer_partial, remote_target::read_description)
792 (remote_target::get_min_fast_tracepoint_insn_len): Update.
793 * record-full.c (record_full_open_1): Update.
794 * record-btrace.c (record_btrace_target_open): Update.
795 * objc-lang.c (lookup_objc_class, lookup_child_selector)
796 (value_nsstring): Update.
797 * linux-thread-db.c (add_thread_db_info)
798 (thread_db_find_new_threads_silently, check_thread_db_callback)
799 (try_thread_db_load_1, record_thread): Update.
800 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
801 Update.
802 * linux-fork.c (checkpoint_command): Update.
803 * infrun.c (set_non_stop, set_observer_mode)
804 (check_multi_target_resumption, for_each_just_stopped_thread)
805 (maybe_remove_breakpoints, normal_stop)
806 (class infcall_suspend_state): Update.
807 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
808 (info_program_command, attach_command): Update.
809 * infcall.c (call_function_by_hand_dummy): Update.
810 * inf-loop.c (inferior_event_handler): Update.
811 * gcore.c (gcore_command, derive_heap_segment): Update.
812 * exec.c (exec_file_command): Update.
813 * eval.c (evaluate_subexp): Update.
814 * compile/compile.c (compile_to_object): Update.
815 * cli/cli-dump.c (restore_command): Update.
816 * breakpoint.c (update_watchpoint)
817 (update_inserted_breakpoint_locations)
818 (insert_breakpoint_locations, get_bpstat_thread): Update.
819 * target.h (target_has_execution): Remove macro.
820 (target_has_execution_current): Don't declare.
821 (target_has_execution): Rename from target_has_execution_1. Add
822 argument default.
823
05374cfd
TT
8242020-09-28 Tom Tromey <tom@tromey.com>
825
826 * mi/mi-main.c (exec_reverse_continue)
827 (mi_cmd_list_target_features): Update.
828 * infrun.c (set_exec_direction_func): Update.
829 * target.c (default_execution_direction): Update.
830 * reverse.c (exec_reverse_once): Update.
831 * target.h (target_can_execute_reverse): Now a function.
832
9dccd06e
TT
8332020-09-28 Tom Tromey <tom@tromey.com>
834
835 * tui/tui-regs.c (tui_get_register)
836 (tui_data_window::show_registers): Update.
837 * thread.c (scoped_restore_current_thread::restore)
838 (scoped_restore_current_thread::scoped_restore_current_thread):
839 Update.
840 * regcache-dump.c (regcache_print): Update.
841 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
842 Update.
843 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
844 * mep-tdep.c (current_me_module, current_options): Update.
845 * linux-thread-db.c (thread_db_load): Update.
846 * infcmd.c (registers_info, info_vector_command)
847 (info_float_command): Update.
848 * ia64-tdep.c (ia64_frame_prev_register)
849 (ia64_sigtramp_frame_prev_register): Update.
850 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
851 * gcore.c (derive_stack_segment): Update.
852 * frame.c (get_current_frame, has_stack_frames): Update.
853 * findvar.c (language_defn::read_var_value): Update.
854 * arm-tdep.c (arm_pc_is_thumb): Update.
855 * target.c (target_has_registers): Rename from
856 target_has_registers_1.
857 * target.h (target_has_registers): Remove macro.
858 (target_has_registers): Rename from target_has_registers_1.
859
841de120
TT
8602020-09-28 Tom Tromey <tom@tromey.com>
861
862 * windows-tdep.c (tlb_make_value): Update.
863 * tui/tui-regs.c (tui_data_window::show_registers): Update.
864 * thread.c (scoped_restore_current_thread::restore)
865 (scoped_restore_current_thread::scoped_restore_current_thread)
866 (thread_command): Update.
867 * stack.c (backtrace_command_1, frame_apply_level_command)
868 (frame_apply_all_command, frame_apply_command): Update.
869 * infrun.c (siginfo_make_value, restore_infcall_control_state):
870 Update.
871 * gcore.c (derive_stack_segment): Update.
872 * frame.c (get_current_frame, has_stack_frames): Update.
873 * auxv.c (info_auxv_command): Update.
874 * ada-tasks.c (ada_build_task_list): Update.
875 * target.c (target_has_stack): Rename from target_has_stack_1.
876 * target.h (target_has_stack): Remove macro.
877 (target_has_stack): Rename from target_has_stack_1.
878
a739972c
TT
8792020-09-28 Tom Tromey <tom@tromey.com>
880
881 * target.c (target_has_memory): Rename from target_has_memory_1.
882 * tui/tui-regs.c (tui_data_window::show_registers): Update.
883 * thread.c (scoped_restore_current_thread::restore)
884 (scoped_restore_current_thread::scoped_restore_current_thread):
885 Update.
886 * frame.c (get_current_frame, has_stack_frames): Update.
887 * target.h (target_has_memory): Remove macro.
888 (target_has_memory): Rename from target_has_memory_1.
889
5b8a4776
TT
8902020-09-28 Tom Tromey <tom@tromey.com>
891
892 * target.c (target_has_all_memory_1): Remove.
893 * target.h (target_has_all_memory): Remove define.
894 (target_has_all_memory_1): Don't declare.
895
bd356ec6
SM
8962020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
897
898 * ser-base.c: Adjust comments formatting.
899
2c72d5e5
TT
9002020-09-27 Tom Tromey <tom@tromey.com>
901
902 PR tui/25342:
903 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
904
35a98237
TT
9052020-09-27 Tom Tromey <tom@tromey.com>
906
907 PR tui/25342:
908 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
909
9e820dec
TT
9102020-09-27 Tom Tromey <tom@tromey.com>
911
912 * unittests/tui-selftests.c: Update.
913 * tui/tui-winsource.h (struct tui_source_window_base)
914 <extra_margin, show_line_number, refresh_pad>: New methods.
915 <m_max_length, m_pad>: New members.
916 (tui_copy_source_line): Update.
917 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
918 first_col, line_width, ndigits parameters. Add length.
919 (tui_source_window_base::show_source_line): Write to pad. Line
920 number now 0-based.
921 (tui_source_window_base::refresh_pad): New method.
922 (tui_source_window_base::show_source_content): Write to pad. Call
923 refresh_pad.
924 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
925 not refill.
926 (tui_source_window_base::update_exec_info): Call
927 show_line_number.
928 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
929 method.
930 <m_digits>: New member.
931 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
932 and m_max_length.
933 (tui_source_window::show_line_number): New method.
934 * tui/tui-io.h (tui_puts): Fix comment.
935 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
936 m_max_length.
937
c15c15c8
TT
9382020-09-27 Tom Tromey <tom@tromey.com>
939
940 * tui/tui-winsource.c
941 (tui_source_window_base::set_is_exec_point_at): Don't call
942 show_source_line.
943
149830c1
TT
9442020-09-27 Tom Tromey <tom@tromey.com>
945
946 * python/py-tui.c (class tui_py_window) <refresh_window>: New
947 method.
948 <erase>: Update.
949 <cursor_x, cursor_y>: Remove.
950 <m_inner_window>: New member.
951 (tui_py_window::rerender): Create inner window.
952 (tui_py_window::output): Write to inner window.
953
8f9929bb
GR
9542020-09-26 Gareth Rees <grees@undo.io> (tiny change)
955
956 PR python/26586
957 * cli/cli-script.c (execute_control_commands): don't set
958 instream to nullptr here as this breaks the from_tty argument
959 to gdb.execute in Python.
960 (execute_user_command): set instream to nullptr here instead.
961
956bdb59
SM
9622020-09-25 Simon Marchi <simon.marchi@efficios.com>
963
964 * infrun.h (infrun_debug_printf): Fix formatting.
965 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
966
3b93626b
SJ
9672020-09-25 Saagar Jha <saagar@saagarjha.com>
968
969 * compile/compile-object-load.h (struct munmap_list): Add
970 explicitly-defined move constructor.
971
b551a89f
TT
9722020-09-24 Tom Tromey <tromey@adacore.com>
973
974 PR tui/26638:
975 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
976 method.
977 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
978 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
979 (tui_prev_win): Rewrite.
980
99bb393f
HD
9812020-09-23 Hannes Domani <ssbssa@yahoo.de>
982
983 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
984 in WOW64 processes as SIGINT.
985 * nat/windows-nat.h: Make wow64_process a shared variable.
986 * windows-nat.c: Remove static wow64_process variable.
987
20a5fcbd
TT
9882020-09-23 Tom Tromey <tom@tromey.com>
989
990 PR symtab/25470:
991 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
992 offset and bit size.
993 * printcmd.c (print_scalar_formatted): Handle zero-length
994 integer.
995 (print_scalar_formatted): Use bit_size_differs_p.
996 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
997 constant.
998 (union type_specific): <int_stuff>: New member.
999 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1000 methods.
1001 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1002 TYPE_SPECIFIC_FIELD.
1003 (recursive_dump_type, copy_type_recursive): Update.
1004 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1005 DW_AT_data_bit_offset.
1006
bac51ab7
TT
10072020-09-23 Tom Tromey <tom@tromey.com>
1008
1009 * utils.h (class gdb_argv): Add move operators.
1010 <append>: New methods.
1011 * compile/compile.c (build_argc_argv): Remove.
1012 (compile_args_argc): Remove.
1013 (compile_args_argv): Change type.
1014 (set_compile_args): Simplify.
1015 (append_args): Remove.
1016 (filter_args): Remove argcp parameter.
1017 (get_args): Return gdb_argv. Simplify.
1018 (compile_to_object): Update.
1019
92677124
TT
10202020-09-23 Tom Tromey <tom@tromey.com>
1021
1022 * compile/compile-object-run.c (do_module_cleanup)
1023 <~do_module_cleanup> :Remove.
1024 (do_module_cleanup): Update.
1025 * compile/compile-object-load.h (struct munmap_list): Add move
1026 assignment operator.
1027 <source_file>: Now a std::string.
1028 <munmap_list>: Rename. No longer a pointer.
1029 * compile/compile-object-load.c (struct setup_sections_data): Add
1030 constructor.
1031 <setup_one_section>: Declare.
1032 <munmap_list>: Move earlier.
1033 <m_bfd>: New member.
1034 <m_last_size, m_last_section_first, m_last_prot,
1035 m_last_max_alignment>: Rename, add initializers where needed.
1036 (setup_sections_data::setup_one_section): Rename from
1037 setup_sections. Update.
1038 (compile_object_load): Update. Don't use bfd_map_over_sections.
1039
e616f60a
TT
10402020-09-23 Tom Tromey <tom@tromey.com>
1041
1042 * compile/compile-object-run.c (struct do_module_cleanup): Add
1043 parameters to constructor. Update destructor.
1044 <source_file, scope, scope_data, out_value_type, out_value_addr,
1045 munmap_list_head, objfile_name_string>: Remove.
1046 <module>: New member.
1047 (do_module_cleanup): Update.
1048 (compile_object_run): Update.
1049
e947a848
TT
10502020-09-23 Tom Tromey <tom@tromey.com>
1051
1052 * compile/compile.c (eval_compile_command): Update.
1053 * compile/compile-object-run.h (compile_object_run): Take a
1054 compile_module_up.
1055 * compile/compile-object-run.c (compile_object_run): Take a
1056 compile_module_up.
1057 * compile/compile-object-load.h (struct compile_module): Add
1058 constructor, destructor.
1059 (compile_module_up): New typedef.
1060 (compile_object_load): Return compile_object_up.
1061 * compile/compile-object-load.c (compile_object_load): Return
1062 compile_module_up.
1063
0dbf6ee6
TT
10642020-09-23 Tom Tromey <tom@tromey.com>
1065
1066 * compile/compile-object-run.c (struct do_module_cleanup): Add
1067 constructor, destructor.
1068 <objfile_name_string>: Don't use struct hack.
1069 (do_module_cleanup): Use delete.
1070 (compile_object_run): Use new.
1071
ebe824f5
TT
10722020-09-23 Tom Tromey <tom@tromey.com>
1073
1074 * compile/compile-cplus-types.c
1075 (compile_cplus_convert_struct_or_union): Use std::vector.
1076 (compile_cplus_convert_func): Likewise.
1077 * compile/compile-c-types.c (convert_func): Use std::vector.
1078
5dd918d9
TT
10792020-09-21 Tom Tromey <tromey@adacore.com>
1080
1081 * sparc-tdep.c (sparc32_skip_prologue): Use
1082 skip_prologue_using_sal.
1083
5486c517
TT
10842020-09-19 Tom Tromey <tom@tromey.com>
1085
1086 * symfile.c (add_section_size_callback): Remove.
1087 (load_one_section): Rename from load_section_callback. Change
1088 parameters.
1089 (generic_load): Use foreach.
1090
8a6bb1d1
TT
10912020-09-19 Tom Tromey <tom@tromey.com>
1092
1093 * exec.c (add_to_section_table): Remove.
1094 (build_section_table): Use foreach.
1095
08f93a1a
TT
10962020-09-19 Tom Tromey <tom@tromey.com>
1097
1098 * elfread.c (elf_locate_sections): Change parameters.
1099 (elf_symfile_read): Use foreach.
1100
03cd72b8
TT
11012020-09-19 Tom Tromey <tom@tromey.com>
1102
1103 * cli/cli-dump.c (struct callback_data): Remove.
1104 (restore_one_section): Rename from restore_section_callback.
1105 Change parameters.
1106 (restore_binary_file): Change parameters.
1107 (restore_command): Use foreach.
1108
f4f2b85f
TT
11092020-09-19 Tom Tromey <tom@tromey.com>
1110
1111 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1112 (gcore_copy_callback): Likewise.
1113 (gcore_memory_sections): Use foreach.
1114
b35c1d1c
TT
11152020-09-19 Tom Tromey <tom@tromey.com>
1116
1117 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1118 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1119 parameters.
1120 (generic_elf_osabi_sniffer): Use foreach.
1121 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1122 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1123
5bb6e9dd
TT
11242020-09-19 Tom Tromey <tom@tromey.com>
1125
1126 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1127 (dwarf2_get_dwz_file): Use foreach.
1128 (dwarf2_locate_dwo_sections): Change parameters.
1129 (open_and_init_dwo_file): Use foreach.
1130 (dwarf2_locate_common_dwp_sections): Change parameters.
1131 (open_and_init_dwp_file): Use foreach.
1132
ad7277da
TT
11332020-09-19 Tom Tromey <tom@tromey.com>
1134
1135 * symfile.h: (find_lowest_section): Don't declare.
1136 * symfile.c (find_lowest_section): Now static. Change
1137 parameters.
1138 (struct place_section_arg): Remove.
1139 (place_section): Change parameters.
1140 (addr_info_make_relative): Use foreach.
1141 (symfile_dummy_outputs): Remove.
1142 (default_symfile_relocate): Use foreach.
1143
cb814f2e
TT
11442020-09-19 Tom Tromey <tom@tromey.com>
1145
1146 * objfiles.c (add_to_objfile_sections): Rename from
1147 add_to_objfile_sections_full.
1148 (add_to_objfile_sections): Remove.
1149 (build_objfile_section_table): Use foreach.
1150
3cabfd26
TT
11512020-09-19 Tom Tromey <tom@tromey.com>
1152
1153 * stap-probe.c (get_stap_base_address_1): Remove.
1154 (get_stap_base_address): Use foreach.
1155
1ce51eb5
TT
11562020-09-19 Tom Tromey <tom@tromey.com>
1157
1158 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1159 parameters.
1160 (gdb_bfd_close_or_warn): Use foreach.
1161
a190fabb
TT
11622020-09-19 Tom Tromey <tom@tromey.com>
1163
1164 * corelow.c (add_to_thread_list): Change parameters.
1165 (core_target_open): Use foreach.
1166
cafb0d81
TT
11672020-09-19 Tom Tromey <tom@tromey.com>
1168
1169 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1170 existing function.
1171
c8d5abea
AB
11722020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1175 for arrays.
1176
6d816919
AB
11772020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * eval.c: Remove 'f-lang.h' include.
1180 (value_f90_subarray): Moved to f-lang.c.
1181 (eval_call): Renamed to...
1182 (evaluate_subexp_do_call): ...this, is no longer static, header
1183 comment moved into header file.
1184 (evaluate_funcall): Update call to eval_call.
1185 (skip_undetermined_arglist): Moved to f-lang.c.
1186 (fortran_value_subarray): Likewise.
1187 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1188 moved to evaluate_subexp_f.
1189 (calc_f77_array_dims): Moved to f-lang.c
1190 * expprint.c (print_subexp_funcall): New function.
1191 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1192 moved to print_subexp_f, OP_FUNCALL uses new function.
1193 (dump_subexp_body_funcall): New function.
1194 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1195 moved to dump_subexp_f, OP_FUNCALL uses new function.
1196 * expression.h (evaluate_subexp_do_call): Declare.
1197 * f-lang.c (value_f90_subarray): Moved from eval.c.
1198 (skip_undetermined_arglist): Likewise.
1199 (calc_f77_array_dims): Likewise.
1200 (fortran_value_subarray): Likewise.
1201 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1202 (operator_length_f): Likewise.
1203 (print_subexp_f): Likewise.
1204 (dump_subexp_body_f): Likewise.
1205 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1206 declaration of this operation to here.
1207 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1208 support moved to operator_length_f.
1209 * parser-defs.h (dump_subexp_body_funcall): Declare.
1210 (print_subexp_funcall): Declare.
1211 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1212 fortran-operator.def.
1213
8c37706a
AB
12142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * eval.c (fortran_value_subarray): New function, content is taken
1217 from...
1218 (evaluate_subexp_standard): ...here, in two places. Now arrays
1219 and strings both call the new function.
1220 (calc_f77_array_dims): Add header comment, handle strings.
1221
14f9473c
VC
12222020-09-18 Victor Collod <vcollod@nvidia.com>
1223
1224 PR gdb/26635
1225 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1226 (i386_analyze_prologue): Call i386_skip_endbr.
1227
b60cea74
TT
12282020-09-18 Tom Tromey <tromey@adacore.com>
1229
1230 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1231 (windows_nat_target::wait): Update.
1232 * target/wait.h (enum target_wait_flag): New. Use
1233 DEF_ENUM_FLAGS_TYPE.
1234 * target/target.h (target_wait): Change type of options.
1235 * target.h (target_options_to_string, default_target_wait):
1236 Update.
1237 (struct target_ops) <wait>: Change type of options.
1238 * target.c (target_wait, default_target_wait, do_option): Change
1239 type of "options".
1240 (target_options_to_string): Likewise.
1241 * target-delegates.c: Rebuild.
1242 * target-debug.h (target_debug_print_target_wait_flags): Rename
1243 from target_debug_print_options.
1244 * sol-thread.c (class sol_thread_target) <wait>: Update.
1245 (sol_thread_target::wait): Update.
1246 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1247 (rs6000_nat_target::wait): Update.
1248 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1249 Update.
1250 (remote_target::wait_ns, remote_target::wait_as): Change type of
1251 "options".
1252 (remote_target::wait): Update.
1253 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1254 (gdbsim_target::wait): Update.
1255 * record-full.c (class record_full_base_target) <wait>: Update.
1256 (record_full_wait_1): Change type of "options".
1257 (record_full_base_target::wait): Update.
1258 * record-btrace.c (class record_btrace_target) <wait>: Update.
1259 (record_btrace_target::wait): Update.
1260 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1261 Update.
1262 (ravenscar_thread_target::wait): Update.
1263 * procfs.c (class procfs_target) <wait>: Update.
1264 (procfs_target::wait): Update.
1265 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1266 * obsd-nat.c (obsd_nat_target::wait): Update.
1267 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1268 (nto_procfs_target::wait): Update.
1269 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1270 * nbsd-nat.c (nbsd_wait): Change type of "options".
1271 (nbsd_nat_target::wait): Update.
1272 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1273 (thread_db_target::wait): Update.
1274 * linux-nat.h (class linux_nat_target) <wait>: Update.
1275 * linux-nat.c (linux_nat_target::wait): Update.
1276 (linux_nat_wait_1): Update.
1277 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1278 "options".
1279 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1280 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1281 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1282 (go32_nat_target::wait): Update.
1283 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1284 * gnu-nat.c (gnu_nat_target::wait): Update.
1285 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1286 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1287 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1288 * darwin-nat.c (darwin_nat_target::wait): Update.
1289 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1290 (bsd_uthread_target::wait): Update.
1291 * aix-thread.c (class aix_thread_target) <wait>: Update.
1292 (aix_thread_target::wait): Update.
1293
0295dde6
AB
12942020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * compile/compile-object-run.c (create_copied_type_recursive): New
1297 function.
1298 (compile_object_run): Use new function.
1299
d3483b43
JT
13002020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1301
1302 * NEWS: Mention x86_64 Cygwin core file support.
1303
e7d612ad
JT
13042020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1305
1306 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1307 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1308
aff9d387
JT
13092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1310
62a5151b
JT
1311 * windows-tdep.h: Add prototypes.
1312 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1313 (i386_windows_core_pid_to_str): Move and rename ...
1314 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1315 (windows_core_pid_to_str): ... and here.
1316 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1317
13182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1319 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1320 (amd64_windows_init_abi_common): ... and register.
1321
7d155da3
JT
13222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1323
1324 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1325 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1326
e8ef12b9
PA
13272020-09-18 Pedro Alves <pedro@palves.net>
1328
1329 PR gdb/26631
1330 * thread.c (thread_find_command): Switch inferior before calling
1331 target methods.
1332
c1e1314d
TT
13332020-09-17 Tom Tromey <tromey@adacore.com>
1334
1335 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1336 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1337 (tdesc_arch_data_up): New typedef.
1338 (tdesc_use_registers, tdesc_data_alloc): Update.
1339 (tdesc_data_cleanup): Don't declare.
1340 * target-descriptions.c (tdesc_data_alloc): Return a
1341 tdesc_arch_data_up.
1342 (tdesc_arch_data_deleter::operator()): Rename from
1343 tdesc_data_cleanup. Change argument type.
1344 (tdesc_use_registers): Change early_data to an rvalue reference.
1345 (tdesc_use_registers): Don't use delete.
1346 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1347 * s390-tdep.c (s390_gdbarch_init): Update.
1348 * rx-tdep.c (rx_gdbarch_init): Update.
1349 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1350 * riscv-tdep.c (riscv_gdbarch_init): Update.
1351 * or1k-tdep.c (or1k_gdbarch_init): Update.
1352 * nios2-tdep.c (nios2_gdbarch_init): Update.
1353 * nds32-tdep.c (nds32_gdbarch_init): Update.
1354 * mips-tdep.c (mips_gdbarch_init): Update.
1355 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1356 * m68k-tdep.c (m68k_gdbarch_init): Update.
1357 * i386-tdep.c (i386_gdbarch_init): Update.
1358 * arm-tdep.c (arm_gdbarch_init): Update.
1359 * arc-tdep.c (arc_tdesc_init): Update.
1360 (arc_gdbarch_init): Update.
1361 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1362
0363df3d
HD
13632020-09-17 Hannes Domani <ssbssa@yahoo.de>
1364
1365 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1366 for WOW64 processes.
1367
280a9412
TT
13682020-09-17 Tom Tromey <tom@tromey.com>
1369
1370 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1371
6108fd18
TT
13722020-09-17 Tom Tromey <tom@tromey.com>
1373
1374 * value.c (preserve_values): Update.
1375 * python/py-type.c (save_objfile_types): Update.
1376 * guile/scm-type.c (save_objfile_types): Update.
1377 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1378 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1379 * compile/compile-object-run.c (compile_object_run): Update.
1380
fa9b1164
TT
13812020-09-17 Tom Tromey <tom@tromey.com>
1382
1383 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1384 Remove.
1385 <m_table>: Now htab_up.
1386 * typeprint.c (typedef_hash_table::recursively_update)
1387 (typedef_hash_table::add_template_parameters)
1388 (typedef_hash_table::typedef_hash_table): Update.
1389 (typedef_hash_table::~typedef_hash_table): Remove.
1390 (typedef_hash_table::typedef_hash_table)
1391 (typedef_hash_table::find_global_typedef)
1392 (typedef_hash_table::find_typedef): Update.
1393
eb53f105
TT
13942020-09-17 Tom Tromey <tom@tromey.com>
1395
1396 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1397
7a8a5d47
TT
13982020-09-17 Tom Tromey <tom@tromey.com>
1399
1400 * linespec.c (class decode_compound_collector)
1401 <~decode_compound_collector>: Remove.
1402 <m_unique_syms>: Now htab_up.
1403 (decode_compound_collector::operator ()): Update.
1404 (class symtab_collector) <~symtab_collector>: Remove.
1405 <m_symtab_table>: Now htab_up.
1406 (symtab_collector::operator ()): Update.
1407
99032cfc
TT
14082020-09-17 Tom Tromey <tom@tromey.com>
1409
1410 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1411 (filename_seen_cache::clear): Update.
1412 (~filename_seen_cache): Remove.
1413 (filename_seen_cache::seen): Update.
1414 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1415 htab_up.
1416 <~filename_seen_cache>: Remove.
1417 <traverse>: Update.
1418
32580f6d
TT
14192020-09-17 Tom Tromey <tom@tromey.com>
1420
1421 * completer.c (completion_tracker::discard_completions)
1422 (completion_tracker::~completion_tracker)
1423 (completion_tracker::maybe_add_completion)
1424 (completion_tracker::remove_completion)
1425 (completion_tracker::recompute_lowest_common_denominator)
1426 (completion_tracker::build_completion_result): Update.
1427 * completer.h (class completion_tracker) <have_completions>:
1428 Update.
1429 <m_entries_hash>: Now htab_up.
1430
c1fb9836
TT
14312020-09-17 Tom Tromey <tom@tromey.com>
1432
1433 * breakpoint.c (ambiguous_names_p): Use htab_up.
1434
88f07206
TT
14352020-09-17 Tom Tromey <tom@tromey.com>
1436
1437 * auto-load.c (struct auto_load_pspace_info)
1438 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1439 <loaded_script_files, loaded_script_texts>: Change type to
1440 htab_up.
1441 (~auto_load_pspace_info) Remove.
1442 (init_loaded_scripts_info, maybe_add_script_file)
1443 (maybe_add_script_text, auto_load_info_scripts): Update.
1444
9519b2ee
TT
14452020-09-17 Tom Tromey <tromey@adacore.com>
1446
1447 * c-exp.y (name_obstack): Now static.
1448
d2cd4113
CC
14492020-09-17 Chungyi Chi <demonic@csie.io>
1450
1451 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1452
b650a282
SM
14532020-09-16 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1456 (add_solib_catchpoint): Likewise.
1457 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1458 to bool.
1459 (add_solib_catchpoint): Change int parameter/variable to bool.
1460 (catch_load_or_unload): Likewise.
1461 (init_catchpoint): Likewise.
1462 (create_fork_vfork_event_catchpoint): Likewise.
1463 (catch_fork_command_1): Likewise.
1464 (catch_exec_command_1): Likewise.
1465
4d0bcfcf
SM
14662020-09-16 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1469 Change instance_flags to m_instance_flags.
1470
fe830662
TT
14712020-09-16 Tom Tromey <tromey@adacore.com>
1472
1473 PR gdb/26598:
1474 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1475
fe5ddfc3
JB
14762020-09-16 John Baldwin <jhb@FreeBSD.org>
1477
1478 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1479 PL_FLAG_EXEC.
1480 (fbsd_nat_target::insert_exec_catchpoint)
1481 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1482 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1483 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1484
e911c666
JB
14852020-09-16 John Baldwin <jhb@FreeBSD.org>
1486
1487 * configure.ac: Remove check for kinfo_getvmmap().
1488 * configure, config.in: Regenerate.
1489 * fbsd-nat.c (fbsd_read_mapping): Remove
1490 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1491 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1492 kinfo_get_vmmap() are always present.
1493
1f17d372
JB
14942020-09-16 John Baldwin <jhb@FreeBSD.org>
1495
1496 * fbsd-nat.c: Always include support for
1497 TARGET_OBJECT_SIGNAL_INFO.
1498
bcb1da7f
JB
14992020-09-16 John Baldwin <jhb@FreeBSD.org>
1500
1501 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1502 sysctl and remove procfs fallback.
1503
5515f729
JB
15042020-09-16 John Baldwin <jhb@FreeBSD.org>
1505
1506 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1507 * fbsd-nat.h: Likewise.
1508
da1df1db
TBA
15092020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1510
1511 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1512 argument.
1513
0e25e767
AB
15142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * ada-lang.c (ada_language_data): Delete.
1517 (ada_language): Remove references to ada_language_data.
1518 * c-lang.c (c_language_data): Delete.
1519 (c_language): Remove references to c_language_data.
1520 (cplus_language_data): Delete.
1521 (cplus_language): Remove references to cplus_language_data.
1522 (asm_language_data): Delete.
1523 (asm_language): Remove references to asm_language_data.
1524 (minimal_language_data): Delete.
1525 (minimal_language): Remove references to minimal_language_data.
1526 * d-lang.c (d_language_data): Delete.
1527 (d_language): Remove references to d_language_data.
1528 * f-lang.c (f_language_data): Delete.
1529 (f_language): Remove references to f_language_data.
1530 * go-lang.c (go_language_data): Delete.
1531 (go_language): Remove references to go_language_data.
1532 * language.c (unknown_language_data): Delete.
1533 (unknown_language): Remove references to unknown_language_data.
1534 (auto_language_data): Delete.
1535 (auto_language): Remove references to auto_language_data.
1536 * language.h (language_data): Delete struct.
1537 (language_defn): No longer inherit from language_data.
1538 * m2-lang.c (m2_language_data): Delete.
1539 (m2_language): Remove references to m2_language_data.
1540 * objc-lang.c (objc_language_data): Delete.
1541 (objc_language): Remove references to objc_language_data.
1542 * opencl-lang.c (opencl_language_data): Delete.
1543 (opencl_language): Remove references to opencl_language_data.
1544 * p-lang.c (pascal_language_data): Delete.
1545 (pascal_language): Remove references to pascal_language_data.
1546 * rust-lang.c (rust_language_data): Delete.
1547 (rust_language): Remove references to rust_language_data.
1548
b7c6e27d
AB
15492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1552 initializer.
1553 (ada_language::opcode_print_table): New member function.
1554 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1555 (c_language::opcode_print_table): New member function.
1556 (cplus_language_data): Remove la_op_print_tab initializer.
1557 (cplus_language::opcode_print_table): New member function.
1558 (asm_language_data): Remove la_op_print_tab initializer.
1559 (asm_language::opcode_print_table): New member function.
1560 (minimal_language_data): Remove la_op_print_tab initializer.
1561 (minimal_language::opcode_print_table): New member function.
1562 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1563 (d_language::opcode_print_table): New member function.
1564 * expprint.c (print_subexp_standard): Update call to
1565 opcode_print_table.
1566 (op_string): Likewise.
1567 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1568 (f_language::opcode_print_table): New member function.
1569 * go-lang.c (go_language_data): Remove la_op_print_tab
1570 initializer.
1571 (go_language::opcode_print_table): New member function.
1572 * language.c (unknown_language_data): Remove la_op_print_tab
1573 initializer.
1574 (unknown_language::opcode_print_table): New member function.
1575 (auto_language_data): Remove la_op_print_tab initializer.
1576 (auto_language::opcode_print_table): New member function.
1577 * language.h (language_data): Remove la_op_print_tab field.
1578 (language_defn::opcode_print_table): Declare new member function.
1579 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1580 initializer.
1581 (m2_language::opcode_print_table): New member function.
1582 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1583 initializer.
1584 (objc_language::opcode_print_table): New member function.
1585 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1586 initializer.
1587 (opencl_language::opcode_print_table): New member function.
1588 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1589 initializer.
1590 (pascal_language::opcode_print_table): New member function.
1591 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1592 initializer.
1593 (rust_language::opcode_print_table): New member function.
1594
5aba6ebe
AB
15952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1598 (ada_language::expression_ops): New member function.
1599 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1600 (c_language::expression_ops): New member function.
1601 (cplus_language_data): Remove la_exp_desc initializer.
1602 (cplus_language::expression_ops): New member function.
1603 (asm_language_data): Remove la_exp_desc initializer.
1604 (asm_language::expression_ops): New member function.
1605 (minimal_language_data): Remove la_exp_desc initializer.
1606 (minimal_language::expression_ops): New member function.
1607 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1608 (d_language::expression_ops): New member function.
1609 * eval.c (evaluate_subexp): Update call to expression_ops.
1610 * expprint.c (print_subexp): Likewise.
1611 (op_name): Likewise.
1612 (dump_subexp_body): Likewise.
1613 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1614 (f_language::expression_ops): New member function.
1615 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1616 (go_language::expression_ops): New member function.
1617 * language.c (language_defn::expression_ops): New function.
1618 (unknown_language_data): Remove la_exp_desc initializer.
1619 (auto_language_data): Likewise.
1620 * language.h (language_data): Remove la_exp_desc field.
1621 (language_defn::expression_ops): Declare new member function.
1622 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1623 (m2_language::expression_ops): New member function.
1624 * objc-lang.c (objc_language_data): Remove la_exp_desc
1625 initializer.
1626 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1627 initializer.
1628 (opencl_language::expression_ops): New member function.
1629 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1630 * parse.c (operator_length): Update call to expression_ops.
1631 (exp_iterate): Likewise.
1632 * rust-lang.c (rust_language_data): Remove la_exp_desc
1633 initializer.
1634 (ruse_language::expression_ops): New member function.
1635
b63a3f3f
AB
16362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1637
1638 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1639 initializer.
1640 (ada_language::varobj_ops): New member function.
1641 * c-lang.c (c_language_data): Remove la_varobj_ops
1642 initializer.
1643 (cplus_language_data): Likewise.
1644 (cplus_language::varobj_ops): New member function.
1645 (asm_language_data): Remove la_varobj_ops initializer.
1646 (minimal_language_data): Likewise.
1647 * d-lang.c (d_language_data): Likewise.
1648 * f-lang.c (f_language_data): Likewise.
1649 * go-lang.c (go_language_data): Likewise.
1650 * language.c (language_defn::varobj_ops): New function.
1651 (unknown_language_data): Remove la_varobj_ops
1652 initializer.
1653 (auto_language_data): Likewise.
1654 * language.h (language_data): Remove la_varobj_ops field.
1655 (language_defn::varobj_ops): Declare new member function.
1656 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1657 * objc-lang.c (objc_language_data): Likewise.
1658 * opencl-lang.c (opencl_language_data): Likewise.
1659 * p-lang.c (pascal_language_data): Likewise.
1660 * rust-lang.c (rust_language_data): Likewise.
1661 * varobj.c (varobj_create): Update call to varobj_ops.
1662 * varobj.h (default_varobj_ops): Delete define.
1663
1ac14a04
AB
16642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1667 initializer.
1668 * c-lang.c (c_language_data): Likewise.
1669 (c_language::macro_expansion): New member function.
1670 (cplus_language_data): Likewise.
1671 (cplus_language::macro_expansion): New member function.
1672 (asm_language_data): Likewise.
1673 (asm_language::macro_expansion): New member function.
1674 (minimal_language_data): Likewise.
1675 (minimal_language::macro_expansion): New member function.
1676 * d-lang.c (d_language_data): Remove la_macro_expansion
1677 initializer.
1678 * f-lang.c (f_language_data): Likewise.
1679 * go-lang.c (go_language_data): Likewise.
1680 * language.c (unknown_language_data): Likewise.
1681 (auto_language_data): Likewise.
1682 * language.h (language_data): Remove la_macro_expansion field.
1683 (language_defn::macro_expansion): New member function.
1684 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1685 initializer.
1686 * objc-lang.c (objc_language_data): Likewise.
1687 (objc_language::macro_expansion): New member function.
1688 * opencl-lang.c (opencl_language_data): Likewise.
1689 (opencl_language::macro_expansion): New member function.
1690 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1691 initializer.
1692 * rust-lang.c (rust_language_data): Likewise.
1693 * symtab.c (default_collect_symbol_completion_matches_break_on):
1694 Update call to macro_expansion.
1695
3a3440fb
AB
16962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * ada-lang.c (ada_language_data): Remove la_array_ordering
1699 initializer.
1700 * c-lang.c (c_language_data): Likewise.
1701 (cplus_language_data): Likewise.
1702 (asm_language_data): Likewise.
1703 (minimal_language_data): Likewise.
1704 * d-lang.c (d_language_data): Likewise.
1705 * dwarf2/read.c (read_array_order): Update for call to
1706 array_ordering.
1707 * f-lang.c (f_language_data): Remove la_array_ordering
1708 initializer.
1709 (f_language::array_ordering): New member function.
1710 * go-lang.c (go_language_data): Remove la_array_ordering
1711 initializer.
1712 * language.c (unknown_language_data): Likewise.
1713 (auto_language_data): Likewise.
1714 * language.h (language_data): Delete la_array_ordering field.
1715 (language_defn::array_ordering): New member function.
1716 * m2-lang.c (m2_language_data): Remove la_array_ordering
1717 initializer.
1718 * objc-lang.c (objc_language_data): Likewise.
1719 * opencl-lang.c (opencl_language_data): Likewise.
1720 * p-lang.c (pascal_language_data): Likewise.
1721 * rust-lang.c (rust_language_data): Likewise.
1722
0d201fa4
AB
17232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1726 initializer.
1727 * c-lang.c (c_language_data): Likewise.
1728 (cplus_language_data): Likewise.
1729 (asm_language_data): Likewise.
1730 (minimal_language_data): Likewise.
1731 * d-lang.c (d_language_data): Likewise.
1732 * f-lang.c (f_language_data): Likewise.
1733 (f_language::case_sensitivity): New member function.
1734 * go-lang.c (go_language_data): Remove la_case_sensitivity
1735 initializer.
1736 * language.c (enum case_mode): Moved here from language.h.
1737 (case_mode): Make static.
1738 (show_case_command): Update for case_sensitivity being a method.
1739 (set_case_command): Likewise.
1740 (set_range_case): Likewise.
1741 (unknown_language_data): Remove la_case_sensitivity initializer.
1742 (auto_language_data): Likewise.
1743 * language.h (case_mode): Delete, move enum declaration to
1744 language.c.
1745 (language_data): Delete la_case_sensitivity field.
1746 (language_defn::case_sensitivity): New member function.
1747 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1748 initializer.
1749 * objc-lang.c (objc_language_data): Likewise.
1750 * opencl-lang.c (opencl_language_data): Likewise.
1751 * p-lang.c (pascal_language_data): Likewise.
1752 * rust-lang.c (rust_language_data): Likewise.
1753
efdf6a73
AB
17542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * ada-lang.c (ada_language_data): Remove la_range_check
1757 initializer.
1758 * c-lang.c (c_language_data): Likewise.
1759 (cplus_language_data): Likewise.
1760 (asm_language_data): Likewise.
1761 (minimal_language_data): Likewise.
1762 * d-lang.c (d_language_data): Likewise.
1763 * f-lang.c (f_language_data): Likewise.
1764 (f_language::range_checking_on_by_default): New member function.
1765 * go-lang.c (go_language_data): Remove la_range_check initializer.
1766 * language.c (enum range_mode): Moved here from language.h.
1767 (range_mode): Made static.
1768 (show_range_command): Update to use
1769 range_checking_on_by_default.
1770 (set_range_command): Likewise.
1771 (set_range_case): Likewise.
1772 (unknown_language_data): Remove la_range_check initializer.
1773 (auto_language_data): Likewise.
1774 * language.h (range_mode): Delete. Enum definition moved to
1775 language.c.
1776 (language_data): Remove la_range_check field.
1777 (language_defn::range_checking_on_by_default): New member
1778 function.
1779 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1780 (m2_language::range_checking_on_by_default): New member function.
1781 * objc-lang.c (objc_language_data): Remove la_range_check
1782 initializer.
1783 * opencl-lang.c (opencl_language_data): Likewise.
1784 * p-lang.c (pascal_language_data): Likewise.
1785 (pascal_language::range_checking_on_by_default): New member
1786 function.
1787 * rust-lang.c (rust_language_data): Remove la_range_check
1788 initializer.
1789 (rust_language::range_checking_on_by_default): New member
1790 function.
1791
bf92aec5
AB
17922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * dwarf2/read.c (dwarf2_physname): Remove special case for
1795 language_go.
1796 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1797 member function.
1798
d3355e4d
AB
17992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * ada-lang.c (ada_language_data): Remove
1802 la_store_sym_names_in_linkage_form_p initializer.
1803 (ada_language::store_sym_names_in_linkage_form_p): New member
1804 function.
1805 * c-lang.c (c_language_data): Remove
1806 la_store_sym_names_in_linkage_form_p initializer.
1807 (c_language::store_sym_names_in_linkage_form_p): New member
1808 function.
1809 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1810 initializer.
1811 (asm_language_data): Likewise.
1812 (asm_language::store_sym_names_in_linkage_form_p): New member
1813 function.
1814 (minimal_language_data): Remove
1815 la_store_sym_names_in_linkage_form_p initializer.
1816 (minimal_language::store_sym_names_in_linkage_form_p): New member
1817 function.
1818 * d-lang.c (d_language_data): Remove
1819 la_store_sym_names_in_linkage_form_p initializer.
1820 * dwarf2/read.c (dwarf2_physname): Update call to
1821 store_sym_names_in_linkage_form_p.
1822 * f-lang.c (f_language_data): Remove
1823 la_store_sym_names_in_linkage_form_p initializer.
1824 * go-lang.c (go_language_data): Remove
1825 la_store_sym_names_in_linkage_form_p initializer.
1826 * language.c (unknown_language_data): Remove
1827 la_store_sym_names_in_linkage_form_p initializer.
1828 (unknown_language::store_sym_names_in_linkage_form_p): New member
1829 function.
1830 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1831 initializer.
1832 (auto_language::store_sym_names_in_linkage_form_p): New member
1833 function.
1834 * language.h (language_data): Remove
1835 la_store_sym_names_in_linkage_form_p member variable.
1836 (language_defn::store_sym_names_in_linkage_form_p): New member
1837 function.
1838 * m2-lang.c (m2_language_data): Remove
1839 la_store_sym_names_in_linkage_form_p initializer.
1840 * objc-lang.c (objc_language_data): Likewise.
1841 * opencl-lang.c (opencl_language_data): Likewise.
1842 * p-lang.c (pascal_language_data): Likewise.
1843 * rust-lang.c (rust_language_data): Likewise.
1844
22c12a6c
AB
18452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1846
1847 * ada-lang.c (ada_language_data): Remove string_lower_bound
1848 initializer.
1849 * c-lang.c (c_language_data): Likewise.
1850 (cplus_language_data): Likewise.
1851 (asm_language_data): Likewise.
1852 (minimal_language_data): Likewise.
1853 * d-lang.c (d_language_data): Likewise.
1854 * f-lang.c (f_language_data): Likewise.
1855 * go-lang.c (go_language_data): Likewise.
1856 * language.c (unknown_language_data): Likewise.
1857 (auto_language_data): Likewise.
1858 * language.h (language_data): Remove string_lower_bound field.
1859 (language_defn::string_lower_bound): New member function.
1860 * m2-lang.c (m2_language_data): Remove string_lower_bound
1861 initializer.
1862 (m2_language::string_lower_bound): New member function.
1863 * objc-lang.c (objc_language_data): Remove string_lower_bound
1864 initializer.
1865 * opencl-lang.c (opencl_language_data): Likewise.
1866 * p-lang.c (pascal_language_data): Likewise.
1867 * rust-lang.c (rust_language_data): Likewise.
1868 * valops.c (value_cstring): Update call to string_lower_bound.
1869 (value_string): Likewise.
1870 * value.c (allocate_repeated_value): Likewise.
1871
1c236ddd
AB
18722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1873
1874 * valops.c (value_repeat): Fix incorrect argument name in comment.
1875
67bd3fd5
AB
18762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * ada-lang.c (ada_language_data): Remove c_style_arrays
1879 initializer.
1880 (ada_language::c_style_arrays_p): New member fuction.
1881 * c-lang.c (c_language_data): Remove c_style_arrays
1882 initializer.
1883 (cplus_language_data): Likewise.
1884 (asm_language_data): Likewise.
1885 (minimal_language_data): Likewise.
1886 * d-lang.c (d_language_data): Likewise.
1887 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1888 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1889 (f_language::c_style_arrays_p): New member function.
1890 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1891 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1892 * language.c (unknown_language_data): Remove c_style_arrays
1893 initializer.
1894 (auto_language_data): Likewise.
1895 * language.h (language_data): Remove c_style_arrays field.
1896 (language_defn::c_style_arrays_p): New member function.
1897 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1898 (m2_language::c_style_arrays_p): New member function.
1899 * objc-lang.c (objc_language_data): Remove c_style_arrays
1900 initializer.
1901 * opencl-lang.c (opencl_language_data): Likewise.
1902 * p-lang.c (pascal_language_data): Likewise.
1903 * rust-lang.c (rust_language_data): Likewise.
1904 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1905 and update local variable to a bool.
1906 * valops.c (value_cast): Update call to c_style_arrays_p.
1907 (value_array): Likewise.
1908 * value.c (coerce_array): Likewise.
1909
85967615
AB
19102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * ada-lang.c (ada_language_data): Remove la_language initializer.
1913 * c-lang.c (c_language_data): Likewise.
1914 (cplus_language_data): Likewise.
1915 (asm_language_data): Likewise.
1916 (minimal_language_data): Likewise.
1917 * d-lang.c (d_language_data): Likewise.
1918 * f-lang.c (f_language_data): Likewise.
1919 * go-lang.c (go_language_data): Likewise.
1920 * language.c (unknown_language_data): Likewise.
1921 (auto_language_data): Likewise.
1922 * language.h (language_data): Remove la_language field.
1923 (language_defn::language_defn): Initialise la_language field.
1924 (language_defn::la_language): New member variable.
1925 * m2-lang.c (m2_language_data): Remove la_language field.
1926 * objc-lang.c (objc_language_data): Likewise.
1927 * opencl-lang.c (opencl_language_data): Likewise.
1928 * p-lang.c (pascal_language_data): Likewise.
1929 * rust-lang.c (rust_language_data): Likewise.
1930
e171d6f1
AB
19312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * ada-lang.c (ada_extensions): Delete, moved into
1934 ada_language::filename_extensions.
1935 (ada_language_data): Remove la_filename_extensions initializer.
1936 (ada_language::filename_extensions): New member function.
1937 * c-lang.c (c_extensions): Delete, moved into
1938 c_language::filename_extensions.
1939 (c_language_data): Remove la_filename_extensions initializer.
1940 (c_language::filename_extensions): New member function.
1941 (cplus_extensions): Delete, moved into
1942 cplus_language::filename_extensions.
1943 (cplus_language_data): Remove la_filename_extensions initializer.
1944 (cplus_language::filename_extensions): New member function.
1945 (asm_extensions): Delete, moved into
1946 asm_language::filename_extensions.
1947 (asm_language_data): Remove la_filename_extensions initializer.
1948 (asm_language::filename_extensions): New member function.
1949 (minimal_language_data): Remove la_filename_extensions
1950 initializer.
1951 * d-lang.c (d_extensions): Delete, moved into
1952 d_language::filename_extensions.
1953 (d_language_data): Remove la_filename_extensions initializer.
1954 (d_language::filename_extensions): New member function.
1955 * f-lang.c (f_extensions): Delete, moved into
1956 f_language::filename_extensions.
1957 (f_language_data): Remove la_filename_extensions initializer.
1958 (f_language::filename_extensions): New member function.
1959 * go-lang.c (go_language_data): Remove la_filename_extensions
1960 initializer.
1961 * language.c (add_set_language_command): Update now that
1962 filename_extensions returns a vector.
1963 (unknown_language_data): Remove la_filename_extensions
1964 initializer.
1965 (auto_language_data): Likewise.
1966 * language.h (language_data): Remove la_filename_extensions field.
1967 (language_defn::filename_extensions): New member function.
1968 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1969 initializer.
1970 * objc-lang.c (objc_extensions): Delete, moved into
1971 objc_language::filename_extensions.
1972 (objc_language_data): Remove la_filename_extensions initializer.
1973 (objc_language::filename_extensions): New member function.
1974 * opencl-lang.c (opencl_language_data): Remove
1975 la_filename_extensions initializer.
1976 * p-lang.c (pascal_extensions): Delete, moved into
1977 pascal_language::filename_extensions.
1978 (pascal_language_data): Remove la_filename_extensions initializer.
1979 (pascal_language::filename_extensions): New member function.
1980 * rust-lang.c (rust_extensions): Delete, moved into
1981 rust_language::filename_extensions.
1982 (rust_language_data): Remove la_filename_extensions initializer.
1983 (rust_language::filename_extensions): New member function.
1984 * symfile.c (add_filename_language): Add new assert.
1985
6f7664a9
AB
19862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * ada-lang.c (ada_language_data): Remove la_name and
1989 la_natural_name initializers.
1990 (ada_language::name): New member function.
1991 (ada_language::natural_name): New member function.
1992 * c-lang.c (c_language_data): Remove la_name and
1993 la_natural_name initializers.
1994 (c_language::name): New member function.
1995 (c_language::natural_name): New member function.
1996 (cplus_language_data): Remove la_name and
1997 la_natural_name initializers.
1998 (cplus_language::name): New member function.
1999 (cplus_language::natural_name): New member function.
2000 (asm_language_data): Remove la_name and
2001 la_natural_name initializers.
2002 (asm_language::name): New member function.
2003 (asm_language::natural_name): New member function.
2004 (minimal_language_data): Remove la_name and
2005 la_natural_name initializers.
2006 (minimal_language::name): New member function.
2007 (minimal_language::natural_name): New member function.
2008 * compile/compile.c (compile_to_object): Update call to
2009 lanugage_defn::name.
2010 * d-lang.c (d_language_data): Remove la_name and
2011 la_natural_name initializers.
2012 (d_language::name): New member function.
2013 (d_language::natural_name): New member function.
2014 * expprint.c (print_subexp_standard): Update call to
2015 language_defn::name.
2016 (dump_raw_expression): Likewise
2017 (dump_prefix_expression): Likewise.
2018 * f-lang.c (f_language_data): Remove la_name and
2019 la_natural_name initializers.
2020 (f_language::name): New member function.
2021 (f_language::natural_name): New member function.
2022 * go-lang.c (go_language_data): Remove la_name and
2023 la_natural_name initializers.
2024 (go_language::name): New member function.
2025 (go_language::natural_name): New member function.
2026 * language.c (show_language_command): Update call to
2027 language_defn::name.
2028 (set_language_command): Likewise.
2029 (language_enum): Likewise.
2030 (language_str): Likewise.
2031 (add_set_language_command): Likewise, use
2032 language_defn::natural_name in the doc string.
2033 (unknown_language_data): Remove la_name and
2034 la_natural_name initializers.
2035 (unknown_language::name): New member function.
2036 (unknown_language::natural_name): New member function.
2037 (auto_language_data): Remove la_name and
2038 la_natural_name initializers.
2039 (auto_language::name): New member function.
2040 (auto_language::natural_name): New member function.
2041 (language_lookup_primitive_type_as_symbol): Update call to
2042 language_defn::name.
2043 * language.h (language_data): Remove la_name and la_natural_name
2044 member variables.
2045 (language_defn::name): New member function.
2046 (language_defn::natural_name): New member function.
2047 * m2-lang.c (m2_language_data): Remove la_name and
2048 la_natural_name initializers.
2049 (m2_language::name): New member function.
2050 (m2_language::natural_name): New member function.
2051 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2052 language_defn::natural_name.
2053 * objc-lang.c (objc_language_data): Remove la_name and
2054 la_natural_name initializers.
2055 (objc_language::name): New member function.
2056 (objc_language::natural_name): New member function.
2057 * opencl-lang.c (opencl_language_data): Remove la_name and
2058 la_natural_name initializers.
2059 (opencl_language::name): New member function.
2060 (opencl_language::natural_name): New member function.
2061 * p-lang.c (pascal_language_data): Remove la_name and
2062 la_natural_name initializers.
2063 (pascal_language::name): New member function.
2064 (pascal_language::natural_name): New member function.
2065 * rust-lang.c (rust_language_data): Remove la_name and
2066 la_natural_name initializers.
2067 (rust_language::name): New member function.
2068 (rust_language::natural_name): New member function.
2069 * symtab.c (lookup_language_this): Update call to
2070 language_defn::name.
2071
5bae7c4e
AB
20722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * ada-lang.c (ada_language_data): Remove la_name_of_this
2075 initializer.
2076 * ax-gdb.c (gen_expr): Update call to name_of_this.
2077 * c-exp.y (classify_name): Likewise.
2078 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2079 (cplus_language_data): Likewise.
2080 (cplus_language::name_of_this): New member function.
2081 (asm_language_data): Remove la_name_of_this initializer.
2082 (minimal_language_data): Likewise.
2083 * d-lang.c (d_language_data): Likewise.
2084 (d_language::name_of_this): New member function.
2085 * expprint.c (print_subexp_standard): Update call to name_of_this.
2086 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2087 * go-lang.c (go_language_data): Likewise.
2088 * language.c (unknown_language_data): Likewise.
2089 (unknown_language::name_of_this): New member function.
2090 (auto_language_data): Remove la_name_of_this initializer.
2091 (auto_language::name_of_this): New member function.
2092 * language.h (language_data): Delete la_name_of_this member
2093 variable.
2094 (language_defn::name_of_this): New member function.
2095 * m2-lang.c (m2_language_data): Remove la_name_of_this
2096 initializer.
2097 * objc-lang.c (objc_language_data): Likewise.
2098 (objc_language::name_of_this): New member function.
2099 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2100 initializer.
2101 * p-lang.c (pascal_language_data): Likewise.
2102 (pascal_language::name_of_this): New member function.
2103 * rust-lang.c (rust_language_data): Remove la_name_of_this
2104 initializer.
2105 * symtab.c (lookup_language_this): Update call to name_of_this.
2106 (lookup_symbol_aux): Likewise.
2107 * valops.c (value_of_this): Likewise.
2108
22e3f3ed
AB
21092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * ada-lang.c (ada_language_data): Remove
2112 la_struct_too_deep_ellipsis initializer.
2113 (ada_language::struct_too_deep_ellipsis): New member function.
2114 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2115 initializer.
2116 (cplus_language_data): Likewise.
2117 (asm_language_data): Likewise.
2118 (minimal_language_data): Likewise.
2119 * cp-valprint.c (cp_print_value): Update call to
2120 struct_too_deep_ellipsis.
2121 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2122 initializer.
2123 * f-lang.c (f_language_data): Likewise.
2124 (f_language::struct_too_deep_ellipsis): New member function.
2125 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2126 initializer.
2127 * language.c (unknown_language_data): Likewise.
2128 (auto_language_data): Likewise.
2129 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2130 member variable.
2131 (language_defn::struct_too_deep_ellipsis): New member function.
2132 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2133 initializer.Q
2134 * objc-lang.c (objc_language_data): Likewise.
2135 * opencl-lang.c (opencl_language_data): Likewise.
2136 * p-lang.c (pascal_language_data): Likewise.
2137 * rust-lang.c (rust_language_data): Likewise.
2138 * valprint.c (val_print_check_max_depth): Update call to
2139 struct_too_deep_ellipsis.
2140
ed29e1c7
FW
21412020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2142
2143 * MAINTAINERS (Write After Approval): Add myself.
2144
12d8f940
TT
21452020-09-15 Tom Tromey <tom@tromey.com>
2146
2147 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2148 Remove.
2149
6b5a7bc7
TT
21502020-09-15 Tom Tromey <tom@tromey.com>
2151
2152 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2153 and TYPE_CODE_METHODPTR cases.
2154 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2155 (c_value_print_inner): Update.
2156 * valprint.c (generic_value_print_memberptr): New function, from
2157 c_value_print_memberptr.
2158 (generic_value_print): Use it. Call cplus_print_method_ptr.
2159
47f0e2ff
TT
21602020-09-15 Tom Tromey <tromey@adacore.com>
2161
2162 * python/python-internal.h (PyInt_FromLong): Remove define.
2163 * python/py-value.c (convert_value_from_python): Use
2164 gdb_py_object_from_longest.
2165 * python/py-type.c (typy_get_code): Use
2166 gdb_py_object_from_longest.
2167 * python/py-symtab.c (salpy_get_line): Use
2168 gdb_py_object_from_longest.
2169 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2170 gdb_py_object_from_longest.
2171 * python/py-record.c (recpy_gap_reason_code): Use
2172 gdb_py_object_from_longest.
2173 * python/py-record-btrace.c (recpy_bt_insn_size)
2174 (recpy_bt_func_level, btpy_list_count): Use
2175 gdb_py_object_from_longest.
2176 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2177 gdb_py_object_from_longest. Fix error handling.
2178 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2179 gdb_py_object_from_longest.
2180 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2181 gdb_py_object_from_longest.
2182 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2183 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2184 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2185
512116ce
TT
21862020-09-15 Tom Tromey <tromey@adacore.com>
2187
2188 * python/python.c (gdbpy_parameter_value): Use
2189 gdb_py_object_from_ulongest.
2190
4ab1029c
TT
21912020-09-15 Tom Tromey <tromey@adacore.com>
2192
2193 * python/py-infevents.c (create_register_changed_event_object):
2194 Use gdb_py_object_from_longest.
2195 * python/py-exitedevent.c (create_exited_event_object): Use
2196 gdb_py_object_from_longest.
2197
062534d4
TT
21982020-09-15 Tom Tromey <tromey@adacore.com>
2199
2200 * python/python.c (gdbpy_parameter_value): Use
2201 gdb_py_object_from_longest.
2202 * python/py-type.c (convert_field, typy_range): Use
2203 gdb_py_object_from_longest.
2204 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2205 gdb_py_object_from_longest.
2206 * python/py-lazy-string.c (stpy_get_length): Use
2207 gdb_py_object_from_longest.
2208 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2209 gdb_py_object_from_longest.
2210 * python/py-infevents.c (create_memory_changed_event_object): Use
2211 gdb_py_object_from_longest.
2212 * python/py-inferior.c (infpy_get_num): Use
2213 gdb_py_object_from_longest.
2214 (infpy_get_pid): Likewise.
2215
d1cab987
TT
22162020-09-15 Tom Tromey <tromey@adacore.com>
2217
2218 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2219 defines.
2220 * python/py-value.c (valpy_long): Use
2221 gdb_py_object_from_ulongest.
2222 * python/py-symtab.c (salpy_get_pc): Use
2223 gdb_py_object_from_ulongest.
2224 (salpy_get_last): Likewise.
2225 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2226 gdb_py_object_from_ulongest.
2227 * python/py-lazy-string.c (stpy_get_address): Use
2228 gdb_py_object_from_ulongest.
2229 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2230 * python/py-arch.c (archpy_disassemble): Use
2231 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2232 error handling.
2233
4bde49dc
TT
22342020-09-15 Tom Tromey <tromey@adacore.com>
2235
2236 * python/python-internal.h (gdb_py_long_from_longest): Remove
2237 defines.
2238 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2239 * python/py-type.c (convert_field, typy_get_sizeof): Use
2240 gdb_py_object_from_longest.
2241 * python/py-record-btrace.c (btpy_list_index): Use
2242 gdb_py_object_from_longest.
2243
37431074
TT
22442020-09-15 Tom Tromey <tromey@adacore.com>
2245
2246 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2247 * python/py-record.c (recpy_element_number): Use
2248 gdb_py_object_from_longest.
2249 (recpy_gap_number): Likewise.
2250
cbe25684
TT
22512020-09-15 Tom Tromey <tromey@adacore.com>
2252
2253 * top.c (ui::ui): Update.
2254 (highest_ui_num): Remove.
2255 * top.h (struct ui) <num>: Remove.
2256
db92ac45
TT
22572020-09-15 Tom Tromey <tromey@adacore.com>
2258
2259 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2260 * ui-style.c (ansi_regex_text): Now array.
2261 * rust-exp.y (number_regex_text): Now array.
2262 * linespec.c (linespec_quote_characters): Now array.
2263 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2264 Now arrays.
2265
d2b31b67
SM
22662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2267
2268 * debuginfod-support.c (debuginfod_client_deleter): New.
2269 (debuginfod_client_up): New.
2270 (debuginfod_init): Return debuginfod_client_up.
2271 (debuginfod_source_query): Adjust.
2272 (debuginfod_debuginfo_query): Adjust.
2273
3246bd8e
SM
22742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * debuginfod-support.c (debuginfod_source_query): Use
2277 make_unique_xstrdup.
2278
10242f36
SM
22792020-09-14 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2282 with `type::instance_flags`.
2283
e1044e6a
MM
22842020-09-14 Michael Mullin <masmullin@gmail.com>
2285
2286 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2287 Remove baton parameter.
2288
04902b09
PA
22892020-09-14 Pedro Alves <pedro@palves.net>
2290
2291 * Makefile.in (SELFTESTS_SRCS): Add
2292 unittests/enum-flags-selftests.c.
2293 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2294 btrace_function_flags instead of enum btrace_function_flag.
2295 * compile/compile-c-types.c (convert_qualified): Use
2296 enum_flags::raw.
2297 * compile/compile-cplus-symbols.c (convert_one_symbol)
2298 (convert_symbol_bmsym):
2299 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2300 (compile_cplus_convert_struct_or_union_methods)
2301 (compile_cplus_instance::convert_qualified_base):
2302 * go-exp.y (parse_string_or_char): Add cast to int.
2303 * unittests/enum-flags-selftests.c: New file.
2304 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2305 type to btrace_thread_flags from btrace_thread_flag.
2306 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2307 local's type to btrace_thread_flags from btrace_thread_flag. Add
2308 cast in DEBUG call.
2309
69896a2c
PA
23102020-09-14 Pedro Alves <pedro@palves.net>
2311
2312 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2313 * gdbtypes.c (address_space_name_to_int): Rename to ...
2314 (address_space_name_to_type_instance_flags): ... this.
2315 (address_space_int_to_name): Rename to ...
2316 (address_space_type_instance_flags_to_name): ... this.
2317 * gdbtypes.h (address_space_name_to_int): Rename to ...
2318 (address_space_name_to_type_instance_flags): ... this.
2319 (address_space_int_to_name): Rename to ...
2320 (address_space_type_instance_flags_to_name): ... this.
2321 * type-stack.c (type_stack::insert): Adjust to rename.
2322 * type-stack.h (type_stack::insert): Likewise.
2323
314ad88d
PA
23242020-09-14 Pedro Alves <pedro@palves.net>
2325 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * avr-tdep.c (avr_address_class_type_flags): Return
2328 type_instance_flags.
2329 (avr_address_class_type_flags_to_name): Take a
2330 type_instance_flags.
2331 (avr_address_class_name_to_type_flags): Return bool and take a
2332 type_instance_flags.
2333 * d-lang.c (build_d_types): Use type::set_instance_flags.
2334 * ft32-tdep.c (ft32_address_class_type_flags): Return
2335 type_instance_flags.
2336 (ft32_address_class_type_flags_to_name): Take a
2337 type_instance_flags.
2338 (ft32_address_class_name_to_type_flags): Return bool and take a
2339 type_instance_flags.
2340 (ft32_gdbarch_init): Use type::set_instance_flags.
2341 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2342 * gdbarch.h, gdbarch.c: Regenerate.
2343 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2344 (address_class_name_to_type_flags): Use type_instance_flags and
2345 bool.
2346 * gdbtypes.c (address_space_name_to_int)
2347 (address_space_int_to_name, make_qualified_type): Use
2348 type_instance_flags.
2349 (make_qualified_type): Use type_instance_flags and
2350 type::set_instance_flags.
2351 (make_type_with_address_space, make_cv_type, make_vector_type)
2352 (check_typedef): Use type_instance_flags.
2353 (recursive_dump_type): Cast type_instance_flags to unsigned for
2354 printing.
2355 (copy_type_recursive): Use type::set_instance_flags.
2356 (gdbtypes_post_init): Use type::set_instance_flags.
2357 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2358 <m_instance_flags>: ... this.
2359 <instance_flags, set_instance_flags>: New methods.
2360 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2361 (SET_TYPE_INSTANCE_FLAGS): New.
2362 (address_space_name_to_int, address_space_int_to_name)
2363 (make_type_with_address_space): Pass flags using
2364 type_instance_flags instead of int.
2365 * stabsread.c (cleanup_undefined_types_noname): Use
2366 type::set_instance_flags.
2367 * s390-tdep.c (s390_address_class_type_flags): Return
2368 type_instance_flags.
2369 (s390_address_class_type_flags_to_name): Take a
2370 type_instance_flags.
2371 (s390_address_class_name_to_type_flags): Return bool and take a
2372 type_instance_flags.
2373 * type-stack.c (type_stack::follow_types): Use
2374 type_instance_flags.
2375 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2376
27087b7f
TT
23772020-09-14 Tom Tromey <tromey@adacore.com>
2378
2379 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2380 * x86-tdep.c (x86_is_thunk_register_name)
2381 (x86_in_indirect_branch_thunk): Update.
2382 * sparc64-tdep.c (sparc64_fpu_register_names)
2383 (sparc64_cp0_register_names, sparc64_register_names)
2384 (sparc64_pseudo_register_names): Now const.
2385 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2386 cp0_registers_num>: Now const.
2387 * sparc-tdep.c (sparc_core_register_names)
2388 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2389 (sparc32_pseudo_register_names): Now const.
2390 (validate_tdesc_registers): Update.
2391 * rust-lang.c (rust_extensions): Now const.
2392 * p-lang.c (p_extensions): Now const.
2393 * objc-lang.c (objc_extensions): Now const.
2394 * nto-tdep.c (nto_thread_state_str): Now const.
2395 * moxie-tdep.c (moxie_register_names): Now const.
2396 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2397 Now const.
2398 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2399 (mips_linux_reg_names): Now const.
2400 (mips_gdbarch_init): Update.
2401 * microblaze-tdep.c (microblaze_register_names): Now const.
2402 * m68k-tdep.c (m68k_register_names): Now const.
2403 * m32r-tdep.c (m32r_register_names): Now const.
2404 * ia64-tdep.c (ia64_register_names): Now const.
2405 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2406 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2407 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2408 ymm_avx512_register_names, pkeys_register_names>: Now const.
2409 * i386-tdep.c (i386_register_names, i386_zmm_names)
2410 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2411 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2412 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2413 * f-lang.c (f_extensions): Now const.
2414 * d-lang.c (d_extensions): Now const.
2415 * csky-tdep.c (csky_register_names): Now const.
2416 * charset.c (default_charset_names, charset_enum): Now const.
2417 (_initialize_charset): Update.
2418 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2419 const.
2420 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2421 (bsd_uthread_solib_loaded): Update.
2422 (bsd_uthread_state): Now const.
2423 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2424 (amd64_ymm_avx512_names, amd64_ymmh_names)
2425 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2426 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2427 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2428 (amd64_dword_names): Now const.
2429 * agent.c (can_use_agent_enum): Now const.
2430 * ada-tasks.c (task_states, long_task_states): Now const.
2431 * ada-lang.c (known_runtime_file_name_patterns)
2432 (known_auxiliary_function_name_patterns, attribute_names)
2433 (standard_exc, ada_extensions): Now const.
2434
89806626
SM
24352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * bcache.h (struct bcache) <bcache>: Remove constructor.
2438 <m_hash_function, m_compare_function>: Remove.
2439 <~bcache>: Make virtual.
2440 <compare>: Remove static method, introduce virtual method.
2441 <default_hash>: Remove.
2442 <hash>: New virtual method.
2443 * bcache.c (bcache::expand_hash_table): Update.
2444 (bcache::insert): Update.
2445 (bcache::hash): New.
2446 (bcache::compare): Update comment and parameter names.
2447 * gdbtypes.c (types_deeply_equal): Update.
2448 * psymtab.h (struct psymbol_bcache): New struct.
2449 (class psymtab_storage) <psymtab_storage>: Make default.
2450 <psymbol_cache>: Change type to psymbol_bcache.
2451 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2452 (psymbol_hash): Change to...
2453 (psymbol_bcache::hash): ... this.
2454 (psymbol_compare): Change to...
2455 (psymbol_bcache::compare): ... this.
2456
677c92fe
SM
24572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2458
2459 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2460 checking for initial lwp.
2461
3eba3a01
TT
24622020-09-14 Tom Tromey <tromey@adacore.com>
2463
2464 * m68k-tdep.c (m68k_extract_return_value): Use
2465 pointer_result_regnum.
2466 (m68k_store_return_value): Likewise.
2467 (m68k_reg_struct_return_p): Handle vectors and arrays.
2468 (m68k_return_value): Handle arrays.
2469 (m68k_svr4_return_value): Fix single-element aggregate handling.
2470 Handle long double. Adjust for embedded ABI.
2471 (m68k_svr4_init_abi): Set pointer_result_regnum.
2472 (m68k_embedded_init_abi): New function.
2473 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2474 (m68k_osabi_sniffer): New function.
2475 (_initialize_m68k_tdep): Register osabi sniffer.
2476 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2477 member.
2478
33f4dd48
SM
24792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2480
2481 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2482 with gdb::unique_xmalloc_ptr<char>.
2483
8400a90d
SM
24842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2485
2486 * xml-support.h (xml_fetch_another): Change type to be a
2487 function_view.
2488 (xml_process_xincludes): Remove baton parameter.
2489 (xml_fetch_content_from_file): Change baton parameter to
2490 dirname.
2491 * xml-support.c (struct xinclude_parsing_data)
2492 <xinclude_parsing_data>: Remove baton parameter.
2493 <fetcher_baton>: Remove.
2494 (xinclude_start_include): Adjust.
2495 (xml_process_xincludes): Adjust.
2496 (xml_fetch_content_from_file): Replace baton parameter with
2497 dirname.
2498 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2499 (xml_init_syscalls_info): Use a lambda.
2500 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2501 (file_read_description_xml): Use a lambda.
2502 (fetch_available_features_from_target): Change baton parameter
2503 to target_ops.
2504 (target_read_description_xml): Use a lambda.
2505 (target_fetch_description_xml): Use a lambda.
2506 (string_read_description_xml): Update.
2507
04f5bab2
SM
25082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2509
2510 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2511 uses with type::endianity_is_not_default.
2512
db558e34
SM
25132020-09-14 Simon Marchi <simon.marchi@efficios.com>
2514
2515 * gdbtypes.h (struct type) <endianity_is_not_default,
2516 set_endianity_is_not_default>: New methods.
2517 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2518 type::endianity_is_not_default, change all write call sites to
2519 use type::set_endianity_is_not_default.
2520
22c4c60c
SM
25212020-09-14 Simon Marchi <simon.marchi@efficios.com>
2522
2523 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2524 uses with type::is_fixed_instance.
2525
9cdd0d12
SM
25262020-09-14 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * gdbtypes.h (struct type) <is_fixed_instance,
2529 set_is_fixed_instance>: New methods.
2530 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2531 write call sites to use type::set_is_fixed_instance.
2532
0becda7a
SM
25332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2534
2535 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2536 uses with type::is_gnu_ifunc.
2537
03cc7249
SM
25382020-09-14 Simon Marchi <simon.marchi@efficios.com>
2539
2540 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2541 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2542 use type::set_is_gnu_ifunc.
2543
3f46044c
SM
25442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2545
2546 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2547 uses with type::stub_is_supported.
2548
9baccff6
SM
25492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2550
2551 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2552 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2553 use type::set_stub_is_supported.
2554
bd63c870
SM
25552020-09-14 Simon Marchi <simon.marchi@efficios.com>
2556
2557 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2558 uses with type::is_vector.
2559
2062087b
SM
25602020-09-14 Simon Marchi <simon.marchi@efficios.com>
2561
2562 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2563 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2564 use type::set_is_vector.
2565
a409645d
SM
25662020-09-14 Simon Marchi <simon.marchi@efficios.com>
2567
2568 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2569 uses with type::has_varargs.
2570
1d6286ed
SM
25712020-09-14 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2574 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2575 use type::set_has_varargs.
2576
7f9f399b
SM
25772020-09-14 Simon Marchi <simon.marchi@efficios.com>
2578
2579 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2580 uses with type::is_prototyped.
2581
27e69b7a
SM
25822020-09-14 Simon Marchi <simon.marchi@efficios.com>
2583
2584 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2585 New methods.
2586 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2587 call sites to use type::set_is_prototyped.
2588
d2183968
SM
25892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2590
2591 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2592 uses with type::target_is_stub.
2593
8f53807e
SM
25942020-09-14 Simon Marchi <simon.marchi@efficios.com>
2595
2596 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2597 New methods.
2598 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2599 sites to use type::set_target_is_stub.
2600
e46d3488
SM
26012020-09-14 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * gdbtypes.h (TYPE_STUB): Remove, replace all
2604 uses with type::is_stub.
2605
b4b73759
SM
26062020-09-14 Simon Marchi <simon.marchi@efficios.com>
2607
2608 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2609 (TYPE_STUB): Use type::is_stub, change all write call sites to
2610 use type::set_is_stub.
2611
20ce4123
SM
26122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2613
2614 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2615 type::has_no_signedness.
2616
15152a54
SM
26172020-09-14 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * gdbtypes.h (struct type) <has_no_signedness,
2620 set_has_no_signedness>: New methods.
2621 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2622 call sites to use type::set_has_no_signedness.
2623
c6d940a9
SM
26242020-09-14 Simon Marchi <simon.marchi@efficios.com>
2625
2626 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2627 type::is_unsigned.
2628
653223d3
SM
26292020-09-14 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2632 methods.
2633 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2634 sites to use type::set_is_unsigned.
2635
55ea94da 26362020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2637 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2638
e851246a
SM
2639 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2640 pointer and stack frame offset when unwinding.
55ea94da 2641
6791b117
PA
26422020-09-13 Pedro Alves <pedro@palves.net>
2643
2644 * NEWS: Document "-break-insert --qualified".
2645 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2646
77f2120b
PA
26472020-09-13 Pedro Alves <pedro@palves.net>
2648
2649 * linespec.c (classify_mtype, compare_msyms): Delete.
2650 (search_minsyms_for_name): Remove classification logic. Instead
2651 filter out trampoline symbols if we also found an external
2652 function of the same name.
2653
ed6a896c
JB
26542020-09-13 Joel Brobecker <brobecker@adacore.com>
2655
2656 * NEWS: Create a new section for the next release branch.
2657 Rename the section of the current branch, now that it has
2658 been cut.
2659
32aea73e
JB
26602020-09-13 Joel Brobecker <brobecker@adacore.com>
2661
2662 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2663 * version.in: Bump version to 11.0.50.DATE-git.
2664
8087c3fa
JB
26652020-09-12 Joel Brobecker <brobecker@adacore.com>
2666
2667 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2668
2a67f09d
FW
26692020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2670 Felix Willgerodt <Felix.Willgerodt@intel.com>
2671
2672 * gdbarch.sh: Added bfloat16 type.
2673 * gdbarch.c: Regenerated.
2674 * gdbarch.h: Regenerated.
2675 * gdbtypes.c (floatformats_bfloat16): New struct.
2676 (gdbtypes_post_init): Add builtin_bfloat16.
2677 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2678 (floatformats_bfloat16): New struct.
2679 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2680 (i386_ymm_type): Add field "v16_bfloat16"
2681 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2682 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2683 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2684 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2685 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2686 * features/i386/64bit-avx512.c: Regenerated.
2687 * features/i386/64bit-sse.xml: Add bfloat16 type.
2688 * features/i386/64bit-sse.c: Regenerated.
2689
1347d111
FW
26902020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2691
2692 * i386-tdep.c (i386_zmm_type): Fix field names.
2693 (i386_ymm_type): Fix field names.
2694
7a4e8e7d
TBA
26952020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2696
2697 * breakpoint.c: Fix typo in the help message of the
2698 "set breakpoint condition-evaluation" command.
2699
cf4ac4be
KR
27002020-09-10 Kamil Rytarowski <n54@gmx.com>
2701
2702 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2703 * (nbsd_nat_target::pid_to_exec_file)
2704 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2705 (nbsd_nat_target::post_startup_inferior)
2706 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2707 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2708 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2709 * (nbsd_thread_lister): Remove.
2710
f404573e
KR
27112020-09-10 Kamil Rytarowski <n54@gmx.com>
2712
2713 * fork-inferior.c (startup_inferior): Avoid double free.
2714
1ccb2c17
KR
27152020-09-10 Kamil Rytarowski <n54@gmx.com>
2716
2717 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2718 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2719
feedfcc7
KR
27202020-09-10 Kamil Rytarowski <n54@gmx.com>
2721
2722 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2723 * netbsd-nat.c: Include <sys/ptrace.h>.
2724 * (netbsd_nat::enable_proc_events): Add.
2725
c489f8c6
KR
27262020-09-10 Kamil Rytarowski <n54@gmx.com>
2727
2728 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2729 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2730 (netbsd_nat::for_each_thread): Add.
2731 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2732 "gdbsupport/common-debug.h".
2733 * (netbsd_nat::netbsd_thread_lister)
2734 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2735 (netbsd_nat::for_each_thread): Add.
2736
330662f6
KR
27372020-09-10 Kamil Rytarowski <n54@gmx.com>
2738
2739 * netbsd-nat.h: Include <unistd.h>.
2740 * (netbsd_nat::pid_to_exec_file): Add.
2741 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2742 * (netbsd_nat::pid_to_exec_file) Add.
2743
70b67307
KR
27442020-09-10 Kamil Rytarowski <n54@gmx.com>
2745
2746 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2747
99cf6da6
KR
27482020-09-10 Kamil Rytarowski <n54@gmx.com>
2749
2750 * netbsd-nat.h: New file.
2751 * netbsd-nat.c: Likewise.
2752
1b788fb6
TT
27532020-09-09 Tom Tromey <tromey@adacore.com>
2754
2755 * ada-lang.c (remove_extra_symbols): Do not increment when
2756 removing an element
2757
03b0a45f
TT
27582020-09-08 Tom Tromey <tromey@adacore.com>
2759
2760 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2761
3cae4447
TT
27622020-09-08 Tom Tromey <tromey@adacore.com>
2763
2764 PR win32/25302:
2765 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2766 (gdb_bfd_init_data): New function.
2767 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2768
7f08fd51
TBA
27692020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2770
2771 * infrun.c (fetch_inferior_event): Use
2772 `switch_to_target_no_thread` to switch the target.
2773
3e6ff933
TT
27742020-09-06 Tom Tromey <tom@tromey.com>
2775
2776 * symfile.h (dwarf2_free_objfile): Don't declare.
2777
e56798df
AKS
27782020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2779
2780 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2781 to match 16 byte real/complex type generated by Flang compiler.
2782
8f5c6526
TV
27832020-09-03 Tom de Vries <tdevries@suse.de>
2784
2785 PR breakpoint/26546
2786 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2787 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2788
c5065df0
SM
27892020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2790
2791 * maint.c (index_digits): New function.
2792 (struct maint_print_section_data): Remove.
2793 (print_bfd_section_info): Remove print_data parameter, add arg
2794 and index_digits.
2795 (print_objfile_section_info): Likewise.
2796 (print_bfd_section_info_maybe_relocated): Likewise (plus
2797 objfile).
2798 (maintenance_info_sections): Adjust calls.
2799
02c6f3f1
TT
28002020-09-02 Tom Tromey <tromey@adacore.com>
2801
2802 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2803 for null pointers.
2804 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2805
ef5e5b0b
SM
28062020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2807
2808 * bcache.h (struct bcache) <insert>: Change type of `added` to
2809 pointer to bool.
2810 * bcache.c (bcache::insert): Likewise.
2811 * gdbtypes.c (check_types_worklist): Adjust.
2812 * psymtab.c (add_psymbol_to_bcache): Adjust.
2813
973695d6
KB
28142020-08-31 Kevin Buettner <kevinb@redhat.com>
2815
2816 * corelow.c (unordered_set): Include.
2817 (class core_target): Add field 'm_core_unavailable_mappings'.
2818 (core_target::build_file_mappings): Print only one warning
2819 per inaccessible file. Add unavailable/broken mappings
2820 to m_core_unavailable_mappings.
2821 (core_target::xfer_partial): Call...
2822 (core_target::xfer_memory_via_mappings): New method.
2823
264fc0e2
SM
28242020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2825
2826 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2827 type to bool.
2828
2de01bdb
SM
28292020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2830
2831 * dwarf2/read.c (struct field_info): Fix indentation.
2832
f3bd50f1
SM
28332020-08-31 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2836 ordering in comment.
2837 * frame.c (frame_id_eq): Fix indentation.
2838
22b9b4b0
SL
28392020-08-31 Scott Linder <scott@scottlinder.com>
2840 Simon Marchi <simon.marchi@efficios.com>
2841
2842 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2843 inline frame ids in outer frame.
2844
84154d16
SM
28452020-08-31 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2848 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2849 (outer_frame_id): Use FID_STACK_OUTER instead of
2850 FID_STACK_INVALID.
2851 (frame_id_p): Don't check for outer_frame_id.
2852
8efaf6b3
SM
28532020-08-31 Simon Marchi <simon.marchi@efficios.com>
2854
2855 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2856 regnum/frame in value. Call allocate_value_lazy.
2857 * frame.c (frame_unwind_register_value): Use
2858 val_print_not_saved.
2859
fe1fe7ea
SM
28602020-08-31 Simon Marchi <simon.marchi@efficios.com>
2861
2862 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2863
f7c7700d
PA
28642020-08-29 Pedro Alves <pedro@palves.net>
2865
2866 * progspace.c (print_program_space): Use all_inferiors. Switch to
2867 the inferior before calling target_pid_to_str.
2868
e0814aae
TT
28692020-08-28 Tom Tromey <tom@tromey.com>
2870
2871 * xcoffread.c (xcoff_end_psymtab): Update comment.
2872 * dbxread.c (dbx_end_psymtab): Update comment.
2873
626d2320
TV
28742020-08-28 Tom de Vries <tdevries@suse.de>
2875
2876 PR breakpoint/26544
2877 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2878 event_location.
2879 (create_breakpoint): Same.
2880 (base_breakpoint_decode_location): Same.
2881 (bkpt_create_sals_from_location): Same.
2882 (bkpt_decode_location): Same.
2883 (bkpt_probe_create_sals_from_location): Same.
2884 (bkpt_probe_decode_location): Same.
2885 (tracepoint_create_sals_from_location): Same.
2886 (tracepoint_decode_location): Same.
2887 (tracepoint_probe_decode_location): Same.
2888 (strace_marker_create_sals_from_location): Same.
2889 (strace_marker_decode_location): Same.
2890 (create_sals_from_location_default): Same.
2891 (decode_location_default): Same.
2892 * breakpoint.h (struct breakpoint_ops): Same.
2893 (create_breakpoint): Same.
2894 * linespec.h (decode_line_full): Same.
2895 * linespec.c (decode_line_full): Same. Throw error if
2896 result.size () == 0.
2897
df631783
PA
28982020-08-27 Pedro Alves <pedro@palves.net>
2899
2900 PR gdb/26524
2901 * breakpoint.c (until_break_fsm) <location_breakpoint,
2902 caller_breakpoint>: Delete fields.
2903 <breakpoints>: New field.
2904 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2905 two individual breakpoints.
2906 (until_break_fsm::should_stop): Loop over breakpoints in the
2907 breakpoint vector.
2908 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2909 vector.
2910 (until_break_command): Handle location expanding into multiple
2911 sals.
2912
b2b38aa4
PA
29132020-08-27 Pedro Alves <pedro@palves.net>
2914
2915 PR gdb/26523
2916 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2917 bp_until breakpoints user-specified locations. Update intro
2918 comment.
2919
b886559f
SM
29202020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2923 gdb_bfd_sections): New.
2924 * maint.c (print_bfd_section_info): Change param type to
2925 maint_print_section_data.
2926 (print_objfile_section_info): Likewise.
2927 (print_bfd_section_info_maybe_relocated): Likewise.
2928 (maintenance_info_sections): Use gdb_bfd_sections.
2929
4c6e63bf
SV
29302020-08-25 Shahab Vahedi <shahab@synopsys.com>
2931
2932 * MAINTAINERS: Add ARC target and maintainer.
2933
8d7f0635
AK
29342020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2935
2936 * configure.tgt: ARC support for GNU/Linux.
2937 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2938 * arc-linux-tdep.c: New file.
2939 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2940 * arc-tdep.c (arc_write_pc): Use it.
2941
fdd8731b
SV
29422020-08-25 Shahab Vahedi <shahab@synopsys.com>
2943
2944 * arc-tdep.c (arc_check_for_hardware_loop): New.
2945 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2946
22459524
SV
29472020-08-25 Shahab Vahedi <shahab@synopsys.com>
2948
2949 * arc-tdep.h: Include "gdbarch.h".
2950
995d3a19
SV
29512020-08-25 Shahab Vahedi <shahab@synopsys.com>
2952
2953 * arch/arc.h
2954 (arc_gdbarch_features): New class to stir the selection of target XML.
2955 (arc_create_target_description): Use FEATURES to choose XML target.
2956 (arc_lookup_target_description): Use arc_create_target_description
2957 to create _new_ target descriptions or return the already created
2958 ones if the FEATURES is the same.
2959 * arch/arc.c: Implementation of prototypes described above.
2960 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2961 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2962 * arc-tdep.c (*_feature_name): Make feature names consistent.
2963 (arc_register_feature): A new struct to hold information about
2964 registers of a particular target/feature.
2965 (arc_check_tdesc_feature): Check if XML provides registers in
2966 compliance with ARC_REGISTER_FEATURE structs.
2967 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2968 (determine_*_reg_feature_set): Which feature name to look for.
2969 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2970 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2971 to expected ISA enums to be used in arc_gdbarch_features structs.
2972 * features/Makefile (FEATURE_XMLFILES): Add new files.
2973 * gdb/features/arc/v1-aux.c: New file.
2974 * gdb/features/arc/v1-aux.xml: Likewise.
2975 * gdb/features/arc/v1-core.c: Likewise.
2976 * gdb/features/arc/v1-core.xml: Likewise.
2977 * gdb/features/arc/v2-aux.c: Likewise.
2978 * gdb/features/arc/v2-aux.xml: Likewise.
2979 * gdb/features/arc/v2-core.c: Likewise.
2980 * gdb/features/arc/v2-core.xml: Likewise.
2981 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2982
3945d2d7
GM
29832020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2984 Andrew Burgess <andrew.burgess@embecosm.com>
2985
2986 PR m2/26372
fc5d6901 2987 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2988 an assert. Remove single element array indexing pattern as the
2989 MULTI_SUBSCRIPT support will handle this case too.
2990
2677f2d3
SM
29912020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2992
2993 * value.h (valprint_check_validity): Move declaration from
2994 here...
2995 * valprint.h (valprint_check_validity): ... to here.
2996
c426fddb
SM
29972020-08-24 Simon Marchi <simon.marchi@efficios.com>
2998
2999 * debug.h: New file.
3000 * debug.c (debug_prefixed_vprintf): New function.
3001 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3002 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3003
1eb8556f
SM
30042020-08-24 Simon Marchi <simon.marchi@efficios.com>
3005
3006 * infrun.h (infrun_debug_printf_1): New function declaration.
3007 (infrun_debug_printf): New macro.
3008 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3009 throughout.
3010 (infrun_debug_printf): New function.
3011 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3012 (handle_jit_event): Likewise.
3013
b8fff44e
MW
30142020-08-21 Mark Wielaard <mark@klomp.org>
3015
3016 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3017
d19c3068
SM
30182020-08-22 Simon Marchi <simon.marchi@efficios.com>
3019
3020 * frame.c (enum class frame_id_status): New.
3021 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3022 (fprintf_frame): Update.
3023 (compute_frame_id): Set frame id status to "computing" on entry.
3024 Set it back to "not_computed" on failure and to "computed" on
3025 success.
3026 (get_frame_id): Assert the frame id is not being computed.
3027 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3028 (create_new_frame): Likewise.
3029 (frame_cleanup_after_sniffer): Update assert.
3030
b70e516e
SM
30312020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3032
3033 * regcache.c (pid_ptid_regcache_map): New type.
3034 (target_ptid_regcache_map): Remove.
3035 (target_pid_ptid_regcache_map): New type.
3036 (regcaches): Change type to target_pid_ptid_regcache_map.
3037 (get_thread_arch_aspace_regcache): Update.
3038 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3039 case.
3040 (regcaches_size): Update.
3041 (regcache_count): Update.
3042 (registers_changed_ptid_target_pid_test): New.
3043 (_initialize_regcache): Register new test.
3044
cdd9148a
SM
30452020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 * regcache.c (regcache_count): New.
3048 (struct regcache_test_data): New.
3049 (regcache_test_data_up): New.
3050 (populate_regcaches_for_test): New.
3051 (regcaches_test): Remove.
3052 (get_thread_arch_aspace_regcache_test): New.
3053 (registers_changed_ptid_all_test): New.
3054 (registers_changed_ptid_target_test): New.
3055 (registers_changed_ptid_target_ptid_test): New.
3056 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3057 (_initialize_regcache): Register new tests.
3058
dd125343
SM
30592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3060
3061 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3062 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3063 gdbarch and aspace parameter. Use current inferior's aspace.
3064 Validate regcache's arch value.
3065 (regcaches_test): Update.
3066
3ee93972
SM
30672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3068
3069 * regcache.c (regcaches_test): Call registers_changed.
3070
33bf4c5c
TBA
30712020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3072
3073 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3074
c2fd7fae
AKS
30752020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3076
3077 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3078 to find the end of prologue for flang compiled binaries.
3079 * arm-tdep.c (arm_skip_prologue): Likewise.
3080 * i386-tdep.c (i386_skip_prologue): Likewise.
3081 * producer.c (producer_is_llvm): New function.
3082 (producer_parsing_tests): Added new tests for clang/flang.
3083 * producer.h (producer_is_llvm): New declaration.
3084
9327494e
SM
30852020-08-18 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * linux-nat.c (linux_nat_debug_printf): New function.
3088 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3089
d138725a
AM
30902020-08-18 Aaron Merey <amerey@redhat.com>
3091
3092 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3093 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3094 (CLIBS): Add DEBUGINFOD_LIBS.
3095
f9b11e6b
ST
30962020-08-17 Sergei Trofimovich <siarheit@google.com>
3097
3098 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3099 'gdbarch_num_regs'.
3100
3ae7ab99
TT
31012020-08-17 Tom Tromey <tromey@adacore.com>
3102
3103 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3104 ada_get_decoded_value returns NULL.
3105
b017825f
TT
31062020-08-17 Tom Tromey <tromey@adacore.com>
3107
3108 * python/py-inferior.c (infpy_search_memory): Use
3109 gdb_py_object_from_ulongest.
3110 * python/py-infevents.c (create_inferior_call_event_object)
3111 (create_memory_changed_event_object): Use
3112 gdb_py_object_from_ulongest.
3113 * python/py-linetable.c (ltpy_entry_get_pc): Use
3114 gdb_py_object_from_ulongest.
3115
7635cf79
SM
31162020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3117
3118 * loc.c (class symbol_needs_eval_context): Fix indentation.
3119
f54be24b
SM
31202020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3121
3122 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3123 bool.
3124
53d5a2a5
TV
31252020-08-17 Tom de Vries <tdevries@suse.de>
3126
3127 PR gdb/26393
3128 * gdbtypes.c (dump_dynamic_prop): New function.
3129 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3130
547ce8f0
TV
31312020-08-15 Tom de Vries <tdevries@suse.de>
3132
3133 PR backtrace/26390
3134 * stack.c (print_frame_args): Temporarily set the selected
3135 frame to FRAME while printing the frame's arguments.
3136
6ea815e7
PFC
31372020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3138
3139 PR breakpoints/26385
3140 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3141 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3142
6e562fa3
PFC
31432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3144
3145 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3146 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3147 and >= to check return value instead of == -1 and != -1.
3148
d369b608
SM
31492020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * utils.h (class gdb_argv) <as_array_view>: New method.
3152 * utils.c (gdb_argv_as_array_view_test): New.
3153 (_initialize_utils): Register selftest.
3154 * maint.c (maintenance_selftest): Use the new method.
3155
b31488a3
KR
31562020-08-13 Kamil Rytarowski <n54@gmx.com>
3157
3158 * target.h (supports_dumpcore, dumpcore): New
3159 function declarations.
3160 * target.c (supports_dumpcore, dumpcore): New
3161 functions.
3162 * target-delegates.c: Rebuild.
3163 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3164 and target_dumpcore ().
3165
002a3166
AM
31662020-08-13 Aaron Merey <amerey@redhat.com>
3167
3168 * debuginfod-support.c: Replace global variables with user_data.
3169
ece5bc8a
SM
31702020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3171
3172 * maint.c (maintenance_selftest): Split args and pass array_view
3173 to run_tests.
3174
6d8a0a5e
LM
31752020-08-12 Luis Machado <luis.machado@linaro.org>
3176
3177 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3178 type's length.
3179 Use %s and pulongest to print the length.
3180
7cf663a9
PA
31812020-08-12 Pedro Alves <palves@redhat.com>
3182
3183 * NEWS: Move "Multi-target debugging support" item to the
3184 "Changes since GDB 9" section.
3185
27c7b875
PA
31862020-08-12 Pedro Alves <palves@redhat.com>
3187
3188 PR gdb/26336
3189 * progspace.c (program_space::remove_objfile): Invalidate the
3190 frame cache.
3191
1796a2a1
TV
31922020-08-11 Tom de Vries <tdevries@suse.de>
3193
3194 * MAINTAINERS: Mark ms1 as deleted.
3195
f8e3fe0d
LM
31962020-08-10 Luis Machado <luis.machado@linaro.org>
3197
3198 PR gdb/26310
3199
3200 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3201 act accordingly.
3202 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3203 movz/str/stur/stp skipping behavior.
3204
cc308722
LM
32052020-08-10 Luis Machado <luis.machado@linaro.org>
3206
3207 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3208 struct user_sve_header instead of struct sve_context.
3209
041d9819
SM
32102020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3211
3212 * read.h (dwarf2_fetch_die_loc_sect_off,
3213 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3214 `void *` parameter with function_view.
3215 * read.c (dwarf2_fetch_die_loc_sect_off,
3216 dwarf2_fetch_die_loc_cu_off): Likewise.
3217 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3218 (per_cu_dwarf_call): Adjust.
3219 (get_frame_address_in_block_wrapper): Remove.
3220 (indirect_synthetic_pointer): Adjust.
3221 (get_ax_pc): Remove.
3222 (dwarf2_compile_expr_to_ax): Adjust.
3223
38f8aa06
TV
32242020-08-08 Tom de Vries <tdevries@suse.de>
3225
3226 PR build/26344
3227 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3228 constructor.
3229 * regcache.c (get_thread_arch_aspace_regcache): Same.
3230
a52b3ae2
TT
32312020-08-07 Tom Tromey <tromey@adacore.com>
3232
3233 * ravenscar-thread.c
3234 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3235 New method.
3236 (ravenscar_thread_target::wait): Check
3237 runtime_initialized.
3238 (ravenscar_thread_target::prepare_to_store)
3239 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3240 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3241 (ravenscar_thread_target::stopped_by_watchpoint)
3242 (ravenscar_thread_target::stopped_data_address)
3243 (ravenscar_thread_target::core_of_thread): Use
3244 scoped_restore_current_thread and
3245 set_base_thread_from_ravenscar_task.
3246
0e29517d
TT
32472020-08-07 Tom Tromey <tromey@adacore.com>
3248
3249 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3250
592f9bd7
TT
32512020-08-07 Tom Tromey <tromey@adacore.com>
3252
3253 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3254 update_inferior_ptid before update_thread_list.
3255 (temporarily_change_regcache_ptid): New class.
3256 (ravenscar_thread_target::fetch_registers)
3257 (ravenscar_thread_target::store_registers)
3258 (ravenscar_thread_target::prepare_to_store): Use base thread when
3259 forwarding operation.
3260
39e2018a
TT
32612020-08-07 Tom Tromey <tromey@adacore.com>
3262
3263 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3264 "is_pid" case.
3265
2080266b
TT
32662020-08-07 Tom Tromey <tromey@adacore.com>
3267
3268 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3269 New methods.
3270 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3271 first.
3272 (ravenscar_thread_target::add_thread): Rename from
3273 ravenscar_add_thread.
3274 (ravenscar_thread_target::update_thread_list): Use a lambda.
3275 (ravenscar_thread_target::xfer_partial): New method.
3276
78c02f21
TT
32772020-08-07 Tom Tromey <tromey@adacore.com>
3278
3279 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3280 gdb::function_view.
3281 (iterate_over_live_ada_tasks): Change type of argument.
3282 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3283 of argument.
3284
d5d833af
TT
32852020-08-07 Tom Tromey <tromey@adacore.com>
3286
3287 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3288 Remove.
3289 (ravenscar_thread_target::extra_thread_info): Remove.
3290 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3291 defer to target beneath for non-Ravenscar threads.
3292
a8ac85bb
TT
32932020-08-07 Tom Tromey <tromey@adacore.com>
3294
3295 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3296 get_base_thread_from_ravenscar_task>: Now methods.
3297 <m_cpu_map>: New member.
3298 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3299 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3300 (ravenscar_thread_target::task_is_currently_active): Update.
3301 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3302 Now a method.
3303 (ravenscar_thread_target::add_active_thread): Put initial thread
3304 into the m_cpu_map.
3305
550ab58d
TT
33062020-08-07 Tom Tromey <tromey@adacore.com>
3307
3308 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3309 event_ptid.
3310
e9546579
TT
33112020-08-07 Tom Tromey <tromey@adacore.com>
3312
3313 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3314 runtime_initialized.
3315
3d4470e5
TT
33162020-08-07 Tom Tromey <tromey@adacore.com>
3317
3318 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3319 add_active_thread.
3320 (ravenscar_thread_target::add_active_thread): Now public.
3321 (ravenscar_inferior_created): Call add_active_thread after pushing
3322 the target.
3323
888bdb2b
SM
33242020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3325
3326 * regcache.c (ptid_regcache_map): New type.
3327 (target_ptid_regcache_map): New type.
3328 (regcaches): Change type to target_ptid_regcache_map.
3329 (get_thread_arch_aspace_regcache): Update to regcaches' new
3330 type.
3331 (regcache_thread_ptid_changed): Likewise.
3332 (registers_changed_ptid): Likewise.
3333 (regcaches_size): Likewise.
3334 (regcaches_test): Update.
3335 (regcache_thread_ptid_changed): Update.
3336 * regcache.h (regcache_up): New type.
3337 * gdbsupport/ptid.h (hash_ptid): New struct.
3338
b161a60d
SM
33392020-08-07 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * observable.h (thread_ptid_changed): Add parameter
3342 `process_stratum_target *`.
3343 * infrun.c (infrun_thread_ptid_changed): Add parameter
3344 `process_stratum_target *` and use it.
3345 (selftests): New namespace.
3346 (infrun_thread_ptid_changed): New function.
3347 (_initialize_infrun): Register selftest.
3348 * regcache.c (regcache_thread_ptid_changed): Add parameter
3349 `process_stratum_target *` and use it.
3350 (regcache_thread_ptid_changed): New function.
3351 (_initialize_regcache): Register selftest.
3352 * thread.c (thread_change_ptid): Pass target to
3353 thread_ptid_changed observable.
3354
d2854d8d
CT
33552020-08-06 Caroline Tice <cmtice@google.com>
3356
fe4c3d43
SM
3357 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3358 (struct dwp_sections): Update field comments. Add loclists and
3359 rnglists fields.
3360 (struct virtual_v2_dwo_sections): Rename struct to
3361 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3362 size & offset fields for loclists and rnglists.
3363 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3364 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3365 skipping dummy type units.
3366 (create_dwp_hash_table): Update the large comment above the function to
3367 discuss Version 5 DWP files as well, with references. Update all the
3368 version checks in the function to check for version 5 as well. Add new
3369 section at the end to create dwp hash table for version 5.
3370 (create_dwp_v2_section): Rename function to
3371 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3372 Add V5 to error message text.
3373 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3374 into calls to create_dwp_v2_or_v5_section.
3375 (create_dwo_unit_in_dwp_v5): New function.
3376 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3377 check for version2; add else clause to handle version 5.
3378 (open_and_init_dwo_file): Add code to check dwarf version & only call
3379 create_debug_types_hash_table (with sections.types) if version is not 5;
3380 else call create_debug_type_hash_table, with sections.info.
3381 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3382 version 5.
3383 (dwarf2_locate_v5_dwp_sections): New function.
3384 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3385 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3386
159ed7d9
SM
33872020-08-06 Simon Marchi <simon.marchi@efficios.com>
3388
3389 * regcache.h (class regcache): Remove friend
3390 registers_changed_ptid.
3391 <regcache_thread_ptid_changed>: Remove.
3392 <regcaches>: Remove.
3393 * regcache.c (regcache::regcaches): Rename to...
3394 (regcaches): ... this. Make static.
3395 (get_thread_arch_aspace_regcache): Update.
3396 (regcache::regcache_thread_ptid_changed): Rename to...
3397 (regcache_thread_ptid_changed): ... this. Update.
3398 (class regcache_access): Remove.
3399 (regcaches_test): Update.
3400 (_initialize_regcache): Update.
3401 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3402 <forward_list>.
3403
174981ae
SM
34042020-08-06 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * regcache.h (class regcache) <current_regcache>: Rename to...
3407 <regcaches>: ... this. Move doc here.
3408 * regcache.c (regcache::current_regcache) Rename to...
3409 (regcache::regcaches): ... this. Move doc to header.
3410 (get_thread_arch_aspace_regcache): Update.
3411 (regcache::regcache_thread_ptid_changed): Update.
3412 (registers_changed_ptid): Update.
3413 (class regcache_access) <current_regcache_size>: Rename to...
3414 <regcaches_size>: ... this.
3415 (current_regcache_test): Rename to...
3416 (regcaches_test): ... this.
3417 (_initialize_regcache): Update.
3418
ed908db6
VC
34192020-08-06 Victor Collod <vcollod@nvidia.com>
3420
3421 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3422
b5582ab7
KB
34232020-08-05 Kevin Buettner <kevinb@redhat.com>
3424
3425 * corelow.c (core_target::build_file_mappings): Don't output
3426 null pathname in warning.
3427
ea946b86
SM
34282020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3431 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3432 gdb.dwarf2/dw2-single-line-discriminators.exp,
3433 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3434
57d02173
TT
34352020-08-05 Tom Tromey <tromey@adacore.com>
3436
3437 PR rust/26197:
3438 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3439 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3440 Fix off-by-one and type size errors in ordinary case.
3441
5555c86d
TV
34422020-08-05 Tom de Vries <tdevries@suse.de>
3443
3444 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3445 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3446
97916bfe
SM
34472020-08-04 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * frame.h (frame_id_p): Return bool.
3450 (frame_id_artificial_p): Return bool.
3451 (frame_id_eq): Return bool.
3452 (has_stack_frames): Return bool.
3453 (get_selected_frame): Fix typo in comment.
3454 (get_frame_pc_if_available): Return bool.
3455 (get_frame_address_in_block_if_available): Return bool.
3456 (get_frame_func_if_available): Return bool.
3457 (read_frame_register_unsigned): Return bool.
3458 (get_frame_register_bytes): Return bool.
3459 (safe_frame_unwind_memory): Return bool.
3460 (deprecated_frame_register_read): Return bool.
3461 (frame_unwinder_is): Return bool.
3462 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3463 bool.
3464 <this_id::p>: Likewise.
3465 <prev_p>: Likewise.
3466 (frame_stash_add): Return bool.
3467 (get_frame_id): Use bool.
3468 (frame_id_build_special) Use bool.
3469 (frame_id_build_unavailable_stack): Use bool.
3470 (frame_id_build): Use bool.
3471 (frame_id_p): Return bool, use true/false instead of 1/0.
3472 (frame_id_artificial_p): Likewise.
3473 (frame_id_eq): Likewise.
3474 (frame_id_inner): Likewise.
3475 (get_frame_func_if_available): Likewise.
3476 (read_frame_register_unsigned): Likewise.
3477 (deprecated_frame_register_read): Likewise.
3478 (get_frame_register_bytes): Likewise.
3479 (has_stack_frames): Likewise.
3480 (inside_main_func): Likewise.
3481 (inside_entry_func): Likewise.
3482 (get_frame_pc_if_available): Likewise.
3483 (get_frame_address_in_block_if_available): Likewise.
3484 (frame_unwinder_is): Likewise.
3485 (safe_frame_unwind_memory): Likewise.
3486 (frame_unwind_arch): Likewise.
3487
fedfee88
SM
34882020-08-04 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3491 type to cached_copy_status.
3492 (fprintf_frame): Adjust.
3493 (get_frame_func_if_available): Adjust.
3494 (frame_cleanup_after_sniffer): Adjust.
3495
6cfa9b59
MW
34962020-08-04 Mark Wielaard <mark@klomp.org>
3497
3498 * MAINTAINERS (Write After Approval): Update email address.
3499
66d6346b
SM
35002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3501
3502 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3503 dynamic_prop::const_val.
3504
8a6d5e35
SM
35052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3506
3507 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3508 dynamic_prop::kind.
3509
51d6067d
SM
35102020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3511
3512 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3513
b26e2ae7
JM
35142020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3515
3516 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3517
39791af2
JM
35182020-08-04 Weimin Pan <weimin.pan@oracle.com>
3519 Jose E. Marchesi <jose.marchesi@oracle.com>
3520
3521 * configure.tgt: Add entry for bpf-*-*.
3522 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3523 (ALLDEPFILES): Add bpf-tdep.c.
3524 * bpf-tdep.c: New file.
3525 * MAINTAINERS: Add bpf target and maintainer.
3526 * NEWS: Mention the support for the new target.
3527
521894aa
TV
35282020-08-04 Tom de Vries <tdevries@suse.de>
3529
3530 PR symtab/23270
3531 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3532 Error.
3533
5d6356e9
JB
35342020-08-03 John Baldwin <jhb@FreeBSD.org>
3535
3536 * syscalls/freebsd.xml: Regenerate.
3537
0cf82b81
JB
35382020-08-03 John Baldwin <jhb@FreeBSD.org>
3539
3540 * syscalls/update-freebsd.sh: Fix usage and year range.
3541
8f34b746
TV
35422020-08-03 Tom de Vries <tdevries@suse.de>
3543
3544 PR symtab/26333
3545 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3546 DW_LNE_lo_user/DW_LNE_hi_user range.
3547
5e500d33
SM
35482020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 PR ada/26318
3551 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3552 kind.
3553
78319c15
TBA
35542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3555
3556 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3557
4c55e970
TBA
35582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3559
3560 * breakpoint.c (set_breakpoint_condition): Update the condition
3561 expressions after checking that the input condition string parses
3562 successfully and does not contain junk at the end.
3563
1e620590
TBA
35642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3565
3566 * breakpoint.c (set_breakpoint_condition): Update the
3567 condition string after parsing the new condition successfully.
3568
c8693053
RO
35692020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3570
3571 * proc-api.c (_STRUCTURED_PROC): Don't define.
3572 * proc-events.c: Likewise.
3573 * proc-flags.c: Likewise.
3574 * proc-why.c: Likewise.
3575 * procfs.c: Likewise.
3576
3577 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3578 * configure, config.in: Regenerate.
3579
5a99adb8
TV
35802020-07-30 Tom de Vries <tdevries@suse.de>
3581
3582 PR build/26320
3583 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3584 m_red/m_green/m_blue in a union.
3585
8ba83e91
TV
35862020-07-29 Tom de Vries <tdevries@suse.de>
3587
3588 PR tdep/26280
3589 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3590
f75a0693
AB
35912020-07-28 Tom Tromey <tromey@adacore.com>
3592
3593 PR symtab/26270:
3594 * symtab.h (find_pc_partial_function_sym): Declare.
3595 * cli/cli-cmds.c (disassemble_command): Use
3596 find_pc_partial_function_sym. Check asm_demangle.
3597 * blockframe.c (cache_pc_function_sym): New global.
3598 (cache_pc_function_name): Remove.
3599 (clear_pc_function_cache): Update.
3600 (find_pc_partial_function_sym): New function, from
3601 find_pc_partial_function.
3602 (find_pc_partial_function): Rewrite using
3603 find_pc_partial_function_sym.
3604
16f3242c
TT
36052020-07-28 Tom Tromey <tromey@adacore.com>
3606
3607 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3608 help. Add usage.
3609
4888741a
TT
36102020-07-28 Tom Tromey <tromey@adacore.com>
3611
3612 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3613 <DW_OP_GNU_variable_value>: Cast to address type.
3614
4d46f402
KR
36152020-07-28 Kamil Rytarowski <n54@gmx.com>
3616
3617 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3618 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3619 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3620 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3621 (nbsd_get_siginfo_type): New.
3622 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3623 (_initialize_nbsd_tdep): New.
3624
d70f978b
L
36252020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3626
3627 PR binutils/26301
3628 * configure: Regenerated.
3629
377170fa
L
36302020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3631
3632 PR binutils/26301
3633 * configure: Regenerated.
3634
43d5901d
AB
36352020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3636
3637 * python/py-frame.c: Remove 'user-regs.h' include.
3638 (frapy_read_register): Rewrite to make use of
3639 gdbpy_parse_register_id.
3640 * python/py-registers.c (gdbpy_parse_register_id): New function,
3641 moved here from python/py-unwind.c. Updated the return type, and
3642 also accepts register descriptor objects.
3643 * python/py-unwind.c: Remove 'user-regs.h' include.
3644 (pyuw_parse_register_id): Moved to python/py-registers.c.
3645 (unwind_infopy_add_saved_register): Update to use
3646 gdbpy_parse_register_id.
3647 (pending_framepy_read_register): Likewise.
3648 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3649
14fa8fb3
AB
36502020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3651
3652 * python/py-registers.c: Add 'user-regs.h' include.
3653 (register_descriptor_iter_find): New function.
3654 (register_descriptor_iterator_object_methods): New static global
3655 methods array.
3656 (register_descriptor_iterator_object_type): Add pointer to methods
3657 array.
3658
ddce1758
JB
36592020-07-27 John Baldwin <jhb@FreeBSD.org>
3660
3661 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3662 for all architectures on FreeBSD 11.3 and later.
3663
a4089f52
TT
36642020-07-27 Tom Tromey <tromey@adacore.com>
3665
3666 * gcore.h (load_corefile): Don't declare.
3667
95420d30
TV
36682020-07-27 Tom de Vries <tdevries@suse.de>
3669
3670 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3671 * config.in: Regenerate.
3672 * configure: Regenerate.
3673
05a6b8c2
EZ
36742020-07-26 Eli Zaretskii <eliz@gnu.org>
3675
3676 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3677 ws2tcpip.h. When checking whether socklen_t type is defined, use
3678 ws2tcpip.h if it is available and sys/socket.h isn't.
3679 * configure: Regenerate.
3680 * config.in: Regenerate.
3681
e79eb02f
AB
36822020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 PR fortran/23051
3685 PR fortran/26139
3686 * valops.c (value_ind): Pass address to
3687 readjust_indirect_value_type.
3688 * value.c (readjust_indirect_value_type): Make parameter
3689 non-const, and add extra address parameter. Resolve original type
3690 before using it.
3691 * value.h (readjust_indirect_value_type): Update function
3692 signature and comment.
3693
876518dd
TV
36942020-07-25 Tom de Vries <tdevries@suse.de>
3695
3696 PR symtab/26243
3697 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3698 entries.
3699
f6720b1c
AM
37002020-07-24 Aaron Merey <amerey@redhat.com>
3701
3702 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3703 * configure: Rebuild.
3704
513487e1
KB
37052020-07-23 Kevin Buettner <kevinb@redhat.com>
3706
3707 PR corefiles/26294
3708 * corelow.c (_initialize_corelow): Add period to help text
3709 for "maintenance print core-file-backed-mappings".
3710
e7bc9db8
PA
37112020-07-23 Pedro Alves <pedro@palves.net>
3712
3713 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3714 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3715 meanwhile.
3716 * frame.c (frame_cache_generation, get_frame_cache_generation):
3717 New.
3718 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3719 (get_prev_frame_if_no_cycle): On exception, don't touch
3720 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3721 * frame.h (get_frame_cache_generation): Declare.
3722
90fcc466
TV
37232020-07-23 Tom de Vries <tdevries@suse.de>
3724
3725 PR tui/26282
3726 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3727 New default constructor.
3728
78344df7
AB
37292020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3732 exclude non-statement entries.
3733
b089853a
KB
37342020-07-22 Kevin Buettner <kevinb@redhat.com>
3735
3736 * NEWS (New commands): Mention new command
3737 "maintenance print core-file-backed-mappings".
3738
09c2f5d4
KB
37392020-07-22 Kevin Buettner <kevinb@redhat.com>
3740
3741 * corelow.c (gdbcmd.h): Include.
3742 (core_target::info_proc_mappings): New method.
3743 (get_current_core_target): New function.
3744 (maintenance_print_core_file_backed_mappings): New function.
3745 (_initialize_corelow): Add core-file-backed-mappings to
3746 "maint print" commands.
3747
9c5ec5c2 37482020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3749
9c5ec5c2
KB
3750 * linux-tdep.c (dump_note_entry_p): New function.
3751 (linux_dump_mapping_p_ftype): New typedef.
3752 (linux_find_memory_regions_full): Add new parameter,
3753 should_dump_mapping_p.
3754 (linux_find_memory_regions): Adjust call to
3755 linux_find_memory_regions_full.
3756 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3757 call to linux_find_memory_regions_full.
3758
db082f59
KB
37592020-07-22 Kevin Buettner <kevinb@redhat.com>
3760
3761 * corelow.c (solist.h, unordered_map): Include.
3762 (class core_target): Add field m_core_file_mappings and
3763 method build_file_mappings.
3764 (core_target::core_target): Call build_file_mappings.
3765 (core_target::~core_target): Free memory associated with
3766 m_core_file_mappings.
3767 (core_target::build_file_mappings): New method.
3768 (core_target::xfer_partial): Use m_core_file_mappings
3769 for memory transfers.
3770 * linux-tdep.c (linux_read_core_file_mappings): New
3771 function.
3772 (linux_core_info_proc_mappings): Rewrite to use
3773 linux_read_core_file_mappings.
3774 (linux_init_abi): Register linux_read_core_file_mappings.
3775
7e183d27
KB
37762020-07-22 Kevin Buettner <kevinb@redhat.com>
3777
3778 * arch-utils.c (default_read_core_file_mappings): New function.
3779 * arch-utils.c (default_read_core_file_mappings): Declare.
3780 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3781 * gdbarch.h, gdbarch.c: Regenerate.
3782
2735d421
KB
37832020-07-22 Kevin Buettner <kevinb@redhat.com>
3784
3785 PR corefiles/25631
3786 * corelow.c (core_target:xfer_partial): Revise
3787 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3788 case after first checking the stratum beneath the core
3789 target.
3790 (has_all_memory): Return true.
3791 * target.c (raw_memory_xfer_partial): Revise comment
3792 regarding use of has_all_memory.
3793
e56cb451
KB
37942020-07-22 Kevin Buettner <kevinb@redhat.com>
3795
3796 * exec.h (section_table_xfer_memory): Revise declaration,
3797 replacing section name parameter with an optional callback
3798 predicate.
3799 * exec.c (section_table_xfer_memory): Likewise.
3800 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3801 of section_table_xfer_memory.
3802
32fa152e
TT
38032020-07-22 Tom Tromey <tromey@adacore.com>
3804
3805 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3806 lookup_symbol_search_name.
3807
a67a1c41
AB
38082020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3811 redundant local variable.
3812 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3813 reference, not pointer, update code accordingly.
3814
a7b4ff4f
SM
38152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3816 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3817
3818 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3819 * jit.c (jit_breakpoint_re_set_internal): Use the
3820 `skip_jit_symbol_lookup` field.
3821
2340e834
SM
38222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3823 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3824
3825 * jit.c (jit_read_descriptor): Define the descriptor address once,
3826 use twice.
3827 (jit_breakpoint_deleted): Move the declaration of the loop variable
3828 `iter` into the loop header.
3829 (jit_breakpoint_re_set_internal): Move the declaration of the local
3830 variable `objf_data` to the first point of definition.
3831 (jit_event_handler): Move the declaration of local variables
3832 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3833 Rename `objf` to `jited`.
3834
c1072906
SM
38352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3838 Remove.
3839 * jit.c (get_jiter_objfile_data): Update.
3840
c8474dc3
TBA
38412020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3842 Simon Marchi <simon.marchi@polymtl.ca>
3843
3844 * jit.c (struct jit_program_space_data): Remove.
3845 (jit_program_space_key): Remove.
3846 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3847 stuff.
3848 (get_jit_program_space_data): Remove.
3849 (jit_breakpoint_deleted): Iterate on all of the program space's
3850 objfiles.
3851 (jit_inferior_init): Likewise.
3852 (jit_breakpoint_re_set_internal): Likewise. Also change return
3853 type to void.
3854 (jit_breakpoint_re_set): Pass current_program_space to
3855 jit_breakpoint_re_set_internal.
3856
77208eb7
SM
38572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * jit.h (struct jiter_objfile_data) <cached_code_address,
3860 jit_breakpoint>: Move to here from ...
3861 * jit.c (jit_program_space_data): ... here.
3862 (jiter_objfile_data::~jiter_objfile_data): Update.
3863 (jit_breakpoint_deleted): Update.
3864 (jit_breakpoint_re_set_internal): Update.
3865
8c1c720f
SM
38662020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3867
3868 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3869 checks.
3870 (jit_read_descriptor): Remove NULL check.
3871 (jit_event_handler): Add an assertion.
3872
0e74a041
SM
38732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3874
3875 * jit.h (struct jit_objfile_data): Split into...
3876 (struct jiter_objfile_data): ... this ...
3877 (struct jited_objfile_data): ... and this.
3878 * objfiles.h (struct objfile) <jit_data>: Remove.
3879 <jiter_data, jited_data>: New fields.
3880 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3881 (jiter_objfile_data::~jiter_objfile_data): ... this.
3882 (get_jit_objfile_data): Rename to ...
3883 (get_jiter_objfile_data): ... this.
3884 (add_objfile_entry): Update.
3885 (jit_read_descriptor): Use get_jiter_objfile_data.
3886 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3887 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3888 (jit_inferior_exit_hook): Use objfile's jited_data field.
3889
238b5c9f
SM
38902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3891
3892 * jit.h: Forward-declare `struct minimal_symbol`.
3893 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3894 constructor, destructor, and an objfile* field.
3895 * jit.c (jit_objfile_data): Remove.
3896 (struct jit_objfile_data): Migrate from here to jit.h.
3897 (jit_objfile_data::~jit_objfile_data): New destructor
3898 implementation with code moved from free_objfile_data.
3899 (free_objfile_data): Delete.
3900 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3901 (jit_find_objf_with_entry_addr): Ditto.
3902 (jit_inferior_exit_hook): Ditto.
3903 (_initialize_jit): Remove the call to
3904 register_objfile_data_with_cleanup.
3905 * objfiles.h (struct objfile) <jit_data>: New field.
3906
fe053b9e
TBA
39072020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3908
3909 * jit.h: Forward-declare `struct objfile`.
3910 (jit_event_handler): Add a second parameter, the JITer objfile.
3911 * jit.c (jit_read_descriptor): Change the signature to take the
3912 JITer objfile as an argument instead of the jit_program_space_data.
3913 (jit_inferior_init): Update the call to jit_read_descriptor.
3914 (jit_event_handler): Use the new JITer objfile argument when calling
3915 jit_read_descriptor.
3916 * breakpoint.c (handle_jit_event): Update the call to
3917 jit_event_handler to pass the JITer objfile.
3918
4cec0c66
JB
39192020-07-21 John Baldwin <jhb@FreeBSD.org>
3920
3921 * gdbarch.c: Regenerate.
3922 * gdbarch.h: Regenerate.
3923 * gdbarch.sh (handle_segmentation_fault): Remove method.
3924 * infrun.c (handle_segmentation_fault): Remove.
3925 (print_signal_received_reason): Remove call to
3926 handle_segmentation_fault.
3927
0e42f66a
JB
39282020-07-21 John Baldwin <jhb@FreeBSD.org>
3929
3930 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3931 Rename to sparc64_linux_report_signal_info and add siggnal
3932 argument.
3933 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3934 instead of sparc64_linux_handle_segmentation_fault.
3935
77bdfeb2
JB
39362020-07-21 John Baldwin <jhb@FreeBSD.org>
3937
3938 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3939 i386_linux_report_signal_info instead of
3940 i386_linux_handle_segmentation_fault.
3941 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3942 to i386_linux_report_signal_info and add siggnal argument.
3943 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3944 of i386_linux_handle_segmentation_fault.
3945 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3946 to i386_linux_report_signal_info and add siggnal argument.
3947
ad97bfc5
JB
39482020-07-21 John Baldwin <jhb@FreeBSD.org>
3949
3950 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3951 hook if present.
3952
272bb05c
JB
39532020-07-21 John Baldwin <jhb@FreeBSD.org>
3954
3955 * gdbarch.c: Regenerate.
3956 * gdbarch.h: Regenerate.
3957 * gdbarch.sh (report_signal_info): New method.
3958 * infrun.c (print_signal_received_reason): Invoke gdbarch
3959 report_signal_info hook if present.
3960
baf8791e
AB
39612020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3962
3963 * python/py-registers.c : Add 'unordered_map' include.
3964 (gdbpy_new_reggroup): Renamed to...
3965 (gdbpy_get_reggroup): ...this. Update to only create register
3966 group descriptors when needed.
3967 (gdbpy_reggroup_iter_next): Update.
3968
f7306dac
AB
39692020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * python/py-registers.c (gdbpy_register_object_data): New static
3972 global.
3973 (gdbpy_register_object_data_init): New function.
3974 (gdbpy_new_register_descriptor): Renamed to...
3975 (gdbpy_get_register_descriptor): ...this, and update to reuse
3976 existing register descriptors where possible.
3977 (gdbpy_register_descriptor_iter_next): Update.
3978 (gdbpy_initialize_registers): Register new gdbarch data.
3979
05c309a8
SM
39802020-07-21 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * linux-nat.c (stopped_pids): Make static.
3983
d1fd641e
SM
39842020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3985
3986 PR ada/26235
3987 * gdbtypes.c (ada_discrete_type_low_bound,
3988 ada_discrete_type_high_bound): Handle undefined bounds.
3989
1de14d77
KR
39902020-07-21 Kamil Rytarowski <n54@gmx.com>
3991
3992 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3993 declaration.
3994 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3995 function.
3996
ed810cc7
JB
39972020-07-20 John Baldwin <jhb@FreeBSD.org>
3998
3999 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4000 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4001 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4002 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4003 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4004 method.
4005
ae5369e7
LC
40062020-07-20 Ludovic Courtès <ludo@gnu.org>
4007
4008 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4009 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4010 which are deprecated in Guile 3.0.
4011 * configure.ac (try_guile_versions): Add "guile-3.0".
4012 * configure (try_guile_versions): Regenerate.
4013 * NEWS: Update entry.
4014
68cf161c
LC
40152020-07-20 Ludovic Courtès <ludo@gnu.org>
4016 Doug Evans <dje@google.com>
4017
4018 PR gdb/21104
4019 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4020 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4021 USING_GUILE_BEFORE_2_2.
4022 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4023 Change type to 'scm_t_port_type *'.
4024 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4025 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4026 parameter and honor it. Update callers.
4027 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4028 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4029 functions.
4030 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4031 USING_GUILE_BEFORE_2_2.
4032 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4033 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4034 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4035 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4036 and 'SCM_PORT_TYPE'.
4037 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4038 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4039 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4040 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4041 [!USING_GUILE_BEFORE_2_2]: New functions.
4042 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4043 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4044 'gdbscm_memory_port_read'.
4045 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4046 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4047 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4048 function.
4049 (ioscm_init_memory_port): Remove.
4050 (ioscm_init_memory_port_stream): New function
4051 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4052 function.
4053 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4054 Return scm_from_uint (0).
4055 (gdbscm_set_memory_port_read_buffer_size_x)
4056 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4057 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4058 Return scm_from_uint (0).
4059 (gdbscm_set_memory_port_write_buffer_size_x)
4060 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4061 * configure.ac (try_guile_versions): Add "guile-2.2".
4062 * configure: Regenerate.
4063 * NEWS: Add entry.
4064
aee91db3
TT
40652020-07-18 Tom Tromey <tom@tromey.com>
4066
4067 * linux-nat.c (linux_multi_process): Remove.
4068 (linux_nat_target::supports_multi_process): Return true.
4069
0e267416
AB
40702020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4073 (riscv_lookup_target_description): Return pointer out of
4074 unique_ptr.
4075 * target-descriptions.c (allocate_target_description): Add
4076 comment.
4077 (target_desc_deleter::operator()): Likewise.
4078 * target-descriptions.h (struct target_desc_deleter): Moved to
4079 gdbsupport/tdesc.h.
4080 (target_desc_up): Likewise.
4081
f80c8ec4
TT
40822020-07-17 Tom Tromey <tromey@adacore.com>
4083
4084 * linux-nat.c (linux_nat_target::supports_non_stop)
4085 (linux_nat_target::always_non_stop_p): Use "true".
4086 (linux_nat_target::supports_disable_randomization): Use "true" and
4087 "false".
4088
d0ce17d8
CT
40892020-07-16 Caroline Tice <cmtice@google.com>
4090
4091 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4092 (RNGLIST_HEADER_SIZE64): New constant definition.
4093 (struct dwop_section_names): Add rnglists_dwo.
4094 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4095 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4096 (struct dwo_sections): Add rnglists field.
4097 (read_attribut_reprocess): Add tag parameter.
4098 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4099 (cu_debug_rnglists_section): New function (decl & definition).
4100 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4101 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4102 die whose range is being checked; get rnglist section from
4103 cu_debug_rnglists_section, to get from either objfile or dwo file as
4104 appropriate. Add cases for DW_RLE_base_addressx,
4105 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4106 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4107 test inside if-condition and updating complaint message.
4108 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4109 dwarf2_rnglists_process.
4110 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4111 dwarf2_ranges_process.
4112 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4113 need_ranges_base and update comment appropriately. Also pass die tag
4114 to dwarf2_ranges_read.
4115 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4116 need_ranges_base and update comment appropriately. Also pass die tag
4117 to dwarf2_ranges_process.
4118 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4119 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4120 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4121 need_ranges_base and update comment appropriately. Also pass die tag
4122 to read_attribute_reprocess and dwarf2_ranges_read.
4123 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4124 and update function comment appropriately.
4125 (read_loclist_index): Call read_loclists_rnglists_header instead of
4126 read_loclist_header.
4127 (read_rnglist_index): New function.
4128 (read_attribute_reprocess): Add tag parameter. Add code for
4129 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4130 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4131
3dcc261c
AB
41322020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4133
4134 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4135 being resolved.
4136
ccb9eba6
AB
41372020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * arch-utils.c (show_architecture): Update formatting of messages.
4140
cf88be68
SM
41412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * gdbtypes.h (struct type) <bounds>: Handle array and string
4144 types.
4145 * ada-lang.c (assign_aggregate): Use type::bounds on
4146 array/string type.
4147 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4148 * c-varobj.c (c_number_of_children): Likewise.
4149 (c_describe_child): Likewise.
4150 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4151 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4152 (f_type_print_base): Likewise.
4153 * f-valprint.c (f77_array_offset_tbl): Likewise.
4154 (f77_get_upperbound): Likewise.
4155 (f77_print_array_1): Likewise.
4156 * guile/scm-type.c (gdbscm_type_range): Likewise.
4157 * m2-typeprint.c (m2_array): Likewise.
4158 (m2_is_long_set_of_type): Likewise.
4159 * m2-valprint.c (get_long_set_bounds): Likewise.
4160 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4161 * python/py-type.c (typy_range): Likewise.
4162 * rust-lang.c (rust_internal_print_type): Likewise.
4163 * type-stack.c (type_stack::follow_types): Likewise.
4164 * valarith.c (value_subscripted_rvalue): Likewise.
4165 * valops.c (value_cast): Likewise.
4166
509971ae
SM
41672020-07-12 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4170 callers to use the equivalent accessor methods.
4171
107406b7
SM
41722020-07-12 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4175 (struct type) <bit_stride>: New method.
4176 (TYPE_BIT_STRIDE): Remove.
4177 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4178
bb789949
SM
41792020-07-12 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4182 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4183 callers to use the equivalent accessor methods instead.
4184
39498edb
SM
41852020-07-12 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4188 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4189 callers to use the equivalent accessor methods instead.
4190
3b606f38
SM
41912020-07-12 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4194 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4195 to use dynamic_prop::kind.
4196
064d9cb9
SM
41972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4200 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4201 to get the bound property's kind and check against
4202 PROP_UNDEFINED.
4203
5537ddd0
SM
42042020-07-12 Simon Marchi <simon.marchi@efficios.com>
4205
4206 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4207 all callers to use type::range_bounds followed by
4208 dynamic_prop::{low,high}.
4209
8c2e4e06
SM
42102020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4213 const_val, set_const_val, baton, set_locexpr, set_loclist,
4214 set_addr_offset, variant_parts, set_variant_parts,
4215 original_type, set_original_type>: New methods.
4216 <kind>: Rename to...
4217 <m_kind>: ... this. Update all users to use the new methods
4218 instead.
4219 <data>: Rename to...
4220 <m_data>: ... this. Update all users to use the new methods
4221 instead.
4222
7c6f2712
SM
42232020-07-12 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * gdbtypes.c (get_discrete_bounds): Return failure if
4226 the range type's bounds are not both defined and constant
4227 values.
4228 (get_array_bounds): Update comment. Remove undefined bound check.
4229
599088e3
SM
42302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4231
4232 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4233 the type::bounds method directly.
4234
c4dfcb36
SM
42352020-07-12 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4238 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4239 are used to set the range type's bounds to use set_bounds.
4240
0a278aa7
PW
42412020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4242
4243 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4244
cce20f10
PA
42452020-07-10 Pedro Alves <pedro@palves.net>
4246
4247 * gdbthread.h (inferior_ref): Define.
4248 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4249 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4250 * thread.c
4251 (scoped_restore_current_thread::restore):
4252 Adjust to gdb::ref_ptr.
4253 (scoped_restore_current_thread::~scoped_restore_current_thread):
4254 Remove manual decref handling.
4255 (scoped_restore_current_thread::scoped_restore_current_thread):
4256 Adjust to use
4257 inferior_ref::new_reference/thread_info_ref::new_reference.
4258 Incref the thread before calling get_frame_id instead of after.
4259 Let TARGET_CLOSE_ERROR propagate.
4260
6d7aa592
PA
42612020-07-10 Pedro Alves <pedro@palves.net>
4262
4263 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4264 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4265 NOT_AVAILABLE_ERROR.
4266 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4267 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4268
b3e3a4c1
SM
42692020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4270 Pedro Alves <pedro@palves.net>
4271
4272 PR gdb/26199
4273 * infrun.c (threads_are_resumed_pending_p): Delete.
4274 (do_target_wait): Remove threads_are_executing and
4275 threads_are_resumed_pending_p checks from the inferior_matches
4276 lambda. Update comments.
4277
d6cc5d98
PA
42782020-07-10 Pedro Alves <pedro@palves.net>
4279
4280 PR gdb/26199
4281 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4282 executing threads.
4283
7d3badc6
PA
42842020-07-10 Pedro Alves <pedro@palves.net>
4285
4286 PR gdb/26199
4287 * infrun.c (handle_no_resumed): Handle multiple targets.
4288
42bd97a6
PA
42892020-07-10 Pedro Alves <pedro@palves.net>
4290
4291 PR gdb/26199
4292 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4293 target_is_async_p.
4294
43667cc6
PA
42952020-07-10 Pedro Alves <pedro@palves.net>
4296
4297 PR gdb/26199
4298 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4299 threads, not all threads.
4300
96118d11
PA
43012020-07-10 Pedro Alves <pedro@palves.net>
4302
4303 PR gdb/26199
4304 * remote.c (remote_target::open_1): Pass remote target pointer as
4305 data to create_async_event_handler.
4306 (remote_async_inferior_event_handler): Mark async event handler
4307 before returning if the remote target still has either pending
4308 events or unacknowledged notifications.
4309
54904d81
JB
43102020-07-10 John Baldwin <jhb@FreeBSD.org>
4311
4312 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4313 declaration.
4314 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4315 function.
4316
f37e5866
JB
43172020-07-09 John Baldwin <jhb@FreeBSD.org>
4318
4319 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4320 inferior_ptid.
4321
fc238d4a
JB
43222020-07-09 John Baldwin <jhb@FreeBSD.org>
4323
4324 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4325 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4326 AT_FREEBSD_PS_STRINGS.
4327
6e2469ff
HD
43282020-07-08 Hannes Domani <ssbssa@yahoo.de>
4329
4330 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4331 of debugfile path on Windows.
4332
d1076c41
JB
43332020-07-08 John Baldwin <jhb@FreeBSD.org>
4334
4335 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4336 argument to 'data'.
4337
15f3b077
TT
43382020-07-08 Tom Tromey <tromey@adacore.com>
4339
4340 * ada-lang.c (ada_exception_message_1): Use read_memory.
4341
9fc501fd
AB
43422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4343
4344 PR python/22748
4345 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4346 special handling for inline frames.
4347 * findvar.c (value_of_register_lazy): Skip inline frames when
4348 creating lazy register values.
4349 * frame.c (frame_id_computed_p): Delete definition.
4350 * frame.h (frame_id_computed_p): Delete declaration.
4351
64cb3757
AB
43522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4353
4354 * NEWS: Mention additions to Python API.
4355 * python/py-arch.c (archpy_register_groups): New function.
4356 (arch_object_methods): Add 'register_groups' method.
4357 * python/py-registers.c (reggroup_iterator_object): New struct.
4358 (reggroup_object): New struct.
4359 (gdbpy_new_reggroup): New function.
4360 (gdbpy_reggroup_to_string): New function.
4361 (gdbpy_reggroup_name): New function.
4362 (gdbpy_reggroup_iter): New function.
4363 (gdbpy_reggroup_iter_next): New function.
4364 (gdbpy_new_reggroup_iterator): New function
4365 (gdbpy_initialize_registers): Register new types.
4366 (reggroup_iterator_object_type): Define new Python type.
4367 (gdbpy_reggroup_getset): New static global.
4368 (reggroup_object_type): Define new Python type.
4369 * python/python-internal.h
4370
0f767f94
AB
43712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4372
4373 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4374 * python/py-arch.c (archpy_registers): New function.
4375 (arch_object_methods): Add 'registers' method.
4376 * python/py-registers.c: New file.
4377 * python/python-internal.h
4378 (gdbpy_new_register_descriptor_iterator): Declare.
4379 (gdbpy_initialize_registers): Declare.
4380 * python/python.c (do_start_initialization): Call
4381 gdbpy_initialize_registers.
4382 * NEWS: Mention additions to the Python API.
4383
87dbc774
AB
43842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * NEWS: Mention new Python API method.
4387 * python/py-unwind.c (pending_framepy_architecture): New function.
4388 (pending_frame_object_methods): Add architecture method.
4389
3bc98c0c
AB
43902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4391
4392 * gdbarch.c: Regenerate.
4393 * gdbarch.h: Regenerate.
4394 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4395 (gdbarch_data): Use internal_error for the case where
4396 deprecated_set_gdbarch_data was originally needed.
4397 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4398 and use passed in obstack.
4399 (libunwind_frame_set_descr): Should no longer get back NULL from
4400 gdbarch_data.
4401 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4402 type.
4403 * user-regs.c (user_regs_init): Update parameters, and use passed
4404 in obstack.
4405 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4406 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4407
d8cc8af6
TV
44082020-07-06 Tom de Vries <tdevries@suse.de>
4409
4410 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4411 End-Of-Sequence in lte_is_less_than.
4412 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4413 "gdb: Don't reorder line table entries too much when sorting".
4414
947f7597
TV
44152020-07-06 Tom de Vries <tdevries@suse.de>
4416
4417 PR tui/26205
4418 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4419
1e7c1b22
TV
44202020-07-05 Tom de Vries <tdevries@suse.de>
4421
4422 PR build/26187
4423 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4424 std::uncaught_exceptions instead of deprecated
4425 std::uncaught_exception.
4426
a36158ec
SM
44272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4428
4429 * macroexp.h (macro_stringify): Return
4430 gdb::unique_xmalloc_ptr<char>.
4431 * macroexp.c (macro_stringify): Likewise.
4432 * macrotab.c (fixup_definition): Update.
4433
14d960c8
SM
44342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4435
4436 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4437 (lex_one_token): Update.
4438 * macroexp.c (struct macro_buffer) <release>: Return
4439 gdb::unique_xmalloc_ptr<char>.
4440 (macro_stringify): Update.
4441 (macro_expand): Update.
4442 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4443 * macroexp.h (macro_expand_next): Likewise.
4444
211d5b1c
SM
44452020-07-02 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * macroexp.h (macro_lookup_ftype): Remove.
4448 (macro_expand, macro_expand_once, macro_expand_next): Remove
4449 lookup function parameters, add scope parameter.
4450 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4451 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4452 * macroscope.h (standard_macro_lookup): Change parameter type
4453 to macro_scope.
4454 * macroscope.c (standard_macro_lookup): Likewise.
4455 * c-exp.y (lex_one_token): Update.
4456 * macrocmd.c (macro_expand_command): Likewise.
4457 (macro_expand_once_command): Likewise.
4458
b1a35af2
SM
44592020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4460
4461 * inf-loop.c (inferior_event_handler): Remove client_data param.
4462 * inf-loop.h (inferior_event_handler): Likewise.
4463 * infcmd.c (step_1): Adjust.
4464 * infrun.c (proceed): Adjust.
4465 (fetch_inferior_event): Remove client_data param.
4466 (infrun_async_inferior_event_handler): Adjust.
4467 * infrun.h (fetch_inferior_event): Remove `void *` param.
4468 * linux-nat.c (handle_target_event): Adjust.
4469 * record-btrace.c (record_btrace_handle_async_inferior_event):
4470 Adjust.
4471 * record-full.c (record_full_async_inferior_event_handler):
4472 Adjust.
4473 * remote.c (remote_async_inferior_event_handler): Adjust.
4474
1cdf9e33
TT
44752020-07-01 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4478 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4479
32c1e210
TT
44802020-07-01 Tom Tromey <tom@tromey.com>
4481
4482 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4483 tui_gen_win_info.
4484 (tui_win_info::make_window): Merge with
4485 tui_gen_win_info::make_window.
4486 (tui_win_info::make_visible): Move from tui_gen_win_info.
4487 * tui/tui-win.c (tui_win_info::max_width): Move from
4488 tui_gen_win_info.
4489 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4490 type.
4491 <window_factory>: Likewise.
4492 * tui/tui-layout.c (tui_win_info::resize): Move from
4493 tui_gen_win_info.
4494 (make_standard_window): Change return type.
4495 (get_locator_window, tui_get_window_by_name): Likewise.
4496 (tui_layout_window::apply): Remove a cast.
4497 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4498 (struct tui_win_info): Merge with tui_gen_win_info.
4499 (struct tui_gen_win_info): Remove.
4500
a30cb6da
TT
45012020-07-01 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-stack.h (struct tui_locator_window): Derive from
4504 tui_win_info.
4505 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4506 <can_box>: New method.
4507
1eb2161f
TT
45082020-07-01 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4511
7134f2eb
TT
45122020-07-01 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-regs.c (tui_data_window::display_registers_from)
4515 (tui_data_window::display_registers_from)
4516 (tui_data_window::first_data_item_displayed)
4517 (tui_data_window::delete_data_content_windows): Update.
4518 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4519 Remove.
4520 (tui_data_window::check_register_values): Update.
4521 (tui_data_item_window::rerender): Add parameters. Update.
4522 (tui_data_item_window::refresh_window): Remove.
4523 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4524 virtual.
4525 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4526 tui_gen_win_info.
4527 <refresh_window, max_height, min_height>: Remove.
4528 <rerender>: Add parameters.
4529 <x, y, visible>: New members.
4530 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4531 <m_item_width>: New member.
4532
22b7b041
TT
45332020-07-01 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-regs.c (tui_data_window::show_register_group)
4536 (tui_data_window::check_register_values): Update.
4537 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4538 from item_no.
4539
c9753adb
TT
45402020-07-01 Tom Tromey <tom@tromey.com>
4541
4542 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4543 useless "if".
4544
9ab26b4a
TT
45452020-07-01 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4548 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4549
e555083f
TT
45502020-07-01 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4553 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4554 (struct tui_line_or_address): Move from tui-data.h.
4555 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4556 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4557 (tui_cmd_window, tui_source_window_base, tui_source_window)
4558 (tui_disasm_window): Don't declare.
4559 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4560 to tui-winsource.h.
4561 (SINGLE_KEY): Move to tui-stack.c.
4562
7a02bab7
TT
45632020-07-01 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4566 std::string.
4567 * tui/tui-regs.c (class tab_expansion_file): New.
4568 (tab_expansion_file::write): New method.
4569 (tui_register_format): Change return type. Use
4570 tab_expansion_file.
4571 (tui_get_register, tui_data_window::display_registers_from)
4572 (tui_data_item_window::rerender): Update.
4573 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4574 * tui/tui-io.c (tui_expand_tabs): Remove.
4575
ea68593b
TT
45762020-07-01 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4579
a8caed5d
FS
45802020-07-01 Fangrui Song <maskray@google.com>
4581
4582 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4583
9cdf9820
AKS
45842020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4585
4586 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4587 forms for DW_AT_associated and DW_AT_allocated attributes,
4588 which is already checked in function attr_to_dynamic_prop.
4589
a1520ad8
TT
45902020-06-30 Tom Tromey <tromey@adacore.com>
4591
4592 * dwarf2/read.c (quirk_rust_enum): Correctly call
4593 alloc_rust_variant for default-less enum.
4594
5ac58899
TT
45952020-06-30 Tom Tromey <tromey@adacore.com>
4596
4597 PR build/26183:
4598 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4599 gdb::to_string.
4600
19b187a9
SM
46012020-06-29 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4604 * gdbarch.h: Re-generate.
4605
cd4c4c07
TT
46062020-06-28 Tom Tromey <tom@tromey.com>
4607
4608 * command.h (cmd_types): Remove.
4609 (cmd_type): Don't declare.
4610 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4611 typedef.
4612 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4613 * cli/cli-decode.c (cmd_type): Remove.
4614
05779d57
PA
46152020-06-27 Pedro Alves <palves@redhat.com>
4616
4617 * fork-child.c (prefork_hook): Adjust.
4618 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4619 Delete.
4620 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4621 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4622 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4623 Remove declarations.
4624 (struct inferior) <set_tty, tty>: New methods.
4625 (struct inferior) <terminal>: Rename to ...
4626 (struct inferior) <m_terminal>: ... this and make private.
4627 * main.c (captured_main_1): Adjust.
4628 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4629 (mi_cmd_inferior_tty_show): Adjust.
4630 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4631 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4632
1776e3e5
NA
46332020-06-26 Nick Alcock <nick.alcock@oracle.com>
4634
4635 * configure.ac: Add --enable-libctf: handle --disable-static
4636 properly.
4637 * acinclude.m4: sinclude ../config/enable.m4.
4638 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4639 (LIBCTF): Substitute in.
4640 (CTF_DEPS): New, likewise.
4641 (CLIBS): libctf needs symbols from libbfd: move earlier.
4642 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4643 flags.
4644 * ctfread.c: Surround in ENABLE_LIBCTF.
4645 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4646 * configure: Regenerate.
4647 * config.in: Likewise.
4648
58373b80
SM
46492020-06-25 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4652
277474ee
SM
46532020-06-25 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * inferior.h (struct inferior) <terminal>: Change type to
4656 gdb::unique_xmalloc_ptr<char>.
4657 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4658 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4659 field, adjust to unique pointer.
4660 (get_inferior_io_terminal): Adjust to unique pointer.
4661
6d74da72
AB
46622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4665 registers, not just the known core set of registers.
4666
2e52d038
AB
46672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4668
4669 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4670 fflags, frm, and fcsr registers.
4671 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4672 restore groups.
4673 (riscv_tdesc_unknown_reg): New function.
4674 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4675 tdesc_use_registers.
4676 * riscv-tdep.h (struct gdbarch_tdep): Add
4677 unknown_csrs_first_regnum, unknown_csrs_count,
4678 duplicate_fflags_regnum, duplicate_frm_regnum, and
4679 duplicate_fcsr_regnum fields.
4680
be64fd07
AB
46812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4682
4683 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4684 callback, use the callback (when not null) to help number unknown
4685 registers.
4686 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4687 (tdesc_use_registers): Add extra parameter to declaration.
4688
3b9fce96
AB
46892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4690
4691 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4692 in the file.
4693 (class riscv_pending_register_alias): Likewise.
4694 (riscv_register_feature::register_info): Change 'required_p' field
4695 to 'required', and change its type. Add 'check' member function.
4696 (riscv_register_feature::register_info::check): Define new member
4697 function.
4698 (riscv_xreg_feature): Change initialisation of 'required' field.
4699 (riscv_freg_feature): Likewise.
4700 (riscv_virtual_feature): Likewise.
4701 (riscv_csr_feature): Likewise.
4702 (riscv_check_tdesc_feature): Take extra parameter, the csr
4703 tdesc_feature, rewrite the function to use the new
4704 riscv_register_feature::register_info::check function.
4705 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4706
865bad26
AB
47072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4708
4709 * features/Makefile: Remove all references to the deleted files
4710 below.
4711 * features/riscv/32bit-csr.c: Deleted.
4712 * features/riscv/32bit-csr.xml: Deleted.
4713 * features/riscv/64bit-csr.c: Deleted.
4714 * features/riscv/64bit-csr.xml: Deleted.
4715 * features/riscv/rebuild-csr-xml.sh: Deleted.
4716
ed69cbc8
AB
47172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4718
4719 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4720 whitespace error for declaration of names member variable.
4721 (struct riscv_register_feature): Add new prefer_first_name member
4722 variable, and fix whitespace error in declaration of registers.
4723 (riscv_xreg_feature): Initialize prefer_first_name field.
4724 (riscv_freg_feature): Likewise.
4725 (riscv_virtual_feature): Likewise.
4726 (riscv_csr_feature): Likewise.
4727 (riscv_register_name): Expand on comments. Remove register name
4728 modifications for CSR and virtual registers.
4729
4445e8f5
AB
47302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4733 errors.
4734
767a879e
AB
47352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4736
4737 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4738 riscv-opc.h.
4739 (class riscv_pending_register_alias): New class.
4740 (riscv_check_tdesc_feature): Take vector of pending aliases and
4741 populate it as appropriate.
4742 (riscv_setup_register_aliases): Delete.
4743 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4744 to riscv_check_tdesc_feature in all cases. Use the vector to
4745 create the register aliases.
4746
bb6e55f3
RO
47472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4748
4749 * sol2-tdep.c (sol2_static_transform_name): Remove.
4750 (sol2_init_abi): Don't register it.
4751 * gdbarch.sh (static_transform_name): Remove.
4752 * gdbarch.c, gdbarch.h: Regenerate.
4753
4754 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4755 gdbarch_static_transform_name.
4756 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4757 * stabsread.c (define_symbol) <'X'>: Remove.
4758 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4759 handling.
4760 <'V'>: Likewise.
4761 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4762 <'S'>: Remove call to gdbarch_static_transform_name.
4763
c6d36836
RO
47642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4765
4766 * procfs.c (procfs_pre_trace): New function.
4767 (procfs_target::create_inferior): Pass it to fork_inferior.
4768
a7e6196b
RO
47692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4770
4771 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4772 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4773 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4774 sol2-tdep.o, sparc-sol2-tdep.o.
4775 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4776 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4777 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4778 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4779
d412e696
RO
47802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4781
4782 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4783 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4784 Call sol2_init_abi.
4785 Remove calls to set_gdbarch_skip_solib_resolver,
4786 set_gdbarch_core_pid_to_str.
4787 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4788 (i386_sol2_static_transform_name): Remove.
4789 (i386_sol2_init_abi): Call sol2_init_abi.
4790 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4791 set_gdbarch_static_transform_name,
4792 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4793 Use sol2_sigtramp_p.
4794 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4795 (sol2_sigtramp_p): New function.
4796 (sol2_static_transform_name): New function.
4797 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4798 (sol2_init_abi): New function.
4799 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4800 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4801 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4802 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4803 (sparc_sol2_static_transform_name): Remove.
4804 (sparc32_sol2_init_abi): Call sol2_init_abi.
4805 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4806 set_gdbarch_static_transform_name,
4807 set_gdbarch_skip_solib_resolver,
4808 set_gdbarch_core_pid_to_str.
4809 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4810 (sparc_sol2_static_transform_name): Remove
4811 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4812 call sol2_sigtramp_p.
4813 (sparc64_sol2_init_abi): Call sol2_init_abi.
4814 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4815 set_gdbarch_static_transform_name,
4816 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4817
a8654e7d
PW
48182020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819
4820 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4821 * exec.c (validate_exec_file): If from_tty, set both
4822 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4823 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4824 and from_tty, unconditionally ask a confirmation.
4825
caa7fd04
AB
48262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4827
4828 * target-descriptions.c (tdesc_architecture_name): Protect against
4829 NULL pointer dereference.
4830 (maint_print_xml_tdesc_cmd): New function.
4831 (_initialize_target_descriptions): Register new 'maint print
4832 xml-tdesc' command and give it the filename completer.
4833 * NEWS: Mention new 'maint print xml-tdesc' command.
4834
fbf42f4e
AB
48352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4836
4837 * target-descriptions.c (class tdesc_compatible_info): New class.
4838 (struct target_desc): Change type of compatible vector.
4839 (tdesc_compatible_p): Update for change in type of
4840 target_desc::compatible.
4841 (tdesc_compatible_info_list): New function.
4842 (tdesc_compatible_info_arch_name): New function.
4843 (tdesc_add_compatible): Update for change in type of
4844 target_desc::compatible.
4845 (print_c_tdesc::visit_pre): Likewise.
4846
20821f4e
AB
48472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4848
4849 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4850 whitespace to underscore.
4851 (maint_print_c_tdesc_cmd): Use fake filename for target
4852 descriptions that came from the target.
4853 (_initialize_target_descriptions): Add filename command completion
4854 for 'maint print c-tdesc'.
4855
1fb5ee62
SM
48562020-06-23 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4859 lines.
4860
fc3ecb3e
SM
48612020-06-23 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4864 lines.
4865 (dwarf2_find_location_expression): Likewise.
4866 (call_site_parameter_matches): Likewise.
4867 (dwarf2_compile_expr_to_ax): Likewise.
4868 (disassemble_dwarf_expression): Likewise.
4869 (loclist_describe_location): Likewise.
4870
236ef034
PA
48712020-06-23 Pedro Alves <palves@redhat.com>
4872
4873 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4874 progspace-and-thread.h. Include scoped-mock-context.h instead.
4875 (register_to_value_test): Use scoped_mock_context.
4876 * regcache.c: Include "scoped-mock-context.h".
4877 (cooked_read_test): Don't error out if a target is already pushed.
4878 Use scoped_mock_context. Adjust.
4879 * scoped-mock-context.h: New file.
4880
39e7ecca
AB
48812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4882
4883 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4884 initializer.
4885 (ada_language::is_string_type_p): New member function.
4886 * c-lang.c (c_language_data): Delete la_is_string_type_p
4887 initializer.
4888 (cplus_language_data): Likewise.
4889 (asm_language_data): Likewise.
4890 (minimal_language_data): Likewise.
4891 * d-lang.c (d_language_data): Likewise.
4892 * f-lang.c (f_is_string_type_p): Delete function, implementation
4893 moved to f_language::is_string_type_p.
4894 (f_language_data): Delete la_is_string_type_p initializer.
4895 (f_language::is_string_type_p): New member function,
4896 implementation from f_is_string_type_p.
4897 * go-lang.c (go_is_string_type_p): Delete function, implementation
4898 moved to go_language::is_string_type_p.
4899 (go_language_data): Delete la_is_string_type_p initializer.
4900 (go_language::is_string_type_p): New member function,
4901 implementation from go_is_string_type_p.
4902 * language.c (language_defn::is_string_type_p): Define new member
4903 function.
4904 (default_is_string_type_p): Make static, add comment copied from
4905 header file.
4906 (unknown_language_data): Delete la_is_string_type_p initializer.
4907 (unknown_language::is_string_type_p): New member function.
4908 (auto_language_data): Delete la_is_string_type_p initializer.
4909 (auto_language::is_string_type_p): New member function.
4910 * language.h (language_data): Delete la_is_string_type_p field.
4911 (language_defn::is_string_type_p): Declare new function.
4912 (default_is_string_type_p): Delete desclaration, move comment to
4913 definition.
4914 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4915 moved to m2_language::is_string_type_p.
4916 (m2_language_data): Delete la_is_string_type_p initializer.
4917 (m2_language::is_string_type_p): New member function,
4918 implementation from m2_is_string_type_p.
4919 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4920 initializer.
4921 * opencl-lang.c (opencl_language_data): Likewise.
4922 * p-lang.c (pascal_is_string_type_p): Delete function,
4923 implementation moved to pascal_language::is_string_type_p.
4924 (pascal_language_data): Delete la_is_string_type_p initializer.
4925 (pascal_language::is_string_type_p): New member function,
4926 implementation from pascal_is_string_type_p.
4927 * rust-lang.c (rust_is_string_type_p): Delete function,
4928 implementation moved to rust_language::is_string_type_p.
4929 (rust_language_data): Delete la_is_string_type_p initializer.
4930 (rust_language::is_string_type_p): New member function,
4931 implementation from rust_is_string_type_p.
4932 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4933 is_string_type_p.
4934
4ffc13fb
AB
49352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * ada-lang.c (ada_language_data): Delete la_print_typedef
4938 initializer.
4939 (ada_language::print_typedef): New member function.
4940 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4941 (cplus_language_data): Likewise.
4942 (asm_language_data): Likewise.
4943 (minimal_language_data): Likewise.
4944 * d-lang.c (d_language_data): Likewise.
4945 * f-lang.c (f_language_data): Likewise.
4946 (f_language::print_typedef): New member function.
4947 * go-lang.c (go_language_data): Delete la_print_typedef
4948 initializer.
4949 * language.c (language_defn::print_typedef): Define member
4950 function.
4951 (unknown_language_data): Delete la_print_typedef initializer.
4952 (unknown_language::print_typedef): New member function.
4953 (auto_language_data): Delete la_print_typedef initializer.
4954 (auto_language::print_typedef): New member function.
4955 * language.h (language_data): Delete la_print_typedef field.
4956 (language_defn::print_typedef): Declare new member function.
4957 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4958 (default_print_typedef): Delete declaration.
4959 * m2-lang.c (m2_language_data): Delete la_print_typedef
4960 initializer.
4961 (m2_language::print_typedef): New member function.
4962 * objc-lang.c (objc_language_data): Delete la_print_typedef
4963 initializer.
4964 * opencl-lang.c (opencl_language_data): Likewise.
4965 * p-lang.c (pascal_language_data): Likewise.
4966 (pascal_language::print_typedef): New member function.
4967 * rust-lang.c (rust_print_typedef): Delete function,
4968 implementation moved to rust_language::print_typedef.
4969 (rust_language): Delete la_print_typedef initializer.
4970 (rust_language::print_typedef): New member function,
4971 implementation from rust_print_typedef.
4972 * typeprint.c (default_print_typedef): Delete.
4973
d711ee67
AB
49742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4977 (ada_language::printstr): New member function.
4978 * c-lang.c (c_language_data): Delete la_printstr initializer.
4979 (cplus_language_data): Likewise.
4980 (asm_language_data): Likewise.
4981 (minimal_language_data): Likewise.
4982 * d-lang.c (d_language_data): Likewise.
4983 * f-lang.c (f_printstr): Rename to f_language::printstr.
4984 (f_language_data): Delete la_printstr initializer.
4985 (f_language::printstr): New member function, implementation from
4986 f_printstr.
4987 * go-lang.c (go_language_data): Delete la_printstr initializer.
4988 * language.c (language_defn::printstr): Define new member
4989 function.
4990 (unk_lang_printstr): Delete.
4991 (unknown_language_data): Delete la_printstr initializer.
4992 (unknown_language::printstr): New member function.
4993 (auto_language_data): Delete la_printstr initializer.
4994 (auto_language::printstr): New member function.
4995 * language.h (language_data): Delete la_printstr field.
4996 (language_defn::printstr): Declare new member function.
4997 (LA_PRINT_STRING): Update call to printstr.
4998 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4999 (m2_language_data): Delete la_printstr initializer.
5000 (m2_language::printstr): New member function, implementation from
5001 m2_printstr.
5002 * objc-lang.c (objc_language_data): Delete la_printstr
5003 initializer.
5004 * opencl-lang.c (opencl_language_data): Likewise.
5005 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5006 (pascal_language_data): Delete la_printstr initializer.
5007 (pascal_language::printstr): New member function, implementation
5008 from pascal_printstr.
5009 * p-lang.h (pascal_printstr): Delete declaration.
5010 * rust-lang.c (rust_printstr): Update header comment.
5011 (rust_language_data): Delete la_printstr initializer.
5012 (rust_language::printstr): New member function.
5013
52b50f2c
AB
50142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5017 (ada_language::printchar): New member function.
5018 * c-lang.c (c_language_data): Delete la_printchar initializer.
5019 (cplus_language_data): Likewise.
5020 (asm_language_data): Likewise.
5021 (minimal_language_data): Likewise.
5022 * d-lang.c (d_language_data): Likewise.
5023 * f-lang.c (f_printchar): Rename to f_language::printchar.
5024 (f_language_data): Delete la_printchar initializer.
5025 (f_language::printchar): New member function, implementation from
5026 f_printchar.
5027 * go-lang.c (go_language_data): Delete la_printchar initializer.
5028 * language.c (unk_lang_printchar): Delete.
5029 (language_defn::printchar): Define new member function.
5030 (unknown_language_data): Delete la_printchar initializer.
5031 (unknown_language::printchar): New member function.
5032 (auto_language_data): Delete la_printchar initializer.
5033 (auto_language::printchar): New member function.
5034 * language.h (language_data): Delete la_printchar field.
5035 (language_defn::printchar): Declare new member function.
5036 (LA_PRINT_CHAR): Update call to printchar.
5037 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5038 (m2_language::printchar): New member function.
5039 * objc-lang.c (objc_language_data): Delete la_printchar
5040 initializer.
5041 * opencl-lang.c (opencl_language_data): Likewise.
5042 * p-lang.c (pascal_language_data): Delete la_printchar
5043 initializer.
5044 (pascal_language::printchar): New member function.
5045 * rust-lang.c (rust_printchar): Rename to
5046 rust_language::printchar.
5047 (rust_language_data): Delete la_printchar initializer.
5048 (rust_language::printchar): New member function, implementation
5049 from rust_printchar.
5050
ec8cec5b
AB
50512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5054 (ada_language_data): Delete la_emitchar initializer.
5055 (ada_language::emitchar): New member function, implementation from
5056 emit_char.
5057 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5058 (cplus_language_data): Likewise.
5059 (asm_language_data): Likewise.
5060 (minimal_language_data): Likewise.
5061 * d-lang.c (d_language_data): Likewise.
5062 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5063 (f_language_data): Delete la_emitchar initializer.
5064 (f_language::emitchar): New member function, implementation from
5065 f_emit_char.
5066 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5067 * language.c (unk_lang_emit_char): Delete.
5068 (language_defn::emitchar): New member function definition.
5069 (unknown_language_data): Delete la_emitchar initializer.
5070 (unknown_language::emitchar): New member function.
5071 (auto_language_data): Delete la_emitchar initializer.
5072 (auto_language::emitchar): New member function.
5073 * language.h (language_data): Delete la_emitchar field.
5074 (language_defn::emitchar): New member field declaration.
5075 (LA_EMIT_CHAR): Update call to emitchar.
5076 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5077 (m2_language_data): Delete la_emitchar initializer.
5078 (m2_language::emitchar): New member function, implementation from
5079 m2_emit_char.
5080 * objc-lang.c (objc_language_data): Delete la_emitchar
5081 initializer.
5082 * opencl-lang.c (opencl_language_data): Likewise.
5083 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5084 (pascal_language_data): Delete la_emitchar initializer.
5085 (pascal_language::emitchar): New member function, implementation
5086 from pascal_emit_char.
5087 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5088 (rust_language_data): Delete la_emitchar initializer.
5089 (rust_language::emitchar): New member function, implementation
5090 from rust_emitchar.
5091
1bf9c363
AB
50922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5095 (ada_language_data): Delete la_post_parser initializer.
5096 (ada_language::post_parser): New member function.
5097 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5098 (cplus_language_data): Likewise.
5099 (asm_language_data): Likewise.
5100 (minimal_language_data): Likewise.
5101 * d-lang.c (d_language_data): Likewise.
5102 * f-lang.c (f_language_data): Likewise.
5103 * go-lang.c (go_language_data): Likewise.
5104 * language.c (unknown_language_data): Likewise.
5105 (auto_language_data): Likewise.
5106 * language.h (language_data): Delete la_post_parser field.
5107 (language_defn::post_parser): New member function.
5108 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5109 * objc-lang.c (objc_language_data): Likewise.
5110 * opencl-lang.c (opencl_language_data): Likewise.
5111 * p-lang.c (pascal_language_data): Likewise.
5112 * parse.c (parse_exp_in_context): Update call to post_parser.
5113 (null_post_parser): Delete definition.
5114 * parser-defs.h (null_post_parser): Delete declaration.
5115 * rust-lang.c (rust_language_data): Delete la_post_parser
5116 initializer.
5117
87afa652
AB
51182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * ada-lang.c (parse): Rename to ada_language::parser.
5121 (ada_language_data): Delete la_parser initializer.
5122 (ada_language::parser): New member function, implementation from
5123 parse.
5124 * c-lang.c (c_language_data): Delete la_parser initializer.
5125 (cplus_language_data): Likewise.
5126 (asm_language_data): Likewise.
5127 (minimal_language_data): Likewise.
5128 * d-lang.c (d_language_data): Likewise.
5129 (d_language::parser): New member function.
5130 * f-lang.c (f_language_data): Delete la_parser initializer.
5131 (f_language::parser): New member function.
5132 * go-lang.c (go_language_data): Delete la_parser initializer.
5133 (go_language::parser): New member function.
5134 * language.c (unk_lang_parser): Delete.
5135 (language_defn::parser): Define new member function.
5136 (unknown_language_data): Delete la_parser initializer.
5137 (unknown_language::parser): New member function.
5138 (auto_language_data): Delete la_parser initializer.
5139 (auto_language::parser): New member function.
5140 * language.h (language_data): Delete la_parser field.
5141 (language_defn::parser): Declare new member function.
5142 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5143 (m2_language::parser): New member function.
5144 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5145 * opencl-lang.c (opencl_language_data): Likewise.
5146 * p-lang.c (pascal_language_data): Likewise.
5147 (pascal_language::parser): New member function.
5148 * parse.c (parse_exp_in_context): Update call to parser.
5149 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5150 (rust_language::parser): New member function.
5151
37825800
AB
51522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 * top.c (print_gdb_configuration): Print --with-python-libdir
5155 configuration value.
5156
5b860c93
PW
51572020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5158
5159 * NEWS: Mention change to the alias command.
5160
cf00cd6f
PW
51612020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5162
5163 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5164 (alias_command_completer)
5165 (make_alias_options_def_group): New functions.
5166 (alias_opts, alias_option_defs): New struct and array.
5167 (alias_usage_error): Update usage.
5168 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5169 Use option framework.
5170 (_initialize_cli_cmds): Update alias command help.
5171 Update aliases command help.
5172 (show_user):
5173 Add NULL for new default_args lookup_cmd argument.
5174 (valid_command_p): Rename to validate_aliased_command.
5175 Add NULL for new default_args lookup_cmd argument. Verify that the
5176 aliased_command has no default args.
5177 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5178 (lookup_cmd_1, lookup_cmd): New argument default_args.
5179 (add_alias_cmd):
5180 Add NULL for new default_args lookup_cmd argument.
5181 (print_help_for_command): Show default args under the layout
5182 alias some_alias = some_aliased_cmd some_alias_default_arg.
5183 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5184 xfree default_args in destructor.
5185 * cli/cli-script.c (process_next_line, do_define_command):
5186 Add NULL for new default_args lookup_cmd argument.
5187 * command.h: Declare new default_args argument in lookup_cmd
5188 and lookup_cmd_1.
5189 * completer.c (complete_line_internal_1):
5190 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5191 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5192 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5193 Likewise.
5194 * infcmd.c (_initialize_infcmd): Likewise.
5195 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5196 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5197 * python/py-param.c (add_setshow_generic): Likewise.
5198 * remote.c (_initialize_remote): Likewise.
5199 * top.c (execute_command): Prepend default_args if command has some.
5200 (set_verbose):
5201 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5202 * tracepoint.c (validate_actionline, encode_actions_1):
5203 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5204
bd920864
TBA
52052020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5206
5207 * jit.c (jit_read_descriptor): Use bool as the return type.
5208 (jit_breakpoint_re_set_internal): Use bool as the return type.
5209 Invert the return value logic; return true if the jit breakpoint
5210 has been successfully initialized.
5211 (jit_inferior_init): Update the call to
5212 jit_breakpoint_re_set_internal.
5213
f8098322
PA
52142020-06-22 Pedro Alves <palves@redhat.com>
5215
5216 PR gdb/25939
5217 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5218 Use the current inferior instead. Don't return
5219 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5220 wait again.
5221 * sol-thread.c (sol_thread_target::wait): Don't reference
5222 inferior_ptid.
5223 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5224 (sol_update_thread_list_callback): Use the current inferior's pid
5225 instead of inferior_ptid.
5226
196535a6
RO
52272020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5228
5229 * procfs.c: Cleanup many comments.
5230
5231 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5232 (AFTER_WATCHFLAG): Replace by value.
5233
5234 (MAIN_PROC_NAME_FORMAT): Inline ...
5235 (create_procinfo): ... here.
5236
5237 (procfs_debug_inferior): Remove SYS_exec handling.
5238 (syscall_is_exec): Likewise.
5239 (procfs_set_exec_trap): Likewise.
5240
5241 (syscall_is_lwp_exit): Inline in callers.
5242 (syscall_is_exit): Likewise.
5243 (syscall_is_exec): Likewise.
5244 (syscall_is_lwp_create): Likewise.
5245
5246 (invalidate_cache): Remove #if 0 code.
5247
5248 (make_signal_thread_runnable): Remove.
5249 (procfs_target::resume): Remove #if 0 code.
5250
cf6f3e86
RO
52512020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5252
5253 PR gdb/25939
5254 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5255 call ...
5256 (procfs_target::create_inferior): ... here.
5257
48e9cc84
PW
52582020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5259
5260 * exec.c (validate_exec_file): Ensure the build-id is up to
5261 date by calling reopen_exec_file (that checks file timestamp
5262 to decide to re-read the file).
5263
3922b302
PA
52642020-06-18 Pedro Alves <palves@redhat.com>
5265
5266 PR gdb/25412
5267 * gdbthread.h (delete_thread, delete_thread_silent)
5268 (find_thread_ptid): Update comments.
5269 * thread.c (current_thread_): New global.
5270 (is_current_thread): Move higher, and reimplement.
5271 (inferior_thread): Reimplement.
5272 (set_thread_exited): Use bool. Add assertions.
5273 (add_thread_silent): Simplify thread-reuse handling by always
5274 calling delete_thread.
5275 (delete_thread): Remove intro comment.
5276 (find_thread_ptid): Skip exited threads.
5277 (switch_to_thread_no_regs): Write to current_thread_.
5278 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5279 INFERIOR_PTID. Clear current_thread_.
5280
6dbdab44
PA
52812020-06-18 Pedro Alves <palves@redhat.com>
5282
5283 * aix-thread.c (pd_update): Use switch_to_thread.
5284
2da4b788
PA
52852020-06-18 Pedro Alves <palves@redhat.com>
5286
5287 * ravenscar-thread.c (ravenscar_thread_target): Update.
5288 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5289 (ravenscar_thread_target::add_active_thread): ... this. Don't
5290 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5291 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5292
50838d1b
PA
52932020-06-18 Pedro Alves <palves@redhat.com>
5294
5295 * nat/windows-nat.c (current_windows_thread): Remove.
5296 * nat/windows-nat.h (current_windows_thread): Remove.
5297 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5298 Adjust.
5299 (display_selectors): Adjust to fetch the current
5300 windows_thread_info based on inferior_ptid.
5301 (fake_create_process): No longer write to current_windows_thread.
5302 (windows_nat_target::get_windows_debug_event):
5303 Don't set inferior_ptid or current_windows_thread.
5304 (windows_nat_target::wait): Adjust to not rely on
5305 current_windows_thread.
5306 (do_initial_windows_stuff): Now a method of windows_nat_target.
5307 Switch to the last_ptid thread.
5308 (windows_nat_target::attach): Adjust.
5309 (windows_nat_target::detach): Use switch_to_no_thread instead of
5310 writing to inferior_ptid directly.
5311 (windows_nat_target::create_inferior): Adjust.
5312
31ce04e9
PA
53132020-06-18 Pedro Alves <palves@redhat.com>
5314
5315 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5316
1ee1a363
PA
53172020-06-18 Pedro Alves <palves@redhat.com>
5318
5319 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5320 after creating it, instead of writing to inferior_ptid. Don't
5321 write to inferior_ptid.
5322
6d350754
PA
53232020-06-18 Pedro Alves <palves@redhat.com>
5324
5325 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5326
5d971d48
PA
53272020-06-18 Pedro Alves <palves@redhat.com>
5328
5329 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5330 it, instead of writing to inferior_ptid.
5331
86e57d1b
PA
53322020-06-18 Pedro Alves <palves@redhat.com>
5333
5334 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5335 to inferior_ptid.
5336
f2e1c129
PA
53372020-06-18 Pedro Alves <palves@redhat.com>
5338
5339 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5340 instead of writing to inferior_ptid directly.
5341
60db1b85
PA
53422020-06-18 Pedro Alves <palves@redhat.com>
5343
5344 * corelow.c (core_target::close): Use switch_to_no_thread instead
5345 of writing to inferior_ptid directly.
5346 (add_to_thread_list, core_target_open): Use switch_to_thread
5347 instead of writing to inferior_ptid directly.
5348
fe7d6a8d
PA
53492020-06-18 Pedro Alves <palves@redhat.com>
5350
5351 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5352 inferior_ptid.
5353 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5354 inferior_ptid.
5355 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5356 inferior_ptid directly.
5357 (darwin_nat_target::init_thread_list): Switch to thread, instead
5358 of writing to inferior_ptid.
5359 (darwin_nat_target::attach): Don't write to inferior_ptid.
5360 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5361
975f8708
PA
53622020-06-18 Pedro Alves <palves@redhat.com>
5363
5364 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5365 thread.
5366 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5367 Instead use switch_to_thread.
5368 (gnu_nat_target::detach): Use switch_to_no_thread
5369 instead of writing to inferior_ptid directly. Used passed-in
5370 inferior instead of looking up the inferior by pid.
5371
1a204730
PA
53722020-06-18 Pedro Alves <palves@redhat.com>
5373
5374 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5375 inferior_ptid.
5376
ebe84f23
PA
53772020-06-18 Pedro Alves <palves@redhat.com>
5378
5379 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5380 inferior_ptid.
5381 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5382 thread.
5383 (nto_procfs_target::detach): Avoid referencing
5384 inferior_ptid. Use switch_to_no_thread instead of writing to
5385 inferior_ptid directly.
5386 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5387 instead of writing to inferior_ptid directly.
5388 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5389 to thread.
5390
191f02e5
PA
53912020-06-18 Pedro Alves <palves@redhat.com>
5392
5393 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5394 after creating it, instead of writing to inferior_ptid.
5395 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5396 to inferior_ptid directly.
5397 (gdbsim_target::wait): Don't write to inferior_ptid.
5398
0ac55310
PA
53992020-06-18 Pedro Alves <palves@redhat.com>
5400
5401 * remote.c (remote_target::remote_notice_new_inferior): Use
5402 switch_to_thread instead of writing to inferior_ptid directly.
5403 (remote_target::add_current_inferior_and_thread): Use
5404 switch_to_no_thread instead of writing to inferior_ptid directly.
5405 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5406 and switch_to_thread instead of using set_current_inferior or
5407 writing to inferior_ptid directly.
5408
5233f39b
PA
54092020-06-18 Pedro Alves <palves@redhat.com>
5410
5411 * tracectf.c (ctf_target_open): Switch to added thread instead of
5412 writing to inferior_ptid directly.
5413 (ctf_target::close): Use switch_to_no_thread instead of writing to
5414 inferior_ptid directly.
5415
087e161b
PA
54162020-06-18 Pedro Alves <palves@redhat.com>
5417
5418 * tracefile-tfile.c (tfile_target_open): Don't write to
5419 inferior_ptid directly, instead switch to added thread.
5420 (tfile_target::close): Use switch_to_no_thread instead of writing
5421 to inferior_ptid directly.
5422
7fb43e53
PA
54232020-06-18 Pedro Alves <palves@redhat.com>
5424
5425 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5426 (procfs_target::detach): Use switch_to_no_thread
5427 instead of writing to inferior_ptid directly.
5428 (do_attach): Change return type to void. Switch to the added
5429 thread.
5430 (procfs_target::create_inferior): Switch to the added thread.
5431 (procfs_do_thread_registers): Don't write to inferior_ptid.
5432
18493a00
PA
54332020-06-18 Pedro Alves <palves@redhat.com>
5434
5435 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5436 of writing to inferior_ptid.
5437 (scoped_restore_exited_inferior): Delete.
5438 (handle_vfork_child_exec_or_exit): Simplify using
5439 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5440 instead of writing to inferior_ptid.
5441 (THREAD_STOPPED_BY): Delete.
5442 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5443 (thread_stopped_by_hw_breakpoint): Delete.
5444 (save_waitstatus): Use
5445 scoped_restore_current_thread+switch_to_thread, and call
5446 target_stopped_by_watchpoint instead of
5447 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5448 instead of thread_stopped_by_sw_breakpoint, and
5449 target_stopped_by_hw_breakpoint instead of
5450 thread_stopped_by_hw_breakpoint.
5451 (handle_inferior_event)
5452 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5453 inferior_ptid directly, nor
5454 set_current_inferior/set_current_program_space. Use
5455 switch_to_thread / switch_to_inferior_no_thread instead.
5456
a0776b13
PA
54572020-06-18 Pedro Alves <palves@redhat.com>
5458
5459 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5460 instead of writing to inferior_ptid.
5461
6155c136
PA
54622020-06-18 Pedro Alves <palves@redhat.com>
5463
5464 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5465 added thread.
5466 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5467 to the added thread.
5468 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5469 instead of writing to inferior_ptid.
5470
c5316fc6
PA
54712020-06-18 Pedro Alves <palves@redhat.com>
5472
5473 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5474 (register_to_value_test): Mock a program_space too. Heap-allocate
5475 the address space. Don't write to inferior_ptid. Use
5476 switch_to_thread instead.
5477
8df01799
PA
54782020-06-18 Pedro Alves <palves@redhat.com>
5479
5480 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5481 Delete.
5482 (find_signalled_thread()): New, factored out from
5483 linux_make_corefile_notes and adjusted to handle exited threads.
5484 (linux_make_corefile_notes): Adjust to use the new
5485 find_signalled_thread.
5486
41792d68
PA
54872020-06-18 Pedro Alves <palves@redhat.com>
5488
5489 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5490 of saving/restoring inferior_ptid.
5491
612f258a
TT
54922020-06-17 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5495 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5496 declare.
5497 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5498
efb763a5
SM
54992020-06-15 Simon Marchi <simon.marchi@efficios.com>
5500
5501 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5502 of partial symtabs.
5503
2951f6c0
SM
55042020-06-17 Simon Marchi <simon.marchi@efficios.com>
5505
5506 * regformats/reg-arm.dat: Remove.
5507 * regformats/reg-bfin.dat: Remove.
5508 * regformats/reg-cris.dat: Remove.
5509 * regformats/reg-crisv32.dat: Remove.
5510 * regformats/reg-m32r.dat: Remove.
5511 * regformats/reg-tilegx.dat: Remove.
5512 * regformats/reg-tilegx32.dat: Remove.
5513
7d458ea5
SM
55142020-06-17 Simon Marchi <simon.marchi@efficios.com>
5515
5516 * features/Makefile (WHICH): Remove arm files.
5517 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5518 * regformats/arm/arm-with-neon.dat: Remove.
5519 * regformats/arm/arm-with-vfpv2.dat: Remove.
5520 * regformats/arm/arm-with-vfpv3.dat: Remove.
5521
3af96c0d
SM
55222020-06-17 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * features/Makefile (XMLTOC): Remove rx.xml.
5525
b25e22fd
PA
55262020-06-17 Pedro Alves <palves@redhat.com>
5527
5528 * gdbthread.h (thread_control_state) <trap_expected> Update
5529 comments.
5530
a78a19b1
AB
55312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5532
5533 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5534 ada_language::lookup_symbol_nonlocal.
5535 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5536 (ada_language::lookup_symbol_nonlocal): New member function,
5537 implementation from ada_lookup_symbol_nonlocal.
5538 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5539 initializer.
5540 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5541 initializer.
5542 (cplus_language::lookup_symbol_nonlocal): New member function.
5543 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5544 (minimal_language_data) Likewise.
5545 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5546 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5547 initializer.
5548 (d_language::lookup_symbol_nonlocal): New member function.
5549 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5550 initializer.
5551 (f_language::lookup_symbol_nonlocal): New member function.
5552 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5553 initializer.
5554 * language.c (unknown_language_data): Likewise.
5555 (auto_language_data): Likewise.
5556 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5557 field.
5558 (language_defn::lookup_symbol_nonlocal): New member function.
5559 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5560 initializer.
5561 * objc-lang.c (objc_language_data): Likewise.
5562 * opencl-lang.c (opencl_language_data): Likewise.
5563 * p-lang.c (pascal_language_data): Likewise.
5564 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5565 rust_language::lookup_symbol_nonlocal.
5566 (rust_language_data): Delete la_lookup_symbol_nonlocal
5567 initializer.
5568 (rust_language::lookup_symbol_nonlocal): New member function,
5569 implementation from rust_lookup_symbol_nonlocal.
5570 * symtab.c (lookup_symbol_aux): Update call to
5571 lookup_symbol_nonlocal.
5572 (basic_lookup_symbol_nonlocal): Rename to...
5573 (language_defn::lookup_symbol_nonlocal): ...this, and update
5574 header comment. Remove language_defn parameter, and replace with
5575 uses of `this'.
5576 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5577
ebe2334e
AB
55782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5579
5580 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5581 initializer.
5582 (ada_language::value_print_inner): New member function.
5583 * c-lang.c (c_language_data): Delete la_value_print_inner
5584 initializer.
5585 (cplus_language_data): Likewise.
5586 (asm_language_data): Likewise.
5587 (minimal_language_data): Likewise.
5588 * d-lang.c (d_language_data): Likewise.
5589 (d_language::value_print_inner): New member function.
5590 * f-lang.c (f_language_data): Delete la_value_print_inner
5591 initializer.
5592 (f_language::value_print_inner): New member function.
5593 * f-lang.h (f_value_print_innner): Rename to...
5594 (f_value_print_inner): ...this (note spelling of 'inner').
5595 * f-valprint.c (f_value_print_innner): Rename to...
5596 (f_value_print_inner): ...this (note spelling of 'inner').
5597 * go-lang.c (go_language_data): Delete la_value_print_inner
5598 initializer.
5599 (go_language::value_print_inner): New member function.
5600 * language.c (language_defn::value_print_inner): Define new member
5601 function.
5602 (unk_lang_value_print_inner): Delete.
5603 (unknown_language_data): Delete la_value_print_inner initializer.
5604 (unknown_language::value_print_inner): New member function.
5605 (auto_language_data): Delete la_value_print_inner initializer.
5606 (auto_language::value_print_inner): New member function.
5607 * language.h (language_data): Delete la_value_print_inner field.
5608 (language_defn::value_print_inner): Delcare new member function.
5609 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5610 initializer.
5611 (m2_language::value_print_inner): New member function.
5612 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5613 initializer.
5614 * opencl-lang.c (opencl_language_data): Likewise.
5615 * p-lang.c (pascal_language_data): Likewise.
5616 (pascal_language::value_print_inner): New member function.
5617 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5618 initializer.
5619 (rust_language::value_print_inner): New member function.
5620 * valprint.c (do_val_print): Update call to value_print_inner.
5621
a1d1fa3e
AB
56222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * ada-lang.c (ada_language_data): Delete la_value_print
5625 initializer.
5626 (ada_language::value_print): New member function.
5627 * c-lang.c (c_language_data): Delete la_value_print initializer.
5628 (cplus_language_data): Likewise.
5629 (asm_language_data): Likewise.
5630 (minimal_language_data): Likewise.
5631 * d-lang.c (d_language_data): Likewise.
5632 * f-lang.c (f_language_data): Likewise.
5633 * go-lang.c (go_language_data): Likewise.
5634 * language.c (unk_lang_value_print): Delete.
5635 (language_defn::value_print): Define new member function.
5636 (unknown_language_data): Delete la_value_print initializer.
5637 (unknown_language::value_print): New member function.
5638 (auto_language_data): Delete la_value_print initializer.
5639 (auto_language::value_print): New member function.
5640 * language.h (language_data): Delete la_value_print field.
5641 (language_defn::value_print): Declare new member function.
5642 (LA_VALUE_PRINT): Update call to value_print.
5643 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5644 * objc-lang.c (objc_language_data): Likewise.
5645 * opencl-lang.c (opencl_language_data): Likewise.
5646 * p-lang.c (pascal_language_data): Likewise.
5647 (pascal_language::value_print): New member function.
5648 * rust-lang.c (rust_language_data): Delete la_value_print
5649 initializer.
5650
f16a9f57
AB
56512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * ada-lang.c (ada_watch_location_expression): Rename to
5654 ada_language::watch_location_expression.
5655 (ada_language_data): Delete la_watch_location_expression
5656 initializer.
5657 (ada_language::watch_location_expression): New member function,
5658 implementation from ada_watch_location_expression.
5659 * breakpoint.c (watch_command_1): Update call to
5660 watch_location_expression.
5661 * c-lang.c (c_watch_location_expression): Rename to
5662 language_defn::watch_location_expression.
5663 (c_language_data): Delete la_watch_location_expression
5664 initializer.
5665 (cplus_language_data): Likewise.
5666 (asm_language_data): Likewise.
5667 (minimal_language_data): Likewise.
5668 * c-lang.h (c_watch_location_expression): Delete declaration.
5669 * d-lang.c (d_language_data): Delete la_watch_location_expression
5670 initializer.
5671 * f-lang.c (f_language_data): Likewise.
5672 * go-lang.c (go_language_data): Likewise.
5673 * language.c (language_defn::watch_location_expression): Member
5674 function implementation from c_watch_location_expression.
5675 (unknown_language_data): Delete la_watch_location_expression
5676 initializer.
5677 (auto_language_data): Likewise.
5678 * language.h (language_data): Delete la_watch_location_expression
5679 field.
5680 (language_defn::watch_location_expression): Declare new member
5681 function.
5682 * m2-lang.c (m2_language_data): Delete
5683 la_watch_location_expression initializer.
5684 * objc-lang.c (objc_language_data): Likewise.
5685 * opencl-lang.c (opencl_language_data): Likewise.
5686 * p-lang.c (pascal_language_data): Likewise.
5687 * rust-lang.c (rust_watch_location_expression): Rename to
5688 rust_language::watch_location_expression.
5689 (rust_language_data): Delete la_watch_location_expression
5690 initializer.
5691 (rust_language::watch_location_expression): New member function,
5692 implementation from rust_watch_location_expression.
5693
7e56227d
AB
56942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5697 ada_language::collect_symbol_completion_matches.
5698 (ada_language_data): Delete la_collect_symbol_completion_matches
5699 initializer.
5700 (ada_language::collect_symbol_completion_matches): New member
5701 function, implementation from
5702 ada_collect_symbol_completion_matches.
5703 * c-lang.c (c_language_data): Delete
5704 la_collect_symbol_completion_matches initializer.
5705 (cplus_language_data): Likewise.
5706 (asm_language_data): Likewise.
5707 (minimal_language_data): Likewise.
5708 * d-lang.c (d_language_data): Likewise.
5709 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5710 f_language::collect_symbol_completion_matches.
5711 (f_language_data): Delete la_collect_symbol_completion_matches
5712 initializer.
5713 (f_language::collect_symbol_completion_matches) New member
5714 function, implementation from f_collect_symbol_completion_matches.
5715 * go-lang.c (go_language_data): Delete
5716 la_collect_symbol_completion_matches initializer.
5717 * language.c (unknown_language_data): Likewise.
5718 (auto_language_data): Likewise.
5719 * language.h (language_data): Delete
5720 la_collect_symbol_completion_matches field.
5721 (language_defn::collect_symbol_completion_matches): New member
5722 function.
5723 * m2-lang.c (m2_language_data): Delete
5724 la_collect_symbol_completion_matches initializer.
5725 * objc-lang.c (objc_language_data): Likewise.
5726 * opencl-lang.c (opencl_language_data): Likewise.
5727 * p-lang.c (pascal_language_data): Likewise.
5728 * rust-lang.c (rust_language_data): Likewise.
5729 * symtab.c (default_collect_symbol_completion_matches): Delete.
5730 (collect_symbol_completion_matches): Update call to
5731 collect_symbol_completion_matches.
5732 (collect_symbol_completion_matches_type): Likewise.
5733 * symtab.h (default_collect_symbol_completion_matches): Delete
5734 declaration.
5735
53fc67f8
AB
57362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5737
5738 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5739 (ada_language_data): Delete la_word_break_characters initializer.
5740 (ada_language::word_break_characters): New member function.
5741 * c-lang.c (c_language_data): Delete la_word_break_characters
5742 initializer.
5743 (cplus_language_data): Likewise.
5744 (asm_language_data): Likewise.
5745 (minimal_language_data): Likewise.
5746 * completer.c: Update global comment.
5747 (advance_to_expression_complete_word_point): Update call to
5748 word_break_characters.
5749 (complete_files_symbols): Likewise.
5750 (complete_line_internal_1): Likewise.
5751 (default_completer_handle_brkchars): Likewise.
5752 (skip_quoted_chars): Likewise.
5753 * d-lang.c (d_language_data): Delete la_word_break_characters
5754 initializer.
5755 * f-lang.c (f_word_break_characters): Delete.
5756 (f_language_data): Delete la_word_break_characters initializer.
5757 (f_language::word_break_characters): New member function.
5758 * go-lang.c (go_language_data): Delete la_word_break_characters
5759 initializer.
5760 * language.c (unknown_language_data): Likewise.
5761 (auto_language_data): Likewise.
5762 * language.h (default_word_break_characters): Move declaration to
5763 earlier in the file.
5764 (language_data): Delete la_word_break_characters field.
5765 (language_defn::word_break_characters): New member function.
5766 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5767 initializer.
5768 * objc-lang.c (objc_language_data): Likewise.
5769 * opencl-lang.c (opencl_language_data): Likewise.
5770 * p-lang.c (pascal_language_data): Likewise.
5771 * rust-lang.c (rust_language_data): Likewise.
5772
c9debfb9
AB
57732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5776 (ada_language_data): Delete la_get_symbol_name_matcher
5777 initializer.
5778 (language_defn::get_symbol_name_matcher_inner): New member
5779 function.
5780 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5781 initializer.
5782 (cplus_language_data): Likewise.
5783 (cplus_language::get_symbol_name_matcher_inner): New member
5784 function.
5785 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5786 (minimal_language_data): Likewise.
5787 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5788 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5789 initializer.
5790 * dictionary.c (iter_match_first_hashed): Update call to
5791 get_symbol_name_matcher.
5792 (iter_match_next_hashed): Likewise.
5793 (iter_match_next_linear): Likewise.
5794 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5795 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5796 initializer.
5797 (f_language::get_symbol_name_matcher_inner): New member function.
5798 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5799 initializer.
5800 * language.c (default_symbol_name_matcher): Update header comment,
5801 make static.
5802 (language_defn::get_symbol_name_matcher): New definition.
5803 (language_defn::get_symbol_name_matcher_inner): Likewise.
5804 (get_symbol_name_matcher): Delete.
5805 (unknown_language_data): Delete la_get_symbol_name_matcher
5806 initializer.
5807 (auto_language_data): Likewise.
5808 * language.h (language_data): Delete la_get_symbol_name_matcher
5809 field.
5810 (language_defn::get_symbol_name_matcher): New member function.
5811 (language_defn::get_symbol_name_matcher_inner): Likewise.
5812 (default_symbol_name_matcher): Delete declaration.
5813 * linespec.c (find_methods): Update call to
5814 get_symbol_name_matcher.
5815 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5816 initializer.
5817 * minsyms.c (lookup_minimal_symbol): Update call to
5818 get_symbol_name_matcher.
5819 (iterate_over_minimal_symbols): Likewise.
5820 * objc-lang.c (objc_language_data): Delete
5821 la_get_symbol_name_matcher initializer.
5822 * opencl-lang.c (opencl_language_data): Likewise.
5823 * p-lang.c (pascal_language_data): Likewise.
5824 * psymtab.c (psymbol_name_matches): Update call to
5825 get_symbol_name_matcher.
5826 * rust-lang.c (rust_language_data): Delete
5827 la_get_symbol_name_matcher initializer.
5828 * symtab.c (symbol_matches_search_name): Update call to
5829 get_symbol_name_matcher.
5830 (compare_symbol_name): Likewise.
5831
9a49ad8c
AB
58322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5833
5834 * ada-lang.c (ada_language_data): Delete la_compute_program
5835 initializer.
5836 * c-lang.c (c_language_data): Likewise.
5837 (c_language::compute_program): New member function.
5838 (cplus_language_data): Delete la_compute_program initializer.
5839 (cplus_language::compute_program): New member function.
5840 (asm_language_data): Delete la_compute_program initializer.
5841 (minimal_language_data): Likewise.
5842 * c-lang.h (c_compute_program): Update comment.
5843 (cplus_compute_program): Likewise.
5844 * compile/compile-c-support.c (c_compute_program): Likewise.
5845 (cplus_compute_program): Likewise.
5846 * compile/compile.c (compile_to_object): Update call to
5847 la_compute_program.
5848 * d-lang.c (d_language_data): Delete la_compute_program
5849 initializer.
5850 * f-lang.c (f_language_data): Likewise.
5851 * go-lang.c (go_language_data): Likewise.
5852 * language.c (unknown_language_data): Likewise.
5853 (auto_language_data): Likewise.
5854 * language.h (language_data): Delete la_compute_program field.
5855 (language_defn::compute_program): New member function.
5856 * m2-lang.c (m2_language_data): Delete la_compute_program
5857 initializer.
5858 * objc-lang.c (objc_language_data): Likewise.
5859 * opencl-lang.c (opencl_language_data): Likewise.
5860 * p-lang.c (pascal_language_data): Likewise.
5861 * rust-lang.c (rust_language_data): Likewise.
5862
eff93b4d
AB
58632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * ada-lang.c (ada_language_data) Delete
5866 la_class_name_from_physname initializer.
5867 * c-lang.c (c_language_data): Likewise.
5868 (cplus_language_data): Likewise.
5869 (cplus_language::class_name_from_physname): New member function.
5870 (asm_language_data): Delete la_class_name_from_physname
5871 initializer.
5872 (minimal_language_data): Likewise.
5873 * d-lang.c (d_language_data): Likewise.
5874 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5875 method on language_defn class.
5876 (guess_full_die_structure_name): Likewise.
5877 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5878 initializer.
5879 * go-lang.c (go_language_data): Likewise.
5880 * language.c (language_class_name_from_physname): Delete.
5881 (unk_lang_class_name): Delete.
5882 (unknown_language_data): Delete la_class_name_from_physname
5883 initializer.
5884 (auto_language_data): Likewise.
5885 * language.h (language_data): Delete la_class_name_from_physname
5886 field.
5887 (language_defn::class_name_from_physname): New function.
5888 (language_class_name_from_physname): Delete declaration.
5889 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5890 initializer.
5891 * objc-lang.c (objc_language_data): Likewise.
5892 * opencl-lang.c (opencl_language_data): Likewise.
5893 * p-lang.c (pascal_language_data): Likewise.
5894 * rust-lang.c (rust_language_data): Likewise.
5895
de543742
TT
58962020-06-16 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-data.h (STATUS_NAME): New macro.
5899 * tui/tui-layout.c (tui_remove_some_windows)
5900 (initialize_known_windows, tui_register_window)
5901 (tui_layout_split::remove_windows, initialize_layouts)
5902 (tui_new_layout_command): Don't use hard-coded window names.
5903
a350efd4
TT
59042020-06-16 Tom Tromey <tom@tromey.com>
5905
5906 PR tui/25348:
5907 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5908 tui_initialize_readline. Only run once. Call rl_initialize.
5909 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5910 tui_initialize_readline.
5911 * tui/tui-io.c (tui_setup_io): Call
5912 tui_ensure_readline_initialized.
5913 * tui/tui-interp.c (tui_interp::init): Update.
5914
39ec0490
TT
59152020-06-16 Tom Tromey <tom@tromey.com>
5916
5917 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5918 Also preserve the status window.
5919
d2d1ea20
TT
59202020-06-16 Tom Tromey <tom@tromey.com>
5921
5922 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5923 where m_window==nullptr.
5924
66920317
TT
59252020-06-15 Tom Tromey <tromey@adacore.com>
5926
5927 * windows-nat.c (windows_nat::handle_output_debug_string):
5928 Update.
5929 (windows_nat::handle_ms_vc_exception): Update.
5930 * target.h (target_read_string): Change API.
5931 * target.c (target_read_string): Change API.
5932 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5933 Update.
5934 * solib-frv.c (frv_current_sos): Update.
5935 * solib-dsbt.c (dsbt_current_sos): Update.
5936 * solib-darwin.c (darwin_current_sos): Update.
5937 * linux-thread-db.c (inferior_has_bug): Update.
5938 * expprint.c (print_subexp_standard): Update.
5939 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5940 (ada_exception_message_1): Update.
5941
a5d871dd
TT
59422020-06-15 Tom Tromey <tromey@adacore.com>
5943
5944 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5945
670e35fa
TT
59462020-06-15 Tom Tromey <tromey@adacore.com>
5947
5948 * valprint.c (read_string): Update comment.
5949 * target.c (MIN): Remove.
5950 (target_read_string): Rewrite.
5951
f5272a3b
TT
59522020-06-15 Tom Tromey <tromey@adacore.com>
5953
5954 * corefile.c (read_memory_string): Remove.
5955 * ada-valprint.c (ada_value_print_ptr): Update.
5956 * ada-lang.h (ada_tag_name): Change return type.
5957 * ada-lang.c (type_from_tag): Update.
5958 (ada_tag_name_from_tsd): Change return type. Use
5959 target_read_string.
5960 (ada_tag_name): Likewise.
5961 * gdbcore.h (read_memory_string): Don't declare.
5962
2c074f49
HD
59632020-06-14 Hannes Domani <ssbssa@yahoo.de>
5964
5965 * symtab.c (rbreak_command): Ignore Windows drive colon.
5966
6a17d503
SM
59672020-06-12 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * NEWS: Mention removed GDBserver host support.
5970
453c733f
NC
59712020-06-12 Nelson Chu <nelson.chu@sifive.com>
5972
5973 * features/riscv/rebuild-csr-xml.sh: Updated.
5974
2b4e6a3f
TT
59752020-06-11 Tom Tromey <tom@tromey.com>
5976
5977 PR gdb/18318:
5978 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5979
4412332f
JG
59802020-06-09 Jonny Grant <jg@jguk.org>
59812020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * main.c (captured_main_1): Don't print new line after help.
5984 (print_gdb_help): add mailing list and IRC channel information
5985 to --help. Add new lines between items in the footer. Remove
5986 quotes around bug url.
5987
2f33032a
KS
59882020-06-11 Keith Seitz <keiths@redhat.com>
5989
5990 PR gdb/21356
5991 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5992 Resolve typedefs for type length calculations.
5993
7ab96794
TV
59942020-06-10 Tom de Vries <tdevries@suse.de>
5995
5996 PR ada/24713
5997 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5998 (write_psymbols): Enable .gdb_index for ada.
5999 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6000 ada.
6001
e5f3ece2
TV
60022020-06-10 Tom de Vries <tdevries@suse.de>
6003
6004 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6005 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6006 namei" instead of "const char *name" argument.
6007 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6008 dw2_symtab_iter_init.
6009
940da03e
SM
60102020-06-08 Simon Marchi <simon.marchi@efficios.com>
6011
6012 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6013 to use type::field and field::type instead.
6014
b6cdac4b
SM
60152020-06-08 Simon Marchi <simon.marchi@efficios.com>
6016
6017 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6018 to use field::type instead.
6019
5d14b6e5
SM
60202020-06-08 Simon Marchi <simon.marchi@efficios.com>
6021
6022 * gdbtypes.h (struct field) <type, set_type>: New methods.
6023 Rename `type` field to...
6024 <m_type>: ... this. Change references throughout to use type or
6025 set_type methods.
6026 (FIELD_TYPE): Use field::type. Change call sites that modify
6027 the field's type to use field::set_type instead.
6028
3d967001
SM
60292020-06-08 Simon Marchi <simon.marchi@efficios.com>
6030
6031 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6032 to use type::index_type instead.
6033
262abc0d
SM
60342020-06-08 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6037 methods.
6038 (TYPE_INDEX_TYPE): Use type::index_type.
6039 * gdbtypes.c (create_array_type_with_stride): Likewise.
6040
82836c92
TT
60412020-06-07 Tom Tromey <tom@tromey.com>
6042
6043 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6044 parameter.
6045 (generic_value_print): Update.
6046
940dace9
AB
60472020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 Revert commit 982a38f60b0.
6050 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6051
982a38f6
AB
60522020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6055 avoid use after free.
6056
82f06518
TV
60572020-06-05 Tom de Vries <tdevries@suse.de>
6058
6059 * NEWS: Fix typos.
6060
f8c41851
SM
60612020-06-04 Simon Marchi <simon.marchi@efficios.com>
6062
6063 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6064 the per_bfd object.
6065 (dwarf2_read_debug_names): Likewise.
6066 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6067 object when re-using a per_bfd object with an index.
6068
f9b5d5ea
TV
60692020-06-03 Tom de Vries <tdevries@suse.de>
6070
6071 PR symtab/26046
6072 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6073 children for C++.
6074 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6075 DW_TAG_subprogram.
6076
f6eee2d0
AB
60772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * ada-lang.c (ada_language_data): Delete skip_trampoline
6080 initializer.
6081 * c-lang.c (c_language_data): Likewise.
6082 (cplus_language_data): Likewise.
6083 (cplus_language::skip_trampoline): New member function.
6084 (asm_language_data): Delete skip_trampoline initializer.
6085 (minimal_language_data): Likewise.
6086 * d-lang.c (d_language_data): Likewise.
6087 * f-lang.c (f_language_data): Likewise.
6088 * go-lang.c (go_language_data): Likewise.
6089 * language.c (unk_lang_trampoline): Delete function.
6090 (skip_language_trampoline): Update.
6091 (unknown_language_data): Delete skip_trampoline initializer.
6092 (auto_language_data): Likewise.
6093 * language.h (language_data): Delete skip_trampoline field.
6094 (language_defn::skip_trampoline): New function.
6095 * m2-lang.c (m2_language_data): Delete skip_trampoline
6096 initializer.
6097 * objc-lang.c (objc_skip_trampoline): Delete function, move
6098 implementation to objc_language::skip_trampoline.
6099 (objc_language_data): Delete skip_trampoline initializer.
6100 (objc_language::skip_trampoline): New member function with
6101 implementation from objc_skip_trampoline.
6102 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6103 initializer.
6104 * p-lang.c (pascal_language_data): Likewise.
6105 * rust-lang.c (rust_language_data): Likewise.
6106
0a50df5d
AB
61072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6108
6109 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6110 (ada_language::demangle): New member function.
6111 * c-lang.c (c_language_data): Delete la_demangle initializer.
6112 (cplus_language_data): Delete la_demangle initializer.
6113 (cplus_language::demangle): New member function.
6114 (asm_language_data): Delete la_demangle initializer.
6115 (minimal_language_data): Delete la_demangle initializer.
6116 * d-lang.c (d_language_data): Delete la_demangle initializer.
6117 (d_language::demangle): New member function.
6118 * f-lang.c (f_language_data): Delete la_demangle initializer.
6119 (f_language::demangle): New member function.
6120 * go-lang.c (go_language_data): Delete la_demangle initializer.
6121 (go_language::demangle): New member function.
6122 * language.c (language_demangle): Update.
6123 (unk_lang_demangle): Delete.
6124 (unknown_language_data): Delete la_demangle initializer.
6125 (unknown_language::demangle): New member function.
6126 (auto_language_data): Delete la_demangle initializer.
6127 (auto_language::demangle): New member function.
6128 * language.h (language_data): Delete la_demangle field.
6129 (language_defn::demangle): New function.
6130 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6131 * objc-lang.c (objc_language_data): Delete la_demangle
6132 initializer.
6133 (objc_language::demangle): New member function.
6134 * opencl-lang.c (opencl_language_data): Delete la_demangle
6135 initializer.
6136 * p-lang.c (pascal_language_data): Likewise.
6137 * rust-lang.c (rust_language_data): Likewise.
6138 (rust_language::demangle): New member function.
6139
fbfb0a46
AB
61402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6141
6142 * ada-lang.c (ada_language_data): Delete la_print_type
6143 initializer.
6144 (ada_language::print_type): New member function.
6145 * c-lang.c (c_language_data): Delete la_print_type initializer.
6146 (c_language::print_type): New member function.
6147 (cplus_language_data): Delete la_print_type initializer.
6148 (cplus_language::print_type): New member function.
6149 (asm_language_data): Delete la_print_type initializer.
6150 (asm_language::print_type): New member function.
6151 (minimal_language_data): Delete la_print_type initializer.
6152 (minimal_language::print_type): New member function.
6153 * d-lang.c (d_language_data): Delete la_print_type initializer.
6154 (d_language::print_type): New member function.
6155 * f-lang.c (f_language_data): Delete la_print_type initializer.
6156 (f_language::print_type): New member function.
6157 * go-lang.c (go_language_data): Delete la_print_type initializer.
6158 (go_language::print_type): New member function.
6159 * language.c (unk_lang_print_type): Delete.
6160 (unknown_language_data): Delete la_print_type initializer.
6161 (unknown_language::print_type): New member function.
6162 (auto_language_data): Delete la_print_type initializer.
6163 (auto_language::print_type): New member function.
6164 * language.h (language_data): Delete la_print_type field.
6165 (language_defn::print_type): New function.
6166 (LA_PRINT_TYPE): Update.
6167 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6168 (m2_language::print_type): New member function.
6169 * objc-lang.c (objc_language_data): Delete la_print_type
6170 initializer.
6171 (objc_language::print_type): New member function.
6172 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6173 to opencl_language::print_type.
6174 (opencl_language_data): Delete la_print_type initializer.
6175 (opencl_language::print_type): New member function, implementation
6176 from opencl_print_type.
6177 * p-lang.c (pascal_language_data): Delete la_print_type
6178 initializer.
6179 (pascal_language::print_type): New member function.
6180 * rust-lang.c (rust_print_type): Delete, implementation moved to
6181 rust_language::print_type.
6182 (rust_language_data): Delete la_print_type initializer.
6183 (rust_language::print_type): New member function, implementation
6184 from rust_print_type.
6185
6f827019
AB
61862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6187
6188 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6189 implementation moves to...
6190 (ada_language::sniff_from_mangled_name): ...here. Update return
6191 type.
6192 (ada_language_data): Delete la_sniff_from_mangled_name
6193 initializer.
6194 * c-lang.c (c_language_data): Likewise.
6195 (cplus_language_data): Likewise.
6196 (cplus_language::sniff_from_mangled_name): New member function,
6197 implementation taken from gdb_sniff_from_mangled_name.
6198 (asm_language_data): Delete la_sniff_from_mangled_name
6199 initializer.
6200 (minimal_language_data): Likewise.
6201 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6202 implementation moves to cplus_language::sniff_from_mangled_name.
6203 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6204 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6205 moves to...
6206 (d_language::sniff_from_mangled_name): ...here.
6207 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6208 * f-lang.c (f_language_data): Likewise.
6209 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6210 moves to...
6211 (go_language::sniff_from_mangled_name): ...here.
6212 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6213 * language.c (language_sniff_from_mangled_name): Delete.
6214 (unknown_language_data): Delete la_sniff_from_mangled_name
6215 initializer.
6216 (auto_language_data): Likewise.
6217 * language.h (language_data): Delete la_sniff_from_mangled_name
6218 field.
6219 (language_defn::sniff_from_mangled_name): New function.
6220 (language_sniff_from_mangled_name): Delete declaration.
6221 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6222 field.
6223 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6224 implementation moves to...
6225 (objc_language::sniff_from_mangled_name): ...here.
6226 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6227 * opencl-lang.c (opencl_language_data): Likewise.
6228 * p-lang.c (pascal_language_data): Likewise.
6229 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6230 implementation moves to...
6231 (rust_language::sniff_from_mangled_name): ...here.
6232 (rust_language_data): Delete la_sniff_from_mangled_name
6233 initializer.
6234 * symtab.c (symbol_find_demangled_name): Call
6235 sniff_from_mangled_name member function.
6236
fb8006fd
AB
62372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6238
6239 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6240 initializer.
6241 * c-lang.c (c_language_data): Likewise.
6242 (cplus_language_data): Likewise.
6243 (cplus_language::search_name_hash): New member function.
6244 (asm_language_data): Delete la_search_name_hash initializer.
6245 (minimal_language_data): Likewise.
6246 * d-lang.c (d_language_data): Likewise.
6247 * dictionary.c (default_search_name_hash): Rename to...
6248 (language_defn::search_name_hash): ...this.
6249 * f-lang.c (f_language_data): Likewise.
6250 (f_language::search_name_hash): New member function.
6251 * go-lang.c (go_language_data): Delete la_search_name_hash
6252 initializer.
6253 * language.c (unknown_language_data): Likewise.
6254 (auto_language_data): Likewise.
6255 * language.h (struct language_data): Delete la_search_name_hash
6256 field.
6257 (language_defn::search_name_hash): Declare new member function.
6258 (default_search_name_hash): Delete declaration.
6259 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6260 initializer.
6261 * objc-lang.c (objc_language_data): Likewise.
6262 * opencl-lang.c (opencl_language_data): Likewise.
6263 * p-lang.c (pascal_language_data): Likewise.
6264 * rust-lang.c (rust_language_data): Likewise.
6265 * symtab.c (search_name_hash): Update call.
6266
8e25bafe
AB
62672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6268
6269 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6270 initializer.
6271 * c-lang.c (class compile_instance): Declare.
6272 (c_language_data): Delete la_get_compile_instance initializer.
6273 (c_language::get_compile_instance): New member function.
6274 (cplus_language_data): Delete la_get_compile_instance initializer.
6275 (cplus_language::get_compile_instance): New member function.
6276 (asm_language_data): Delete la_get_compile_instance initializer.
6277 (minimal_language_data): Likewise.
6278 * c-lang.h (c_get_compile_context): Update comment.
6279 (cplus_get_compile_context): Update comment.
6280 * compile/compile.c (compile_to_object): Update calls, don't rely
6281 on function pointer being NULL.
6282 * d-lang.c (d_language_data): Delete la_get_compile_instance
6283 initializer.
6284 * f-lang.c (f_language_data): Likewise.
6285 * go-lang.c (go_language_data): Likewise.
6286 * language.c (unknown_language_data): Likewise.
6287 (auto_language_data): Likewise.
6288 * language.h (language_data): Delete la_get_compile_instance field.
6289 (language_defn::get_compile_instance): New member function.
6290 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6291 initializer.
6292 * objc-lang.c (objc_language_data): Likewise.
6293 * opencl-lang.c (opencl_language_data): Likewise.
6294 * p-lang.c (pascal_language_data): Likewise.
6295 * rust-lang.c (rust_language_data): Likewise.
6296
4009ee92
AB
62972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6298
6299 * ada-lang.c (ada_add_all_symbols): Update comment.
6300 (ada_iterate_over_symbols): Delete, move implementation to...
6301 (ada_language::iterate_over_symbols): ...here, a new member
6302 function, rewrite to use range based for loop.
6303 (ada_language_data): Delete la_iterate_over_symbols initializer.
6304 * c-lang.c (c_language_data): Likewise.
6305 (cplus_language_data): Likewise.
6306 (asm_language_data): Likewise.
6307 (minimal_language_data): Likewise.
6308 * d-lang.c (d_language_data): Likewise.
6309 * f-lang.c (f_language_data): Likewise.
6310 * go-lang.c (go_language_data): Likewise.
6311 * language.c (unknown_language_data): Likewise.
6312 (auto_language_data): Likewise.
6313 * language.h (language_data): Delete la_iterate_over_symbols field.
6314 (language_defn::iterate_over_symbols): New member function.
6315 (LA_ITERATE_OVER_SYMBOLS): Update.
6316 * linespec.c (iterate_over_all_matching_symtabs): Update.
6317 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6318 initializer.
6319 * objc-lang.c (objc_language_data): Likewise.
6320 * opencl-lang.c (opencl_language_data): Likewise.
6321 * p-lang.c (pascal_language_data): Likewise.
6322 * rust-lang.c (rust_language_data): Likewise.
6323
54f4ca46
AB
63242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * ada-lang.c (ada_language_data): Delete
6327 la_lookup_transparent_type initializer.
6328 * c-lang.c (c_language_data): Likewise.
6329 (cplus_language_data): Likewise.
6330 (cplus_language::lookup_transparent_type): New member function.
6331 (asm_language_data): Delete la_lookup_transparent_type
6332 initializer.
6333 (minimal_language_data): Likewise.
6334 * d-lang.c (d_language_data): Likewise.
6335 * f-lang.c (f_language_data): Likewise.
6336 * go-lang.c (go_language_data): Likewise.
6337 * language.c (unknown_language_data): Likewise.
6338 (auto_language_data): Likewise.
6339 * language.h (struct language_data): Delete
6340 la_lookup_transparent_type field.
6341 (language_defn::lookup_transparent_type): New member function.
6342 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6343 initializer.
6344 * objc-lang.c (objc_language_data): Likewise.
6345 * opencl-lang.c (opencl_language_data): Likewise.
6346 * p-lang.c (pascal_language_data): Likewise.
6347 * rust-lang.c (rust_language_data): Likewise.
6348 * symtab.c (symbol_matches_domain): Update call.
6349
1fb314aa
AB
63502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6351
6352 * ada-lang.c (ada_language_arch_info): Delete function, move
6353 implementation to...
6354 (ada_language::language_arch_info): ...here, a new member
6355 function.
6356 (ada_language_data): Delete la_language_arch_info.
6357 * c-lang.c (c_language_data): Likewise.
6358 (c_language::language_arch_info): New member function.
6359 (cplus_language_arch_info): Delete function, move
6360 implementation to...
6361 (cplus_language::language_arch_info): ...here, a new member
6362 function.
6363 (cplus_language_data): Delete la_language_arch_info.
6364 (asm_language_data): Likewise.
6365 (asm_language::language_arch_info): New member function.
6366 (minimal_language_data): Delete la_language_arch_info.
6367 (minimal_language::language_arch_info): New member function.
6368 * d-lang.c (d_language_arch_info): Delete function, move
6369 implementation to...
6370 (d_language::language_arch_info): ...here, a new member
6371 function.
6372 (d_language_data): Delete la_language_arch_info.
6373 * f-lang.c (f_language_arch_info): Delete function, move
6374 implementation to...
6375 (f_language::language_arch_info): ...here, a new member
6376 function.
6377 (f_language_data): Delete la_language_arch_info.
6378 * go-lang.c (go_language_arch_info): Delete function, move
6379 implementation to...
6380 (go_language::language_arch_info): ...here, a new member
6381 function.
6382 (go_language_data): Delete la_language_arch_info.
6383 * language.c (unknown_language_data): Likewise.
6384 (unknown_language::language_arch_info): New member function.
6385 (auto_language_data): Delete la_language_arch_info.
6386 (auto_language::language_arch_info): New member function.
6387 (language_gdbarch_post_init): Update call to
6388 la_language_arch_info.
6389 * language.h (language_data): Delete la_language_arch_info
6390 function pointer.
6391 (language_defn::language_arch_info): New function.
6392 * m2-lang.c (m2_language_arch_info): Delete function, move
6393 implementation to...
6394 (m2_language::language_arch_info): ...here, a new member
6395 function.
6396 (m2_language_data): Delete la_language_arch_info.
6397 * objc-lang.c (objc_language_arch_info): Delete function, move
6398 implementation to...
6399 (objc_language::language_arch_info): ...here, a new member
6400 function.
6401 (objc_language_data): Delete la_language_arch_info.
6402 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6403 implementation to...
6404 (opencl_language::language_arch_info): ...here, a new member
6405 function.
6406 (opencl_language_data): Delete la_language_arch_info.
6407 * p-lang.c (pascal_language_arch_info): Delete function, move
6408 implementation to...
6409 (pascal_language::language_arch_info): ...here, a new member
6410 function.
6411 (pascal_language_data): Delete la_language_arch_info.
6412 * rust-lang.c (rust_language_arch_info): Delete function, move
6413 implementation to...
6414 (rust_language::language_arch_info): ...here, a new member
6415 function.
6416 (rust_language_data): Delete la_language_arch_info.
6417
48448202
AB
64182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6421 initializer.
6422 * c-lang.c (c_language_data): Likewise.
6423 (cplus_language_data): Likewise.
6424 (cplus_language::pass_by_reference_info): New method.
6425 (asm_language_data): Delete la_pass_by_reference initializer.
6426 (minimal_language_data): Likewise.
6427 * cp-abi.c (cp_pass_by_reference): Remove use of
6428 default_pass_by_reference.
6429 * d-lang.c (d_language_data): Likewise.
6430 * f-lang.c (f_language_data): Likewise.
6431 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6432 default_pass_by_reference.
6433 * go-lang.c (go_language_data): Likewise.
6434 * language.c (language_pass_by_reference): Update.
6435 (default_pass_by_reference): Delete.
6436 (unknown_language_data): Delete la_pass_by_reference
6437 initializer.
6438 (auto_language_data): Likewise.
6439 * language.h (struct language_data): Delete la_pass_by_reference
6440 field.
6441 (language_defn::pass_by_reference_info): New member function.
6442 (default_pass_by_reference): Delete declaration.
6443 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6444 initializer.
6445 * objc-lang.c (objc_language_data): Likewise.
6446 * opencl-lang.c (opencl_language_data): Likewise.
6447 * p-lang.c (pascal_language_data): Likewise.
6448 * rust-lang.c (rust_language_data): Likewise.
6449
15e5fd35
AB
64502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6451
6452 * ada-lang.c (ada_read_var_value): Delete function, move
6453 implementation to...
6454 (ada_language::read_var_value): ...here.
6455 (ada_language_data): Delete la_read_var_value initializer.
6456 * c-lang.c (c_language_data): Likewise.
6457 (cplus_language_data): Likewise.
6458 (minimal_language_data): Likewise.
6459 * d-lang.c (d_language_data): Likewise.
6460 * f-lang.c (f_language_data): Likewise.
6461 * findvar.c (default_read_var_value): Rename to...
6462 (language_defn::read_var_value): ...this.
6463 * findvar.c (read_var_value): Update header comment, and change to
6464 call member function instead of function pointer.
6465 * go-lang.c (go_language_data): Likewise.
6466 * language.c (unknown_language_data): Delete la_read_var_value
6467 initializer.
6468 (auto_language_data): Likewise.
6469 * language.h (struct language_data): Delete la_read_var_value
6470 field.
6471 (language_defn::read_var_value): New member function.
6472 (default_read_var_value): Delete declaration.
6473 * m2-lang.c (m2_language_data): Delete la_read_var_value
6474 initializer.
6475 * objc-lang.c (objc_language_data): Likewise.
6476 * opencl-lang.c (opencl_language_data): Likewise.
6477 * p-lang.c (pascal_language_data): Likewise.
6478 * rust-lang.c (rust_language_data): Likewise.
6479 * value.h (default_read_var_value): Delete declaration.
6480
5bd40f2a
AB
64812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6482
6483 * ada-lang.c (ada_print_array_index): Delete function, move
6484 implementation to...
6485 (ada_language::print_array_index): ...here.
6486 (ada_language_data): Delete la_print_array_index initializer.
6487 * c-lang.c (c_language_data): Likewise.
6488 (cplus_language_data): Likewise.
6489 (minimal_language_data): Likewise.
6490 * d-lang.c (d_language_data): Likewise.
6491 * f-lang.c (f_language_data): Likewise.
6492 * go-lang.c (go_language_data): Likewise.
6493 * language.c (default_print_array_index): Delete function, move
6494 implementation to...
6495 (language_defn::print_array_index): ...here.
6496 (unknown_language_data): Delete la_print_array_index initializer.
6497 (auto_language_data): Likewise.
6498 * language.h (struct language_data): Delete la_print_array_index
6499 field.
6500 (language_defn::print_array_index): New member function.
6501 (LA_PRINT_ARRAY_INDEX): Update.
6502 (default_print_array_index): Delete declaration.
6503 * m2-lang.c (m2_language_data): Delete la_print_array_index
6504 initializer.
6505 * objc-lang.c (objc_language_data): Likewise.
6506 * opencl-lang.c (opencl_language_data): Likewise.
6507 * p-lang.c (pascal_language_data): Likewise.
6508 * rust-lang.c (rust_language_data): Likewise.
6509
0874fd07
AB
65102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6511
6512 * gdb/ada-lang.c (ada_language_defn): Convert to...
6513 (ada_language_data): ...this.
6514 (class ada_language): New class.
6515 (ada_language_defn): New static global.
6516 * gdb/c-lang.c (c_language_defn): Convert to...
6517 (c_language_data): ...this.
6518 (class c_language): New class.
6519 (c_language_defn): New static global.
6520 (cplus_language_defn): Convert to...
6521 (cplus_language_data): ...this.
6522 (class cplus_language): New class.
6523 (cplus_language_defn): New static global.
6524 (asm_language_defn): Convert to...
6525 (asm_language_data): ...this.
6526 (class asm_language): New class.
6527 (asm_language_defn): New static global.
6528 (minimal_language_defn): Convert to...
6529 (minimal_language_data): ...this.
6530 (class minimal_language): New class.
6531 (minimal_language_defn): New static global.
6532 * gdb/d-lang.c (d_language_defn): Convert to...
6533 (d_language_data): ...this.
6534 (class d_language): New class.
6535 (d_language_defn): New static global.
6536 * gdb/f-lang.c (f_language_defn): Convert to...
6537 (f_language_data): ...this.
6538 (class f_language): New class.
6539 (f_language_defn): New static global.
6540 * gdb/go-lang.c (go_language_defn): Convert to...
6541 (go_language_data): ...this.
6542 (class go_language): New class.
6543 (go_language_defn): New static global.
6544 * gdb/language.c (unknown_language_defn): Remove declaration.
6545 (current_language): Initialize to nullptr, real initialization is
6546 moved to _initialize_language.
6547 (languages): Delete global.
6548 (language_defn::languages): Define.
6549 (set_language_command): Use language_defn::languages.
6550 (set_language): Likewise.
6551 (range_error): Likewise.
6552 (language_enum): Likewise.
6553 (language_def): Likewise.
6554 (add_set_language_command): Use language_def::languages for the
6555 language list, and language_def to lookup language pointers.
6556 (skip_language_trampoline): Use language_defn::languages.
6557 (unknown_language_defn): Convert to...
6558 (unknown_language_data): ...this.
6559 (class unknown_language): New class.
6560 (unknown_language_defn): New static global.
6561 (auto_language_defn): Convert to...
6562 (auto_language_data): ...this.
6563 (class auto_language): New class.
6564 (auto_language_defn): New static global.
6565 (language_gdbarch_post_init): Use language_defn::languages.
6566 (_initialize_language): Initialize current_language.
6567 * gdb/language.h (struct language_defn): Rename to...
6568 (struct language_data): ...this.
6569 (struct language_defn): New.
6570 (auto_language_defn): Delete.
6571 (unknown_language_defn): Delete.
6572 (minimal_language_defn): Delete.
6573 (ada_language_defn): Delete.
6574 (asm_language_defn): Delete.
6575 (c_language_defn): Delete.
6576 (cplus_language_defn): Delete.
6577 (d_language_defn): Delete.
6578 (f_language_defn): Delete.
6579 (go_language_defn): Delete.
6580 (m2_language_defn): Delete.
6581 (objc_language_defn): Delete.
6582 (opencl_language_defn): Delete.
6583 (pascal_language_defn): Delete.
6584 (rust_language_defn): Delete.
6585 * gdb/m2-lang.c (m2_language_defn): Convert to...
6586 (m2_language_data): ...this.
6587 (class m2_language): New class.
6588 (m2_language_defn): New static global.
6589 * gdb/objc-lang.c (objc_language_defn): Convert to...
6590 (objc_language_data): ...this.
6591 (class objc_language): New class.
6592 (objc_language_defn): New static global.
6593 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6594 (opencl_language_data): ...this.
6595 (class opencl_language): New class.
6596 (opencl_language_defn): New static global.
6597 * gdb/p-lang.c (pascal_language_defn): Convert to...
6598 (pascal_language_data): ...this.
6599 (class pascal_language): New class.
6600 (pascal_language_defn): New static global.
6601 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6602 language pointer, update comment format.
6603 * gdb/rust-lang.c (rust_language_defn): Convert to...
6604 (rust_language_data): ...this.
6605 (class rust_language): New class.
6606 (rust_language_defn): New static global.
6607
1313c56e
AB
66082020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6609
6610 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6611 member variable.
6612 <m_stmt_at_address>: New member variable.
6613 (lnp_state_machine::record_line): Don't record some lines, update
6614 tracking of is_stmt at the same address.
6615 (lnp_state_machine::lnp_state_machine): Initialise new member
6616 variables.
6617
b7ed9f3d
ST
66182020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6619
6620 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6621 "-include gnu-nat-mig.h".
6622 * gnu-nat-mig.h: New file.
6623 * gnu-nat.c: Include "gnu-nat-mig.h".
6624 (exc_server, msg_reply_server, notify_server,
6625 process_reply_server): Remove declarations.
6626
14a8ad62
ST
66272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6628
6629 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6630 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6631 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6632 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6633 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6634 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6635 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6636 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6637 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6638 to gnu_nat_target class.
6639 * gnu-nat.c: Likewise.
6640 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6641 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6642 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6643 object.
6644 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6645 instead of `gnu_target'.
6646
0af5e106
ST
66472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6648
6649 * i386-gnu-tdep.c: Include "gdbcore.h"
6650 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6651 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6652 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6653 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6654 i386_gnu_sigcontext_addr): New functions
6655 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6656 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6657 tdep.
6658
078f2fc9
ST
66592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6660
6661 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6662 before fork_inferior call. Avoid calling it if target_is_pushed returns
6663 true.
6664
53dff92c
ST
66652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6666
6667 * gnu-nat.h (gnu_target): New variable declaration.
6668 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6669 gnu_target.
6670 * gnu-nat.c (gnu_target): New variable.
6671 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6672 add_thread_silent, and add_thread calls.
6673 (gnu_nat_target::create_inferior): Pass gnu_target to
6674 add_thread_silent, thread_change_ptid call.
6675 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6676 call.
6677
5a8b8627
ST
66782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6679
6680 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6681 (gnu_nat_target::find_memory_regions): Remove unused
6682 `old_address' variable.
6683
366f550a
ST
66842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6685
6686 * gnu-nat.c: Include "gdbarch.h".
6687
f14871bf
ST
66882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6689
6690 * reply_mig_hack.awk (Error return): Cast function through
6691 void *, to bypass compiler function call check.
6692
c6887cfb
ST
66932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6694
6695 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6696 $(srcdir)/reply_mig_hack.awk.
6697
6930bffe
ST
66982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6699
6700 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6701
112c22ed
JG
67022020-05-30 Jonny Grant <jg@jguk.org>
6703
6704 * configure.ac (ACX_BUGURL): change bug URL to https.
6705
f68f85b5
PA
67062020-05-30 Pedro Alves <palves@redhat.com>
6707
6708 * cp-support.c (replace_typedefs_template): New.
6709 (replace_typedefs_qualified_name): Handle
6710 DEMANGLE_COMPONENT_TEMPLATE.
6711
976ca316
SM
67122020-05-29 Simon Marchi <simon.marchi@efficios.com>
6713
6714 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6715 dwarf2/index-cache.h, dwarf2/index-write.c,
6716 dwarf2/index-write.h, dwarf2/line-header.c,
6717 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6718 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6719 variables and fields from `dwarf2_per_objfile` to just
6720 `per_objfile` throughout.
6721
989ade05
SM
67222020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6723
6724 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6725 <push_dwarf_reg_entry_value>: Add comment.
6726
c47bae85
KB
67272020-05-28 Kevin Buettner <kevinb@redhat.com>
6728 Keith Seitz <keiths@redhat.com>
6729
6730 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6731 instead of PyEval_ReleaseLock.
6732 (class gdbpy_gil): Move to earlier in file.
6733 (finalize_python): Set gdb_python_initialized.
6734 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6735 when not initialized.
6736
44486dcf
SM
67372020-05-28 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6740 <push_dwarf_reg_entry_value>: Remove assert. Override
6741 per_objfile with caller_per_objfile.
6742
f030440d
TV
67432020-05-28 Tom de Vries <tdevries@suse.de>
6744
6745 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6746 PR gold/15646 workaround to symbol kind "type".
6747
f0fbb768
TT
67482020-05-27 Tom Tromey <tromey@adacore.com>
6749
6750 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6751
af0b2a3e
TT
67522020-05-27 Tom Tromey <tromey@adacore.com>
6753
6754 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6755 Use htab_find_with_hash.
6756 <add_abbrev>: Remove "abbrev_number" parameter.
6757 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6758 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6759 (hash_abbrev): Add comment.
6760 (abbrev_table::lookup_abbrev): Move to header file.
6761 (abbrev_table::read): Update.
6762
7d00ffec
TT
67632020-05-27 Tom Tromey <tromey@adacore.com>
6764
6765 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6766 method.
6767 <canonical_name>: New member.
6768 <raw_name>: Rename from "name".
6769 (partial_die_info): Initialize canonical_name.
6770 (scan_partial_symbols): Check raw_name.
6771 (partial_die_parent_scope, partial_die_full_name)
6772 (add_partial_symbol, add_partial_subprogram)
6773 (add_partial_enumeration, load_partial_dies): Use "name" method.
6774 (partial_die_info::name): New method.
6775 (partial_die_info::read, guess_partial_die_structure_name)
6776 (partial_die_info::fixup): Update.
6777
697bba18
TT
67782020-05-27 Tom Tromey <tromey@adacore.com>
6779
6780 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6781 <get_ref_die_offset>: Inline.
6782 <get_ref_die_offset_complaint>: New method.
6783 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6784 (attribute::get_ref_die_offset_complaint): Rename from
6785 get_ref_die_offset. Just issue complaint.
6786
c17ace43
HD
67872020-05-27 Hannes Domani <ssbssa@yahoo.de>
6788
6789 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6790
96445f0b
HD
67912020-05-27 Hannes Domani <ssbssa@yahoo.de>
6792
6793 * exec.c (exec_file_attach): Use errno value of first openp failure.
6794
ac637ec3
HD
67952020-05-27 Hannes Domani <ssbssa@yahoo.de>
6796
6797 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6798 Don't close thread handle.
6799
17ee85fc
TT
68002020-05-27 Tom Tromey <tom@tromey.com>
6801 Simon Marchi <simon.marchi@efficios.com>
6802
6803 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6804 shared_ptr.
6805 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6806 member.
6807 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6808 dwarf2_per_bfd_objfile_data_key>: New globals.
6809 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6810 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6811 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6812 shared.
6813 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6814 short-circuit when sharing.
6815 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6816 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6817
39b16f87
SM
68182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6819
6820 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6821 to...
6822 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6823 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6824
fcf23d5b
SM
68252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6828 build_name_components, find_name_components_bounds>:
6829 Add per_objfile parameter.
6830 (struct mapped_index) <symbol_name_at>: Likewise.
6831 (struct mapped_debug_names): Remove constructor.
6832 <dwarf2_per_objfile>: Remove field.
6833 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6834 (mapped_index_base::find_name_components_bounds,
6835 mapped_index_base::build_name_components,
6836 dw2_expand_symtabs_matching_symbol): Likewise.
6837 (class mock_mapped_index) <symbol_name_at>: Likewise.
6838 (check_match): Likewise.
6839 (check_find_bounds_finds): Likewise.
6840 (test_mapped_index_find_name_component_bounds): Update.
6841 (CHECK_MATCH): Update.
6842 (dw2_expand_symtabs_matching): Update.
6843 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6844 per_objfile parameter.
6845 <find_vec_in_debug_names>: Likewise.
6846 <m_per_objfile>: New field.
6847 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6848 parameter.
6849 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6850 (dw2_debug_names_iterator::next): Update.
6851 (dw2_debug_names_lookup_symbol): Update.
6852 (dw2_debug_names_expand_symtabs_for_function): Update.
6853 (dw2_debug_names_map_matching_symbols): Update.
6854 (dw2_debug_names_expand_symtabs_matching): Update.
6855 (dwarf2_read_debug_names): Update.
6856
7188ed02
SM
68572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6860 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6861 move to dwarf2_per_objfile.
6862 <read_in_chain>: Remove.
6863 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6864 remove_all_cus, age_comp_units>: New methods.
6865 <m_dwarf2_cus>: New member.
6866 (struct dwarf2_per_cu_data) <cu>: Remove.
6867 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6868 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6869 moved to methods of dwarf2_per_objfile.
6870 (dwarf2_clear_marks): Remove.
6871 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6872 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6873 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6874 (dwarf2_per_objfile::remove_all_cus): New.
6875 (class free_cached_comp_units) <~free_cached_comp_units>:
6876 Update.
6877 (load_cu): Update.
6878 (dw2_do_instantiate_symtab): Adjust.
6879 (fill_in_sig_entry_from_dwo_entry): Adjust.
6880 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6881 (cutu_reader::cutu_reader): Likewise.
6882 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6883 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6884 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6885 and dwarf2_per_objfile::age_comp_units.
6886 (load_partial_comp_unit): Update.
6887 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6888 (process_queue): Likewise.
6889 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6890 backlink.
6891 (dwarf2_read_addr_index): Likewise.
6892 (follow_die_offset): Likewise.
6893 (dwarf2_fetch_die_loc_sect_off): Likewise.
6894 (dwarf2_fetch_constant_bytes): Likewise.
6895 (dwarf2_fetch_die_type_sect_off): Likewise.
6896 (follow_die_sig_1): Likewise.
6897 (load_full_type_unit): Likewise.
6898 (read_signatured_type): Likewise.
6899 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6900 (dwarf2_cu::~dwarf2_cu): Remove.
6901 (dwarf2_per_objfile::get_cu): New.
6902 (dwarf2_per_objfile::set_cu): New.
6903 (age_cached_comp_units): Rename to...
6904 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6905 to std::unordered_map.
6906 (free_one_cached_comp_unit): Rename to...
6907 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6908 to std::unordered_map.
6909 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6910 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6911 a dwarf2_per_objfile in data.
6912 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6913 (dwarf2_clear_marks): Remove.
6914
2e671100
SM
69152020-05-27 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6918 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6919 (init_tu_and_read_dwo_dies): Likewise.
6920 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6921 (cutu_reader::cutu_reader): Likewise.
6922 (load_partial_comp_unit): Likewise.
6923 (process_psymtab_comp_unit): Update.
6924 (build_type_psymtabs_1): Update.
6925 (process_skeletonless_type_unit): Update.
6926 (load_full_comp_unit): Update.
6927 (find_partial_die): Update.
6928 (dwarf2_read_addr_index): Update.
6929 (read_signatured_type): Update.
6930
2e6a9f79
SM
69312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6932
6933 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6934 m_header_read_in>: New fields.
6935 <get_header>: New method.
6936 * dwarf2/read.c (per_cu_header_read_in): Remove.
6937 (dwarf2_per_cu_data::get_header): New.
6938 (dwarf2_per_cu_data::addr_size): Update.
6939 (dwarf2_per_cu_data::offset_size): Update.
6940 (dwarf2_per_cu_data::ref_addr_size): Update.
6941
1b555f17
SM
69422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6943
6944 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6945 (dw2_do_instantiate_symtab): Update.
6946 (queue_and_load_all_dwo_tus): Change parameter from
6947 dwarf2_per_cu_data to dwarf2_cu.
6948 (dwarf2_fetch_die_loc_sect_off): Update.
6949 (dwarf2_fetch_constant_bytes): Update.
6950 (dwarf2_fetch_die_type_sect_off): Update.
6951
8fc0b21d
SM
69522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6953
6954 * dwarf2/read.c (process_full_comp_unit,
6955 process_full_type_unit): Remove per_cu, per_objfile paramters.
6956 Add dwarf2_cu parameter.
6957 (process_queue): Update.
6958
168c9250
SM
69592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6960
6961 * dwarf2/read.c (create_cu_from_index_list): Replace
6962 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6963 (create_cus_from_index_list): Likewise.
6964 (create_cus_from_index): Likewise.
6965 (create_signatured_type_table_from_index): Likewise.
6966 (create_cus_from_debug_names_list): Likewise.
6967 (create_cus_from_debug_names): Likewise.
6968 (dwarf2_read_gdb_index): Update.
6969 (dwarf2_read_debug_names): Update.
6970
e286671b
TT
69712020-05-27 Tom Tromey <tom@tromey.com>
6972 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * dwarf2/read.h (struct dwarf2_per_objfile)
6975 <get_type_for_signatured_type, set_type_for_signatured_type>:
6976 New methods.
6977 <m_type_map>: New member.
6978 (struct signatured_type) <type>: Remove.
6979 * dwarf2/read.c
6980 (dwarf2_per_objfile::get_type_for_signatured_type,
6981 dwarf2_per_objfile::set_type_for_signatured_type): New.
6982 (get_signatured_type): Use new methods.
6983
8adb8487
TT
69842020-05-27 Tom Tromey <tom@tromey.com>
6985 Simon Marchi <simon.marchi@efficios.com>
6986
6987 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6988 (struct dwarf2_per_objfile) <type_units>: New member.
6989 <get_type_unit_group_unshareable>: New method.
6990 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6991 num_symtabs, symtabs>: Remove; move to
6992 type_unit_group_unshareable.
6993 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6994 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6995 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6996
127bbf4b
SM
69972020-05-27 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * dwarf2/read.h (struct dwarf2_per_cu_data):
7000 <dwarf2_per_objfile>: Remove.
7001 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7002 dwarf2_per_objfile.
7003 (create_signatured_type_table_from_index): Likewise.
7004 (create_signatured_type_table_from_debug_names): Likewise.
7005 (create_debug_type_hash_table): Likewise.
7006 (fill_in_sig_entry_from_dwo_entry): Likewise.
7007 (create_type_unit_group): Likewise.
7008 (read_comp_units_from_section): Likewise.
7009 (create_cus_hash_table): Likewise.
7010
f6e649dd
SM
70112020-05-27 Simon Marchi <simon.marchi@efficios.com>
7012
7013 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7014 dwarf2_per_cu_data::dwarf2_per_objfile.
7015 (compute_compunit_symtab_includes): Likewise.
7016 (dwarf2_cu::start_symtab): Likewise.
7017
aa66c379
SM
70182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7019
7020 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7021 parameter.
7022 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7023 (read_namespace_alias): Update.
7024 (lookup_die_type): Update.
7025 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7026 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7027 Update.
7028 (disassemble_dwarf_expression): Update.
7029
120ce1b5
SM
70302020-05-27 Simon Marchi <simon.marchi@efficios.com>
7031
7032 * dwarf2/read.h (struct dwarf2_queue_item): Add
7033 dwarf2_per_objfile parameter, assign new parameter.
7034 <per_objfile>: New field.
7035 * dwarf2/read.c (free_one_cached_comp_unit): Add
7036 dwarf2_per_objfile parameter.
7037 (queue_comp_unit): Likewise.
7038 (dw2_do_instantiate_symtab): Update.
7039 (process_psymtab_comp_unit): Update.
7040 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7041 (process_imported_unit_die): Update.
7042 (queue_and_load_dwo_tu): Update.
7043 (follow_die_offset): Update.
7044 (follow_die_sig_1): Update.
7045
9f47c707
SM
70462020-05-27 Simon Marchi <simon.marchi@efficios.com>
7047
7048 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7049 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7050 (read_call_site_scope): Assign per_objfile.
7051 (dwarf2_per_cu_data::objfile): Remove.
7052 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7053 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7054 dwarf2_per_objfile parameter.
7055 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7056 dwarf2_per_objfile parameter.
7057 (dwarf_expr_reg_to_entry_parameter): Add output
7058 dwarf2_per_objfile parameter.
7059 (locexpr_get_frame_base): Update.
7060 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7061 <push_dwarf_reg_entry_value>: Update.
7062 <call_site_to_target_addr>: Update.
7063 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7064 parameter.
7065 (value_of_dwarf_reg_entry): Update.
7066 (rw_pieced_value): Update.
7067 (indirect_synthetic_pointer): Update.
7068 (dwarf2_evaluate_property): Update.
7069 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7070 parameter.
7071 (locexpr_read_variable): Update.
7072 (locexpr_get_symbol_read_needs): Update.
7073 (loclist_read_variable): Update.
7074
14095eb3
SM
70752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7076
7077 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7078 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7079 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7080 parameter.
7081 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7082 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7083 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7084 parameter.
7085 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7086 sect_variable_value): Add dwarf2_per_objfile parameter.
7087 (class dwarf_evaluate_loc_desc) <dwarf_call,
7088 dwarf_variable_value>: Update.
7089 (fetch_const_value_from_synthetic_pointer): Add
7090 dwarf2_per_objfile parameter.
7091 (fetch_const_value_from_synthetic_pointer): Update.
7092 (coerced_pieced_ref): Update.
7093 (class symbol_needs_eval_context) <dwarf_call,
7094 dwarf_variable_value>: Update.
7095 (dwarf2_compile_expr_to_ax): Update.
7096
3c3cd3d4
SM
70972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7100 parameter.
7101 (dwarf2_evaluate_loc_desc_full): Update.
7102
82ca3f51
SM
71032020-05-27 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7106 parameter.
7107 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7108 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7109 dwarf2_per_objfile parameter.
7110 (decode_debug_loc_dwo_addresses): Likewise.
7111 (dwarf2_find_location_expression): Update.
7112 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7113 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7114 parameter.
7115 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7116 parameter.
7117 (locexpr_describe_location_1): Likewise.
7118 (locexpr_describe_location): Update.
7119
4b167ea1
SM
71202020-05-27 Simon Marchi <simon.marchi@efficios.com>
7121
7122 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7123 Remove.
7124 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7125 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7126 (dwarf2_compile_property_to_c): Update.
7127 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7128 use text offset from objfile.
7129 (locexpr_tracepoint_var_ref): Update.
7130 (locexpr_generate_c_location): Update.
7131 (loclist_describe_location): Update.
7132 (loclist_tracepoint_var_ref): Update.
7133 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7134 dwarf2_per_objfile parameter.
7135 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7136 use text offset from objfile.
7137 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7138
89b07335
SM
71392020-05-27 Simon Marchi <simon.marchi@efficios.com>
7140
7141 * dwarf2/expr.h (struct dwarf_expr_context)
7142 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7143 <offset>: Remove.
7144 <per_objfile>: New member.
7145 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7146 dwarf2_per_objfile parameter. Don't set offset, set
7147 per_objfile.
7148 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7149 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7150 a dwarf2_per_objfile object instead of an offset.
7151 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7152 constructor.
7153 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7154 to dwarf2_expr_executor constructor. Don't set offset.
7155 (dwarf2_fetch_cfa_info): Update.
7156 (struct dwarf2_frame_cache) <text_offset>: Remove.
7157 <per_objfile>: New field.
7158 (dwarf2_frame_cache): Update.
7159 (dwarf2_frame_prev_register): Update.
7160 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7161 <dwarf_evaluate_loc_desc>: Add constructor.
7162 (dwarf2_evaluate_loc_desc_full): Update.
7163 (dwarf2_locexpr_baton_eval): Update.
7164 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7165 Add constructor.
7166 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7167
293e7e51
SM
71682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7171 addr_sized_int_type>: Move to dwarf2_cu.
7172 <int_type>: Move to dwarf2_per_objfile.
7173 (struct dwarf2_per_objfile) <int_type>: Move here.
7174 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7175 addr_sized_int_type>: Move here.
7176 (read_func_scope): Update.
7177 (read_array_type): Update.
7178 (read_tag_string_type): Update.
7179 (attr_to_dynamic_prop): Update.
7180 (dwarf2_per_cu_data::int_type): Rename to...
7181 (dwarf2_per_objfile::int_type): ... this.
7182 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7183 (dwarf2_cu::addr_sized_int_type): ... this.
7184 (read_subrange_type): Update.
7185 (dwarf2_per_cu_data::addr_type): Rename to...
7186 (dwarf2_cu::addr_type): ... this.
7187 (set_die_type): Update.
7188
64874a40
SM
71892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7192 data through per_cu->cu.
7193
4ab09049
SM
71942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7195
7196 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7197 dwarf2_per_cu_data parameter fo dwarf2_cu.
7198 (lookup_dwo_type_unit): Likewise.
7199 (read_cutu_die_from_dwo): Likewise.
7200 (lookup_dwo_unit): Likewise.
7201 (open_and_init_dwo_file): Likewise.
7202 (lookup_dwo_cutu): Likewise.
7203 (lookup_dwo_comp_unit): Likewise.
7204 (lookup_dwo_type_unit): Likewise.
7205 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7206 (cutu_reader::cutu_reader): Update.
7207
47b14e86
SM
72082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7211 parameter.
7212 (process_full_type_unit): Likewise.
7213 (process_queue): Update.
7214
43182c09
SM
72152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7216
7217 * dwarf2/read.c (recursively_compute_inclusions): Add
7218 dwarf2_per_objfile parameter.
7219 (compute_compunit_symtab_includes): Likewise.
7220 (process_cu_includes): Update.
7221
7aa104c4
SM
72222020-05-27 Simon Marchi <simon.marchi@efficios.com>
7223
7224 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7225 parameter.
7226 (create_type_unit_group): Update.
7227 (process_psymtab_comp_unit_reader): Update.
7228 (build_type_psymtabs_reader): Update.
7229
e3beb21d
SM
72302020-05-27 Simon Marchi <simon.marchi@efficios.com>
7231
7232 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7233 object through m_this_cu->cu.
7234
d460f660
SM
72352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7236
7237 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7238 the info parameter.
7239 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7240
ab432490
SM
72412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7242
7243 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7244 per_objfile parameter.
7245 (load_full_type_unit): Add per_objfile parameter.
7246 (read_signatured_type): Likewise.
7247 (load_full_comp_unit): Likewise.
7248 (load_cu): Likewise.
7249 (dw2_do_instantiate_symtab): Likewise.
7250 (dw2_get_file_names): Likewise.
7251 (dw2_map_symtabs_matching_filename): Update.
7252 (dw_expand_symtabs_matching_file_matcher): Update.
7253 (dw2_map_symbol_filenames): Update.
7254 (process_psymtab_comp_unit): Add per_objfile parameter.
7255 (build_type_psymtabs_1): Update.
7256 (process_skeletonless_type_unit): Update.
7257 (dwarf2_build_psymtabs_hard): Update.
7258 (load_partial_comp_unit): Add per_objfile parameter.
7259 (scan_partial_symbols): Update.
7260 (load_full_comp_unit): Add per_objfile parameter.
7261 (process_imported_unit_die): Update.
7262 (create_cus_hash_table): Update.
7263 (find_partial_die): Update.
7264 (dwarf2_read_addr_index): Update.
7265 (follow_die_offset): Update.
7266 (dwarf2_fetch_die_loc_sect_off): Update.
7267 (dwarf2_fetch_constant_bytes): Update.
7268 (dwarf2_fetch_die_type_sect_off): Update.
7269 (follow_die_sig_1): Update.
7270 (load_full_type_unit): Add per_objfile parameter.
7271 (read_signatured_type): Likewise.
7272
313bad1b
SM
72732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7276 of objfile_name.
7277
c3699833
SM
72782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7279
7280 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7281 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7282 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7283 field.
7284 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7285 (create_cus_from_index): Update.
7286 (dwarf2_read_gdb_index): Update.
7287 (create_cus_from_debug_names): Update.
7288 (dwarf2_read_debug_names): Update.
7289 (get_abbrev_section_for_cu): Update.
7290 (create_all_comp_units): Update.
7291 (read_attribute_value): Update.
7292 (get_debug_line_section): Update.
7293 * dwarf2/index-cache.c (index_cache::store): Update.
7294 * dwarf2/index-write.c (save_gdb_index_command): Update.
7295 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7296
1859c670
SM
72972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7300 member.
7301 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7302 dwarf2_per_cu_data::per_bfd.
7303 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7304 (create_type_unit_group): Likewise.
7305 (queue_comp_unit): Remove reference to
7306 per_cu->dwarf2_per_objfile.
7307 (maybe_queue_comp_unit): Likewise.
7308 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7309 (create_cus_hash_table): Assign new field.
7310
5e22e966
SM
73112020-05-27 Simon Marchi <simon.marchi@efficios.com>
7312
7313 * dwarf2/read.c: Replace
7314 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7315 dwarf2_cu->per_objfile throughout.
7316
97a1449a
SM
73172020-05-27 Simon Marchi <simon.marchi@efficios.com>
7318
7319 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7320 parameter, don't use per_cu->dwarf2_per_objfile.
7321 (dw2_instantiate_symtab): Likewise.
7322 (dw2_find_last_source_symtab): Update.
7323 (dw2_map_expand_apply): Update.
7324 (dw2_lookup_symbol): Update.
7325 (dw2_expand_symtabs_for_function): Update.
7326 (dw2_expand_all_symtabs): Update.
7327 (dw2_expand_symtabs_with_fullname): Update.
7328 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7329 don't use per_cu->dwarf2_per_objfile.
7330 (dw2_expand_marked_cus): Update.
7331 (dw2_find_pc_sect_compunit_symtab): Update.
7332 (dw2_debug_names_lookup_symbol): Update.
7333 (dw2_debug_names_expand_symtabs_for_function): Update.
7334 (dw2_debug_names_map_matching_symbols): Update.
7335 (dwarf2_psymtab::expand_psymtab): Update.
7336
9e021579
SM
73372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7338
7339 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7340 <per_objfile>: New member.
7341 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7342 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7343 call to dwarf2_cu.
7344 (cutu_reader::cutu_reader): Update.
7345 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7346
ae090bdb
SM
73472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7348
7349 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7350 struct dwarf2_per_objfile.
7351 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7352 dwarf2_per_bfd.
7353 * dwarf2/read.c (set_die_type): Update.
7354 (get_die_type_at_offset): Update.
7355
af758d11
SM
73562020-05-27 Tom Tromey <tom@tromey.com>
7357 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7360 method.
7361 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7362 get_symtab, set_symtab>: New methods.
7363 <m_symtabs>: New field.
7364 (struct dwarf2_psymtab): Derive from partial_symtab.
7365 <readin_p, get_compunit_symtab>: Declare methods.
7366 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7367 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7368 New methods.
7369 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7370 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7371 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7372 (dw2_symtab_iter_next, dw2_print_stats)
7373 (dw2_expand_symtabs_with_fullname)
7374 (dw2_expand_symtabs_matching_one)
7375 (dw_expand_symtabs_matching_file_matcher)
7376 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7377 (dw2_debug_names_iterator::next)
7378 (dw2_debug_names_map_matching_symbols)
7379 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7380 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7381 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7382 New methods.
7383 (get_compunit_symtab, process_full_comp_unit)
7384 (process_full_type_unit): Update.
7385 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7386
5989a64e
SM
73872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7388
7389 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7390 then introduce a new dwarf2_per_objfile type.
7391 <read_line_string>: Move to the new dwarf2_per_objfile type.
7392 <objfile>: Likewise.
7393 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7394 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7395 dwarf2_per_objfile->per_bfd.
7396 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7397 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7398 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7399 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7400 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7401 (dwarf2_per_objfile::locate_sections): Rename to...
7402 (dwarf2_per_bfd::locate_sections): ... this.
7403 (dwarf2_per_objfile::get_cutu): Rename to...
7404 (dwarf2_per_bfd::get_cutu): ... this.
7405 (dwarf2_per_objfile::get_cu): Rename to...
7406 (dwarf2_per_bfd::get_cu): ... this.
7407 (dwarf2_per_objfile::get_tu): Rename to...
7408 (dwarf2_per_bfd::get_tu): ... this.
7409 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7410 (dwarf2_per_bfd::allocate_per_cu): ... this.
7411 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7412 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7413 (get_gdb_index_contents_ftype): Change parameter from
7414 dwarf2_per_objfile to dwarf2_per_bfd.
7415 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7416 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7417
a50264ba
TT
74182020-05-27 Tom Tromey <tom@tromey.com>
7419 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7422 (allocate_piece_closure): Set "per_objfile" member.
7423 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7424 (locexpr_describe_location, loclist_describe_location): Use new
7425 member.
7426 * dwarf2/read.c (read_call_site_scope)
7427 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7428 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7429 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7430 handle_data_member_location): Set per_objfile member.
7431 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7432 member.
7433 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7434
d3473f0c
TT
74352020-05-27 Tom Tromey <tom@tromey.com>
7436
7437 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7438 allocate_signatured_type>: Declare new methods.
7439 <m_num_psymtabs>: New member.
7440 (struct dwarf2_per_cu_data) <index>: New member.
7441 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7442 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7443 (create_cu_from_index_list): Use allocate_per_cu.
7444 (create_signatured_type_table_from_index)
7445 (create_signatured_type_table_from_debug_names)
7446 (create_debug_type_hash_table, add_type_unit)
7447 (read_comp_units_from_section): Use allocate_signatured_type.
7448
5717c425
TT
74492020-05-27 Tom Tromey <tom@tromey.com>
7450
7451 * psymtab.c (partial_map_expand_apply)
7452 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7453 (psym_lookup_global_symbol_language)
7454 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7455 (psym_print_stats, psym_expand_symtabs_for_function)
7456 (psym_map_symbol_filenames, psym_map_matching_symbols)
7457 (psym_expand_symtabs_matching)
7458 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7459 (maintenance_check_psymtabs): Update.
7460 * psympriv.h (struct partial_symtab) <readin_p,
7461 get_compunit_symtab>: Add objfile parameter.
7462 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7463 Likewise.
7464 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7465 get_compunit_symtab>: Likewise.
7466 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7467
45940949
TT
74682020-05-27 Tom Tromey <tom@tromey.com>
7469
7470 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7471 member.
7472 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7473 (create_cu_from_index_list)
7474 (create_signatured_type_table_from_index)
7475 (create_signatured_type_table_from_debug_names)
7476 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7477 (dwarf2_create_include_psymtab)
7478 (create_debug_type_hash_table, add_type_unit)
7479 (create_type_unit_group, read_comp_units_from_section)
7480 (dwarf2_compute_name, create_cus_hash_table)
7481 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7482 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7483 obstack.
7484 (dw2_get_real_path): Likewise. Change argument to
7485 dwarf2_per_objfile.
7486
f8c6d152
LM
74872020-05-27 Luis Machado <luis.machado@linaro.org>
7488
7489 PR tdep/26000
7490 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7491 for ldrd (immediate).
7492
e98d2e6d
PW
74932020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7494
7495 * command.h: Add comment giving the name of class_tui.
7496 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7497 create the fake command for the help for class_tui.
7498
53a47a3e
TT
74992020-05-26 Tom Tromey <tromey@adacore.com>
7500
7501 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7502 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7503 (val_atr): New function.
7504 (value_val_atr): Use it.
7505 * ada-valprint.c (print_optional_low_bound): Change low bound
7506 handling for enums.
7507 (val_print_packed_array_elements): Don't call discrete_position.
7508 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7509 discrete_position for enum types.
7510 * language.c (default_print_array_index): Change type.
7511 * language.h (struct language_defn) <la_print_array_index>: Add
7512 index_type parameter, change type of index_value.
7513 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7514 (default_print_array_index): Update.
7515 * valprint.c (maybe_print_array_index): Don't call
7516 value_from_longest. Update.
7517 (value_print_array_elements): Don't call discrete_position.
7518
0bc2354b
TT
75192020-05-26 Tom Tromey <tromey@adacore.com>
7520
7521 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7522 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7523
1218a4bf
CDA
75242020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7525
7526 PR gdb/13519
7527 * avr-tdep.c (avr_integer_to_address): Return data or code
7528 address accordingly to the second 'type' argument of the
7529 function.
7530
92651b1d
MW
75312020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7532
7533 * infcmd.c, inferior.h: (construct_inferior_arguments):
7534 Moved function from here to gdbsupport/common-inferior.{h,cc}
7535
0a4f5f8c
TT
75362020-05-23 Tom Tromey <tom@tromey.com>
7537
7538 Revert commit eca1f90c:
7539 * NEWS: Remove entry for completion styling.
7540 * completer.c (_rl_completion_prefix_display_length): Move
7541 declaration later.
7542 (gdb_fnprint): Revert.
7543 (gdb_display_match_list_1): Likewise.
7544 * cli/cli-style.c (completion_prefix_style)
7545 (completion_difference_style, completion_suffix_style): Remove.
7546 (_initialize_cli_style): Revert.
7547 * cli/cli-style.h (completion_prefix_style)
7548 (completion_difference_style, completion_suffix_style): Don't
7549 declare.
7550
e08bd6c5
PA
75512020-05-24 Pedro Alves <palves@redhat.com>
7552
7553 * symtab.c (completion_list_add_name): Return boolean indication
7554 of whether the symbol matched.
7555 (completion_list_add_symbol): Don't try to remove C++ aliases if
7556 the symbol didn't match in the first place.
7557 * symtab.h (completion_list_add_name): Return bool.
7558
ceacbf6e
SM
75592020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7560
7561 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7562 type::field.
7563
26f16254
JB
75642020-05-23 Joel Brobecker <brobecker@adacore.com>
7565
7566 GDB 9.2 released.
7567
eca1f90c
TT
75682020-05-23 Tom Tromey <tom@tromey.com>
7569
7570 * NEWS: Add entry for completion styling.
7571 * completer.c (_rl_completion_prefix_display_length): Move
7572 declaration earlier.
7573 (gdb_fnprint): Use completion_style.
7574 (gdb_display_match_list_1): Likewise.
7575 * cli/cli-style.c (completion_prefix_style)
7576 (completion_difference_style, completion_suffix_style): New
7577 globals.
7578 (_initialize_cli_style): Register new globals.
7579 * cli/cli-style.h (completion_prefix_style)
7580 (completion_difference_style, completion_suffix_style): Declare.
7581
51e2cfa2
PA
75822020-05-23 Pedro Alves <palves@redhat.com>
7583
7584 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7585 (parse_escape): Use ISDIGIT instead of isdigit.
7586 (puts_debug): Use gdb_isprint instead of isprint.
7587 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7588 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7589 ISSPACE instead of isspace.
7590 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7591 instead of isspace.
7592 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7593 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7594 instead of isxdigit and ISDIGIT instead of isdigit.
7595
80fc5e77
SM
75962020-05-22 Simon Marchi <simon.marchi@efficios.com>
7597
7598 * gdbtypes.h (struct type) <field>: New method.
7599 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7600 or type::field.
7601
3cabb6b0
SM
76022020-05-22 Simon Marchi <simon.marchi@efficios.com>
7603
7604 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7605 (TYPE_FIELDS): Use type::fields. Change all call sites that
7606 modify the propery to use type::set_fields instead.
7607
1f704f76
SM
76082020-05-22 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7611 type::num_fields instead.
7612
5e33d5f4
SM
76132020-05-22 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7616 methods.
7617 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7618 that modify the number of fields to use type::set_num_fields
7619 instead.
7620
9392ebb3
TT
76212020-05-22 Tom Tromey <tromey@adacore.com>
7622
7623 * compile/compile-object-load.h (munmap_list_free): Don't
7624 declare.
7625
7c13f4e8
AB
76262020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * annotate.c (annotate_source_line): Update return type, add call
7629 to update current symtab and line.
7630 * annotate.h (annotate_source_line): Update return type, and
7631 extend header comment.
7632 * source.c (info_line_command): Check annotation_level before
7633 calling annotate_source_line.
7634 * stack.c (print_frame_info): If calling annotate_source_line
7635 returns true, then don't print any other source line information.
7636
aa370940
SM
76372020-05-21 Simon Marchi <simon.marchi@efficios.com>
7638
7639 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7640
84d53fa9
SM
76412020-05-21 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * coffread.c (patch_type): Remove NULL check before xfree.
7644 * corefile.c (set_gnutarget): Likewise.
7645 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7646 * exec.c (build_section_table): Likewise.
7647 * remote.c (remote_target::pass_signals): Likewise.
7648 * utils.c (n_spaces): Likewise.
7649 * cli/cli-script.c (document_command): Likewise.
7650 * i386-windows-tdep.c (core_process_module_section): Likewise.
7651 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7652
9d428aae
SM
76532020-05-20 Simon Marchi <simon.marchi@efficios.com>
7654
7655 * symfile.c (reread_symbols): Clear objfile's section_offsets
7656 vector and section indices, re-compute them by calling
7657 sym_offsets.
7658
250106a7
TT
76592020-05-20 Tom Tromey <tromey@adacore.com>
7660
7661 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7662 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7663
9a0bacfb
TV
76642020-05-20 Tom de Vries <tdevries@suse.de>
7665
7666 PR symtab/25833
7667 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7668
7b958a48
AM
76692020-05-20 Alan Modra <amodra@gmail.com>
7670
7671 PR 25993
7672 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7673 bfd_set_filename.
7674 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7675 passed to bfd_set_filename.
7676 * symfile-mem.c (add_vsyscall_page): Likewise for string
7677 passed to symbol_file_add_from_memory.
7678 (symbol_file_add_from_memory): Make name param a const char* and
7679 don't strdup.
7680
c7e97679
AM
76812020-05-20 Alan Modra <amodra@gmail.com>
7682
7683 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7684 rather than accessing bfd->filename directly.
7685 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7686 and use bfd_section_name.
7687 * dwarf2/frame.c (decode_frame_entry): Likewise.
7688 * exec.c (exec_set_section_address): Likewise.
7689 * solib-aix.c (solib_aix_bfd_open): Likewise.
7690 * stap-probe.c (get_stap_base_address): Likewise.
7691 * symfile.c (reread_symbols): Likewise.
7692
563c591b
TT
76932020-05-19 Tom Tromey <tromey@adacore.com>
7694
7695 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7696
f408d82c
SM
76972020-05-19 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7700
98c59b52
PA
77012020-05-19 Pedro Alves <palves@redhat.com>
7702
7703 * NEWS (set exec-file-mismatch): Adjust entry.
7704 * exec.c: Include "build-id.h".
7705 (validate_exec_file): Try to match build IDs instead of filenames.
7706 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7707 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7708 and pass down 'warn_if_slow'.
7709 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7710 gdb_bfd_open_closure to pass it down.
7711 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7712
4111f652
PA
77132020-05-19 Pedro Alves <palves@redhat.com>
7714
7715 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7716 * target.c (target_fileio_open_1): Rename to target_fileio_open
7717 and make extern. Use bool.
7718 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7719 (target_fileio_read_alloc_1): Adjust.
7720 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7721 (target_fileio_open_warn_if_slow): Delete declaration.
7722
ad80db5b
PA
77232020-05-19 Pedro Alves <palves@redhat.com>
7724
7725 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7726 Adjust all callers.
7727
1d6ce4d3
YS
77282020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7729
7730 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7731 whether disp is negative.
7732
9005fbbb
SM
77332020-05-19 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * symfile.h (struct symfile_segment_data)
7736 <~symfile_segment_data>: Remove.
7737 <segment_info>: Change to std::vector.
7738 * symfile.c (default_symfile_segments): Update.
7739 * elfread.c (elf_symfile_segments): Update.
7740
68b888ff
SM
77412020-05-19 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7744 <segments>: New.
7745 <segment_bases, segment_sizes>: Remove.
7746 * symfile.c (default_symfile_segments): Update.
7747 * elfread.c (elf_symfile_segments): Update.
7748 * remote.c (remote_target::get_offsets): Update.
7749 * solib-target.c (solib_target_relocate_section_addresses):
7750 Update.
7751
62982abd
SM
77522020-05-19 Simon Marchi <simon.marchi@efficios.com>
7753
7754 * symfile.h (struct symfile_segment_data): Initialize fields.
7755 <~symfile_segment_data>: Add.
7756 (symfile_segment_data_up): New.
7757 (struct sym_fns) <sym_segments>: Return a
7758 symfile_segment_data_up.
7759 (default_symfile_segments): Return a symfile_segment_data_up.
7760 (free_symfile_segment_data): Remove.
7761 (get_symfile_segment_data): Return a symfile_segment_data_up.
7762 * symfile.c (default_symfile_segments): Likewise.
7763 (get_symfile_segment_data): Likewise.
7764 (free_symfile_segment_data): Remove.
7765 (symfile_find_segment_sections): Update.
7766 * elfread.c (elf_symfile_segments): Return a
7767 symfile_segment_data_up.
7768 * remote.c (remote_target::get_offsets): Update.
7769 * solib-target.c (solib_target_relocate_section_addresses):
7770 Update.
7771 * symfile-debug.c (debug_sym_segments): Return a
7772 symfile_segment_data_up.
7773
7f204339
RO
77742020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7775
e52a0f1b
RO
7776 PR build/25981
7777 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7778 Hardcode register numbers.
7779
7f204339
RO
7780 PR build/25981
7781 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7782 procfs_find_LDT_entry): Remove.
7783 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7784 procfs_find_LDT_entry): Remove.
7785 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7786 Remove.
7787
7f32a4d5
PA
77882020-05-17 Pedro Alves <palves@redhat.com>
7789 Andrew Burgess <andrew.burgess@embecosm.com>
7790 Keno Fischer <keno@juliacomputing.com>
7791
7792 PR gdb/25741
7793 * breakpoint.c (build_target_condition_list): Update comments.
7794 (build_target_command_list): Update comments and skip matching
7795 locations.
7796 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7797 a separate function. Simplify "set breakpoint auto-hw off"
7798 handling.
7799 (insert_breakpoints): Update comment.
7800 (tracepoint_locations_match): New parameter. For breakpoints,
7801 compare location types too, if the caller wants to.
7802 (handle_automatic_hardware_breakpoints): New functions.
7803 (bp_location_is_less_than): Also sort by location type and
7804 hardware breakpoint length.
7805 (update_global_location_list): Handle "set breakpoint auto-hw on"
7806 here.
7807 (update_breakpoint_locations): Ask breakpoint_locations_match to
7808 ignore location types.
7809
7d93a1e0
SM
78102020-05-16 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7813 type::name instead.
7814
d0e39ea2
SM
78152020-05-16 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * gdbtypes.h (struct type) <name, set_name>: New methods.
7818 (TYPE_CODE): Use type::name. Change all call sites used to set
7819 the name to use type::set_name instead.
7820
2dab0c7b
TT
78212020-05-16 Tom Tromey <tom@tromey.com>
7822
7823 * top.c (quit_force): Update.
7824 * infrun.c (handle_no_resumed): Update.
7825 * top.h (all_uis): New function.
7826 (ALL_UIS): Remove.
7827
59f7bd8d
SM
78282020-05-16 Simon Marchi <simon.marchi@efficios.com>
7829
7830 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7831
9bf058f0
PA
78322020-05-16 Pedro Alves <palves@redhat.com>
7833
7834 * ia64-linux-nat.c
7835 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7836 Declare method.
7837 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7838
8f86ae1a
SM
78392020-05-15 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7842 (sparc64_adi_info): Likewise.
7843
d6bc0792
TT
78442020-05-15 Tom Tromey <tom@tromey.com>
7845
7846 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7847 block_objfile.
7848 (lookup_objfile_from_block): Remove.
7849 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7850 (lookup_global_symbol): Use block_objfile.
7851 * symtab.h (lookup_objfile_from_block): Don't declare.
7852 * printcmd.c (clear_dangling_display_expressions): Use
7853 block_objfile.
7854 * parse.c (operator_check_standard): Use block_objfile.
7855
8c14c3a3
TT
78562020-05-15 Tom Tromey <tom@tromey.com>
7857
7858 * language.c (language_alloc_type_symbol): Set
7859 SYMBOL_SECTION.
7860 * symtab.c (initialize_objfile_symbol): Remove.
7861 (allocate_symbol): Remove.
7862 (allocate_template_symbol): Remove.
7863 * dwarf2/read.c (fixup_go_packaging): Use "new".
7864 (new_symbol): Use "new".
7865 (read_variable): Don't call initialize_objfile_symbol. Use
7866 "new".
7867 (read_func_scope): Use "new".
7868 * xcoffread.c (process_xcoff_symbol): Don't call
7869 initialize_objfile_symbol.
7870 (SYMBOL_DUP): Remove.
7871 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7872 "new".
7873 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7874 (allocate_template_symbol): Don't declare.
7875 (struct symbol): Add copy constructor. Change defaults.
7876 * jit.c (finalize_symtab): Use "new".
7877 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7878 Use "new".
7879 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7880 (common_block_end): Use "new".
7881 * mdebugread.c (parse_symbol): Use "new".
7882 (new_symbol): Likewise.
7883
5b4a1a8d
PW
78842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7885
7886 * NEWS: Mention changes to help and apropos.
7887
57b4f16e
PW
78882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7889
7890 * command.h (enum command_class): Improve comments, document
7891 that class_alias is for user-defined aliases, give the class
7892 name for each class, remove unused class_xdb.
7893 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7894 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7895 by a precise class.
7896 * infcmd.c (_initialize_infcmd): Likewise.
7897 * reverse.c (_initialize_reverse): Likewise.
7898 * stack.c (_initialize_stack): Likewise.
7899 * symfile.c (_initialize_symfile): Likewise.
7900 * tracepoint.c (_initialize_tracepoint): Likewise.
7901
7c05caf7
PW
79022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7903
7904 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7905 when their aliased command is traversed.
7906 (help_cmd): Add fput_command_names_styled call to
7907 output command name and aliases when command has an alias.
7908
3b3aaacb
PW
79092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7910
7911 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7912 * cli/cli-decode.c (help_cmd_list): Declare as static,
7913 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7914 a command together with the command.
7915 (fput_command_name_styled, fput_command_names_styled): New functions.
7916 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7917 fput_command_name_styled.
7918 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7919 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7920
7aa1b46f
PW
79212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7922
7923 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7924 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7925 * command.h (cmd_show_list): Likewise.
7926 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7927 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7928
89bcba74
PW
79292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7930
7931 * unittests/command-def-selftests.c (traverse_command_structure):
7932 Verify all commands of a list have the same prefix command and
7933 that only the top cmdlist commands have a null prefix.
7934
3f4d92eb
PW
79352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7936
7937 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7938 as prefix, not one of its aliases.
7939 (set_cmd_prefix): Remove.
7940 (do_add_cmd): Centralize the setting of the prefix of a command, when
7941 command is defined after its full chain of prefix commands.
7942 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7943 (add_setshow_cmd_full): Likewise.
7944 (update_prefix_field_of_prefixed_commands): New function.
7945 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7946 update_prefix_field_of_prefixed_commands.
7947 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7948 addresses of remote_set_cmdlist and remote_show_cmdlist given
7949 as argument, not the address of an argument.
7950 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7951 * gdb/remote.c (_initialize_remote): Likewise.
7952
0605465f
PW
79532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7954
7955 * cli/cli-cmds.c (alias_command): Check for an existing alias
7956 using lookup_cmd_composition, as valid_command_p is too strict
7957 and forbids aliases that are the prefix of an existing alias
7958 or command.
7959 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7960 command is properly recognised as a valid command.
7961
58e6ac70
PW
79622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7963
7964 * unittests/help-doc-selftests.c: Rename to
7965 unittests/command-def-selftests.c
7966 * unittests/command-def-selftests.c (help_doc_tests): Update some
7967 comments.
7968 (command_structure_tests, traverse_command_structure): New namespace
7969 and function.
7970 (command_structure_invariants_tests): New function.
7971 (_initialize_command_def_selftests) Renamed from
7972 _initialize_help_doc_selftests, register command_structure_invariants
7973 selftest.
7974
a7b9ceb8
PW
79752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7976
7977 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7978 an alias of 'show'.
7979
b2188a06
JB
79802020-05-15 Joel Brobecker <brobecker@adacore.com>
7981
7982 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7983 ada_is_fixed_point_type. Update all callers.
7984 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7985 all callers.
7986 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7987 Update all callers.
7988 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7989 print_fixed_point_type. Update all callers.
7990 * ada-valprint.c (ada_value_print_num): Replace call to
7991 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7992
a51951c2
KB
79932020-05-14 Kevin Buettner <kevinb@redhat.com>
7994
7995 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7996 processors.
7997 (cpu_supports_bts): Add CV_AMD case.
7998
29d6859f
LM
79992020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8000 Simon Marchi <simon.marchi@efficios.com>
8001
8002 * infrun.c (stop_all_threads): Collect multiple wait events at
8003 each pass.
8004
78134374
SM
80052020-05-14 Simon Marchi <simon.marchi@efficios.com>
8006
8007 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8008 type::code instead.
8009
67607e24
SM
80102020-05-14 Simon Marchi <simon.marchi@efficios.com>
8011
8012 * gdbtypes.h (struct type) <code, set_code>: New methods.
8013 (TYPE_CODE): Use type::code. Change all call sites used to set
8014 the code to use type::set_code instead.
8015
a05575d3
TBA
80162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8017 Tom de Vries <tdevries@suse.de>
8018 Pedro Alves <palves@redhat.com>
8019
8020 PR threads/25478
8021 * infrun.c (stop_all_threads): Do NOT ignore
8022 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8023 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8024 received.
8025 (handle_no_resumed): Remove code handling a live inferior with no
8026 threads.
8027 * remote.c (has_single_non_exited_thread): New.
8028 (remote_target::update_thread_list): Do not delete a thread if is
8029 the last thread of the process.
8030 * thread.c (thread_select): Call delete_exited_threads instead of
8031 prune_threads.
8032
6ad82919
TBA
80332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8034
8035 * infrun.c (stop_all_threads): Enable/disable thread events of all
8036 targets. Move a debug message denoting the end of the function
8037 into the SCOPED_EXIT block.
8038
d890404b
TBA
80392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8040
8041 * process-stratum-target.h: Include <set>.
8042 (all_non_exited_process_targets, switch_to_target_no_thread): New
8043 function declarations.
8044 * process-stratum-target.c (all_non_exited_process_targets)
8045 (switch_to_target_no_thread): New function implementations.
8046
293b3ebc
TBA
80472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8048
8049 * infrun.c (handle_inferior_event): Extract out a piece of code
8050 into...
8051 (mark_non_executing_threads): ...this new function.
8052
7ca9b62a
TBA
80532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8054
8055 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8056 use.
8057
fc75c28b
TBA
80582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8059
8060 * regcache.c (regcache_read_pc_protected): New function
8061 implementation that returns 0 if the PC cannot read via
8062 'regcache_read_pc'.
8063 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8064 instead of 'regcache_read_pc'.
8065 (keep_going_pass_signal): Ditto.
8066
a89febbd
TT
80672020-05-13 Tom Tromey <tromey@adacore.com>
8068
8069 * ada-lang.c (align_value): Remove.
8070 (ada_template_to_fixed_record_type_1): Use align_up.
8071
f7e23710
TBA
80722020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8073
8074 * async-event.c: Update the copyright year.
8075 * async-event.h: Update the copyright year.
8076
02ff80c2
SM
80772020-05-12 Simon Marchi <simon.marchi@efficios.com>
8078
8079 * objfiles.h (is_addr_in_objfile,
8080 shared_objfile_contains_address_p): Return bool.
8081 * objfile.c (is_addr_in_objfile,
8082 shared_objfile_contains_address_p): Return bool.
8083
4fd6c7e8
TT
80842020-05-11 Tom Tromey <tromey@adacore.com>
8085
8086 * cli/cli-cmds.c (info_command): Restore.
8087 (_initialize_cli_cmds): Use add_prefix_command for "info".
8088 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8089
5eb68a39
TT
80902020-05-11 Tom Tromey <tromey@adacore.com>
8091
8092 * ada-lang.c (ada_value_primitive_field): Now public.
8093 * ada-lang.h (ada_value_primitive_field): Declare.
8094 * ada-valprint.c (print_field_values): Use
8095 ada_value_primitive_field for wrapper fields.
8096
7666722f
TV
80972020-05-11 Tom de Vries <tdevries@suse.de>
8098
8099 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8100 MODULE_DOMAIN.
8101
3ee6bb11
TV
81022020-05-11 Tom de Vries <tdevries@suse.de>
8103
8104 PR symtab/25941
8105 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8106 with length 0, if not gdb-produced.
8107 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8108
43434996
TV
81092020-05-09 Tom de Vries <tdevries@suse.de>
8110
8111 PR gdb/25955
8112 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8113 calculation.
8114
2f78cffc
TT
81152020-05-09 Tom Tromey <tom@tromey.com>
8116
8117 * top.c (server_command): Now bool.
8118 * top.h (server_command): Now bool.
8119
4f7bc5ed
TT
81202020-05-08 Tom Tromey <tromey@adacore.com>
8121
8122 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8123 already being processed.
8124
8be4b118
TT
81252020-05-08 Tom Tromey <tom@tromey.com>
8126
8127 * printcmd.c (struct display) <next>: Remove.
8128 <display>: New constructor.
8129 <exp_string>: Now a std::string.
8130 <enabled_p>: Now a bool.
8131 (display_number): Move definition earlier.
8132 (displays): Rename from display_chain. Now a std::vector.
8133 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8134 (display_command): Update.
8135 (do_one_display, disable_display)
8136 (enable_disable_display_command, do_enable_disable_display):
8137 Update.
8138 (free_display): Remove.
8139 (clear_displays): Rewrite.
8140 (delete_display): Update.
8141 (map_display_numbers): Use function_view. Remove "data"
8142 parameter. Update.
8143 (do_delete_display): Remove.
8144 (undisplay_command): Update.
8145 (do_one_display, do_displays, disable_display)
8146 (info_display_command): Update.
8147 (do_enable_disable_display): Remove.
8148 (enable_disable_display_command)
8149 (clear_dangling_display_expressions): Update.
8150
94c93c35
TT
81512020-05-08 Tom Tromey <tom@tromey.com>
8152
8153 * symtab.c (set_symbol_cache_size)
8154 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8155 (maintenance_print_symbol_cache_statistics): Update.
8156 * symmisc.c (print_symbol_bcache_statistics)
8157 (print_objfile_statistics, maintenance_print_objfiles)
8158 (maintenance_info_symtabs, maintenance_check_symtabs)
8159 (maintenance_expand_symtabs, maintenance_info_line_tables):
8160 Update.
8161 * symfile-debug.c (set_debug_symfile): Update.
8162 * source.c (forget_cached_source_info): Update.
8163 * python/python.c (gdbpy_progspaces): Update.
8164 * psymtab.c (maintenance_info_psymtabs): Update.
8165 * probe.c (parse_probes): Update.
8166 * linespec.c (iterate_over_all_matching_symtabs)
8167 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8168 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8169 * exec.c (exec_target::close): Update.
8170 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8171 * breakpoint.c (print_one_breakpoint_location)
8172 (create_longjmp_master_breakpoint)
8173 (create_std_terminate_master_breakpoint): Update.
8174 * progspace.c (program_spaces): Now a std::vector.
8175 (maybe_new_address_space): Update.
8176 (add_program_space): Remove.
8177 (program_space::program_space): Update.
8178 (remove_program_space): Update.
8179 (number_of_program_spaces): Remove.
8180 (print_program_space, update_address_spaces): Update.
8181 * progspace.h (program_spaces): Change type.
8182 (ALL_PSPACES): Remove.
8183 (number_of_program_spaces): Don't declare.
8184 (struct program_space) <next>: Remove.
8185
a1fd1ac9
TT
81862020-05-08 Tom Tromey <tom@tromey.com>
8187
8188 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8189 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8190 (enable_break): Update.
8191 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8192 (frv_fdpic_find_canonical_descriptor): Update.
8193 (frv_fetch_objfile_link_map): Update.
8194 * progspace.c (program_space::free_all_objfiles): Update.
8195 (program_space::solibs): New method.
8196 * progspace.h (struct program_space) <solibs>: New method.
8197 * solist.h (master_so_list): Don't declare.
8198 (ALL_SO_LIBS): Remove.
8199 * solib.h (so_list_head): Remove.
8200 (update_solib_list): Update comment.
8201 * solib.c (master_so_list): Remove.
8202 (solib_used, update_solib_list, solib_add)
8203 (info_sharedlibrary_command, clear_solib)
8204 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8205
38eae084
TT
82062020-05-08 Tom Tromey <tom@tromey.com>
8207
8208 * extension.c (extension_languages): Now a std::array.
8209 (ALL_EXTENSION_LANGUAGES): Remove.
8210 (get_ext_lang_defn, get_ext_lang_of_file)
8211 (eval_ext_lang_from_control_command): Update.
8212 (finish_ext_lang_initialization)
8213 (auto_load_ext_lang_scripts_for_objfile)
8214 (ext_lang_type_printers::ext_lang_type_printers)
8215 (apply_ext_lang_type_printers)
8216 (ext_lang_type_printers::~ext_lang_type_printers)
8217 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8218 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8219 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8220 (get_matching_xmethod_workers, ext_lang_colorize)
8221 (ext_lang_before_prompt): Update.
8222 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8223
596dc4ad
TT
82242020-05-08 Tom Tromey <tom@tromey.com>
8225
8226 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8227 overload.
8228 <swap_string, m_string>: Remove.
8229 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8230 Update.
8231 * stabsread.c (define_symbol, read_type): Update.
8232 * linespec.c (find_linespec_symbols): Update.
8233 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8234 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8235 * dbxread.c (read_dbx_symtab): Update.
8236 * cp-support.h (cp_canonicalize_string_full)
8237 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8238 Return unique_xmalloc_ptr.
8239 * cp-support.c (inspect_type): Update.
8240 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8241 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8242 Likewise.
8243 * c-typeprint.c (print_name_maybe_canonical): Update.
8244 * break-catch-throw.c (check_status_exception_catchpoint):
8245 Update.
8246
bf4cb9be
TV
82472020-05-08 Tom de Vries <tdevries@suse.de>
8248
8249 * infrun.c (follow_fork): Copy current_line and current_symtab to
8250 child thread.
8251
a1b68f28
SM
82522020-05-07 Simon Marchi <simon.marchi@efficios.com>
8253
8254 * async-event.c (struct async_signal_handler, struct
8255 async_event_handler): Reformat, remove typedef.
8256
98d48915
SM
82572020-05-07 Simon Marchi <simon.marchi@efficios.com>
8258
8259 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8260 access thistype->main_type->dyn_prop_list directly.
8261
7aa91313
SM
82622020-05-07 Simon Marchi <simon.marchi@efficios.com>
8263
8264 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8265 (remove_dyn_prop): Remove. Update all users to use
8266 type::remove_dyn_prop.
8267 * gdbtypes.c (remove_dyn_prop): Rename to...
8268 (type::remove_dyn_prop): ... this.
8269
5c54719c
SM
82702020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8271
8272 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8273 (add_dyn_prop): Remove. Update all users to use
8274 type::add_dyn_prop.
8275 * gdbtypes.c (add_dyn_prop): Rename to...
8276 (type::add_dyn_prop): ... this.
8277
24e99c6c
SM
82782020-05-07 Simon Marchi <simon.marchi@efficios.com>
8279
8280 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8281 (get_dyn_prop): Remove. Update all users to use
8282 type::dyn_prop.
8283 * gdbtypes.c (get_dyn_prop): Rename to...
8284 (type::dyn_prop): ... this.
8285
0d4bf016
SM
82862020-05-06 Simon Marchi <simon.marchi@efficios.com>
8287
8288 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8289
ac4a4f1c
SM
82902020-05-06 Simon Marchi <simon.marchi@efficios.com>
8291
8292 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8293 instruction, skip it if it's there.
8294
a3bbacc1
SM
82952020-05-05 Simon Marchi <simon.marchi@efficios.com>
8296
8297 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8298
c3236f84
SM
82992020-05-04 Simon Marchi <simon.marchi@efficios.com>
8300
8301 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8302 * gdbtypes.c (recursive_dump_type): Remove use of
8303 TYPE_INCOMPLETE.
8304
3b6acaee
TT
83052020-05-03 Tom Tromey <tom@tromey.com>
8306
8307 * breakpoint.c (catch_command, tcatch_command): Remove.
8308 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8309 add_show_prefix_cmd.
8310 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8311 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8312 Remove.
8313 (add_internal_problem_command): Use add_basic_prefix_cmd,
8314 add_show_prefix_cmd.
8315 * mips-tdep.c (set_mipsfpu_command): Remove.
8316 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8317 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8318 (_initialize_index_cache): Use add_basic_prefix_cmd.
8319 * memattr.c (dummy_cmd): Remove.
8320 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8321 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8322 (_initialize_tui_win): Use add_basic_prefix_cmd,
8323 add_show_prefix_cmd.
8324 * cli/cli-logging.c (set_logging_command): Remove.
8325 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8326 add_show_prefix_cmd.
8327 (show_logging_command): Remove.
8328 * target.c (target_command): Remove.
8329 (add_target): Use add_basic_prefix_cmd.
8330
a51119cd
HD
83312020-05-02 Hannes Domani <ssbssa@yahoo.de>
8332
8333 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8334
652fc23a 83352020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8336
652fc23a
PW
8337 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8338 info_command.
8339
117539e6
KR
83402020-04-30 Kamil Rytarowski <n54@gmx.com>
8341
8342 * nbsd-nat.c (nbsd_enable_proc_events)
8343 (nbsd_nat_target::post_startup_inferior): Add.
8344 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8345 (nbsd_nat_target::update_thread_list): Rewrite.
8346 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8347 "PTRACE_LWP_CREATE".
8348 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8349
102e38eb 83502020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8351
102e38eb
PW
8352 * stack.c (_initialize_stack): Remove duplicated creation
8353 of "frame" command and "f" alias.
8354
ee9d1e5f
HD
83552020-04-30 Hannes Domani <ssbssa@yahoo.de>
8356
8357 PR gdb/18706
8358 * gdbtypes.c (check_typedef): Calculate size of array of
8359 stubbed type.
8360
627c7fb8
HD
83612020-04-30 Hannes Domani <ssbssa@yahoo.de>
8362
8363 PR gdb/15559
8364 * i386-tdep.c (i386_push_dummy_call): Call
8365 i386_thiscall_push_dummy_call.
8366 (i386_thiscall_push_dummy_call): New function.
8367 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8368 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8369 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8370
ffc2844e
SM
83712020-04-29 Simon Marchi <simon.marchi@efficios.com>
8372
8373 * gdbarch.sh (do_read): Add shellcheck disable directive for
8374 warning SC2162.
8375
1207375d
SM
83762020-04-29 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8379 "referenced but not assigned" warning.
8380
9fdb2916
SM
83812020-04-29 Simon Marchi <simon.marchi@efficios.com>
8382
8383 * gdbarch.sh: Remove code that sets fallbackdefault.
8384
759cea5e
SM
83852020-04-29 Simon Marchi <simon.marchi@efficios.com>
8386
8387 * gdbarch.sh: Use shell operators && and || instead of
8388 -a and -o.
8389
cb02ab24
SM
83902020-04-29 Simon Marchi <simon.marchi@efficios.com>
8391
8392 * gdbarch.sh: Use $(...) instead of `...`.
8393
a6fc5ffc
SM
83942020-04-29 Simon Marchi <simon.marchi@efficios.com>
8395
8396 * gdbarch.sh: Use double quotes around variables.
8397
8d113d13
SM
83982020-04-29 Simon Marchi <simon.marchi@efficios.com>
8399
8400 * gdbarch.sh: Use %s with printf, instead of variables in the
8401 format string.
8402
ed6acedd
TT
84032020-04-29 Tom Tromey <tromey@adacore.com>
8404
8405 PR ada/25875:
8406 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8407 type fields here.
8408 (read_enumeration_type): Call
8409 update_enumeration_type_from_children later. Update comments.
8410 (process_enumeration_scope): Don't create type fields.
8411
b68b1b58
KR
84122020-04-29 Kamil Rytarowski <n54@gmx.com>
8413
8414 * nbsd-tdep.c: Include "xml-syscall.h".
8415 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8416
f94b2e03
KR
84172020-04-29 Kamil Rytarowski <n54@gmx.com>
8418
8419 * nbsd-nat.c: Include "sys/wait.h".
8420 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8421 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8422 (nbsd_nat_target::remove_exec_catchpoint)
8423 (nbsd_nat_target::set_syscall_catchpoint): Add.
8424 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8425 (nbsd_nat_target::insert_exec_catchpoint)
8426 (nbsd_nat_target::remove_exec_catchpoint)
8427 (nbsd_nat_target::set_syscall_catchpoint): Add.
8428 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8429 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8430 `nbsd_get_syscall_number'.
8431
fc49bc72
TT
84322020-04-29 Tom Tromey <tom@tromey.com>
8433
8434 * stack.c (print_block_frame_labels): Remove.
8435
d642b692
HD
84362020-04-29 Hannes Domani <ssbssa@yahoo.de>
8437
8438 PR gdb/17320
8439 * ada-valprint.c (val_print_packed_array_elements): Move array
8440 end bracket to new line.
8441 (ada_val_print_string): Remove extra spaces before first array
8442 element.
8443 * c-valprint.c (c_value_print_array): Likewise.
8444 * m2-valprint.c (m2_print_array_contents): Likewise.
8445 (m2_value_print_inner): Likewise.
8446 * p-valprint.c (pascal_value_print_inner): Likewise.
8447 * valprint.c (generic_val_print_array): Likewise.
8448 (value_print_array_elements): Move first array element and array
8449 end bracket to new line.
8450
ea90f227
TV
84512020-04-29 Tom de Vries <tdevries@suse.de>
8452
8453 PR symtab/25889
8454 * linespec.c (find_method): Fix ix calculation.
8455
4498ef4f
KR
84562020-04-28 Kamil Rytarowski <n54@gmx.com>
8457
8458 * syscalls/update-netbsd.sh: New file.
8459 * syscalls/netbsd.xml: Regenerate.
8460 * data-directory/Makefile.in: Register `netbsd.xml' in
8461 `SYSCALLS_FILES'.
8462
a55e30b5
SM
84632020-04-28 Simon Marchi <simon.marchi@efficios.com>
8464
8465 * syscalls/update-freebsd.sh: Add double quotes.
8466
2b2fbab8
TT
84672020-04-28 Tom Tromey <tom@tromey.com>
8468
8469 * NEWS: Update.
8470 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8471 (cmdpy_init): Allow class_tui.
8472
a65189c9
TV
84732020-04-28 Mark Williams <mark@myosotissp.com>
8474
8475 PR gdb/24480
8476 * dwarf2read.c: Add missing assingments to list_in_scope when
8477 start_symtab was already called.
8478
1b95cdb7
SM
84792020-04-28 Simon Marchi <simon.marchi@efficios.com>
8480
8481 PR gdb/25881
8482 * dwarf2/read.c (offset_map_type): Use
8483 gdb:hash_enum<sect_offset> as hash function.
8484
15cd93d0
TV
84852020-04-28 Tom de Vries <tdevries@suse.de>
8486
8487 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8488 with DW_AT_signature.
8489
1eb39914
SM
84902020-04-27 Simon Marchi <simon.marchi@efficios.com>
8491
8492 * configure.ac: Remove check for fs_base/gs_base in
8493 user_regs_struct.
8494 * configure: Re-generate.
8495 * config.in: Re-generate.
8496 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8497 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8498 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8499
991a3e2e
LM
85002020-04-27 Luis Machado <luis.machado@linaro.org>
8501
8502 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8503 problematic inline frame unwinding situation.
8504 * frame.c (frame_id_computed_p): New function.
8505 * frame.h (frame_id_computed_p): New prototype.
8506
361ba0e8
TT
85072020-04-26 Tom Tromey <tom@tromey.com>
8508
8509 * command.h (enum command_class) <class_pseudo>: Remove.
8510
bc3609fd
PW
85112020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8512
8513 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8514 and whitespace.
8515
b9771db7
KR
85162020-04-25 Kamil Rytarowski <n54@gmx.com>
8517
ec16513e
SM
8518 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8519 `PT_GET_PROCESS_STATE' block.
b9771db7 8520
7151c1af
TT
85212020-04-24 Tom Tromey <tom@tromey.com>
8522
8523 * symtab.h (symbol_get_demangled_name): Don't declare.
8524 * symtab.c (symbol_get_demangled_name): Remove.
8525 (general_symbol_info::natural_name)
8526 (general_symbol_info::demangled_name): Update.
8527
906bb4c5
TT
85282020-04-24 Tom Tromey <tom@tromey.com>
8529
8530 PR rust/25025:
8531 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8532
bcfe6157
TT
85332020-04-24 Tom Tromey <tom@tromey.com>
8534
8535 PR symtab/12707:
8536 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8537 exists.
8538 (new_symbol): Likewise.
8539 * compile/compile-object-load.c (get_out_value_type): Use
8540 symbol_matches_search_name.
8541
f049a313
TT
85422020-04-24 Tom Tromey <tom@tromey.com>
8543
8544 * dwarf2/read.c (add_partial_symbol): Do not call
8545 compute_and_set_names.
8546
76e288d1
TT
85472020-04-24 Tom Tromey <tom@tromey.com>
8548
8549 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8550 overload.
8551
2467f4f6
TT
85522020-04-24 Tom Tromey <tom@tromey.com>
8553
8554 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8555 (add_psymbol_to_list): New overload. Make old overload call new
8556 one.
8557 * psympriv.h (add_psymbol_to_list): New overload.
8558
e61108c9
TT
85592020-04-24 Tom Tromey <tom@tromey.com>
8560
8561 * dwarf2/read.c (partial_die_info::read) <case
8562 DW_AT_linkage_name>: Use value_as_string.
8563 (dwarf2_string_attr): Use value_as_string.
8564 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8565 method.
8566 * dwarf2/attribute.c (attribute::value_as_string): New method.
8567
8c87a452
TT
85682020-04-24 Tom Tromey <tom@tromey.com>
8569
8570 * symtab.c (general_symbol_info::natural_name)
8571 (general_symbol_info::demangled_name): Check for language_rust.
8572
787de330
TT
85732020-04-24 Tom Tromey <tom@tromey.com>
8574
8575 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8576 (dwarf2_physname): ... from here.
8577 (partial_die_info::read): Add Rust "{" hack.
8578
ff985671
TT
85792020-04-24 Tom Tromey <tom@tromey.com>
8580
8581 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8582 method.
8583 (symbol_set_demangled_name): Don't declare.
8584 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8585 symbol_set_demangled_name.
8586 (general_symbol_info::set_language)
8587 (general_symbol_info::compute_and_set_names): Update.
8588 * minsyms.c (minimal_symbol_reader::install): Update.
8589 * dwarf2/read.c (new_symbol): Update.
8590
1acda803
TT
85912020-04-24 Tom Tromey <tromey@adacore.com>
8592
8593 PR python/23662:
8594 * python/py-type.c (convert_field): Handle
8595 FIELD_LOC_KIND_DWARF_BLOCK.
8596 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8597 (typy_get_dynamic): Nw function.
8598 (type_object_getset): Add "dynamic".
8599 * NEWS: Add entry.
8600
d656f129
TT
86012020-04-24 Tom Tromey <tromey@adacore.com>
8602
8603 * ada-typeprint.c (print_choices, print_variant_part)
8604 (print_record_field_types_dynamic): New functions.
8605 (print_record_field_types): Use print_record_field_types_dynamic.
8606
7d79de9a
TT
86072020-04-24 Tom Tromey <tromey@adacore.com>
8608
8609 * dwarf2/read.c (handle_data_member_location): New overload.
8610 (dwarf2_add_field): Use it.
8611 (decode_locdesc): Add "computed" parameter. Update comment.
8612 * gdbtypes.c (is_dynamic_type_internal): Also look for
8613 FIELD_LOC_KIND_DWARF_BLOCK.
8614 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8615 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8616 virtual base classes.
8617 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8618 FIELD_LOC_KIND_DWARF_BLOCK.
8619
f8e89861
TT
86202020-04-24 Tom Tromey <tromey@adacore.com>
8621
8622 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8623 * gdbtypes.c (is_dynamic_type_internal): Check
8624 TYPE_HAS_DYNAMIC_LENGTH.
8625 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8626 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8627 New macros.
8628 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8629 constant.
8630
9c6a1327
TT
86312020-04-24 Tom Tromey <tromey@adacore.com>
8632
8633 * dwarf2/read.c (struct variant_field): Rewrite.
8634 (struct variant_part_builder): New.
8635 (struct nextfield): Remove "variant" field. Add "offset".
8636 (struct field_info): Add "current_variant_part" and
8637 "variant_parts".
8638 (alloc_discriminant_info): Remove.
8639 (alloc_rust_variant): New function.
8640 (quirk_rust_enum): Update.
8641 (dwarf2_add_field): Set "offset" member. Don't handle
8642 DW_TAG_variant_part.
8643 (offset_map_type): New typedef.
8644 (convert_variant_range, create_one_variant)
8645 (create_one_variant_part, create_variant_parts)
8646 (add_variant_property): New functions.
8647 (dwarf2_attach_fields_to_type): Call add_variant_property.
8648 (read_structure_type): Don't handle DW_TAG_variant_part.
8649 (handle_variant_part, handle_variant): New functions.
8650 (handle_struct_member_die): Use them.
8651 (process_structure_scope): Don't handle variant parts.
8652 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8653 (struct discriminant_info): Remove.
8654 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8655 (struct main_type) <flag_discriminated_union>: Remove.
8656 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8657 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8658 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8659 Update.
8660 * valops.c (value_union_variant): Remove.
8661 * value.h (value_union_variant): Don't declare.
8662
b249d2c2
TT
86632020-04-24 Tom Tromey <tromey@adacore.com>
8664
8665 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8666 (ada_value_primitive_packed_val): Update.
8667 * ada-valprint.c (ada_value_print_1): Update.
8668 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8669 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8670 just an address. Use evaluate_for_locexpr_baton.
8671 (dwarf2_evaluate_property): Update.
8672 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8673 array_view.
8674 * findvar.c (default_read_var_value): Update.
8675 * gdbtypes.c (compute_variant_fields_inner)
8676 (resolve_dynamic_type_internal): Update.
8677 (resolve_dynamic_type): Change type of valaddr parameter.
8678 * gdbtypes.h (resolve_dynamic_type): Update.
8679 * valarith.c (value_subscripted_rvalue): Update.
8680 * value.c (value_from_contents_and_address): Update.
8681
61122aa9
TT
86822020-04-24 Tom Tromey <tromey@adacore.com>
8683
8684 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8685 "push_initial_value" parameter.
8686 (dwarf2_evaluate_property): Likewise.
8687 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8688
ef83a141
TT
86892020-04-24 Tom Tromey <tromey@adacore.com>
8690
8691 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8692 (variant::matches, compute_variant_fields_recurse)
8693 (compute_variant_fields_inner, compute_variant_fields): New
8694 functions.
8695 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8696 Use resolved_type after type is made.
8697 (operator==): Add new cases.
8698 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8699 (struct discriminant_range, struct variant, struct variant_part):
8700 New.
8701 (union dynamic_prop_data) <variant_parts, original_type>: New
8702 members.
8703 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8704 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8705 constants.
8706 * value.c (unpack_bits_as_long): Now public.
8707 * value.h (unpack_bits_as_long): Declare.
8708
675127ec
TT
87092020-04-24 Tom Tromey <tromey@adacore.com>
8710
8711 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8712 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8713
9852ceef
HD
87142020-04-24 Hannes Domani <ssbssa@yahoo.de>
8715
8716 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8717
7632c6ce
KR
87182020-04-24 Kamil Rytarowski <n54@gmx.com>
8719
8720 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8721 (remove_fork_catchpoint, post_startup_inferior)
8722 (post_attach): Move...
8723 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8724 (remove_fork_catchpoint, post_startup_inferior)
8725 (post_attach): ...here.
8726 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8727 (remove_fork_catchpoint, post_startup_inferior)
8728 (post_attach): Move...
8729 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8730 (remove_fork_catchpoint, post_startup_inferior)
8731 (post_attach): ...here.
8732
7be2bb4f
TT
87332020-04-24 Tom Tromey <tromey@adacore.com>
8734
8735 * nat/windows-nat.h (struct windows_thread_info)
8736 <pc_adjusted>: New member.
8737 * windows-nat.c (windows_fetch_one_register): Check
8738 pc_adjusted.
8739 (windows_nat_target::get_windows_debug_event)
8740 (windows_nat_target::wait): Set pc_adjusted.
8741
f80cb3b4
TV
87422020-04-24 Tom de Vries <tdevries@suse.de>
8743
8744 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8745 Run gdb-add-index inside temp dir.
8746
29514b87
TT
87472020-04-23 Tom Tromey <tromey@adacore.com>
8748
8749 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8750 in loop.
8751
5939967b
LM
87522020-04-23 Luis Machado <luis.machado@linaro.org>
8753
8754 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8755 get_frame_register instead of gdbarch_unwind_pc.
8756
70bc38f5
TV
87572020-04-23 Tom de Vries <tdevries@suse.de>
8758
8759 * symtab.c (lookup_global_symbol): Prefer def over decl.
8760
de82891c
TV
87612020-04-23 Tom de Vries <tdevries@suse.de>
8762
8763 PR symtab/25807
8764 * block.c (best_symbol, better_symbol): Promote to external.
8765 * block.h (best_symbol, better_symbol): Declare.
8766 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8767 decl.
8768
ecc6c606
TT
87692020-04-23 Tom Tromey <tromey@adacore.com>
8770
8771 PR ada/25837:
8772 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8773 "const char *", not a "const std::string &".
8774 <name_and_matcher::operator==>: Update.
8775 * unittests/lookup_name_info-selftests.c: Change type of
8776 "result".
8777
740480b8
TT
87782020-04-23 Tom Tromey <tom@tromey.com>
8779
8780 * inferior.h (iterate_over_inferiors): Don't declare.
8781 * inferior.c (iterate_over_inferiors): Remove.
8782 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8783 Remove.
8784 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8785 use iterate_over_inferiors.
8786 (darwin_resume_inferior_it)
8787 (struct resume_inferior_threads_param)
8788 (darwin_resume_inferior_threads_it): Remove.
8789 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8790
ae3ab1f0
TV
87912020-04-23 Tom de Vries <tdevries@suse.de>
8792
8793 * blockframe.c (find_pc_partial_function): Use
8794 find_pc_sect_compunit_symtab rather than
8795 objfile->sf->qf->find_pc_sect_compunit_symtab.
8796
317d2668
TV
87972020-04-22 Tom de Vries <tdevries@suse.de>
8798
8799 PR symtab/25764
8800 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8801 in psymtabs.
8802
eea9e357
TV
88032020-04-22 Tom de Vries <tdevries@suse.de>
8804
8805 PR symtab/25801
8806 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8807 symtabs.
8808
3d5afab3
TV
88092020-04-22 Tom de Vries <tdevries@suse.de>
8810
8811 PR symtab/25700
8812 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8813 CU if already created.
8814
d43b7a2d
TBA
88152020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8816
8817 * infrun.c (displaced_step_fixup): Switch to the event_thread
8818 before calling displaced_step_restore, not after.
8819
d89edf9b
MM
88202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8821
8822 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8823 its inferior is not recorded by us.
8824 (record_btrace_target_open): Replace call to
8825 all_non_exited_threads () with call to current_inferior
8826 ()->non_exited_threads ().
8827 (record_btrace_target::stop_recording): Likewise.
8828 (record_btrace_target::close): Likewise.
8829 (record_btrace_target::wait): Likewise.
8830 (record_btrace_target::record_stop_replaying): Likewise.
8831
5897fd49
MM
88322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8833
8834 * btrace.c (btrace_enable): Throw an error on double enables and
8835 when enabling recording fails.
8836 (btrace_disable): Throw an error if the thread is not recorded.
8837
1a476b6d
MM
88382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8839
8840 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8841 request if we do not have a thread_info.
8842
4778a5f8
TV
88432020-04-21 Tom de Vries <tdevries@suse.de>
8844
8845 PR gdb/25471
8846 * thread.c
8847 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8848 exception in get_frame_id.
8849
0fa7617d
TT
88502020-04-20 Tom Tromey <tromey@adacore.com>
8851
8852 * python/python.c (struct gdbpy_event): Mark move constructor as
8853 noexcept.
8854 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8855 constructor as noexcept.
8856 * completer.h (struct completion_result): Mark move constructor as
8857 noexcept.
8858 * completer.c (completion_result::completion_result): Use
8859 initialization style. Don't call reset_match_list.
8860
ad23bda0
MS
88612020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8862
8863 * MAINTAINERS (Write After Approval): Add myself.
8864
45e1f031
TT
88652020-04-18 Tom Tromey <tom@tromey.com>
8866
8867 * windows-tdep.c (init_w32_command_list)
8868 (w32_prefix_command_valid): Restore.
8869 (_initialize_windows_tdep): Call init_w32_command_list.
8870
08feed99
TT
88712020-04-18 Tom Tromey <tom@tromey.com>
8872
8873 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8874 * value.c (value_fn_field): Update.
8875 * valops.c (find_function_in_inferior)
8876 (value_allocate_space_in_inferior): Update.
8877 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8878 Update.
8879 * tui/tui-source.c (tui_source_window::set_contents): Update.
8880 * symtab.c (lookup_global_or_static_symbol)
8881 (find_function_start_sal_1, skip_prologue_sal)
8882 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8883 * symmisc.c (dump_msymbols, dump_symtab_1)
8884 (maintenance_print_one_line_table): Update.
8885 * symfile.c (init_entry_point_info, section_is_mapped)
8886 (list_overlays_command, simple_read_overlay_table)
8887 (simple_overlay_update_1): Update.
8888 * stap-probe.c (handle_stap_probe): Update.
8889 * stabsread.c (dbx_init_float_type, define_symbol)
8890 (read_one_struct_field, read_enum_type, read_range_type): Update.
8891 * source.c (info_line_command): Update.
8892 * python/python.c (gdbpy_source_objfile_script)
8893 (gdbpy_execute_objfile_script): Update.
8894 * python/py-type.c (save_objfile_types): Update.
8895 * python/py-objfile.c (py_free_objfile): Update.
8896 * python/py-inferior.c (python_new_objfile): Update.
8897 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8898 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8899 (maintenance_check_psymtabs): Update.
8900 * printcmd.c (info_address_command): Update.
8901 * objfiles.h (struct objfile) <arch>: New method, from
8902 get_objfile_arch.
8903 (get_objfile_arch): Don't declare.
8904 * objfiles.c (get_objfile_arch): Remove.
8905 (filter_overlapping_sections): Update.
8906 * minsyms.c (msymbol_is_function): Update.
8907 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8908 (output_nondebug_symbol): Update.
8909 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8910 (mdebug_expand_psymtab): Update.
8911 * machoread.c (macho_add_oso_symfile): Update.
8912 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8913 Update.
8914 * linux-fork.c (checkpoint_command): Update.
8915 * linespec.c (convert_linespec_to_sals): Update.
8916 * jit.c (finalize_symtab): Update.
8917 * infrun.c (insert_exception_resume_from_probe): Update.
8918 * ia64-tdep.c (ia64_find_unwind_table): Update.
8919 * hppa-tdep.c (internalize_unwinds): Update.
8920 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8921 Update.
8922 * gcore.c (call_target_sbrk): Update.
8923 * elfread.c (record_minimal_symbol, elf_symtab_read)
8924 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8925 (elf_gnu_ifunc_resolve_by_got): Update.
8926 * dwarf2/read.c (create_addrmap_from_index)
8927 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8928 (read_debug_names_from_section)
8929 (process_psymtab_comp_unit_reader, add_partial_symbol)
8930 (add_partial_subprogram, process_full_comp_unit)
8931 (read_file_scope, read_func_scope, read_lexical_block_scope)
8932 (read_call_site_scope, dwarf2_ranges_read)
8933 (dwarf2_record_block_ranges, dwarf2_add_field)
8934 (mark_common_block_symbol_computed, read_tag_pointer_type)
8935 (read_tag_string_type, dwarf2_init_float_type)
8936 (dwarf2_init_complex_target_type, read_base_type)
8937 (partial_die_info::read, partial_die_info::read)
8938 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8939 (dwarf2_fetch_die_loc_sect_off): Update.
8940 * dwarf2/loc.c (dwarf2_find_location_expression)
8941 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8942 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8943 (dwarf2_loc_desc_get_symbol_read_needs)
8944 (locexpr_describe_location_piece, locexpr_describe_location_1)
8945 (loclist_describe_location): Update.
8946 * dwarf2/index-write.c (write_debug_names): Update.
8947 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8948 * dtrace-probe.c (dtrace_process_dof): Update.
8949 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8950 (process_one_symbol): Update.
8951 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8952 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8953 (coff_read_enum_type): Update.
8954 * cli/cli-cmds.c (edit_command, list_command): Update.
8955 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8956 * breakpoint.c (create_overlay_event_breakpoint)
8957 (create_longjmp_master_breakpoint)
8958 (create_std_terminate_master_breakpoint)
8959 (create_exception_master_breakpoint, get_sal_arch): Update.
8960 * block.c (block_gdbarch): Update.
8961 * annotate.c (annotate_source_line): Update.
8962
0743fc83
TT
89632020-04-17 Tom Tromey <tromey@adacore.com>
8964
8965 * auto-load.c (show_auto_load_cmd): Remove.
8966 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8967 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8968 (maintenance_print_arc_command): Remove.
8969 * tui/tui-win.c (tui_command): Remove.
8970 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8971 * tui/tui-layout.c (tui_layout_command): Remove.
8972 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8973 * python/python.c (user_set_python, user_show_python): Remove.
8974 (_initialize_python): Use add_basic_prefix_cmd,
8975 add_show_prefix_cmd.
8976 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8977 (install_gdb_commands): Use add_basic_prefix_cmd,
8978 add_show_prefix_cmd.
8979 (info_guile_command): Remove.
8980 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8981 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8982 add_show_prefix_cmd.
8983 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8984 Remove do_set and do_show parameters.
8985 * cli/cli-style.c (set_style, show_style): Remove.
8986 (_initialize_cli_style): Use add_basic_prefix_cmd,
8987 add_show_prefix_cmd.
8988 (cli_style_option::add_setshow_commands): Remove do_set and
8989 do_show parameters.
8990 (cli_style_option::add_setshow_commands): Use
8991 add_basic_prefix_cmd, add_show_prefix_cmd.
8992 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8993 (set_style_name): Remove.
8994 * cli/cli-dump.c (dump_command, append_command): Remove.
8995 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8996 (tekhex_dump_command, binary_dump_command)
8997 (binary_append_command): Remove.
8998 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8999 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9000 (init_w32_command_list): Remove; move into ...
9001 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9002 * valprint.c (set_print, show_print, set_print_raw)
9003 (show_print_raw): Remove.
9004 (_initialize_valprint): Use add_basic_prefix_cmd,
9005 add_show_prefix_cmd.
9006 * typeprint.c (set_print_type, show_print_type): Remove.
9007 (_initialize_typeprint): Use add_basic_prefix_cmd,
9008 add_show_prefix_cmd.
9009 * record.c (set_record_command, show_record_command): Remove.
9010 (_initialize_record): Use add_basic_prefix_cmd,
9011 add_show_prefix_cmd.
9012 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9013 add_show_prefix_cmd.
9014 (info_command, show_command, set_debug, show_debug): Remove.
9015 * top.h (set_history, show_history): Don't declare.
9016 * top.c (set_history, show_history): Remove.
9017 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9018 (unset_tdesc_cmd): Remove.
9019 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9020 add_show_prefix_cmd.
9021 * symtab.c (info_module_command): Remove.
9022 (_initialize_symtab): Use add_basic_prefix_cmd.
9023 * symfile.c (overlay_command): Remove.
9024 (_initialize_symfile): Use add_basic_prefix_cmd.
9025 * sparc64-tdep.c (info_adi_command): Remove.
9026 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9027 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9028 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9029 add_show_prefix_cmd.
9030 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9031 (_initialize_serial): Use add_basic_prefix_cmd,
9032 add_show_prefix_cmd.
9033 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9034 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9035 add_show_prefix_cmd.
9036 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9037 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9038 add_show_prefix_cmd.
9039 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9040 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9041 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9042 add_show_prefix_cmd.
9043 * remote.c (remote_command, set_remote_cmd): Remove.
9044 (_initialize_remote): Use add_basic_prefix_cmd.
9045 * record-full.c (set_record_full_command)
9046 (show_record_full_command): Remove.
9047 (_initialize_record_full): Use add_basic_prefix_cmd,
9048 add_show_prefix_cmd.
9049 * record-btrace.c (cmd_set_record_btrace)
9050 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9051 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9052 (cmd_show_record_btrace_pt): Remove.
9053 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9054 add_show_prefix_cmd.
9055 * ravenscar-thread.c (set_ravenscar_command)
9056 (show_ravenscar_command): Remove.
9057 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9058 add_show_prefix_cmd.
9059 * mips-tdep.c (show_mips_command, set_mips_command)
9060 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9061 add_show_prefix_cmd.
9062 * maint.c (maintenance_command, maintenance_info_command)
9063 (maintenance_check_command, maintenance_print_command)
9064 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9065 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9066 add_show_prefix_cmd.
9067 (show_per_command_cmd): Remove.
9068 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9069 Remove.
9070 (maintenance_show_test_settings_cmd): Remove.
9071 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9072 add_show_prefix_cmd.
9073 * maint-test-options.c (maintenance_test_options_command):
9074 Remove.
9075 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9076 * macrocmd.c (macro_command): Remove
9077 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9078 * language.c (set_check, show_check): Remove.
9079 (_initialize_language): Use add_basic_prefix_cmd,
9080 add_show_prefix_cmd.
9081 * infcmd.c (unset_command): Remove.
9082 (_initialize_infcmd): Use add_basic_prefix_cmd.
9083 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9084 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9085 add_show_prefix_cmd.
9086 * go32-nat.c (go32_info_dos_command): Remove.
9087 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9088 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9089 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9090 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9091 (_initialize_frame): Use add_basic_prefix_cmd,
9092 add_show_prefix_cmd.
9093 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9094 (_initialize_dcache): Use add_basic_prefix_cmd,
9095 add_show_prefix_cmd.
9096 * cp-support.c (maint_cplus_command): Remove.
9097 (_initialize_cp_support): Use add_basic_prefix_cmd.
9098 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9099 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9100 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9101 add_basic_prefix_cmd, add_show_prefix_cmd.
9102 * breakpoint.c (save_command): Remove.
9103 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9104 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9105 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9106 add_show_prefix_cmd.
9107 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9108 (set_ada_command, show_ada_command): Remove.
9109 (_initialize_ada_language): Use add_basic_prefix_cmd,
9110 add_show_prefix_cmd.
9111 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9112
3557f442
KR
91132020-04-16 Kamil Rytarowski <n54@gmx.com>
9114
9115 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9116 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9117
16197208
SM
91182020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9119
9120 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9121 warning messages.
9122
00ac85d3
SM
91232020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9124
9125 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9126 import table is not at beginning of .idata section.
9127
381ce63f
PA
91282020-04-16 Pedro Alves <palves@redhat.com>
9129
9130 * inferior.c (delete_inferior): Use delete operator directly
9131 instead of delete_program_space.
9132 * progspace.c (add_program_space): New, factored out from
9133 program_space::program_space.
9134 (remove_program_space): New, factored out from
9135 delete_program_space.
9136 (program_space::program_space): Remove intro comment. Rewrite.
9137 (program_space::~program_space): Remove intro comment. Call
9138 remove_program_space.
9139 (delete_program_space): Delete.
9140 * progspace.h (program_space::program_space): Make explicit. Move
9141 intro comment here, adjusted.
9142 (program_space::~program_space): Move intro comment here,
9143 adjusted.
9144 (delete_program_space): Remove.
9145
a010605f
TT
91462020-04-16 Tom Tromey <tromey@adacore.com>
9147
9148 * windows-nat.c (windows_nat::handle_access_violation): New
9149 function.
9150 * nat/windows-nat.h (handle_access_violation): Declare.
9151 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9152 windows-nat.c. Call handle_access_violation.
9153
efba5c23
TV
91542020-04-16 Tom de Vries <tdevries@suse.de>
9155
9156 PR symtab/25791
9157 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9158 CUs without psymtab.
9159
97ed802d
KB
91602020-04-16 Kevin Buettner <kevinb@redhat.com>
9161
9162 * python/python.c (do_start_initialization): Don't call
9163 PyEval_InitThreads for Python 3.9 and beyond.
9164
c7d64809
KR
91652020-04-15 Kamil Rytarowski <n54@gmx.com>
9166
9167 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9168 thread functions.
9169 (obsd_nat_target::wait): Likewise.
9170
ce127a96
TT
91712020-04-15 Tom Tromey <tromey@adacore.com>
9172
9173 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9174 (DEBUG_EXCEPT): Use debug_printf.
9175
99f1bc6a
AB
91762020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9177
9178 * completer.c (class completion_tracker::completion_hash_entry)
9179 <hash_name>: New member function.
9180 (completion_tracker::discard_completions): New callback to hash a
9181 completion_hash_entry, pass this to htab_create_alloc.
9182
a0e9b532
JT
91832016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9184
9185 * windows-nat.c (windows_make_so): Warn rather than stopping with
9186 an error if realpath() fails.
9187
06ca5dd4
KR
91882020-04-14 Kamil Rytarowski <n54@gmx.com>
9189
9190 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9191 (nbsd_nat_target::info_proc): Add do_status.
9192
194d088f
TV
91932020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9194 Tom de Vries <tdevries@suse.de>
9195
9196 PR symtab/25718
9197 * psympriv.h (struct partial_symtab::read_symtab)
9198 (struct partial_symtab::expand_psymtab)
9199 (struct partial_symtab::read_dependencies): Update comments.
9200 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9201 read_symtab for includer.
9202 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9203 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9204 (struct dwarf2_include_psymtab::m_readin): Remove.
9205 (struct dwarf2_include_psymtab::includer): New member function.
9206 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9207
c1a66c06
TV
92082020-04-14 Tom de Vries <tdevries@suse.de>
9209
9210 PR symtab/25720
9211 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9212 with NULL symbol_matcher and lookup_name.
9213 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9214 and lookup_name.
9215 * dwarf2/read.c (dw2_expand_symtabs_matching)
9216 (dw2_debug_names_expand_symtabs_matching): Same.
9217 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9218 Make lookup_name a pointer. Update comment.
9219 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9220 lookup_name being a pointer.
9221 * symfile.c (expand_symtabs_matching): Same.
9222 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9223 * linespec.c (iterate_over_all_matching_symtabs): Same.
9224
400b5eca
TT
92252020-04-13 Tom Tromey <tom@tromey.com>
9226
9227 * run-on-main-thread.c: Update include.
9228 * unittests/main-thread-selftests.c: Update include.
9229 * tui/tui-win.c: Update include.
9230 * tui/tui-io.c: Update include.
9231 * tui/tui-interp.c: Update include.
9232 * tui/tui-hooks.c: Update include.
9233 * top.h: Update include.
9234 * top.c: Update include.
9235 * ser-base.c: Update include.
9236 * remote.c: Update include.
9237 * remote-notif.c: Update include.
9238 * remote-fileio.c: Update include.
9239 * record-full.c: Update include.
9240 * record-btrace.c: Update include.
9241 * python/python.c: Update include.
9242 * posix-hdep.c: Update include.
9243 * mingw-hdep.c: Update include.
9244 * mi/mi-main.c: Update include.
9245 * mi/mi-interp.c: Update include.
9246 * main.c: Update include.
9247 * linux-nat.c: Update include.
9248 * interps.c: Update include.
9249 * infrun.c: Update include.
9250 * inf-loop.c: Update include.
9251 * event-top.c: Update include.
9252 * event-loop.c: Move to ../gdbsupport/.
9253 * event-loop.h: Move to ../gdbsupport/.
9254 * async-event.h: Update include.
9255 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9256
93b54c8e
TT
92572020-04-13 Tom Tromey <tom@tromey.com>
9258
9259 * tui/tui-win.c: Include async-event.h.
9260 * remote.c: Include async-event.h.
9261 * remote-notif.c: Include async-event.h.
9262 * record-full.c: Include async-event.h.
9263 * record-btrace.c: Include async-event.h.
9264 * infrun.c: Include async-event.h.
9265 * event-top.c: Include async-event.h.
9266 * event-loop.h: Move some declarations to async-event.h.
9267 * event-loop.c: Don't include ser-event.h or top.h. Move some
9268 code to async-event.c.
9269 * async-event.h: New file.
9270 * async-event.c: New file.
9271 * Makefile.in (COMMON_SFILES): Add async-event.c.
9272 (HFILES_NO_SRCDIR): Add async-event.h.
9273
c1cd3163
TT
92742020-04-13 Tom Tromey <tom@tromey.com>
9275
9276 * utils.c (flush_streams): New function.
9277 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9278
29f2bf4f
TT
92792020-04-13 Tom Tromey <tom@tromey.com>
9280
9281 * event-loop.c (handle_file_event): Use warning, not
9282 printf_unfiltered.
9283
98029d02
TT
92842020-04-13 Tom Tromey <tom@tromey.com>
9285
9286 * event-loop.c: Include <chrono>.
9287
06cc9596
TT
92882020-04-13 Tom Tromey <tom@tromey.com>
9289
9290 * gdb_select.h: Move to ../gdbsupport/.
9291 * event-loop.c: Update include path.
9292 * top.c: Update include path.
9293 * ser-base.c: Update include path.
9294 * ui-file.c: Update include path.
9295 * ser-tcp.c: Update include path.
9296 * guile/scm-ports.c: Update include path.
9297 * posix-hdep.c: Update include path.
9298 * ser-unix.c: Update include path.
9299 * gdb_usleep.c: Update include path.
9300 * mingw-hdep.c: Update include path.
9301 * inflow.c: Update include path.
9302 * infrun.c: Update include path.
9303 * event-top.c: Update include path.
9304
8ae8e197
TT
93052020-04-13 Tom Tromey <tom@tromey.com>
9306
9307 * configure: Rebuild.
9308 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9309
58cf28e8
TT
93102020-04-13 Tom Tromey <tom@tromey.com>
9311
9312 * event-loop.h (start_event_loop): Don't declare.
9313 * event-loop.c (start_event_loop): Move...
9314 * main.c (start_event_loop): ...here. Now static.
9315
b7f999ae
SDJ
93162020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9317
9318 * MAINTAINERS: Update my email address.
9319
1085dfd4
KR
93202020-04-12 Kamil Rytarowski <n54@gmx.com>
9321
9322 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9323 IP_ALL.
9324
49d1d1f5
KR
93252020-04-12 Kamil Rytarowski <n54@gmx.com>
9326
9327 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9328 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9329
b4848d2a
KR
93302020-04-12 Kamil Rytarowski <n54@gmx.com>
9331
9332 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9333 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9334
51c133d5
KR
93352020-04-12 Kamil Rytarowski <n54@gmx.com>
9336
9337 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9338
54b8cbd0
KR
93392020-04-11 Kamil Rytarowski <n54@gmx.com>
9340
9341 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9342 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9343 (nbsd_nat_target::info_proc): New functions.
9344 * nbsd-nat.c (kinfo_get_vmmap): New function.
9345 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9346 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9347 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9348 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9349 functions.
9350 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9351 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9352 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9353 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9354 (KINFO_VME_FLAG_GROWS_DOWN): New.
9355
cf83625d
AS
93562020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9357
9358 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9359 bit shift.
9360
0c4311ab
TT
93612020-04-10 Tom Tromey <tromey@adacore.com>
9362
9363 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9364
3e65b3e9
TT
93652020-04-10 Tom Tromey <tromey@adacore.com>
9366
9367 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9368 separate debug files.
9369
13302e95
HD
93702020-04-10 Hannes Domani <ssbssa@yahoo.de>
9371
9372 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9373 Move to...
9374 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9375 ... here.
9376 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9377 Check for STATUS_WX86_BREAKPOINT.
9378 (windows_nat_target::wait): Same.
9379
bdfc1e8a
TV
93802020-04-10 Tom de Vries <tdevries@suse.de>
9381
9382 PR cli/25808
9383 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9384
f4460aec
SM
93852020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9386
9387 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9388 (Write After Approval): Remove Tom de Vries.
9389
a25198bb
BE
93902020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9391
9392 revert partially:
9393 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9394
aac66a4c
SM
9395 * buildsym.c (record_line): Fix undefined behavior and preserve
9396 lines at eof.
a25198bb 9397
206c98a6
KR
93982020-04-09 Kamil Rytarowski <n54@gmx.com>
9399
9400 * auxv.h (svr4_auxv_parse): New.
9401 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9402 and generic_auxv_parse.
9403 (svr4_auxv_parse): Add.
9404 * obsd-tdep.c: Include "auxv.h".
9405 (obsd_auxv_parse): Remove.
9406 (obsd_init_abi): Remove comment.
9407 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9408 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9409 * nbsd-tdep.c: Include "auxv.h".
9410 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9411
71fbdbaf
TT
94122020-04-08 Tom Tromey <tromey@adacore.com>
9413
9414 * nat/windows-nat.h (last_wait_event): Don't declare.
9415 (wait_for_debug_event): Update comment.
9416 * nat/windows-nat.c (last_wait_event): Now static.
9417
2c1d95e8
TT
94182020-04-08 Tom Tromey <tromey@adacore.com>
9419
9420 * windows-nat.c (wait_for_debug_event): Move to
9421 nat/windows-nat.c.
9422 * nat/windows-nat.h (wait_for_debug_event): Declare.
9423 * nat/windows-nat.c (wait_for_debug_event): Move from
9424 windows-nat.c. No longer static.
9425
d2977bc4
TT
94262020-04-08 Tom Tromey <tromey@adacore.com>
9427
9428 * windows-nat.c (get_windows_debug_event): Use
9429 fetch_pending_stop.
9430 * nat/windows-nat.h (fetch_pending_stop): Declare.
9431 * nat/windows-nat.c (fetch_pending_stop): New function.
9432
e758e19c
TT
94332020-04-08 Tom Tromey <tromey@adacore.com>
9434
9435 * windows-nat.c (windows_continue): Use matching_pending_stop and
9436 continue_last_debug_event.
9437 * nat/windows-nat.h (matching_pending_stop)
9438 (continue_last_debug_event): Declare.
9439 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9440 (matching_pending_stop, continue_last_debug_event): New
9441 functions.
9442
8d30e395
TT
94432020-04-08 Tom Tromey <tromey@adacore.com>
9444
9445 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9446 (handle_exception_result): Move to nat/windows-nat.h.
9447 (DEBUG_EXCEPTION_SIMPLE): Remove.
9448 (windows_nat::handle_ms_vc_exception): New function.
9449 (handle_exception): Move to nat/windows-nat.c.
9450 (get_windows_debug_event): Update.
9451 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9452 nat/windows-nat.c.
9453 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9454 (handle_exception_result): Move from windows-nat.c.
9455 (handle_exception): Declare.
9456 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9457 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9458 windows-nat.c.
9459
29de418d
TT
94602020-04-08 Tom Tromey <tromey@adacore.com>
9461
9462 * windows-nat.c (exception_count, event_count): Remove.
9463 (handle_exception, get_windows_debug_event)
9464 (do_initial_windows_stuff): Update.
9465
a816ba18
TT
94662020-04-08 Tom Tromey <tromey@adacore.com>
9467
9468 * windows-nat.c (windows_nat::handle_load_dll)
9469 (windows_nat::handle_unload_dll): Rename. No longer static.
9470 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9471 Declare.
9472
a00caa12
TT
94732020-04-08 Tom Tromey <tromey@adacore.com>
9474
9475 * complaints.h (stop_whining): Declare at top-level.
9476 (complaint): Don't declare stop_whining.
9477
d41b524f
TT
94782020-04-08 Tom Tromey <tromey@adacore.com>
9479
9480 * windows-nat.c (windows_nat::handle_output_debug_string):
9481 Rename. No longer static.
9482 * nat/windows-nat.h (handle_output_debug_string): Declare.
9483
3c76026d
TT
94842020-04-08 Tom Tromey <tromey@adacore.com>
9485
9486 * windows-nat.c (current_process_handle, current_process_id)
9487 (main_thread_id, last_sig, current_event, last_wait_event)
9488 (current_windows_thread, desired_stop_thread_id, pending_stops)
9489 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9490 (display_selectors, fake_create_process)
9491 (get_windows_debug_event): Update.
9492 * nat/windows-nat.h (current_process_handle, current_process_id)
9493 (main_thread_id, last_sig, current_event, last_wait_event)
9494 (current_windows_thread, desired_stop_thread_id, pending_stops)
9495 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9496 * nat/windows-nat.c (current_process_handle, current_process_id)
9497 (main_thread_id, last_sig, current_event, last_wait_event)
9498 (current_windows_thread, desired_stop_thread_id, pending_stops)
9499 (siginfo_er): New globals. Move from windows-nat.c.
9500
9d8679cc
TT
95012020-04-08 Tom Tromey <tromey@adacore.com>
9502
9503 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9504 (handle_load_dll): Update.
9505 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9506
28688adf
TT
95072020-04-08 Tom Tromey <tromey@adacore.com>
9508
9509 * windows-nat.c (enum thread_disposition_type): Move to
9510 nat/windows-nat.h.
9511 (windows_nat::thread_rec): Rename from thread_rec. No longer
9512 static.
9513 (windows_add_thread, windows_nat_target::fetch_registers)
9514 (windows_nat_target::store_registers, handle_exception)
9515 (windows_nat_target::resume, get_windows_debug_event)
9516 (windows_nat_target::get_tib_address)
9517 (windows_nat_target::thread_name)
9518 (windows_nat_target::thread_alive): Update.
9519 * nat/windows-nat.h (enum thread_disposition_type): Move from
9520 windows-nat.c.
9521 (thread_rec): Declare.
9522
4834dad0
TT
95232020-04-08 Tom Tromey <tromey@adacore.com>
9524
9525 * windows-nat.c: Add "using namespace".
9526 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9527 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9528
65bafd5b
TT
95292020-04-08 Tom Tromey <tromey@adacore.com>
9530
9531 * nat/windows-nat.h (struct windows_thread_info): Declare
9532 destructor.
9533 * nat/windows-nat.c (~windows_thread_info): New.
9534
0a4afda3
TT
95352020-04-08 Tom Tromey <tromey@adacore.com>
9536
9537 PR gdb/22992
9538 * windows-nat.c (current_event): Update comment.
9539 (last_wait_event, desired_stop_thread_id): New globals.
9540 (struct pending_stop): New.
9541 (pending_stops): New global.
9542 (windows_nat_target) <stopped_by_sw_breakpoint>
9543 <supports_stopped_by_sw_breakpoint>: New methods.
9544 (windows_fetch_one_register): Add assertions. Adjust PC.
9545 (windows_continue): Handle pending stops. Suspend other threads
9546 when stepping. Use last_wait_event
9547 (wait_for_debug_event): New function.
9548 (get_windows_debug_event): Use wait_for_debug_event. Handle
9549 pending stops. Queue spurious stops.
9550 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9551 (windows_nat_target::kill): Use wait_for_debug_event.
9552 * nat/windows-nat.h (struct windows_thread_info)
9553 <stopped_at_software_breakpoint>: New field.
9554 * nat/windows-nat.c (windows_thread_info::resume): Clear
9555 stopped_at_software_breakpoint.
9556
8e61ebec
TT
95572020-04-08 Tom Tromey <tromey@adacore.com>
9558
9559 * windows-nat.c (enum thread_disposition_type): New.
9560 (thread_rec): Replace "get_context" parameter with "disposition";
9561 change type.
9562 (windows_add_thread, windows_nat_target::fetch_registers)
9563 (windows_nat_target::store_registers, handle_exception)
9564 (windows_nat_target::resume, get_windows_debug_event)
9565 (windows_nat_target::get_tib_address)
9566 (windows_nat_target::thread_name)
9567 (windows_nat_target::thread_alive): Update.
9568
98a03287
TT
95692020-04-08 Tom Tromey <tromey@adacore.com>
9570
9571 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9572 (windows_continue): Use windows_continue::resume.
9573 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9574 resume>: Declare new methods.
9575 * nat/windows-nat.c: New file.
9576 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9577
7c7411bc
TT
95782020-04-08 Tom Tromey <tromey@adacore.com>
9579
9580 * windows-nat.c (windows_add_thread, windows_delete_thread)
9581 (windows_nat_target::fetch_registers)
9582 (windows_nat_target::store_registers, fake_create_process)
9583 (windows_nat_target::resume, windows_nat_target::resume)
9584 (get_windows_debug_event, windows_nat_target::wait)
9585 (windows_nat_target::pid_to_str)
9586 (windows_nat_target::get_tib_address)
9587 (windows_nat_target::get_ada_task_ptid)
9588 (windows_nat_target::thread_name)
9589 (windows_nat_target::thread_alive): Use lwp, not tid.
9590
2950fdf7
TT
95912020-04-08 Tom Tromey <tromey@adacore.com>
9592
9593 * windows-nat.c (handle_exception)
9594 (windows_nat_target::thread_name): Update.
9595 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9596 <name>: Now unique_xmalloc_ptr.
9597
62fe396b
TT
95982020-04-08 Tom Tromey <tromey@adacore.com>
9599
9600 * windows-nat.c (thread_rec)
9601 (windows_nat_target::fetch_registers): Update.
9602 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9603 Update comment.
9604 <debug_registers_changed, reload_context>: Now bool.
9605
e9534bd2
TT
96062020-04-08 Tom Tromey <tromey@adacore.com>
9607
9608 * windows-nat.c (windows_add_thread): Use new.
9609 (windows_init_thread_list, windows_delete_thread): Use delete.
9610 (get_windows_debug_event): Update.
9611 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9612 destructor, and initializers.
9613
ae1f8880
TT
96142020-04-08 Tom Tromey <tromey@adacore.com>
9615
9616 * windows-nat.c (struct windows_thread_info): Remove.
9617 * nat/windows-nat.h: New file.
9618
55a1e039
TT
96192020-04-08 Tom Tromey <tromey@adacore.com>
9620
9621 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9622 (thread_rec, windows_add_thread, windows_delete_thread)
9623 (windows_continue): Update.
9624
93366324
TT
96252020-04-08 Tom Tromey <tromey@adacore.com>
9626
9627 * windows-nat.c (struct windows_thread_info): Remove typedef.
9628 (thread_head): Remove.
9629 (thread_list): New global.
9630 (thread_rec, windows_add_thread, windows_init_thread_list)
9631 (windows_delete_thread, windows_continue): Update.
9632
0f2265e2
SM
96332020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9634
9635 * windows-tdep.h (windows_init_abi): Add comment.
9636 (cygwin_init_abi): New declaration.
9637 * windows-tdep.c: Split signal enumeration in two, one for
9638 Windows and one for Cygwin.
9639 (windows_gdb_signal_to_target): Only deal with signal of the
9640 Windows OS ABI.
9641 (cygwin_gdb_signal_to_target): New function.
9642 (windows_init_abi): Rename to windows_init_abi_common, don't set
9643 gdb_signal_to_target gdbarch method. Add new new function with
9644 this name.
9645 (cygwin_init_abi): New function.
9646 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9647 comment. Don't call windows_init_abi.
9648 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9649 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9650 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9651 i386_windows_init_abi_common, don't call windows_init_abi. Add
9652 a new function of this name.
9653 (i386_cygwin_init_abi): New function.
9654 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9655 OS ABI Cygwin.
9656
3810f182
SM
96572020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9658
9659 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9660 parameter.c.
9661 (dwarf2_read_gdb_index): Update.
9662
063f8e80
KR
96632020-04-07 Kamil Rytarowski <n54@gmx.com>
9664
9665 * nbsd-tdep.c: Include "objfiles.h".
9666 (nbsd_skip_solib_resolver): New.
9667 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9668
85a9510c 96692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9670
9671 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9672 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9673 with DW_LLE_base_addressx are being emitted in DWARFv5.
9674 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9675 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9676 unsigned integer.
9677
9fc3eaae 96782020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9679
9680 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9681 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9682 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9683 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9684 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9685 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9686 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9687
9688
41144253 96892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9690
9691 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9692 (read_loclist_index): New function definition.
9693 (lookup_loclist_base): New function definition.
9694 (read_loclist_header): New function definition.
9695 (dwarf2_cu): Add loclist_base and loclist_header field.
9696 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9697 (read_full_die_1): Read the value of DW_AT_loclists_base.
9698 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9699 (read_attribute_value): Handle DW_FORM_loclistx.
9700 (skip_one_die): Handle DW_FORM_loclistx.
9701 (loclist_header): New structure declaration.
9702 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9703
9f4e76a4
SM
97042020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9705
9706 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9707 constructor. Remove `addr` parameter from other constructor and
9708 add `per_cu` parameter.
9709 * dwarf2/read.c (create_partial_symtab): Update.
9710
25c11aca
TV
97112020-04-07 Tom de Vries <tdevries@suse.de>
9712
9713 PR symtab/25796
9714 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9715 (partial_die_info::fixup): Inherit has_const_value.
9716
5707e24b
TV
97172020-04-07 Tom de Vries <tdevries@suse.de>
9718
9719 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9720 symbols without address.
9721
05f00e22
KR
97222020-04-06 Kamil Rytarowski <n54@gmx.com>
9723
9724 * nbsd-nat.h (struct thread_info): Add forward declaration.
9725 (nbsd_nat_target::thread_alive): Add.
9726 (nbsd_nat_target::thread_name): Likewise.
9727 (nbsd_nat_target::update_thread_list): Likewise.
9728 (update_thread_list::post_attach): Likewise.
9729 (post_attach::pid_to_str): Likewise.
9730 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9731 (nbsd_thread_lister): Add.
9732 (nbsd_nat_target::thread_alive): Likewise.
9733 (nbsd_nat_target::thread_name): Likewise.
9734 (nbsd_add_threads): Likewise.
9735 (update_thread_list::post_attach): Likewise.
9736 (nbsd_nat_target::update_thread_list): Likewise.
9737 (post_attach::pid_to_str): Likewise.
9738
6ee448cc
TT
97392020-04-06 Tom Tromey <tromey@adacore.com>
9740
9741 * ada-valprint.c (print_variant_part): Extract the variant field.
9742 (print_field_values): Use the field as the outer value when
9743 recursing.
9744
dea34e8c
TT
97452020-04-06 Tom Tromey <tromey@adacore.com>
9746
9747 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9748 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9749 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9750 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9751 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9752
93689ce9
TT
97532020-04-06 Tom Tromey <tromey@adacore.com>
9754
9755 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9756 TYPE_CODE_ERROR.
9757
79743962
KR
97582020-04-06 Kamil Rytarowski <n54@gmx.com>
9759
9760 * nbsd-tdep.c: Include "gdbarch.h".
9761 Define enum with NetBSD signal numbers.
9762 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9763 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9764 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9765 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9766 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9767 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9768 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9769 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9770 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9771 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9772 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9773 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9774
9e7c9a03
HD
97752020-04-03 Hannes Domani <ssbssa@yahoo.de>
9776
9777 PR gdb/25325
9778 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9779
d9e49b61
TT
97802020-04-03 Tom Tromey <tromey@adacore.com>
9781
9782 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9783 Read constant block.
9784
e0fc5c3f
SM
97852020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9786
9787 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9788 (gdb_bfd_get_full_section_contents): New declaration.
9789 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9790 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9791 gdb_bfd_get_full_section_contents.
9792
e2ff18a0
SM
97932020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9794
9795 * exec.c (build_section_table): Replace internal_error with
9796 gdb_assert.
9797 (section_table_xfer_memory_partial): Likewise.
9798 * mdebugread.c (parse_partial_symbols): Likewise.
9799 * psymtab.c (lookup_partial_symbol): Likewise.
9800 * utils.c (wrap_here): Likewise.
9801
0830d301
TT
98022020-04-02 Tom Tromey <tromey@adacore.com>
9803
9804 * f-lang.c (build_fortran_types): Use arch_type to initialize
9805 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9806
e7da7f8f
TT
98072020-04-02 Tom Tromey <tromey@adacore.com>
9808
9809 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9810 of attributes.
9811
c90d28ac
AB
98122020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9813 Bernd Edlinger <bernd.edlinger@hotmail.de>
9814 Tom Tromey <tromey@adacore.com>
9815
9816 * buildsym.c (buildsym_compunit::record_line): Remove
9817 deduplication code.
9818
1aa98955
TV
98192020-04-02 Tom de Vries <tdevries@suse.de>
9820
9821 PR ada/24671
9822 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9823
d3214198
TV
98242020-04-02 Tom de Vries <tdevries@suse.de>
9825
9826 * dwarf2/read.c (dwarf2_gdb_index_functions,
9827 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9828 NULL.
9829 * psymtab.c (psym_lookup_global_symbol_language): New function.
9830 (psym_functions): Init psym_lookup_global_symbol_language with
9831 psym_lookup_global_symbol_language.
9832 * symfile-debug.c (debug_sym_quick_functions): Init
9833 lookup_global_symbol_language with NULL.
9834 * symfile.c (set_initial_language): Remove fixme comment.
9835 * symfile.h (struct quick_symbol_functions): Add
9836 lookup_global_symbol_language.
9837 * symtab.c (find_quick_global_symbol_language): New function.
9838 (find_main_name): Use find_quick_global_symbol_language.
9839
2836752f
SM
98402020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9841
9842 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9843
64dc2d4b
BE
98442020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9845
9846 * buildsym.c (record_line): Fix undefined behavior and preserve
9847 lines at eof.
9848
bbe3dc41
BE
98492020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9850
9851 * buildsym.c (record_line): Fix the resizing condition.
9852
6b4a335b
TT
98532020-04-01 Tom Tromey <tom@tromey.com>
9854
9855 * value.h (value_literal_complex): Add comment.
9856 * valops.c (value_literal_complex): Refer to value.h.
9857
3638a098
TT
98582020-04-01 Tom Tromey <tom@tromey.com>
9859
9860 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9861 (scalar_type): New rule, from typebase.
9862 (typebase): Use scalar_type. Recognize complex types.
9863 (field_name): Handle FLOAT_KEYWORD.
9864 (ident_tokens): Add _Complex and __complex__.
9865
c34e8714
TT
98662020-04-01 Tom Tromey <tom@tromey.com>
9867
9868 PR exp/25299:
9869 * valarith.c (promotion_type, complex_binop): New functions.
9870 (scalar_binop): Handle complex numbers. Use promotion_type.
9871 (value_pos, value_neg, value_complement): Handle complex numbers.
9872
fa649bb7
TT
98732020-04-01 Tom Tromey <tom@tromey.com>
9874
9875 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9876 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9877 (parse_number): Handle complex numbers.
9878
981c08ce
TT
98792020-04-01 Tom Tromey <tom@tromey.com>
9880
9881 * c-valprint.c (c_decorations): Change complex suffix to "i".
9882
4c99290d
TT
98832020-04-01 Tom Tromey <tom@tromey.com>
9884
9885 * valprint.c (generic_value_print_complex): Use accessors.
9886 * value.h (value_real_part, value_imaginary_part): Declare.
9887 * valops.c (value_real_part, value_imaginary_part): New
9888 functions.
9889 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9890
5b930b45
TT
98912020-04-01 Tom Tromey <tom@tromey.com>
9892
9893 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9894 (read_range_type): Update.
9895 * mdebugread.c (basic_type): Update.
9896 * go-lang.c (build_go_types): Use init_complex_type.
9897 * gdbtypes.h (struct main_type) <complex_type>: New member.
9898 (init_complex_type): Update.
9899 (arch_complex_type): Don't declare.
9900 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9901 Make name if none given. Use alloc_type_copy. Look for cached
9902 complex type.
9903 (arch_complex_type): Remove.
9904 (gdbtypes_post_init): Use init_complex_type.
9905 * f-lang.c (build_fortran_types): Use init_complex_type.
9906 * dwarf2/read.c (read_base_type): Update.
9907 * d-lang.c (build_d_types): Use init_complex_type.
9908 * ctfread.c (read_base_type): Update.
9909
53cccef1
TBA
99102020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9911
9912 * infrun.c (stop_all_threads): Update assertion, plus when
9913 stopping threads, take into account that we might be trying
9914 to stop an all-stop target.
9915 (stop_waiting): Call 'stop_all_threads' if there exists a
9916 non-stop target.
9917
a0714d30
TBA
99182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9919
9920 * target.h (exists_non_stop_target): New function declaration.
9921 * target.c (exists_non_stop_target): New function.
9922
60e22c1e
HD
99232020-04-01 Hannes Domani <ssbssa@yahoo.de>
9924
9925 PR gdb/24789
9926 * eval.c (is_integral_or_integral_reference): New function.
9927 (evaluate_subexp_standard): Allow integer references in
9928 pointer arithmetic.
9929
e139a727
TBA
99302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9931
9932 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9933 check for no ptid in the stop reply when the target is non-stop.
9934
e0802d59
TT
99352020-04-01 Tom Tromey <tromey@adacore.com>
9936
9937 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9938 "name" parameter to rvalue reference. Initialize m_name_holder.
9939 <lookup_name_info>: New overloads.
9940 <name>: Return gdb::string_view.
9941 <c_str>: New method.
9942 <make_ignore_params>: Update.
9943 <search_name_hash>: Update.
9944 <language_lookup_name>: Return const char *.
9945 <m_name>: Change type.
9946 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9947 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9948 (lookup_name_info::match_any): Update.
9949 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9950 Update.
9951 * minsyms.c (linkage_name_str): Update.
9952 * language.c (default_symbol_name_matcher): Update.
9953 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9954 Update.
9955 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9956 (ada_lookup_name_info::ada_lookup_name_info): Update.
9957 (literal_symbol_name_matcher): Update.
9958
8c072cb6
TT
99592020-04-01 Tom Tromey <tromey@adacore.com>
9960
9961 * psymtab.c (psymtab_search_name): Remove function.
9962 (psym_lookup_symbol): Create search name and lookup name here.
9963 (lookup_partial_symbol): Remove "name" parameter; add
9964 lookup_name.
9965 (psym_expand_symtabs_for_function): Update.
9966
6f29a534
TT
99672020-03-31 Joel Jones <joelkevinjones@gmail.com>
9968
9969 PR tui/25597:
9970 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9971
af62665e
TT
99722020-03-31 Tom Tromey <tromey@adacore.com>
9973
9974 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9975 memcpy.
9976
d1a89da5
NC
99772020-03-30 Nelson Chu <nelson.chu@sifive.com>
9978
9979 * features/riscv/32bit-csr.xml: Regenerated.
9980 * features/riscv/64bit-csr.xml: Regenerated.
9981
d8af9068
TT
99822020-03-30 Tom Tromey <tromey@adacore.com>
9983
9984 * ada-valprint.c (print_variant_part): Update.
9985 * ada-lang.h (ada_which_variant_applies): Update.
9986 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9987 outer_valaddr parameters; replace with "outer" value parameter.
9988 (to_fixed_variant_branch_type): Update.
9989
227c0bf4
PFC
99902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9991
9992 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9993 <list>. Remove inclusion of observable.h.
9994 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9995 (struct arch_lwp_info): New struct.
9996 (class ppc_linux_dreg_interface): New class.
9997 (struct ppc_linux_process_info): New struct.
9998 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9999 <low_new_clone, low_forget_process, low_prepare_to_resume>
10000 <copy_thread_dreg_state, mark_thread_stale>
10001 <mark_debug_registers_changed, register_hw_breakpoint>
10002 <clear_hw_breakpoint, register_wp, clear_wp>
10003 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10004 <num_memory_accesses, get_trigger_type>
10005 <create_watchpoint_request, hwdebug_point_cmp>
10006 <init_arch_lwp_info, get_arch_lwp_info>
10007 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10008 methods.
10009 <struct ptid_hash>: New inner struct.
10010 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10011 members.
10012 (saved_dabr_value, hwdebug_info, max_slots_number)
10013 (struct hw_break_tuple, struct thread_points, ppc_threads)
10014 (have_ptrace_hwdebug_interface)
10015 (hwdebug_find_thread_points_by_tid)
10016 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10017 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10018 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10019 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10020 use m_dreg_interface.
10021 (hwdebug_point_cmp): Change to...
10022 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10023 reference arguments instead of pointers.
10024 (ppc_linux_nat_target::ranged_break_num_registers): Use
10025 m_dreg_interface.
10026 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10027 m_dreg_interface. Call register_hw_breakpoint.
10028 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10029 m_dreg_interface. Call clear_hw_breakpoint.
10030 (get_trigger_type): Change to...
10031 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10032 comment.
10033 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10034 use m_dreg_interface. Call register_hw_breakpoint.
10035 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10036 use m_dreg_interface. Call clear_hw_breakpoint.
10037 (can_use_watchpoint_cond_accel): Change to...
10038 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10039 method. Update comment, use m_dreg_interface and
10040 m_process_info.
10041 (calculate_dvc): Change to...
10042 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10043 m_dreg_interface.
10044 (num_memory_accesses): Change to...
10045 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10046 (check_condition): Change to...
10047 (ppc_linux_nat_target::check_condition): ...this method.
10048 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10049 comment, use m_dreg_interface.
10050 (create_watchpoint_request): Change to...
10051 (ppc_linux_nat_target::create_watchpoint_request): ...this
10052 method. Use m_dreg_interface.
10053 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10054 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10055 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10056 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10057 (ppc_linux_nat_target::low_forget_process)
10058 (ppc_linux_nat_target::low_new_fork)
10059 (ppc_linux_nat_target::low_new_clone)
10060 (ppc_linux_nat_target::low_delete_thread)
10061 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10062 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10063 only call mark_thread_stale.
10064 (ppc_linux_thread_exit): Remove.
10065 (ppc_linux_nat_target::stopped_data_address): Change to...
10066 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10067 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10068 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10069 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10070 comment. Call low_stopped_data_address.
10071 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10072 m_dreg_interface.
10073 (ppc_linux_nat_target::masked_watch_num_registers): Use
10074 m_dreg_interface.
10075 (ppc_linux_nat_target::copy_thread_dreg_state)
10076 (ppc_linux_nat_target::mark_thread_stale)
10077 (ppc_linux_nat_target::mark_debug_registers_changed)
10078 (ppc_linux_nat_target::register_hw_breakpoint)
10079 (ppc_linux_nat_target::clear_hw_breakpoint)
10080 (ppc_linux_nat_target::register_wp)
10081 (ppc_linux_nat_target::clear_wp)
10082 (ppc_linux_nat_target::init_arch_lwp_info)
10083 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10084 (_initialize_ppc_linux_nat): Remove observer callback.
10085
4db10d8f
PFC
100862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10087
10088 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10089 (ppc_linux_nat_target::auxv_parse)
10090 (ppc_linux_nat_target::read_description)
10091 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10092 Move up.
10093
1310c1b0
PFC
100942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10095
10096 * linux-nat.h (low_new_clone): New method.
10097 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10098
69b037c3
SM
100992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10100
10101 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10102 (dbx_expand_psymtab): ... this.
10103 (start_psymtab): Update.
10104 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10105 (mdebug_expand_psymtab): ... this.
10106 (parse_partial_symbols): Update.
10107 (new_psymtab): Update.
10108 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10109 (xcoff_expand_psymtab): ... this.
10110 (xcoff_start_psymtab): Update.
10111
48993951
SM
101122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10113
10114 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10115 <expand_dependencies>: ... this.
10116 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10117 (partial_symtab::expand_dependencies): ... this.
10118 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10119 Update.
10120 (dwarf2_psymtab::expand_psymtab): Update.
10121 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10122 * mdebugread.c (psymtab_to_symtab_1): Update.
10123 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10124
3ad83046
SM
101252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10126
10127 * psympriv.h (discard_psymtab): Remove.
10128 * dbxread.c (dbx_end_psymtab): Update.
10129 * xcoffread.c (xcoff_end_psymtab): Update.
10130
4d1b9ab6
TT
101312020-03-28 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10134 comment.
10135
f1749218
TT
101362020-03-28 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10139
ebea7626
HD
101402020-03-27 Hannes Domani <ssbssa@yahoo.de>
10141
10142 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10143
a879b4d5
JB
101442020-03-26 John Baldwin <jhb@FreeBSD.org>
10145
10146 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10147
0826b30a
TT
101482020-03-26 Tom Tromey <tom@tromey.com>
10149
10150 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10151 (mark_common_block_symbol_computed, read_tag_string_type)
10152 (attr_to_dynamic_prop, read_subrange_type): Update.
10153 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10154 to be methods on struct attribute.
10155 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10156 (read_call_site_scope, partial_die_info::read)
10157 (partial_die_info::read, lookup_die_type, follow_die_ref):
10158 Update.
10159 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10160 from dwarf2_get_ref_die_offset.
10161 (attribute::constant_value): New method, from
10162 dwarf2_get_attr_constant_value.
10163 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10164 Declare method.
10165 <constant_value>: New method.
10166
2b2558bf
TT
101672020-03-26 Tom Tromey <tom@tromey.com>
10168
10169 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10170 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10171 (dwarf_type_encoding_name): Move to stringify.c.
10172 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10173 * dwarf2/stringify.c: New file.
10174 * dwarf2/stringify.h: New file.
10175
eeb64781
TT
101762020-03-26 Tom Tromey <tom@tromey.com>
10177
10178 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10179 Rewrite.
10180
a39fdb41
TT
101812020-03-26 Tom Tromey <tom@tromey.com>
10182
10183 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10184 methods.
10185 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10186 (lookup_ranges_base): Likewise.
10187 (read_cutu_die_from_dwo, read_full_die_1): Update.
10188
436c571c
TT
101892020-03-26 Tom Tromey <tom@tromey.com>
10190
10191 * dwarf2/read.c (read_import_statement, read_file_scope)
10192 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10193 (read_lexical_block_scope, read_call_site_scope)
10194 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10195 (handle_struct_member_die, process_structure_scope)
10196 (update_enumeration_type_from_children)
10197 (process_enumeration_scope, read_array_type, read_common_block)
10198 (read_namespace, read_module, read_subroutine_type): Update.
10199 (sibling_die): Remove.
10200
052c8bb8
TT
102012020-03-26 Tom Tromey <tom@tromey.com>
10202
10203 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10204 (build_type_psymtabs_reader, read_structure_type)
10205 (read_enumeration_type, read_full_die_1): Update.
10206 (dwarf2_attr_no_follow): Move to die.h.
10207 * dwarf2/die.h (struct die_info) <attr>: New method.
10208
2b24b6e4
TT
102092020-03-26 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10212 <base_address>: Now an optional.
10213 (dwarf2_find_base_address, dwarf2_rnglists_process)
10214 (dwarf2_ranges_process, fill_in_loclist_baton)
10215 (dwarf2_symbol_mark_computed): Update.
10216
c2d50fd0
TT
102172020-03-26 Tom Tromey <tom@tromey.com>
10218
10219 * dwarf2/read.c (struct die_info): Move to die.h.
10220 * dwarf2/die.h: New file.
10221
0df7ad3a
TT
102222020-03-26 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10225 * dwarf2/read.c
10226 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10227 Move to line-header.c.
10228 (read_checked_initial_length_and_offset, read_formatted_entries):
10229 Likewise.
10230 (dwarf_decode_line_header): Split into two.
10231 * dwarf2/line-header.c
10232 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10233 Move from read.c.
10234 (read_checked_initial_length_and_offset, read_formatted_entries):
10235 Likewise.
10236 (dwarf_decode_line_header): New function, split from read.c.
10237
86c0bb4c
TT
102382020-03-26 Tom Tromey <tom@tromey.com>
10239
10240 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10241 Declare method.
10242 * dwarf2/read.c (read_attribute_value): Update.
10243 (dwarf2_per_objfile::read_line_string): Rename from
10244 read_indirect_line_string.
10245 (read_formatted_entries): Update.
10246
2ef46c2f
TT
102472020-03-26 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10250 variable.
10251
4f9c1eda
TT
102522020-03-26 Tom Tromey <tom@tromey.com>
10253
10254 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10255 const.
10256 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10257 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10258 parameter const.
10259
5a0e026f
TT
102602020-03-26 Tom Tromey <tom@tromey.com>
10261
10262 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10263 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10264 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10265 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10266
8844c11b
TT
102672020-03-26 Tom Tromey <tom@tromey.com>
10268
10269 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10270 file_names_size, file_full_name, file_file_name>: Use const.
10271 <file_name_at, file_names>: Add const overload.
10272 * dwarf2/line-header.c (line_header::file_file_name)
10273 (line_header::file_full_name): Update.
10274
c90ec28a
TT
102752020-03-26 Tom Tromey <tom@tromey.com>
10276
10277 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10278 (macro_start_file, consume_improper_spaces)
10279 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10280 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10281 (dwarf_decode_macros): Move to macro.c.
10282 * dwarf2/macro.c: New file.
10283 * dwarf2/macro.h: New file.
10284 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10285
4f44ae6c
TT
102862020-03-26 Tom Tromey <tom@tromey.com>
10287
10288 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10289 method.
10290 * dwarf2/section.c: New method. From
10291 read_indirect_string_at_offset_from.
10292 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10293 (read_indirect_string_at_offset_from): Move to section.c.
10294 (read_indirect_string_at_offset): Rewrite.
10295 (read_indirect_line_string_at_offset): Remove.
10296 (read_indirect_string, read_indirect_line_string)
10297 (dwarf_decode_macro_bytes): Update.
10298
a0194fa8
TT
102992020-03-26 Tom Tromey <tom@tromey.com>
10300
10301 * dwarf2/section.h (struct dwarf2_section_info)
10302 <overload_complaint>: Declare.
10303 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10304 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10305 Rename from dwarf2_section_buffer_overflow_complaint.
10306 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10307 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10308
3d27bbdb
TT
103092020-03-26 Tom Tromey <tom@tromey.com>
10310
10311 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10312 Declare.
10313 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10314 Move from read.c.
10315 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10316 to section.c.
10317
9eac9650
TT
103182020-03-26 Tom Tromey <tom@tromey.com>
10319
10320 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10321
bf80d710
TT
103222020-03-26 Tom Tromey <tom@tromey.com>
10323
10324 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10325 "builder".
10326 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10327 parameter.
10328 (dwarf_decode_macros): Update.
10329
0314b390
TT
103302020-03-26 Tom Tromey <tom@tromey.com>
10331
10332 * dwarf2/read.c (read_attribute_value): Update.
10333 (read_indirect_string_from_dwz): Move to dwz.c; change into
10334 method.
10335 (dwarf_decode_macro_bytes): Update.
10336 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10337 * dwarf2/dwz.c: New file.
10338 * Makefile.in (COMMON_SFILES): Add dwz.c.
10339
9fda78b6
TT
103402020-03-26 Tom Tromey <tom@tromey.com>
10341
10342 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10343 * dwarf2/read.c: Add include.
10344 * dwarf2/index-write.c: Add include.
10345 * dwarf2/index-cache.c: Add include.
10346 * dwarf2/dwz.h: New file.
10347
33aa3c10
TT
103482020-03-25 Tom Tromey <tom@tromey.com>
10349
10350 * compile/compile-object-load.c (get_out_value_type): Mention
10351 correct symbol name in error message.
10352
d503b685
HD
103532020-03-25 Hannes Domani <ssbssa@yahoo.de>
10354
10355 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10356
7b1eff95
TV
103572020-03-25 Tom de Vries <tdevries@suse.de>
10358
10359 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10360 * symmisc.c (dump_symtab_1): Print user and includes fields.
10361 (maintenance_info_symtabs): Same.
10362
dd895392
AB
103632020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10364
10365 PR gdb/25534
10366 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10367 (riscv_regcache_cooked_write): New function.
10368 (riscv_push_dummy_call): Use new function.
10369 (riscv_return_value): Likewise.
10370
5ab2fbf1
SM
103712020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10372
10373 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10374 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10375 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10376 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10377 * infrun.c (follow_fork): Likewise.
10378 (follow_fork_inferior): Likewise.
10379 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10380 * linux-nat.h (class linux_nat_target): Likewise.
10381 * remote.c (class remote_target) <follow_fork>: Likewise.
10382 (remote_target::follow_fork): Likewise.
10383 * target-delegates.c: Re-generate.
10384 * target.c (default_follow_fork): Likewise.
10385 (target_follow_fork): Likewise.
10386 * target.h (struct target_ops) <follow_fork>: Likewise.
10387 (target_follow_fork): Likewise.
10388
a64fafb5
TV
103892020-03-24 Tom de Vries <tdevries@suse.de>
10390
10391 * psymtab.c (maintenance_info_psymtabs): Print user field.
10392
fe26d3a3
TT
103932020-03-20 Tom Tromey <tromey@adacore.com>
10394
10395 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10396 const.
10397 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10398 const.
10399
c884cc46
SM
104002020-03-20 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * ptrace.m4: Don't check for ptrace declaration.
10403 * config.in: Re-generate.
10404 * configure: Re-generate.
10405 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10406 not defined.
10407
1ff700c2
KR
104082020-03-20 Kamil Rytarowski <n54@gmx.com>
10409
10410 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10411 `PTRACE_TYPE_RET'.
10412 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10413 * sparc-nat.c (gdb_ptrace): Likewise.
10414 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10415
f7d4f0b1
TT
104162020-03-20 Tom Tromey <tromey@adacore.com>
10417
10418 * c-exp.y (lex_one_token): Fix assert.
10419
f67210ff
TT
104202020-03-20 Tom Tromey <tromey@adacore.com>
10421
10422 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10423 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10424 strncpy call.
10425
1773be9e
TT
104262020-03-20 Tom Tromey <tromey@adacore.com>
10427
10428 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10429
70304be9
TT
104302020-03-20 Tom Tromey <tromey@adacore.com>
10431
10432 * ada-valprint.c (print_variant_part): Remove parameters; switch
10433 to value-based API.
10434 (print_field_values): Likewise.
10435 (ada_val_print_struct_union): Likewise.
10436 (ada_value_print_1): Update.
10437
9faa006d
KR
104382020-03-20 Kamil Rytarowski <n54@gmx.com>
10439
10440 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10441 nbsd_nat_target instead of inf_ptrace_target.
10442 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10443 nbsd_nat_target.
10444
4a90f062
KR
104452020-03-20 Kamil Rytarowski <n54@gmx.com>
10446
10447 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10448 it to the ptrace call.
10449 * (store_registers): Likewise.
10450
104512020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10452
10453 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10454 it to the ptrace call.
10455 * (store_registers): Likewise.
10456
2d07da27
LM
104572020-03-19 Luis Machado <luis.machado@linaro.org>
10458
10459 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10460 valid, fetch vg value from ptrace.
10461
f09db380
KR
104622020-03-19 Kamil Rytarowski <n54@gmx.com>
10463 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10464 * inf-ptrace.c: Likewise.
10465 * (gdb_ptrace): Add.
10466 * (inf_ptrace_target::resume): Update.
10467 * (inf_ptrace_target::xfer_partial): Likewise.
10468 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10469 * (inf_ptrace_peek_poke): Update.
10470
fcc7376e
KR
104712020-03-19 Kamil Rytarowski <n54@gmx.com>
10472
10473 * x86-bsd-nat.c (gdb_ptrace): New.
10474 * (x86bsd_dr_set): Add new argument `ptid'.
10475 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10476 x86bsd_dr_set_addr): Update.
10477
cada5fc9
AB
104782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10479
10480 * remote.c (remote_target::process_stop_reply): Handle events for
10481 all threads differently.
10482
19a2740f
AB
104832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10484
10485 * completer.c (completion_tracker::remove_completion): Define new
10486 function.
10487 * completer.h (completion_tracker::remove_completion): Declare new
10488 function.
10489 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10490 when adding a C++ function symbol.
10491
724fd9ba
AB
104922020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * completer.c (completion_tracker::completion_hash_entry): Define
10495 new class.
10496 (advance_to_filename_complete_word_point): Call
10497 recompute_lowest_common_denominator.
10498 (completion_tracker::completion_tracker): Call discard_completions
10499 to setup the hash table.
10500 (completion_tracker::discard_completions): Allow for being called
10501 from the constructor, pass new equal function, and element deleter
10502 when constructing the hash table. Initialise new class member
10503 variables.
10504 (completion_tracker::maybe_add_completion): Remove use of
10505 m_entries_vec, and store more information into m_entries_hash.
10506 (completion_tracker::recompute_lcd_visitor): New function, most
10507 content taken from...
10508 (completion_tracker::recompute_lowest_common_denominator):
10509 ...here, this now just visits each item in the hash calling the
10510 above visitor.
10511 (completion_tracker::build_completion_result): Remove use of
10512 m_entries_vec, call recompute_lowest_common_denominator.
10513 * completer.h (completion_tracker::have_completions): Remove use
10514 of m_entries_vec.
10515 (completion_tracker::completion_hash_entry): Declare new class.
10516 (completion_tracker::recompute_lowest_common_denominator): Change
10517 function signature.
10518 (completion_tracker::recompute_lcd_visitor): Declare new function.
10519 (completion_tracker::m_entries_vec): Delete.
10520 (completion_tracker::m_entries_hash): Initialize to NULL.
10521 (completion_tracker::m_lowest_common_denominator_valid): New
10522 member variable.
10523 (completion_tracker::m_lowest_common_denominator_max_length): New
10524 member variable.
10525
5a82b8a1
KR
105262020-03-17 Kamil Rytarowski <n54@gmx.com>
10527
10528 * regformats/regdef.h: Put reg in gdb namespace.
10529
fb516a69
KR
105302020-03-17 Kamil Rytarowski <n54@gmx.com>
10531
10532 * i386-bsd-nat.c (gdb_ptrace): New.
10533 * (i386bsd_fetch_inferior_registers,
10534 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10535 * (i386bsd_fetch_inferior_registers,
10536 i386bsd_store_inferior_registers) Use gdb_ptrace.
10537
1c0aa1fb
KR
105382020-03-17 Kamil Rytarowski <n54@gmx.com>
10539
10540 * amd64-bsd-nat.c (gdb_ptrace): New.
10541 * (amd64bsd_fetch_inferior_registers,
10542 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10543 * (amd64bsd_fetch_inferior_registers,
10544 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10545
5ccd2fb7
KR
105462020-03-17 Kamil Rytarowski <n54@gmx.com>
10547
10548 * user-regs.c (user_reg::read): Rename to...
10549 (user_reg::xread): ...this.
10550 * (append_user_reg): Rename argument `read' to `xread'.
10551 * (user_reg_add_builtin): Likewise.
10552 * (user_reg_add): Likewise.
10553 * (value_of_user_reg): Likewise.
10554
2108a63a
KR
105552020-03-17 Kamil Rytarowski <n54@gmx.com>
10556
10557 * sparc-nat.c (gdb_ptrace): New.
10558 * sparc-nat.c (sparc_fetch_inferior_registers)
10559 (sparc_store_inferior_registers) Remove obsolete comment.
10560 * sparc-nat.c (sparc_fetch_inferior_registers)
10561 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10562 * sparc-nat.c (sparc_fetch_inferior_registers)
10563 (sparc_store_inferior_registers) Use gdb_ptrace.
10564
a225c9a8
KR
105652020-03-17 Kamil Rytarowski <n54@gmx.com>
10566
10567 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10568 it to the ptrace call.
10569 * sh-nbsd-nat.c (store_registers): Likewise.
10570
98097623
KR
105712020-03-17 Kamil Rytarowski <n54@gmx.com>
10572
10573 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10574 nbsd_nat_target instead of inf_ptrace_target.
10575 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10576 nbsd_nat_target.
10577
9e38d619
KR
105782020-03-17 Kamil Rytarowski <n54@gmx.com>
10579
10580 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10581
a2ecbe9f
KR
105822020-03-17 Kamil Rytarowski <n54@gmx.com>
10583
10584 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10585 <sys/sysctl.h>.
10586 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10587
58990295
TV
105882020-03-17 Tom de Vries <tdevries@suse.de>
10589
10590 PR gdb/23710
10591 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10592 fields.
10593 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10594 fields.
10595 (process_imported_unit_die): Skip import of c++ CUs.
10596
771dd3a8
TT
105972020-03-16 Tom Tromey <tom@tromey.com>
10598
10599 * p-valprint.c (pascal_object_print_value): Initialize
10600 base_value.
10601
817a7585
AK
106022020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10603 Shahab Vahedi <shahab@synopsys.com>
10604
10605 * Makefile.in: Add arch/arc.o
10606 * configure.tgt: Likewise.
10607 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10608 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10609 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10610 * arc-tdep.h (arc_read_description): Add proto type.
10611 * arch/arc.c: New file.
10612 * arch/arc.h: Likewise.
10613 * features/Makefile: Replace old target descriptions with new.
10614 * features/arc-arcompact.c: Remove.
10615 * features/arc-arcompact.xml: Likewise.
10616 * features/arc-v2.c: Likewise
10617 * features/arc-v2.xml: Likewise
10618 * features/arc/aux-arcompact.xml: New file.
10619 * features/arc/aux-v2.xml: Likewise.
10620 * features/arc/core-arcompact.xml: Likewise.
10621 * features/arc/core-v2.xml: Likewise.
10622 * features/arc/aux-arcompact.c: Generate.
10623 * features/arc/aux-v2.c: Likewise.
10624 * features/arc/core-arcompact.c: Likewise.
10625 * features/arc/core-v2.c: Likewise.
10626 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10627
67430cd0
TT
106282020-03-16 Tom Tromey <tromey@adacore.com>
10629
10630 PR gdb/25663:
10631 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10632 putting value into bcache.
10633
30efb6c7
SM
106342020-03-16 Simon Marchi <simon.marchi@efficios.com>
10635
10636 PR gdb/21500
10637 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10638 to...
10639 (amd64_windows_init_abi_common): ... this. Don't set size of
10640 long type.
10641 (amd64_windows_init_abi): New function.
10642 (amd64_cygwin_init_abi): New function.
10643 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10644 the Cygwin OS ABI.
10645 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10646 comment.
10647
8db52437
SM
106482020-03-16 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10651 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10652 (pe_import_directory_entry): New struct type.
10653 (is_linked_with_cygwin_dll): New function.
10654 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10655 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10656 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10657
5982a56a
SM
106582020-03-16 Simon Marchi <simon.marchi@efficios.com>
10659
10660 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10661 i386_cygwin_core_osabi_sniffer.
10662
7a1998df
SM
106632020-03-16 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * i386-cygwin-tdep.c: Rename to...
10666 * i386-windows-tdep.c: ... this.
10667 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10668 i386-windows-tdep.c.
10669 * configure.tgt: Likewise.
10670
053205cc
SM
106712020-03-16 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10674 * osabi.c (gdb_osabi_names): Add "Windows".
10675 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10676 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10677 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10678 i386_cygwin_osabi_sniffer.
10679 (_initialize_i386_cygwin_tdep): Register OS ABI
10680 GDB_OSABI_WINDOWS for i386.
10681 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10682 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10683 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10684 for x86-64.
10685 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10686 when the target matches '*-*-mingw*'.
10687
fe4b2ee6
SM
106882020-03-16 Simon Marchi <simon.marchi@efficios.com>
10689
10690 * defs.h (enum gdb_osabi): Move to...
10691 * osabi.h (enum gdb_osabi): ... here.
10692 * gdbarch.sh: Include osabi.h in gdbarch.h.
10693 * gdbarch.h: Re-generate.
10694
cb9b645d
SM
106952020-03-16 Simon Marchi <simon.marchi@efficios.com>
10696
10697 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10698 function.
10699 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10700
3293bbaf
TT
107012020-03-14 Tom Tromey <tom@tromey.com>
10702
10703 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10704 for C++.
10705 (c_type_print_modifier): Likewise. Add "language" parameter.
10706 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10707 (c_type_print_base_1): Update.
10708 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10709 constants.
10710 * type-stack.c (type_stack::insert): Handle tp_atomic and
10711 tp_restrict.
10712 (type_stack::follow_type_instance_flags): Likewise.
10713 (type_stack::follow_types): Likewise. Merge type-following code.
10714 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10715 (space_identifier, cv_with_space_id)
10716 (const_or_volatile_or_space_identifier_noopt)
10717 (const_or_volatile_or_space_identifier): Remove.
10718 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10719 rules.
10720 (ptr_operator, typebase): Update.
10721 (enum token_flag) <FLAG_C>: New constant.
10722 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10723 "_Atomic".
10724 (lex_one_token): Handle FLAG_C.
10725
154151a6
KR
107262020-03-14 Kamil Rytarowski <n54@gmx.com>
10727
10728 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10729 it to the ptrace call.
10730 * m68k-bsd-nat.c (store_registers): Likewise.
10731
bc107784
KR
107322020-03-14 Kamil Rytarowski <n54@gmx.com>
10733
10734 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10735 gdb_byte *.
10736 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10737 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10738 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10739
01a80117
KR
107402020-03-14 Kamil Rytarowski <n54@gmx.com>
10741
10742 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10743 nbsd_nat_target instead of inf_ptrace_target.
10744 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10745 nbsd_nat_target.
10746
f90280ca
KR
107472020-03-14 Kamil Rytarowski <n54@gmx.com>
10748
10749 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10750 register_t.
10751
6def66f1
KR
107522020-03-14 Kamil Rytarowski <n54@gmx.com>
10753
10754 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10755 it to the ptrace call.
10756 * alpha-bsd-nat.c (store_registers): Likewise.
10757
66eaca97
KR
107582020-03-14 Kamil Rytarowski <n54@gmx.com>
10759
10760 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10761 includes.
10762 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10763 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10764 fill_fpregset): Likewise.
10765
4fed520b
KR
107662020-03-14 Kamil Rytarowski <n54@gmx.com>
10767
10768 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10769 nbsd_nat_target instead of inf_ptrace_target.
10770 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10771 nbsd_nat_target.
10772
2190cf06
KR
107732020-03-14 Kamil Rytarowski <n54@gmx.com>
10774
10775 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10776 register_t.
10777
75c56d3d
KR
107782020-03-14 Kamil Rytarowski <n54@gmx.com>
10779
10780 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10781 it to the ptrace call.
10782 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10783 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10784 * arm-nbsd-nat.c (store_register): Likewise.
10785 * arm-nbsd-nat.c (store_regs): Likewise.
10786 * arm-nbsd-nat.c (store_fp_register): Likewise.
10787 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10788
6018d381
KR
107892020-03-14 Kamil Rytarowski <n54@gmx.com>
10790
10791 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10792 nbsd_nat_target instead of inf_ptrace_target.
10793 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10794 nbsd_nat_target.
10795
013f99f0
KR
107962020-03-14 Kamil Rytarowski <n54@gmx.com>
10797
10798 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10799 it to the ptrace call.
10800 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10801
12753073
KR
108022020-03-14 Kamil Rytarowski <n54@gmx.com>
10803
6227b330
KR
10804 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10805 it to the ptrace call.
10806 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10807
108082020-03-14 Kamil Rytarowski <n54@gmx.com>
10809
10810 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10811 gdb_byte *.
12753073
KR
10812 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10813
d5be5fa4
KR
108142020-03-14 Kamil Rytarowski <n54@gmx.com>
10815
10816 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10817 instead of inf_ptrace_target.
10818 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10819 nbsd_nat_target.
10820
8110f842
KR
108212020-03-14 Kamil Rytarowski <n54@gmx.com>
10822
10823 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10824 register_t.
10825
52feded7
KR
108262020-03-14 Kamil Rytarowski <n54@gmx.com>
10827
10828 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10829 register_t.
10830
25567eee
KR
108312020-03-14 Kamil Rytarowski <n54@gmx.com>
10832
10833 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10834 register_t.
10835
426a9c18
TT
108362020-03-13 Tom Tromey <tom@tromey.com>
10837
10838 * value.h (val_print): Don't declare.
10839 * valprint.h (val_print_array_elements)
10840 (val_print_scalar_formatted, generic_val_print): Don't declare.
10841 * valprint.c (generic_val_print_array): Take a struct value.
10842 (generic_val_print_ptr, generic_val_print_memberptr)
10843 (generic_val_print_bool, generic_val_print_int)
10844 (generic_val_print_char, generic_val_print_complex)
10845 (generic_val_print): Remove.
10846 (generic_value_print): Update.
10847 (do_val_print): Remove unused parameters. Don't call
10848 la_val_print.
10849 (val_print): Remove.
10850 (common_val_print): Update. Don't call value_check_printable.
10851 (val_print_scalar_formatted, val_print_array_elements): Remove.
10852 * rust-lang.c (rust_val_print): Remove.
10853 (rust_language_defn): Update.
10854 * p-valprint.c (pascal_val_print): Remove.
10855 (pascal_value_print_inner): Update.
10856 (pascal_object_print_val_fields, pascal_object_print_val):
10857 Remove.
10858 (pascal_object_print_static_field): Update.
10859 * p-lang.h (pascal_val_print): Don't declare.
10860 * p-lang.c (pascal_language_defn): Update.
10861 * opencl-lang.c (opencl_language_defn): Update.
10862 * objc-lang.c (objc_language_defn): Update.
10863 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10864 * m2-lang.h (m2_val_print): Don't declare.
10865 * m2-lang.c (m2_language_defn): Update.
10866 * language.h (struct language_defn) <la_val_print>: Remove.
10867 * language.c (unk_lang_value_print_inner): Rename. Change
10868 argument types.
10869 (unknown_language_defn, auto_language_defn): Update.
10870 * go-valprint.c (go_val_print): Remove.
10871 * go-lang.h (go_val_print): Don't declare.
10872 * go-lang.c (go_language_defn): Update.
10873 * f-valprint.c (f_val_print): Remove.
10874 * f-lang.h (f_value_print): Don't declare.
10875 * f-lang.c (f_language_defn): Update.
10876 * d-valprint.c (d_val_print): Remove.
10877 * d-lang.h (d_value_print): Don't declare.
10878 * d-lang.c (d_language_defn): Update.
10879 * cp-valprint.c (cp_print_value_fields)
10880 (cp_print_value_fields_rtti, cp_print_value): Remove.
10881 (cp_print_static_field): Update.
10882 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10883 (c_val_print_struct, c_val_print_union, c_val_print_int)
10884 (c_val_print_memberptr, c_val_print): Remove.
10885 * c-lang.h (c_val_print_array, cp_print_value_fields)
10886 (cp_print_value_fields_rtti): Don't declare.
10887 * c-lang.c (c_language_defn, cplus_language_defn)
10888 (asm_language_defn, minimal_language_defn): Update.
10889 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10890 (ada_val_print_enum): Take a struct value.
10891 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10892 (ada_val_print): Remove.
10893 (ada_value_print_1): Update.
10894 (printable_val_type): Remove.
10895 * ada-lang.h (ada_val_print): Don't declare.
10896 * ada-lang.c (ada_language_defn): Update.
10897
42331a1e
TT
108982020-03-13 Tom Tromey <tom@tromey.com>
10899
10900 * valprint.c (do_val_print): Update.
10901 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10902 a struct value.
10903 (value_to_value_object_no_release): Declare.
10904 * python/py-value.c (value_to_value_object_no_release): New
10905 function.
10906 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10907 struct value.
10908 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10909 function.
10910 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10911 a struct value.
10912 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10913 Declare.
10914 (gdbscm_apply_val_pretty_printer): Take a struct value.
10915 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10916 value.
10917 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10918 value.
10919 * extension-priv.h (struct extension_language_ops)
10920 <apply_val_pretty_printer>: Take a struct value.
10921 * cp-valprint.c (cp_print_value): Create a struct value.
10922 (cp_print_value): Update.
10923
3a916a97
TT
109242020-03-13 Tom Tromey <tom@tromey.com>
10925
10926 * ada-valprint.c (print_field_values): Call common_val_print.
10927
b59eac37
TT
109282020-03-13 Tom Tromey <tom@tromey.com>
10929
10930 * ada-valprint.c (val_print_packed_array_elements): Remove
10931 bitoffset and val parameters. Call common_val_print.
10932 (ada_val_print_string): Remove offset, address, and original_value
10933 parameters.
10934 (ada_val_print_array): Update.
10935 (ada_value_print_array): New function.
10936 (ada_value_print_1): Call it.
10937
03371129
TT
109382020-03-13 Tom Tromey <tom@tromey.com>
10939
10940 * ada-valprint.c (ada_value_print): Use common_val_print.
10941
2e088f8b
TT
109422020-03-13 Tom Tromey <tom@tromey.com>
10943
10944 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10945
39ef85a8
TT
109462020-03-13 Tom Tromey <tom@tromey.com>
10947
10948 * ada-valprint.c (ada_value_print_num): New function.
10949 (ada_value_print_1): Use it.
10950
b9fa6e07
TT
109512020-03-13 Tom Tromey <tom@tromey.com>
10952
10953 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10954
416595d6
TT
109552020-03-13 Tom Tromey <tom@tromey.com>
10956
10957 * ada-valprint.c (ada_value_print_ptr): New function.
10958 (ada_value_print_1): Use it.
10959
5b5e15ec
TT
109602020-03-13 Tom Tromey <tom@tromey.com>
10961
10962 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10963 call common_val_print.
10964 (ada_val_print_1): Update.
10965 (ada_value_print_1): New function.
10966 (ada_value_print_inner): Rewrite.
10967
fbf54e75
TT
109682020-03-13 Tom Tromey <tom@tromey.com>
10969
10970 * cp-valprint.c (cp_print_value_fields): Update.
10971 (cp_print_value): New function.
10972
64b653ca
TT
109732020-03-13 Tom Tromey <tom@tromey.com>
10974
10975 * m2-valprint.c (m2_value_print_inner): Use
10976 cp_print_value_fields.
10977 * cp-valprint.c (cp_print_value_fields): New function.
10978 * c-valprint.c (c_value_print_struct): New function.
10979 (c_value_print_inner): Use c_value_print_struct.
10980 * c-lang.h (cp_print_value_fields): Declare.
10981
6999f067
TT
109822020-03-13 Tom Tromey <tom@tromey.com>
10983
10984 * c-valprint.c (c_value_print_array): New function.
10985 (c_value_print_inner): Use it.
10986
ce80b8bd
TT
109872020-03-13 Tom Tromey <tom@tromey.com>
10988
10989 * c-valprint.c (c_value_print_memberptr): New function.
10990 (c_value_print_inner): Use it.
10991
2faac269
TT
109922020-03-13 Tom Tromey <tom@tromey.com>
10993
10994 * c-valprint.c (c_value_print_int): New function.
10995 (c_value_print_inner): Use it.
10996
da3e2c29
TT
109972020-03-13 Tom Tromey <tom@tromey.com>
10998
10999 * c-valprint.c (c_value_print_ptr): New function.
11000 (c_value_print_inner): Use it.
11001
50836231
TT
110022020-03-13 Tom Tromey <tom@tromey.com>
11003
11004 * c-valprint.c (c_value_print_inner): Rewrite.
11005
4f412b6e
TT
110062020-03-13 Tom Tromey <tom@tromey.com>
11007
11008 * valprint.c (generic_value_print_complex): New function.
11009 (generic_value_print): Use it.
11010
f5354008
TT
110112020-03-13 Tom Tromey <tom@tromey.com>
11012
11013 * valprint.c (generic_val_print_float): Don't call
11014 val_print_scalar_formatted.
11015 (generic_val_print, generic_value_print): Update.
11016
3eec3b05
TT
110172020-03-13 Tom Tromey <tom@tromey.com>
11018
11019 * valprint.c (generic_value_print_char): New function
11020 (generic_value_print): Use it.
11021
fdddfccb
TT
110222020-03-13 Tom Tromey <tom@tromey.com>
11023
11024 * valprint.c (generic_value_print_int): New function.
11025 (generic_value_print): Use it.
11026
6dde7521
TT
110272020-03-13 Tom Tromey <tom@tromey.com>
11028
11029 * valprint.c (generic_value_print_bool): New function.
11030 (generic_value_print): Use it.
11031
4112d2e6
TT
110322020-03-13 Tom Tromey <tom@tromey.com>
11033
11034 * valprint.c (generic_val_print_func): Simplify.
11035 (generic_val_print, generic_value_print): Update.
11036
65786af6
TT
110372020-03-13 Tom Tromey <tom@tromey.com>
11038
11039 * valprint.c (generic_val_print_flags): Remove.
11040 (generic_val_print, generic_value_print): Update.
11041 (val_print_type_code_flags): Add original_value parameter.
11042
40f3ce18
TT
110432020-03-13 Tom Tromey <tom@tromey.com>
11044
11045 * valprint.c (generic_val_print): Update.
11046 (generic_value_print): Update.
11047 * valprint.c (generic_val_print_enum): Don't call
11048 val_print_scalar_formatted.
11049
2a5b130b
TT
110502020-03-13 Tom Tromey <tom@tromey.com>
11051
11052 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11053 * valprint.c (generic_value_print_ptr): New function.
11054
abc66ce9
TT
110552020-03-13 Tom Tromey <tom@tromey.com>
11056
11057 * valprint.c (generic_value_print): Rewrite.
11058
07a32858
TT
110592020-03-13 Tom Tromey <tom@tromey.com>
11060
11061 * p-valprint.c (pascal_object_print_value_fields)
11062 (pascal_object_print_value): New functions.
11063
64d64d3a
TT
110642020-03-13 Tom Tromey <tom@tromey.com>
11065
11066 * p-valprint.c (pascal_value_print_inner): Rewrite.
11067
6a95a1f5
TT
110682020-03-13 Tom Tromey <tom@tromey.com>
11069
11070 * f-valprint.c (f_value_print_innner): Rewrite.
11071
59fcdac6
TT
110722020-03-13 Tom Tromey <tom@tromey.com>
11073
11074 * m2-valprint.c (m2_print_unbounded_array): New overload.
11075 (m2_print_unbounded_array): Update.
11076 (m2_print_array_contents): Take a struct value.
11077 (m2_value_print_inner): Rewrite.
11078
d133c3e1
TT
110792020-03-13 Tom Tromey <tom@tromey.com>
11080
11081 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11082 (d_value_print_inner): New function.
11083 * d-lang.h (d_value_print_inner): Declare.
11084 * d-lang.c (d_language_defn): Use d_value_print_inner.
11085
23b0f06b
TT
110862020-03-13 Tom Tromey <tom@tromey.com>
11087
11088 * go-valprint.c (go_value_print_inner): New function.
11089 * go-lang.h (go_value_print_inner): Declare.
11090 * go-lang.c (go_language_defn): Use go_value_print_inner.
11091
5f56f7cb
TT
110922020-03-13 Tom Tromey <tom@tromey.com>
11093
11094 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11095 API.
11096 (rust_val_print): Rewrite.
11097 (rust_value_print_inner): New function, from rust_val_print.
11098 (rust_language_defn): Use rust_value_print_inner.
11099
26792ee0
TT
111002020-03-13 Tom Tromey <tom@tromey.com>
11101
11102 * ada-valprint.c (ada_value_print_inner): New function.
11103 * ada-lang.h (ada_value_print_inner): Declare.
11104 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11105
24051bbe
TT
111062020-03-13 Tom Tromey <tom@tromey.com>
11107
11108 * f-valprint.c (f_value_print_innner): New function.
11109 * f-lang.h (f_value_print_innner): Declare.
11110 * f-lang.c (f_language_defn): Use f_value_print_innner.
11111
c0941be6
TT
111122020-03-13 Tom Tromey <tom@tromey.com>
11113
11114 * p-valprint.c (pascal_value_print_inner): New function.
11115 * p-lang.h (pascal_value_print_inner): Declare.
11116 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11117
62c4663d
TT
111182020-03-13 Tom Tromey <tom@tromey.com>
11119
11120 * m2-valprint.c (m2_value_print_inner): New function.
11121 * m2-lang.h (m2_value_print_inner): Declare.
11122 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11123
62182190
TT
111242020-03-13 Tom Tromey <tom@tromey.com>
11125
11126 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11127 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11128 * c-valprint.c (c_value_print_inner): New function.
11129 * c-lang.h (c_value_print_inner): Declare.
11130 * c-lang.c (c_language_defn, cplus_language_defn)
11131 (asm_language_defn, minimal_language_defn): Use
11132 c_value_print_inner.
11133
1e592a8a
TT
111342020-03-13 Tom Tromey <tom@tromey.com>
11135
11136 * p-valprint.c (pascal_object_print_value_fields): Now static.
11137 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11138
7fe471e9
TT
111392020-03-13 Tom Tromey <tom@tromey.com>
11140
11141 * c-valprint.c (c_val_print_array): Simplify.
11142
d121c6ce
TT
111432020-03-13 Tom Tromey <tom@tromey.com>
11144
11145 * valprint.c (value_print_array_elements): New function.
11146 * valprint.h (value_print_array_elements): Declare.
11147
4dba70ee
TT
111482020-03-13 Tom Tromey <tom@tromey.com>
11149
11150 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11151 * mips-tdep.c (mips_print_register): Use
11152 value_print_scalar_formatted.
11153
4f9ae810
TT
111542020-03-13 Tom Tromey <tom@tromey.com>
11155
11156 * valprint.h (value_print_scalar_formatted): Declare.
11157 * valprint.c (value_print_scalar_formatted): New function.
11158
156bfec9
TT
111592020-03-13 Tom Tromey <tom@tromey.com>
11160
11161 * valprint.h (generic_value_print): Declare.
11162 * valprint.c (generic_value_print): New function.
11163
2b4e573d
TT
111642020-03-13 Tom Tromey <tom@tromey.com>
11165
11166 * valprint.c (do_val_print): Call la_value_print_inner, if
11167 available.
11168 * rust-lang.c (rust_language_defn): Update.
11169 * p-lang.c (pascal_language_defn): Update.
11170 * opencl-lang.c (opencl_language_defn): Update.
11171 * objc-lang.c (objc_language_defn): Update.
11172 * m2-lang.c (m2_language_defn): Update.
11173 * language.h (struct language_defn) <la_value_print_inner>: New
11174 member.
11175 * language.c (unknown_language_defn, auto_language_defn): Update.
11176 * go-lang.c (go_language_defn): Update.
11177 * f-lang.c (f_language_defn): Update.
11178 * d-lang.c (d_language_defn): Update.
11179 * c-lang.c (c_language_defn, cplus_language_defn)
11180 (asm_language_defn, minimal_language_defn): Update.
11181 * ada-lang.c (ada_language_defn): Update.
11182
a1f6a07c
TT
111832020-03-13 Tom Tromey <tom@tromey.com>
11184
11185 * c-valprint.c (c_value_print): Use common_val_print.
11186
410cf315
TT
111872020-03-13 Tom Tromey <tom@tromey.com>
11188
11189 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11190
72a45c93
TT
111912020-03-13 Tom Tromey <tom@tromey.com>
11192
11193 * f-valprint.c (f77_print_array_1, f_val_print): Use
11194 common_val_print.
11195
040f66bd
TT
111962020-03-13 Tom Tromey <tom@tromey.com>
11197
11198 * riscv-tdep.c (riscv_print_one_register_info): Use
11199 common_val_print.
11200
a6e05a6c
TT
112012020-03-13 Tom Tromey <tom@tromey.com>
11202
11203 * mi/mi-main.c (output_register): Use common_val_print.
11204
3444c526
TT
112052020-03-13 Tom Tromey <tom@tromey.com>
11206
11207 * infcmd.c (default_print_one_register_info): Use
11208 common_val_print.
11209
c2a44efe
TT
112102020-03-13 Tom Tromey <tom@tromey.com>
11211
11212 * valprint.h (common_val_print_checked): Declare.
11213 * valprint.c (common_val_print_checked): New function.
11214 * stack.c (print_frame_arg): Use common_val_print_checked.
11215
b0c26e99
TT
112162020-03-13 Tom Tromey <tom@tromey.com>
11217
11218 * valprint.c (do_val_print): New function, from val_print.
11219 (val_print): Use do_val_print.
11220 (common_val_print): Use do_val_print.
11221
ce3acbe9
TT
112222020-03-13 Tom Tromey <tom@tromey.com>
11223
11224 * valprint.c (value_print): Use scoped_value_mark.
11225
96c7f873
TV
112262020-03-13 Tom de Vries <tdevries@suse.de>
11227
11228 PR symtab/25646
11229 * psymtab.c (partial_symtab::partial_symtab): Don't set
11230 globals_offset and statics_offset. Push element onto
11231 current_global_psymbols and current_static_psymbols stacks.
11232 (concat): New function.
11233 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11234 element from current_global_psymbols and current_static_psymbols
11235 stacks. Concat popped elements to global_psymbols and
11236 static_symbols.
11237 (add_psymbol_to_list): Use current_global_psymbols and
11238 current_static_psymbols stacks.
11239 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11240 current_static_psymbols fields.
11241
6ba0a321
CB
112422020-03-12 Christian Biesinger <cbiesinger@google.com>
11243
11244 * corelow.c (sniff_core_bfd): Remove.
11245 (class core_target) <m_core_vec>: Remove.
11246 (core_target::core_target): Update.
11247 (core_file_fns): Remove.
11248 (deprecated_add_core_fns): Remove.
11249 (default_core_sniffer): Remove.
11250 (sniff_core_bfd): Remove.
11251 (default_check_format): Remove.
11252 (gdb_check_format): Remove.
11253 (core_target_open): Update.
11254 (core_target::get_core_register_section): Update.
11255 (get_core_registers_cb): Update.
11256 (core_target::fetch_registers): Update.
11257 * gdbcore.h (struct core_fns): Remove.
11258 (deprecated_add_core_fns): Remove.
11259 (default_core_sniffer): Remove.
11260 (default_check_format): Remove.
11261
227031b2
TT
112622020-03-12 Tom Tromey <tom@tromey.com>
11263
11264 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11265 CORE_ADDR.
11266 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11267
53807e9f
TT
112682020-03-12 Tom Tromey <tom@tromey.com>
11269
11270 * remote.c (remote_target::download_tracepoint)
11271 (remote_target::enable_tracepoint)
11272 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11273 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11274 sprintf_vma.
11275
64f25102
TT
112762020-03-12 Tom Tromey <tom@tromey.com>
11277
11278 * symfile-mem.c: Update CORE_ADDR size assert.
11279
272cd5a3
SM
112802020-03-12 Simon Marchi <simon.marchi@efficios.com>
11281
11282 * selftest.m4: Move to gdbsupport/.
11283 * acinclude.m4: Update path to selftest.m4.
11284
74cd3f9d
SM
112852020-03-12 Simon Marchi <simon.marchi@efficios.com>
11286
11287 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11288 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11289 gdbarch-selfselftests.c and selftest-arch.c.
11290 (SUBDIR_UNITTESTS_OBS): Rename to...
11291 (SELFTESTS_OBS): ... this.
11292 (COMMON_SFILES): Remove disasm-selftests.c and
11293 gdbarch-selftests.c.
11294 * configure.ac: Don't add selftest-arch.{c,o} to
11295 CONFIG_{SRCS,OBS}.
11296 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11297 preprocessor conditions.
11298
db6878ac
SM
112992020-03-12 Simon Marchi <simon.marchi@efficios.com>
11300
11301 * configure.ac: Don't source bfd/development.sh.
11302 * selftest.m4: Modify comment.
11303 * configure: Re-generate.
11304
4d696a5c
SM
113052020-03-12 Simon Marchi <simon.marchi@efficios.com>
11306
11307 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11308 not "true" or "false".
11309 * configure: Re-generate.
11310
8dd8e1c7
CB
113112020-03-12 Christian Biesinger <cbiesinger@google.com>
11312
11313 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11314 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11315 renamed to arm_nbsd_supply_gregset.
11316 (fetch_register): Update to call arm_nbsd_supply_gregset.
11317 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11318 (arm_netbsd_nat_target::fetch_registers): Update.
11319 (fetch_elfcore_registers): Removed.
11320 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11321 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11322 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11323 not require NetBSD system headers.
11324 (arm_nbsd_regset): New struct.
11325 (arm_nbsd_iterate_over_regset_sections): New function.
11326 (arm_netbsd_init_abi_common): Updated to call
11327 set_gdbarch_iterate_over_regset_sections.
11328 * arm-nbsd-tdep.h: New file.
11329
dd69bf7a
KB
113302020-03-11 Kevin Buettner <kevinb@redhat.com>
11331
11332 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11333 recursion.
11334
a0761e34
SM
113352020-03-11 Simon Marchi <simon.marchi@efficios.com>
11336
11337 * configure: Re-generate.
11338
e7a82140
TT
113392020-03-11 Tom Tromey <tromey@adacore.com>
11340
11341 * ada-typeprint.c (print_choices): Fix comment.
11342
dcc050c8
AB
113432020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11346 previous item in the list, when the list has no items.
11347
1c33af77
TV
113482020-03-11 Tom de Vries <tdevries@suse.de>
11349
11350 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11351 PROP_LOCLIST handling code.
11352
8c95582d
AB
113532020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11354
11355 * buildsym-legacy.c (record_line): Pass extra parameter to
11356 record_line.
11357 * buildsym.c (buildsym_compunit::record_line): Take an extra
11358 parameter, reduce duplication in the line table, and record the
11359 is_stmt flag in the line table.
11360 * buildsym.h (buildsym_compunit::record_line): Add extra
11361 parameter.
11362 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11363 non-statement lines.
11364 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11365 this to the symtab builder.
11366 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11367 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11368 through to dwarf_record_line_1.
11369 * infrun.c (process_event_stop_test): When stepping, don't stop at
11370 a non-statement instruction, and only refresh the step info when
11371 we land in the middle of a line's range. Also add an extra
11372 comment.
11373 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11374 field.
11375 * record-btrace.c (btrace_find_line_range): Only record lines
11376 marked as is-statement.
11377 * stack.c (frame_show_address): Show the frame address if we are
11378 in a non-statement sal.
11379 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11380 (maintenance_print_one_line_table): Print a header for the is_stmt
11381 column, and include is_stmt information in the output.
11382 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11383 preference to non-statements.
11384 (find_pcs_for_symtab_line): Prefer is-statement entries.
11385 (find_line_common): Likewise.
11386 * symtab.h (struct linetable_entry): Add is_stmt field.
11387 (struct symtab_and_line): Likewise.
11388 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11389 arranging the line table.
11390
e4003a34
TV
113912020-03-07 Tom de Vries <tdevries@suse.de>
11392
11393 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11394 DIE.
11395
e8932576
TT
113962020-03-07 Tom Tromey <tom@tromey.com>
11397
11398 * valops.c (value_literal_complex): Remove obsolete comment.
11399 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11400 comment.
11401
29734269
SM
114022020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11403
11404 * infrun.h: Forward-declare thread_info.
11405 (set_step_info): Add thread_info parameter, add doc.
11406 * infrun.c (set_step_info): Add thread_info parameter, move doc
11407 to header.
11408 * infrun.c (process_event_stop_test): Pass thread to
11409 set_step_info call.
11410 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11411 set_step_info.
11412 (prepare_one_step): Add thread_info parameter, pass it to
11413 set_step_frame and prepare_one_step (recursive) call.
11414 (step_1): Pass thread to prepare_one_step call.
11415 (step_command_fsm::should_stop): Pass thread to
11416 prepare_one_step.
11417 (until_next_fsm): Pass thread to set_step_frame call.
11418 (finish_command): Pass thread to set_step_info call.
11419
b7d64b29
HD
114202020-03-06 Hannes Domani <ssbssa@yahoo.de>
11421
11422 * windows-tdep.c (windows_solib_create_inferior_hook):
11423 Check if inferior is running.
11424
09f2921c
TV
114252020-03-06 Tom de Vries <tdevries@suse.de>
11426
11427 * NEWS: Fix "the the".
11428 * ctfread.c: Same.
11429
fd760e79
TV
114302020-03-06 Tom de Vries <tdevries@suse.de>
11431
11432 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11433
20ea4a60
AB
114342020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11435
11436 * .dir-locals.el: Add a comment referencing the other copies of
11437 this file.
11438
0afbabf0
JB
114392020-03-05 John Baldwin <jhb@FreeBSD.org>
11440
11441 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11442 psargs.
11443
842806cb
TBA
114442020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11445
11446 * .gitattributes: New file.
11447
be1e3d3e
TT
114482020-03-04 Tom Tromey <tom@tromey.com>
11449
11450 * symmisc.c (print_symbol_bcache_statistics)
11451 (print_objfile_statistics): Update.
11452 * symfile.c (allocate_symtab): Use intern.
11453 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11454 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11455 macro_cache>: Remove.
11456 <string_cache>: New member.
11457 (struct objfile) <intern>: New methods.
11458 * elfread.c (elf_symtab_read): Use intern.
11459 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11460 (dwarf2_compute_name, dwarf2_physname)
11461 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11462 names.
11463 (guess_partial_die_structure_name): Update.
11464 (partial_die_info::fixup): Intern name.
11465 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11466 name.
11467 (dwarf2_name): Intern name. Update.
11468 * buildsym.c (buildsym_compunit::get_macro_table): Use
11469 string_cache.
11470
4e7625fd
TT
114712020-03-04 Tom Tromey <tom@tromey.com>
11472
11473 * jit.c (bfd_open_from_target_memory): Make "target" const.
11474 * corefile.c (gnutarget): Now const.
11475 * gdbcore.h (gnutarget): Now const.
11476
46f9f931
HD
114772020-03-04 Hannes Domani <ssbssa@yahoo.de>
11478
11479 * NEWS: Mention support for WOW64 processes.
11480 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11481 (amd64_windows_segment_register_p): Remove static.
11482 (_initialize_amd64_windows_nat): Update.
11483 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11484 * i386-windows-nat.c (context_offset): Update.
11485 (i386_mappings): Rename and remove static.
11486 (i386_windows_segment_register_p): Remove static.
11487 (_initialize_i386_windows_nat): Update.
11488 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11489 (STATUS_WX86_SINGLE_STEP): New macro.
11490 (EnumProcessModulesEx): New macro.
11491 (Wow64SuspendThread): New macro.
11492 (Wow64GetThreadContext): New macro.
11493 (Wow64SetThreadContext): New macro.
11494 (Wow64GetThreadSelectorEntry): New macro.
11495 (windows_set_context_register_offsets): Add static.
11496 (windows_set_segment_register_p): Likewise.
11497 (windows_add_thread): Adapt for WOW64 processes.
11498 (windows_fetch_one_register): Likewise.
11499 (windows_nat_target::fetch_registers): Likewise.
11500 (windows_store_one_register): Likewise.
11501 (display_selector): Likewise.
11502 (display_selectors): Likewise.
11503 (handle_exception): Likewise.
11504 (windows_continue): Likewise.
11505 (windows_nat_target::resume): Likewise.
11506 (windows_add_all_dlls): Likewise.
11507 (do_initial_windows_stuff): Likewise.
11508 (windows_nat_target::attach): Likewise.
11509 (windows_get_exec_module_filename): Likewise.
11510 (windows_nat_target::create_inferior): Likewise.
11511 (windows_xfer_siginfo): Likewise.
11512 (_initialize_loadable): Initialize Wow64SuspendThread,
11513 Wow64GetThreadContext, Wow64SetThreadContext,
11514 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11515 * windows-nat.h (windows_set_context_register_offsets):
11516 Remove declaration.
11517 (windows_set_segment_register_p): Likewise.
11518 (i386_windows_segment_register_p): Add declaration.
11519 (amd64_windows_segment_register_p): Likewise.
11520
440cf44e
LM
115212020-03-04 Luis Machado <luis.machado@linaro.org>
11522
11523 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11524 in "info registers" for AArch64/ARM.
11525
11526 The change caused "info registers" to not print GPR's.
11527
11528 gdb/ChangeLog:
11529
11530 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11531
11532 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11533 when reg->group is empty and reggroup is not.
11534
1009d92f
TT
115352020-03-03 Tom Tromey <tromey@adacore.com>
11536
11537 * dwarf2/frame.c (struct dwarf2_frame_cache)
11538 <checked_tailcall_bottom, entry_cfa_sp_offset,
11539 entry_cfa_sp_offset_p>: Remove members.
11540 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11541 (dwarf2_frame_prev_register): Don't call
11542 dwarf2_tailcall_sniffer_first.
11543 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11544 * frame-unwind.c (add_unwinder): New fuction.
11545 (frame_unwind_init): Use it. Add tailcall unwinder.
11546
5e5d66b6
AB
115472020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11548 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11549
11550 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11551 value should be printed as true.
11552
584cf46d
HD
115532020-03-03 Hannes Domani <ssbssa@yahoo.de>
11554
11555 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11556 (windows_init_abi): Set and use windows_so_ops.
11557
7b973adc
SDJ
115582020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11559
11560 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11561 when verifying if dealing with a convenience variable.
11562
bb7b70ab
LM
115632020-03-03 Luis Machado <luis.machado@linaro.org>
11564
11565 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11566
9822cb57
SM
115672020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11568
11569 * infrun.c (gdbarch_supports_displaced_stepping): New.
11570 (use_displaced_stepping): Break up conditions in smaller pieces.
11571 Use gdbarch_supports_displaced_stepping.
11572 (displaced_step_prepare_throw): Use
11573 gdbarch_supports_displaced_stepping.
11574
63e163f2
AB
115752020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11576
11577 * NEWS: Mention new behaviour of the history filename.
11578 * top.c (write_history_p): Add comment.
11579 (show_write_history_p): Add header comment, give a different
11580 message when history writing is on, but the history filename is
11581 empty.
11582 (history_filename): Add comment.
11583 (history_filename_empty): New function.
11584 (show_history_filename): Add header comment, give a different
11585 message when the filename is empty.
11586 (init_history): Compare history_filename against nullptr, and only
11587 read history if the filename is not empty.
11588 (set_history_filename): Add header comment, and only make
11589 non-empty filenames absolute.
11590 (init_main): Make the filename argument to 'set history filename'
11591 optional.
11592
81b86b97
CB
115932020-03-02 Christian Biesinger <cbiesinger@google.com>
11594
11595 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11596 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11597 (fetch_fp_register): Update.
11598 (fetch_fp_regs): Update.
11599 (store_fp_register): Update.
11600 (store_fp_regs): Update.
11601 (arm_netbsd_nat_target::read_description): New function.
11602 (fetch_elfcore_registers): Update.
11603
24ed6739
AB
116042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11605
11606 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11607 general_thread if the stop reply is missing a thread-id.
11608 (remote_target::process_stop_reply): Use the first non-exited
11609 thread if the target didn't pass a thread-id.
11610 * infrun.c (do_target_wait): Move call to
11611 switch_to_inferior_no_thread to ....
11612 (do_target_wait_1): ... here.
11613
a84bb2a0
JT
116142020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11615
11616 * debuginfod-support.c: Include defs.h first.
11617
658dadf0
TV
116182020-02-28 Tom de Vries <tdevries@suse.de>
11619
11620 * symfile.c (set_initial_language): Use default language for lookup.
11621
4ebe4877
SM
116222020-02-28 Simon Marchi <simon.marchi@efficios.com>
11623
11624 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11625 reader variable, pass `this` to read_cutu_die_from_dwo.
11626
e5da1139
AM
116272020-02-27 Aaron Merey <amerey@redhat.com>
11628
11629 * source.c (open_source_file): Check for nullptr when computing
11630 srcpath.
11631
317f7127
TT
116322020-02-27 Tom Tromey <tromey@adacore.com>
11633
11634 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11635 member.
11636 (dwarf2_add_field): Don't update nfields.
11637 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11638
3104d9ee
AB
116392020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11640
11641 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11642 abs.
11643
b83470bf
TT
116442020-02-26 Tom Tromey <tom@tromey.com>
11645
11646 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11647 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11648 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11649 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11650 per_cu_data.
11651
edfe0a0c
TT
116522020-02-26 Tom Tromey <tom@tromey.com>
11653
11654 * dwarf2/index-write.c (psym_index_map): Change type.
11655 (add_address_entry_worker, write_one_signatured_type)
11656 (recursively_count_psymbols, recursively_write_psymbols)
11657 (class debug_names, psyms_seen_size, write_gdbindex)
11658 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11659
0d79cdc4
AM
116602020-02-26 Aaron Merey <amerey@redhat.com>
11661
11662 * Makefile.in: Handle optional debuginfod support.
11663 * NEWS: Update.
11664 * README: Add --with-debuginfod summary.
11665 * config.in: Regenerate.
11666 * configure: Regenerate.
11667 * configure.ac: Handle optional debuginfod support.
11668 * debuginfod-support.c: debuginfod helper functions.
11669 * debuginfod-support.h: Ditto.
11670 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11671 summary.
11672 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11673 when a dwz file cannot be found.
11674 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11675 debuginfo file cannot be found.
11676 * source.c (open_source_file): Query debuginfod servers when a
11677 source file cannot be found.
11678 * top.c (print_gdb_configuration): Include
11679 --{with,without}-debuginfod in the output.
11680
b65ce565
JG
116812020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11682
11683 * thread.c (thr_try_catch_cmd): Print thread name.
11684
d4c9a4f8
SM
116852020-02-26 Simon Marchi <simon.marchi@efficios.com>
11686
11687 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11688 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11689 dwarf2_fetch_die_type_sect_off): Move to...
11690 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11691 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11692 dwarf2_fetch_die_type_sect_off): ... here.
11693 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11694 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11695 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11696
0dce4280
TV
116972020-02-26 Tom de Vries <tdevries@suse.de>
11698
11699 PR gdb/25603
11700 * symfile.c (set_initial_language): Exit-early if
11701 language_mode == language_mode_manual.
11702
450a1bfc
SM
117032020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11704
11705 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11706 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11707 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11708
9e80cfa1
AB
117092020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11710
11711 * gdbtypes.c (create_array_type_with_stride): Handle negative
11712 array strides.
11713 * valarith.c (value_subscripted_rvalue): Likewise.
11714
09624f1f
LM
117152020-02-25 Luis Machado <luis.machado@linaro.org>
11716
11717 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11718
8cb5117c
SM
117192020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11720
11721 * loc.h (dwarf2_get_die_type): Move to...
11722 * read.h (dwarf2_get_die_type): ... here.
11723 * read.c (dwarf2_get_die_type): Move doc to header.
11724
c325c44e
JB
117252020-02-25 Joel Brobecker <brobecker@adacore.com>
11726
11727 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11728 'gnulib/Makefile.in' to the list.
11729
4ac93832
TT
117302020-02-24 Tom Tromey <tom@tromey.com>
11731
11732 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11733 Remove.
11734 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11735 XOBNEWVEC.
11736
197400e8
TT
117372020-02-24 Tom Tromey <tom@tromey.com>
11738
11739 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11740 New method.
11741 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11742 (dw2_do_instantiate_symtab, dw2_get_file_names)
11743 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11744
76935768
TT
117452020-02-24 Tom Tromey <tom@tromey.com>
11746
11747 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11748 make_scoped_restore.
11749 (dwarf2_psymtab::read_symtab): Don't clear
11750 reading_partial_symbols.
11751
a88ef40d
TV
117522020-02-24 Tom de Vries <tdevries@suse.de>
11753
11754 PR gdb/25592
11755 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11756
c9af6521
TV
117572020-02-24 Tom de Vries <tdevries@suse.de>
11758
11759 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11760 commands layout next/prev/regs.
11761
5707a07a
TT
117622020-02-22 Tom Tromey <tom@tromey.com>
11763
11764 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11765 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11766
3b0fb49e
TT
117672020-02-22 Tom Tromey <tom@tromey.com>
11768
11769 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11770
283be8bf
TT
117712020-02-22 Tom Tromey <tom@tromey.com>
11772
11773 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11774 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11775 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11776 * tui/tui.c (_initialize_tui): Add usage text.
11777
ca793b96
TT
117782020-02-22 Tom Tromey <tom@tromey.com>
11779
11780 * tui/tui-win.c (tui_set_focus_command)
11781 (tui_set_win_height_command): Use error_no_arg.
11782 (_initialize_tui_win): Update help text.
11783 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11784
432b5c40
TT
117852020-02-22 Tom Tromey <tom@tromey.com>
11786
11787 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11788 * tui/tui-disasm.h (struct tui_disasm_window)
11789 <display_start_addr>: Declare.
11790 * tui/tui-source.h (struct tui_source_window)
11791 <display_start_addr>: Declare.
11792 * tui/tui-winsource.h (struct tui_source_window_base)
11793 <show_source_line, display_start_addr>: New methods.
11794 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11795 Rename and move to protected section.
11796 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11797 (tui_source_window_base::do_erase_source_content): Update.
11798 (tui_source_window_base::show_source_line): Now a method.
11799 (tui_source_window_base::show_source_content)
11800 (tui_source_window_base::tui_source_window_base)
11801 (tui_source_window_base::rerender)
11802 (tui_source_window_base::refill)
11803 (tui_source_window_base::do_scroll_horizontal)
11804 (tui_source_window_base::set_is_exec_point_at)
11805 (tui_source_window_base::update_breakpoint_info)
11806 (tui_source_window_base::update_exec_info): Update.
11807 * tui/tui-source.c (tui_source_window::set_contents)
11808 (tui_source_window::showing_source_p)
11809 (tui_source_window::do_scroll_vertical)
11810 (tui_source_window::location_matches_p)
11811 (tui_source_window::line_is_displayed): Update.
11812 (tui_source_window::display_start_addr): New method.
11813 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11814 (tui_disasm_window::do_scroll_vertical)
11815 (tui_disasm_window::location_matches_p): Update.
11816 (tui_disasm_window::display_start_addr): New method.
11817
01b1af32
TT
118182020-02-22 Tom Tromey <tom@tromey.com>
11819
11820 * NEWS: Add entry for gdb.register_window_type.
11821 * tui/tui-layout.h (window_factory): New typedef.
11822 (tui_register_window): Declare.
11823 * tui/tui-layout.c (saved_tui_windows): New global.
11824 (tui_apply_current_layout): Use it.
11825 (tui_register_window): New function.
11826 * python/python.c (do_start_initialization): Call
11827 gdbpy_initialize_tui.
11828 (python_GdbMethods): Add "register_window_type" function.
11829 * python/python-internal.h (gdbpy_register_tui_window)
11830 (gdbpy_initialize_tui): Declare.
11831 * python/py-tui.c: New file.
11832 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11833
fc96d20b
TT
118342020-02-22 Tom Tromey <tom@tromey.com>
11835
11836 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11837
935c78c0
TT
118382020-02-22 Tom Tromey <tom@tromey.com>
11839
11840 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11841 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11842 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11843 (tui_set_win_focus_to): Move from tui-win.c.
11844
0240c8f1
TT
118452020-02-22 Tom Tromey <tom@tromey.com>
11846
11847 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11848 functions.
11849 (known_window_types): New global.
11850 (tui_get_window_by_name): Reimplement.
11851 (initialize_known_windows): New function.
11852 (validate_window_name): Rewrite.
11853 (_initialize_tui_layout): Call initialize_known_windows.
11854
fdb01f0c
TT
118552020-02-22 Tom Tromey <tom@tromey.com>
11856
11857 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11858 Remove constants.
11859 * tui/tui-winsource.h (struct tui_source_window_base)
11860 <tui_source_window_base>: Remove parameter.
11861 * tui/tui-winsource.c
11862 (tui_source_window_base::tui_source_window_base): Remove
11863 parameter.
11864 (tui_source_window_base::refill): Update.
11865 * tui/tui-stack.h (struct tui_locator_window)
11866 <tui_locator_window>: Update.
11867 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11868 Default the constructor.
11869 * tui/tui-regs.h (struct tui_data_item_window)
11870 <tui_data_item_window>: Default the constructor.
11871 (struct tui_data_window) <tui_data_window>: Likewise.
11872 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11873 Default the constructor.
11874 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11875 Default the constructor.
11876 <type>: Remove.
11877 (struct tui_win_info) <tui_win_info>: Default the constructor.
11878 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11879 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11880 Default the constructor.
11881
865a5aec
TT
118822020-02-22 Tom Tromey <tom@tromey.com>
11883
11884 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11885 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11886 * tui/tui-win.c (tui_resize_all): Don't call
11887 tui_delete_invisible_windows.
11888 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11889 done.
11890 (tui_set_layout): Update.
11891 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11892 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11893 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11894
e098d18c
TT
118952020-02-22 Tom Tromey <tom@tromey.com>
11896
11897 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11898 correctly.
11899
eb9c8874
TT
119002020-02-22 Tom Tromey <tom@tromey.com>
11901
11902 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11903
7eed1a8e
TT
119042020-02-22 Tom Tromey <tom@tromey.com>
11905
11906 * tui/tui-winsource.h (struct tui_source_window_iterator)
11907 <inner_iterator>: New etytypedef.
11908 <tui_source_window_iterator>: Take "end" parameter.
11909 <tui_source_window_iterator>: Take iterator.
11910 <operator*, advance>: Update.
11911 <m_iter>: Change type.
11912 <m_end>: New field.
11913 (struct tui_source_windows) <begin, end>: Update.
11914 * tui/tui-layout.c (tui_windows): New global.
11915 (tui_apply_current_layout): Clear tui_windows.
11916 (tui_layout_window::apply): Update tui_windows.
11917 * tui/tui-data.h (tui_windows): Declare.
11918 (all_tui_windows): Now inline function.
11919 (class tui_window_iterator, struct all_tui_windows): Remove.
11920
7c043ba6
TT
119212020-02-22 Tom Tromey <tom@tromey.com>
11922
11923 PR tui/17850:
11924 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11925 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11926 "height" argument.
11927 (class tui_layout_window) <get_sizes>: Likewise.
11928 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11929 argument.
11930 <get_sizes>: Add "height" argument.
11931 <m_vertical>: New field.
11932 * tui/tui-layout.c (tui_layout_split::clone): Update.
11933 (tui_layout_split::get_sizes): Add "height" argument.
11934 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11935 (tui_new_layout_command): Parse "-horizontal".
11936 (_initialize_tui_layout): Update help string.
11937 (tui_layout_split::specification): Add "-horizontal" when needed.
11938 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11939 argument.
11940 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11941 New methods.
11942
6bc56648
TT
119432020-02-22 Tom Tromey <tom@tromey.com>
11944
11945 * tui/tui-layout.h (enum tui_adjust_result): New.
11946 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11947 (class tui_layout_window) <adjust_size>: Return
11948 tui_adjust_result. Rewrite.
11949 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11950 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11951
c22fef7e
TT
119522020-02-22 Tom Tromey <tom@tromey.com>
11953
11954 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11955 parameter and return types.
11956 (class tui_layout_base) <specification>: Add "depth".
11957 (class tui_layout_window) <specification>: Add "depth".
11958 (class tui_layout_split) <specification>: Add "depth".
11959 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11960 and return types.
11961 (tui_new_layout_command): Parse sub-layouts.
11962 (_initialize_tui_layout): Update help string.
11963 (tui_layout_window::specification): Add "depth".
11964 (add_layout_command): Update.
11965
ee325b61
TT
119662020-02-22 Tom Tromey <tom@tromey.com>
11967
11968 * NEWS: Add "tui new-layout" item.
11969 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11970 Add new-layout command to help text.
11971 (validate_window_name): New function.
11972 (tui_new_layout_command): New function.
11973 (_initialize_tui_layout): Register "new-layout".
11974 (tui_layout_window::specification): New method.
11975 (tui_layout_window::specification): New method.
11976 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11977 method.
11978 (class tui_layout_window) <specification>: New method.
11979 (class tui_layout_split) <specification>: New method.
11980
416eb92d
TT
119812020-02-22 Tom Tromey <tom@tromey.com>
11982
11983 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11984 * tui/tui-win.c (window_name_completer): Update comment.
11985 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11986 Declare method.
11987 (class tui_layout_window) <replace_window>: Likewise.
11988 (class tui_layout_split) <replace_window>: Likewise.
11989 (tui_set_layout): Don't declare.
11990 (tui_set_initial_layout): Declare function.
11991 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11992 (asm_regs_layout): New globals.
11993 (tui_current_layout, show_layout): Remove.
11994 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11995 (find_layout, tui_apply_layout): New function.
11996 (layout_completer): Remove.
11997 (tui_next_layout): Reimplement.
11998 (tui_next_layout_command): New function.
11999 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12000 (tui_regs_layout): Reimplement.
12001 (tui_regs_layout_command): New function.
12002 (extract_display_start_addr): Rewrite.
12003 (next_layout, prev_layout): Remove.
12004 (tui_layout_window::replace_window): New method.
12005 (tui_layout_split::replace_window): New method.
12006 (destroy_layout): New function.
12007 (layout_list): New global.
12008 (add_layout_command): New function.
12009 (initialize_layouts): Update.
12010 (tui_layout_command): New function.
12011 (_initialize_tui_layout): Install "layout" commands.
12012 * tui/tui-data.h (enum tui_layout_type): Remove.
12013 (tui_current_layout): Don't declare.
12014
0dbc2fc7
TT
120152020-02-22 Tom Tromey <tom@tromey.com>
12016
12017 * tui/tui-regs.c (tui_reg_layout): Remove.
12018 (tui_reg_command): Use tui_regs_layout.
12019 * tui/tui-layout.h (tui_reg_command): Declare.
12020 * tui/tui-layout.c (tui_reg_command): New function.
12021
5afe342e
TT
120222020-02-22 Tom Tromey <tom@tromey.com>
12023
12024 * tui/tui.c (tui_rl_delete_other_windows): Call
12025 tui_remove_some_windows.
12026 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12027 Declare method.
12028 (class tui_layout_window) <remove_windows>: New method.
12029 (class tui_layout_split) <remove_windows>: Declare.
12030 (tui_remove_some_windows): Declare.
12031 * tui/tui-layout.c (tui_remove_some_windows): New function.
12032 (tui_layout_split::remove_windows): New method.
12033
427326a8
TT
120342020-02-22 Tom Tromey <tom@tromey.com>
12035
12036 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12037 * tui/tui-layout.h (tui_next_layout): Declare.
12038 * tui/tui-layout.c (tui_next_layout): New function.
12039
3fe12b6d
TT
120402020-02-22 Tom Tromey <tom@tromey.com>
12041
12042 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12043 correct coordinates.
12044
59b8b5d2
TT
120452020-02-22 Tom Tromey <tom@tromey.com>
12046
12047 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12048 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12049 DATA_WIN case.
12050
2a3d458b
TT
120512020-02-22 Tom Tromey <tom@tromey.com>
12052
12053 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12054 TUI_DISASM_WIN, not tui_win_list.
12055
3f0cbb04
TT
120562020-02-22 Tom Tromey <tom@tromey.com>
12057
12058 * valprint.c (generic_val_print_enum_1)
12059 (val_print_type_code_flags): Style member names.
12060 * rust-lang.c (val_print_struct, rust_print_enum)
12061 (rust_print_struct_def, rust_internal_print_type): Style member
12062 names.
12063 * p-valprint.c (pascal_object_print_value_fields): Style member
12064 names. Only call fprintf_symbol_filtered for static members.
12065 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12066 * f-valprint.c (f_val_print): Style member names.
12067 * f-typeprint.c (f_type_print_base): Style member names.
12068 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12069 call fprintf_symbol_filtered for static members.
12070 (cp_print_class_member): Style member names.
12071 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12072 member names.
12073 * ada-valprint.c (ada_print_scalar): Style enum names.
12074 (ada_val_print_enum): Likewise.
12075 * ada-typeprint.c (print_enum_type): Style enum names.
12076
d4d947ae
TT
120772020-02-21 Tom Tromey <tom@tromey.com>
12078
12079 * psympriv.h (struct partial_symtab): Update comment.
12080
e94e944b
TT
120812020-02-21 Tom Tromey <tromey@adacore.com>
12082
12083 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12084 type is CORE_ADDR.
12085
1eb73179
TV
120862020-02-21 Tom de Vries <tdevries@suse.de>
12087
12088 PR gdb/25534
12089 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12090 if dependencies[i]->user != NULL.
12091
4f180d53
AT
120922020-02-21 Ali Tamur <tamur@google.com>
12093
12094 * dwarf2/read.c (dwarf2_name): Add null check.
12095
22b6cd70
TT
120962020-02-20 Tom Tromey <tom@tromey.com>
12097
12098 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12099 ">=", in binary search.
12100 (dwarf2_find_containing_comp_unit): New overload.
12101 (run_test): New self-test.
12102 (_initialize_dwarf2_read): Register new test.
12103
bd0cf5a6
NC
121042020-02-20 Nelson Chu <nelson.chu@sifive.com>
12105
12106 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12107 * riscv-tdep.h: Likewise.
12108 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12109 rv32-only CSR.
12110 * features/riscv/64bit-csr.xml: Regenerated.
12111
3f702acd
SDJ
121122020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12113 Tom Tromey <tom@tromey.com>
12114
12115 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12116 of 'fputc_unfiltered'.
12117 (putchar_unfiltered): Call 'fputc_unfiltered'.
12118 (fputc_unfiltered): Call 'fputs_unfiltered'.
12119
d13c7322
AB
121202020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12121
12122 * config.in: Regenerate.
12123 * configure: Regenerate.
12124 * configure.ac: Add --with-python-libdir option.
12125 * main.c: Use WITH_PYTHON_LIBDIR.
12126
869d8950
TT
121272020-02-19 Tom Tromey <tom@tromey.com>
12128
12129 * symtab.c (general_symbol_info::compute_and_set_names): Use
12130 obstack_strndup. Simplify call to symbol_set_demangled_name.
12131
298e9637
SM
121322020-02-19 Simon Marchi <simon.marchi@efficios.com>
12133
12134 * dwarf2/read.c (allocate_signatured_type_table,
12135 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12136 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12137 Remove objfile parameter, update all callers.
12138
08410482
DE
121392020-02-19 Doug Evans <dje@google.com>
12140
12141 PR rust/25535
12142 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12143 rust_enum_variant calculation.
12144
dfdeeca1
TT
121452020-02-19 Tom Tromey <tromey@adacore.com>
12146
12147 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12148
2ef5453b
TT
121492020-02-19 Tom Tromey <tromey@adacore.com>
12150
12151 * ada-lang.c (cache_symbol): Use obstack_strdup.
12152
9f1528a1
AB
121532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12154
12155 * configure: Regenerate.
12156
d3c22fa8
TT
121572020-02-19 Tom Tromey <tromey@adacore.com>
12158
12159 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12160 NULL check.
12161
bf84f706
MR
121622020-02-19 Maciej W. Rozycki <macro@wdc.com>
12163
12164 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12165
d1c9b20f
AB
121662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12167
12168 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12169 if GDBSERVER is not defined.
12170 (riscv_tdesc_cache): Likewise, also store const target_desc.
12171 (STATIC_IN_GDB): Define.
12172 (riscv_create_target_description): Update declaration with
12173 STATIC_IN_GDB.
12174 (riscv_lookup_target_description): New function, only define if
12175 GDBSERVER is not defined.
12176 * arch/riscv.h (riscv_create_target_description): Declare only
12177 when GDBSERVER is defined.
12178 (riscv_lookup_target_description): New declaration when GDBSERVER
12179 is not defined.
12180 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12181 (riscv_linux_read_features): ...this, and return
12182 riscv_gdbarch_features instead of target_desc.
12183 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12184 (riscv_linux_read_description): Rename to...
12185 (riscv_linux_read_features): ...this.
12186 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12187 Update to use riscv_gdbarch_features and
12188 riscv_lookup_target_description.
12189 * riscv-tdep.c (riscv_find_default_target_description): Use
12190 riscv_lookup_target_description instead of
12191 riscv_create_target_description.
12192
373d7ac0
SM
121932020-02-18 Simon Marchi <simon.marchi@efficios.com>
12194
12195 * valprint.c (generic_val_print_enum_1): When printing a flag
12196 enum with value 0 and there is no enumerator with value 0, print
12197 just "0" instead of "(unknown: 0x0)".
12198
b29a2df0
SM
121992020-02-18 Simon Marchi <simon.marchi@efficios.com>
12200
12201 * valprint.c (generic_val_print_enum_1): Print unknown part of
12202 flag enum in hex.
12203
6740f0cc
SM
122042020-02-18 Simon Marchi <simon.marchi@efficios.com>
12205
12206 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12207 flag enums to contain duplicate enumerators.
12208 * valprint.c (generic_val_print_enum_1): Update comment.
12209
edd45eb0
SM
122102020-02-18 Simon Marchi <simon.marchi@efficios.com>
12211
12212 * dwarf2/read.c: Include "count-one-bits.h".
12213 (update_enumeration_type_from_children): If an enumerator has
12214 multiple bits set, don't treat the enumeration as a "flag enum".
12215 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12216 of flag enums have 0 or 1 bit set.
12217
6d0cf446
BE
122182020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12219
12220 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12221 conversion.
12222 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12223 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12224 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12225 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12226 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12227
7001c1b7
SM
122282020-02-18 Simon Marchi <simon.marchi@efficios.com>
12229
12230 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12231
fdb61c6c
SM
122322020-02-14 Simon Marchi <simon.marchi@efficios.com>
12233
12234 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12235 displaced_step_closure_up.
12236 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12237 (struct displaced_step_closure_up):
12238 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12239 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12240 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12241 Likewise.
12242 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12243 * gdbarch.c, gdbarch.h: Re-generate.
12244 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12245 displaced_step_closure_up.
12246 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12247 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12248 * infrun.h (displaced_step_closure_up): New type alias.
12249 (struct displaced_step_inferior_state) <step_closure>: Change
12250 type to displaced_step_closure_up.
12251 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12252 displaced_step_closure_up.
12253 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12254
a4a38eb4
TT
122552020-02-14 Tom Tromey <tom@tromey.com>
12256
12257 * minidebug.c (gnu_debug_key): New global.
12258 (find_separate_debug_file_in_section): Use it.
12259
e8217e61
SM
122602020-02-14 Simon Marchi <simon.marchi@efficios.com>
12261
12262 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12263 std::unique_ptr.
12264 * gdbarch.c: Re-generate.
12265 * gdbarch.h: Re-generate.
12266 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12267 change.
12268 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12269 type to std::unique_ptr.
12270 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12271 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12272 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12273 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12274 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12275 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12276 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12277 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12278 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12279
d8d83535
SM
122802020-02-14 Simon Marchi <simon.marchi@efficios.com>
12281
12282 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12283 std::unique_ptr.
12284 (displaced_step_clear): Rename to...
12285 (displaced_step_reset): ... this. Just call displaced->reset ().
12286 (displaced_step_clear_cleanup): Rename to...
12287 (displaced_step_reset_cleanup): ... this.
12288 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12289 (displaced_step_fixup): Likewise.
12290 (resume_1): Likewise.
12291 (handle_inferior_event): Restore child's memory before calling
12292 displaced_step_fixup on the parent.
12293 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12294 to std::unique_ptr.
12295 <step_closure>: Change type to std::unique_ptr.
12296
5f661e03
SM
122972020-02-14 Simon Marchi <simon.marchi@efficios.com>
12298
12299 * arm-tdep.c: Include count-one-bits.h.
12300 (cleanup_block_store_pc): Use count_one_bits.
12301 (cleanup_block_load_pc): Use count_one_bits.
12302 (arm_copy_block_xfer): Use count_one_bits.
12303 (thumb2_copy_block_xfer): Use count_one_bits.
12304 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12305 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12306 (thumb_get_next_pcs_raw): Use count_one_bits.
12307 (arm_get_next_pcs_raw): Use count_one_bits_l.
12308 * arch/arm.c (bitcount): Remove.
12309 * arch/arm.h (bitcount): Remove.
12310
8084e579
TT
123112020-02-14 Tom Tromey <tromey@adacore.com>
12312
12313 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12314 Update.
12315 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12316 * dwarf2/loc.c (call_site_find_chain_1): Return
12317 unique_xmalloc_ptr.
12318 (call_site_find_chain): Likewise.
12319
258bf0ee
RB
123202020-02-14 Richard Biener <rguenther@suse.de>
12321
12322 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12323 on expression with division operators.
12324
f98a8458
AKS
123252020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12326
12327 * MAINTAINERS (Write After Approval): Adding myself.
12328
d1437c0e
TT
123292020-02-12 Tom Tromey <tom@tromey.com>
12330
12331 * event-loop.c (event_data, gdb_event, event_handler_func):
12332 Remove.
12333
3d4560f7
TT
123342020-02-12 Tom Tromey <tom@tromey.com>
12335
12336 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12337 (dwarf2_frame_objfile_data): Add comment.
12338 (find_comp_unit, set_comp_unit): New functions.
12339 (dwarf2_frame_find_fde): Use find_comp_unit.
12340 (dwarf2_build_frame_info): Use set_comp_unit.
12341
21982304
TT
123422020-02-12 Tom Tromey <tom@tromey.com>
12343
12344 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12345 (comp_unit): Don't initialize objfile.
12346 (execute_cfa_program): Add text_offset parameter.
12347 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12348 (dwarf2_frame_cache): Update.
12349 (dwarf2_build_frame_info): Don't set "objfile" member.
12350
4debb237
TT
123512020-02-12 Tom Tromey <tom@tromey.com>
12352
12353 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12354 (decode_frame_entry): Likewise.
12355 (dwarf2_build_frame_info): Update.
12356
0d404d44
TT
123572020-02-12 Tom Tromey <tom@tromey.com>
12358
12359 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12360 (decode_frame_entry_1): Use the comp_unit obstack.
12361
a7a3ae5c
TT
123622020-02-12 Tom Tromey <tom@tromey.com>
12363
12364 * dwarf2/frame.c (struct comp_unit): Add initializers and
12365 constructor.
12366 (dwarf2_frame_objfile_data): Store a comp_unit.
12367 (dwarf2_frame_find_fde): Update.
12368 (dwarf2_build_frame_info): Use "new".
12369
a9d65418
TT
123702020-02-12 Tom Tromey <tom@tromey.com>
12371
12372 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12373 (dwarf2_fde_table): Typedef for std::vector.
12374 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12375 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12376 (decode_frame_entry): Update.
12377 (dwarf2_build_frame_info): Use "new".
12378
7559c217
CB
123792020-02-12 Christian Biesinger <cbiesinger@google.com>
12380
12381 * arm-tdep.c (arm_gdbarch_init): Update.
12382 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12383 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12384 have_neon, is_m>: Change to bool.
12385
aeefc73c
CB
123862020-02-12 Christian Biesinger <cbiesinger@google.com>
12387
12388 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12389
d27b8e5f
TT
123902020-02-12 Tom Tromey <tom@tromey.com>
12391
12392 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12393
cd5900f3
HD
123942020-02-12 Hannes Domani <ssbssa@yahoo.de>
12395
12396 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12397 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12398
f056b22b
TT
123992020-02-11 Tom Tromey <tom@tromey.com>
12400
12401 * psymtab.h: Update comment.
12402
f92ff6b5
TT
124032020-02-11 Tom Tromey <tom@tromey.com>
12404
12405 * gdb_obstack.h (struct auto_obstack): Use
12406 DISABLE_COPY_AND_ASSIGN.
12407
3fd6912b
TT
124082020-02-11 Tom Tromey <tom@tromey.com>
12409
12410 * dwarf2/frame.h (struct objfile): Don't forward declare.
12411
69ed9b74
CB
124122020-02-11 Christian Biesinger <cbiesinger@google.com>
12413
12414 * cris-tdep.c (cris_supply_gregset): Change signature to match
12415 what struct regset expects.
12416 (cris_regset): New struct.
12417 (fetch_core_registers): Remove.
12418 (cris_iterate_over_regset_sections): New function.
12419 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12420 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12421
bda874f6
CB
124222020-02-11 Christian Biesinger <cbiesinger@google.com>
12423
12424 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12425 registers.
12426
754e1564
CB
124272020-02-11 Christian Biesinger <cbiesinger@google.com>
12428
12429 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12430
8ddd8e0e
SM
124312020-02-11 Simon Marchi <simon.marchi@efficios.com>
12432
12433 * configure: Re-generate.
12434
898e7f60
SM
124352020-02-11 Simon Marchi <simon.marchi@efficios.com>
12436
12437 * configure: Re-generate.
12438
58df732b
SM
124392020-02-11 Simon Marchi <simon.marchi@efficios.com>
12440
12441 * acinclude: Update warning.m4 path.
12442 * warning.m4: Move to gdbsupport.
12443
da5bd37e
TT
124442020-02-11 Tom Tromey <tromey@adacore.com>
12445
12446 * remote.c (remote_console_output): Update.
12447 * printcmd.c (printf_command): Update.
12448 * event-loop.c (gdb_wait_for_event): Update.
12449 * linux-nat.c (sigchld_handler): Update.
12450 * remote-sim.c (gdb_os_write_stdout): Update.
12451 (gdb_os_flush_stdout): Update.
12452 (gdb_os_flush_stderr): Update.
12453 (gdb_os_write_stderr): Update.
12454 * exceptions.c (print_exception): Update.
12455 * remote-fileio.c (remote_fileio_func_read): Update.
12456 (remote_fileio_func_write): Update.
12457 * tui/tui.c (tui_enable): Update.
12458 * tui/tui-interp.c (tui_interp::init): Update.
12459 * utils.c (init_page_info): Update.
12460 (putchar_unfiltered, fputc_unfiltered): Update.
12461 (gdb_flush): Update.
12462 (emit_style_escape): Update.
12463 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12464 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12465 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12466 (stderr_file::write): Update.
12467 (stderr_file::puts): Update.
12468 * ui-file.h (ui_file_isatty, ui_file_write)
12469 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12470 (ui_file_puts): Don't declare.
12471
85f0dd3c
TV
124722020-02-10 Tom de Vries <tdevries@suse.de>
12473
12474 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12475 sentinel to char *.
12476
2e927613
TV
124772020-02-09 Tom de Vries <tdevries@suse.de>
12478
12479 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12480 filename if it matches "<artificial>".
12481
6bafc845
HD
124822020-02-09 Hannes Domani <ssbssa@yahoo.de>
12483
12484 * windows-tdep.c (struct enum_value_name): New struct.
12485 (create_enum): New function.
12486 (windows_get_siginfo_type): Create and use enum types.
12487
7928d571
HD
124882020-02-09 Hannes Domani <ssbssa@yahoo.de>
12489
12490 * NEWS: Mention $_siginfo support for Windows.
12491 * windows-nat.c (handle_exception): Set siginfo_er.
12492 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12493 (windows_xfer_siginfo): New function.
12494 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12495 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12496 (init_windows_gdbarch_data): New function.
12497 (get_windows_gdbarch_data): New function.
12498 (windows_get_siginfo_type): New function.
12499 (windows_init_abi): Register windows_get_siginfo_type.
12500 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12501
6751ebae
TT
125022020-02-08 Tom Tromey <tom@tromey.com>
12503
12504 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12505 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12506 <keep>: Declare method.
12507 <m_keep>: Remove member.
12508 <~cutu_reader>: Remove.
12509 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12510 (cutu_reader::cutu_reader): Update.
12511 (cutu_reader::keep): Rename from ~cutu_reader.
12512 (process_psymtab_comp_unit, build_type_psymtabs_1)
12513 (process_skeletonless_type_unit, load_partial_comp_unit)
12514 (load_full_comp_unit, dwarf2_read_addr_index)
12515 (read_signatured_type): Update.
12516
135f5437
TT
125172020-02-08 Tom Tromey <tom@tromey.com>
12518
12519 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12520 "want_partial_unit" parameter.
12521 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12522 Inline check for DW_TAG_partial_unit.
12523 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12524
9f66ff1c
TT
125252020-02-08 Tom Tromey <tom@tromey.com>
12526
12527 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12528 read.c.
12529 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12530 read.c.
12531
c8a7a66f
TT
125322020-02-08 Tom Tromey <tom@tromey.com>
12533
12534 * dwarf2/read.c (read_address): Move to comp-unit.c.
12535 (dwarf2_rnglists_process, dwarf2_ranges_process)
12536 (read_attribute_value, dwarf_decode_lines_1)
12537 (var_decode_location, decode_locdesc): Update.
12538 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12539 read.c. Remove "cu" parameter.
12540 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12541 method.
12542
8266302d
TT
125432020-02-08 Tom Tromey <tom@tromey.com>
12544
12545 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12546 (read_indirect_line_string): Update.
12547 * dwarf2/comp-unit.c (read_offset): Remove.
12548 (read_comp_unit_head): Update.
12549 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12550 method.
12551 (read_offset): Don't declare.
12552
4057dfde
TT
125532020-02-08 Tom Tromey <tom@tromey.com>
12554
12555 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12556 * dwarf2/read.c (struct comp_unit_head): Move to
12557 dwarf2/comp-unit.h.
12558 (enum class rcuh_kind): Move to comp-unit.h.
12559 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12560 (read_comp_unit_head, error_check_comp_unit_head)
12561 (read_and_check_comp_unit_head): Move to comp-unit.c.
12562 (read_offset, dwarf_unit_type_name): Likewise.
12563 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12564 (cutu_reader::cutu_reader, read_call_site_scope)
12565 (find_partial_die, follow_die_offset): Update.
12566 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12567
24aa364d
TT
125682020-02-08 Tom Tromey <tom@tromey.com>
12569
12570 * dwarf2/read.c (read_offset_1): Move to leb.c.
12571 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12572 (dwarf_decode_macro_bytes): Update.
12573 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12574 * dwarf2/leb.h (read_offset): Declare.
12575
2c7d5afc
TT
125762020-02-08 Tom Tromey <tom@tromey.com>
12577
12578 * dwarf2/read.c (dwarf2_section_size): Remove.
12579 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12580 Update.
12581 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12582
4075cb26
TT
125832020-02-08 Tom Tromey <tom@tromey.com>
12584
12585 * dwarf2/read.c (read_initial_length): Move to leb.c.
12586 * dwarf2/leb.h (read_initial_length): Declare.
12587 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12588 handle_nonstd parameter.
12589 * dwarf2/frame.c (read_initial_length): Remove.
12590 (decode_frame_entry_1): Update.
12591
09ba997f
TT
125922020-02-08 Tom Tromey <tom@tromey.com>
12593
12594 * dwarf2/loc.c (dwarf2_find_location_expression)
12595 (dwarf_evaluate_loc_desc::get_tls_address)
12596 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12597 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12598 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12599 (dwarf2_compile_property_to_c)
12600 (dwarf2_loc_desc_get_symbol_read_needs)
12601 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12602 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12603 (loclist_describe_location, loclist_tracepoint_var_ref)
12604 (loclist_generate_c_location): Update.
12605 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12606 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12607 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12608 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12609 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12610 (dwarf2_per_cu_data::addr_size)
12611 (dwarf2_per_cu_data::ref_addr_size)
12612 (dwarf2_per_cu_data::text_offset)
12613 (dwarf2_per_cu_data::addr_type): Now methods.
12614 (per_cu_header_read_in): Make per_cu "const".
12615 (dwarf2_version): Remove.
12616 (dwarf2_per_cu_data::int_type): Now a method.
12617 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12618 (set_die_type, read_array_type, read_subrange_index_type)
12619 (read_tag_string_type, read_subrange_type): Update.
12620 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12621 offset_size, ref_addr_size, text_offset, addr_type, version,
12622 objfile, int_type, addr_sized_int_type>: Declare methods.
12623
96c738c0
TT
126242020-02-08 Tom Tromey <tom@tromey.com>
12625
12626 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12627 Move earlier.
12628
8fdd972c
TT
126292020-02-08 Tom Tromey <tom@tromey.com>
12630
12631 * dwarf2/read.h (dwarf_line_debug): Declare.
12632 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12633 * dwarf2/read.c: Move line_header code to new files.
12634 (dwarf_line_debug): No longer static.
12635 * dwarf2/line-header.c: New file.
12636 * dwarf2/line-header.h: New file.
12637
03075812
TT
126382020-02-08 Tom Tromey <tom@tromey.com>
12639
12640 * dwarf2/read.c (struct line_header) <file_full_name,
12641 file_file_name>: Return unique_xmalloc_ptr.
12642 (line_header::file_file_name): Update.
12643 (line_header::file_full_name): Update.
12644 (dw2_get_file_names_reader): Update.
12645 (macro_start_file): Update.
12646
bb822404
TT
126472020-02-08 Tom Tromey <tom@tromey.com>
12648
12649 * dwarf2/read.c (struct line_header) <file_full_name,
12650 file_file_name>: Declare methods.
12651 (dw2_get_file_names_reader): Update.
12652 (file_file_name): Now a method.
12653 (file_full_name): Likewise.
12654 (macro_start_file): Update.
12655
009b64fc
TT
126562020-02-08 Tom Tromey <tom@tromey.com>
12657
12658 * dwarf2/read.c (dwarf_always_disassemble)
12659 (show_dwarf_always_disassemble): Move to loc.c.
12660 (_initialize_dwarf2_read): Move "always-disassemble" registration
12661 to loc.c.
12662 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12663 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12664 static.
12665 (show_dwarf_always_disassemble): Move from read.c.
12666 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12667
5895093f
TT
126682020-02-08 Tom Tromey <tom@tromey.com>
12669
12670 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12671 (create_quick_file_names_table): Return htab_up.
12672 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12673 Update.
12674 * dwarf2/read.h (struct dwarf2_per_objfile)
12675 <quick_file_names_table>: Now htab_up.
12676
b3b32279
TT
126772020-02-08 Tom Tromey <tom@tromey.com>
12678
12679 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12680
1d33d811
TT
126812020-02-08 Tom Tromey <tom@tromey.com>
12682
12683 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12684 Rewrite.
12685 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12686 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12687 (abbrev_table::abbrev_table): No longer inline.
12688 (ABBREV_HASH_SIZE): Remove.
12689 (abbrev_table::m_abbrevs): Now an htab_up.
12690
86de1d91
TT
126912020-02-08 Tom Tromey <tom@tromey.com>
12692
12693 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12694 (cutu_reader): Update.
12695 (build_type_psymtabs_1): Update.
12696 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12697 (abbrev_table::alloc_abbrev): Update.
12698 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12699 (abbrev_table::read): New static method, renamed from
12700 abbrev_table_read_table.
12701 (abbrev_table::alloc_abbrev)
12702 (abbrev_table::add_abbrev): Now private.
12703 (abbrev_table::abbrev_table): Now private.
12704 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12705
0335378b
TT
127062020-02-08 Tom Tromey <tom@tromey.com>
12707
12708 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12709 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12710 htab_up.
12711
48b490f2
TT
127122020-02-08 Tom Tromey <tom@tromey.com>
12713
12714 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12715 htab_up.
12716 (lookup_dwo_unit_in_dwp): Update.
12717 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12718 on obstack.
12719
bc68fb19
TT
127202020-02-08 Tom Tromey <tom@tromey.com>
12721
12722 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12723 obstack.
12724
d15acc42
TT
127252020-02-08 Tom Tromey <tom@tromey.com>
12726
12727 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12728 line_header_hash.
12729 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12730 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12731 Change type to htab_up.
12732
eaa5fa8b
TT
127332020-02-08 Tom Tromey <tom@tromey.com>
12734
12735 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12736 htab_up. Don't allocate on obstack.
12737 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12738 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12739 Change type to htab_up.
12740
b0b6a987
TT
127412020-02-08 Tom Tromey <tom@tromey.com>
12742
12743 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12744 Change type to htab_up.
12745 * dwarf2/read.c (create_signatured_type_table_from_index)
12746 (create_signatured_type_table_from_debug_names)
12747 (create_all_type_units, add_type_unit)
12748 (lookup_dwo_signatured_type, lookup_signatured_type)
12749 (process_skeletonless_type_unit): Update.
12750 (create_debug_type_hash_table, create_debug_types_hash_table):
12751 Change type of types_htab.
12752 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12753 htab_up. Don't allocate on obstack.
12754 (create_cus_hash_table): Change type of cus_htab parameter.
12755 (struct dwo_file) <cus, tus>: Now htab_up.
12756 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12757 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12758 (queue_and_load_all_dwo_tus): Update.
12759 * dwarf2/index-write.c (write_gdbindex): Update.
12760 (write_debug_names): Update.
12761
39856def
TT
127622020-02-08 Tom Tromey <tom@tromey.com>
12763
12764 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12765 dwarf2/read.c. Remove "next" member. Add constructor ntad
12766 destructor.
12767 (struct dwarf2_per_objfile) <queue>: New member.
12768 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12769 dwarf2/read.h.
12770 (dwarf2_queue, dwarf2_queue_tail): Remove.
12771 (class dwarf2_queue_guard): Add parameter to constructor. Use
12772 DISABLE_COPY_AND_ASSIGN.
12773 <m_per_objfile>: New member.
12774 <~dwarf2_queue_guard>: Rewrite.
12775 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12776 Update.
12777 (~dwarf2_queue_item): New.
12778
3e225074
TT
127792020-02-08 Tom Tromey <tom@tromey.com>
12780
12781 * dwarf2/read.c (struct die_info) <has_children>: New member.
12782 (dw2_get_file_names_reader): Remove has_children.
12783 (dw2_get_file_names): Update.
12784 (read_cutu_die_from_dwo): Remove has_children.
12785 (cutu_reader::init_tu_and_read_dwo_dies)
12786 (cutu_reader::cutu_reader): Update.
12787 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12788 Remove has_children.
12789 (build_type_psymtabs_1, process_skeletonless_type_unit)
12790 (load_partial_comp_unit, load_full_comp_unit): Update.
12791 (create_dwo_cu_reader): Remove has_children.
12792 (create_cus_hash_table, read_die_and_children): Update.
12793 (read_full_die_1,read_full_die): Remove has_children.
12794 (read_signatured_type): Update.
12795 (class cutu_reader) <has_children>: Remove.
12796
82ca8957
TT
127972020-02-08 Tom Tromey <tom@tromey.com>
12798
12799 * dwarf2/expr.c: Rename from dwarf2expr.c.
12800 * dwarf2/expr.h: Rename from dwarf2expr.h.
12801 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12802 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12803 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12804 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12805 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12806 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12807 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12808 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12809 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12810 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12811 * dwarf2/loc.c: Rename from dwarf2loc.c.
12812 * dwarf2/loc.h: Rename from dwarf2loc.h.
12813 * dwarf2/read.c: Rename from dwarf2read.c.
12814 * dwarf2/read.h: Rename from dwarf2read.h.
12815 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12816 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12817 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12818 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12819 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12820 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12821 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12822 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12823 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12824 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12825 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12826 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12827 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12828 Update.
12829 * Makefile.in (COMMON_SFILES): Update.
12830 (HFILES_NO_SRCDIR): Update.
12831
9e35d499
TT
128322020-02-08 Tom Tromey <tom@tromey.com>
12833
12834 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12835 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12836
1eba2311
TT
128372020-02-08 Tom Tromey <tom@tromey.com>
12838
12839 * dwarf2read.h (struct die_info): Don't declare.
12840
e41c2da2
TT
128412020-02-08 Tom Tromey <tom@tromey.com>
12842
12843 * dwarf2read.h (die_info_ptr): Remove typedef.
12844
4fc6c0d5
TT
128452020-02-08 Tom Tromey <tom@tromey.com>
12846
12847 * dwarf2read.c (read_call_site_scope)
12848 (handle_data_member_location, dwarf2_add_member_fn)
12849 (mark_common_block_symbol_computed, read_common_block)
12850 (attr_to_dynamic_prop, partial_die_info::read)
12851 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12852 (dwarf2_symbol_mark_computed, set_die_type): Update.
12853 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12854 method.
12855 (attr_form_is_block): Don't declare.
12856 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12857
cd6c91b4
TT
128582020-02-08 Tom Tromey <tom@tromey.com>
12859
12860 * dwarf2read.c (dwarf2_find_base_address, )
12861 (read_call_site_scope, rust_containing_type)
12862 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12863 (handle_data_member_location, dwarf2_add_member_fn)
12864 (get_alignment, read_structure_type, process_structure_scope)
12865 (mark_common_block_symbol_computed, read_common_block)
12866 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12867 (partial_die_info::read, read_attribute_value, new_symbol)
12868 (lookup_die_type, dwarf2_get_ref_die_offset)
12869 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12870 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12871 (dwarf2_symbol_mark_computed): Update.
12872 * dwarf2/attribute.h (struct attribute) <value_as_address,
12873 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12874 methods.
12875 (value_as_address, attr_form_is_section_offset)
12876 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12877 * dwarf2/attribute.c (attribute::value_as_address)
12878 (attribute::form_is_section_offset, attribute::form_is_constant)
12879 (attribute::form_is_ref): Now methods.
12880
162dce55
TT
128812020-02-08 Tom Tromey <tom@tromey.com>
12882
12883 * dwarf2read.c (struct attribute, DW_STRING)
12884 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12885 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12886 (attr_form_is_block, attr_form_is_section_offset)
12887 (attr_form_is_constant, attr_form_is_ref): Move.
12888 * dwarf2/attribute.h: New file.
12889 * dwarf2/attribute.c: New file, from dwarf2read.c.
12890 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12891
3054dd54
TT
128922020-02-08 Tom Tromey <tom@tromey.com>
12893
12894 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12895 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12896 Move.
12897 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12898 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12899 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12900 abbrev.c.
12901 * dwarf2/abbrev.h: New file.
12902 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12903 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12904
96b79293
TT
129052020-02-08 Tom Tromey <tom@tromey.com>
12906
12907 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12908 (dwarf2_section_size, dwarf2_get_section_info)
12909 (create_signatured_type_table_from_debug_names)
12910 (create_addrmap_from_aranges, read_debug_names_from_section)
12911 (get_gdb_index_contents_from_section, read_comp_unit_head)
12912 (error_check_comp_unit_head, read_abbrev_offset)
12913 (create_debug_type_hash_table, init_cu_die_reader)
12914 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12915 (read_comp_units_from_section, create_cus_hash_table)
12916 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12917 (create_dwp_v2_section, dwarf2_rnglists_process)
12918 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12919 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12920 (read_indirect_string_from_dwz, read_addr_index_1)
12921 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12922 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12923 (fill_in_loclist_baton): Update.
12924 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12925 get_containing_section, get_bfd_owner, get_bfd_section,
12926 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12927 (dwarf2_read_section, get_section_name, get_section_file_name)
12928 (get_containing_section, get_section_bfd_owner)
12929 (get_section_bfd_section, get_section_name, get_section_file_name)
12930 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12931 declare.
12932 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12933 (dwarf2_section_info::get_bfd_owner)
12934 (dwarf2_section_info::get_bfd_section)
12935 (dwarf2_section_info::get_name)
12936 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12937 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12938 (dwarf2_section_info::read): Now methods.
12939 * dwarf-index-write.c (class debug_names): Update.
12940
2c86cff9
TT
129412020-02-08 Tom Tromey <tom@tromey.com>
12942
12943 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12944 Move to dwarf2/section.h.
12945 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12946 (get_section_bfd_section, get_section_name)
12947 (get_section_file_name, get_section_id, get_section_flags)
12948 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12949 dwarf2/section.c.
12950 * dwarf2/section.h: New file.
12951 * dwarf2/section.c: New file, from dwarf2read.c.
12952 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12953
f4382c45
TT
129542020-02-08 Tom Tromey <tom@tromey.com>
12955
12956 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12957 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12958 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12959 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12960 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12961 * dwarf2/leb.h: New file, from dwarf2read.c.
12962 * dwarf2/leb.c: New file, from dwarf2read.c.
12963 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12964 Remove.
12965 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12966 (COMMON_SFILES): Add dwarf2/leb.c.
12967
01840b7a
JB
129682020-02-08 Joel Brobecker <brobecker@adacore.com>
12969
12970 GDB 9.1 released.
12971
dfcb27e4
IB
129722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12973
12974 PR gdb/25190:
aac66a4c
SM
12975 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12976 * gdb/remote.c (remote_console_output): Update.
12977 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12978 (ui_file_puts): ...this.
12979 * gdb/ui-file.h (ui_file_puts): Add declaration.
12980 * gdb/utils.c (emit_style_escape): Update.
12981 (flush_wrap_buffer): Update.
12982 (fputs_maybe_filtered): Update.
12983 (fputs_unfiltered): Add function.
dfcb27e4 12984
faa17681
IB
129852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12986
aac66a4c
SM
12987 * gdb/event-loop.c (gdb_wait_for_event): Update.
12988 * gdb/printcmd.c (printf_command): Update.
12989 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12990 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12991 (gdb_os_flush_stderr): Update.
12992 * gdb/remote.c (remote_console_output): Update.
12993 * gdb/ui-file.c (gdb_flush): Rename to...
12994 (ui_file_flush): ...this.
12995 (stderr_file::write): Update.
12996 (stderr_file::puts): Update.
12997 * gdb/ui-file.h (gdb_flush): Rename to...
12998 (ui_file_flush): ...this.
12999 * gdb/utils.c (gdb_flush): Add function.
13000 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13001
5abbbe1d
TT
130022020-02-07 Tom Tromey <tromey@adacore.com>
13003
13004 PR breakpoints/24915:
13005 * source.c (find_and_open_source): Do not check basenames_may_differ.
13006
919adfe8
TT
130072020-02-07 Tom Tromey <tom@tromey.com>
13008
13009 * README: Update gdbserver documentation.
13010 * gdbserver: Move to top level.
13011 * configure.tgt (build_gdbserver): Remove.
13012 * configure.ac: Remove --enable-gdbserver.
13013 * configure: Rebuild.
13014 * Makefile.in (distclean): Don't mention gdbserver.
13015
1d5d29e7
SV
130162020-02-06 Shahab Vahedi <shahab@synopsys.com>
13017
13018 * source-cache.c (source_cache::ensure): Surround
13019 get_plain_source_lines with a try/catch.
13020 (source_cache::get_line_charpos): Get rid of try/catch
13021 and only check for the return value of "ensure".
13022 * tui/tui-source.c (tui_source_window::set_contents):
13023 Simplify "nlines" calculation.
13024
6eb1129c
SV
130252020-02-06 Shahab Vahedi <shahab@synopsys.com>
13026
13027 * MAINTAINERS (Write After Approval): Add myself.
13028
c6a42d11
CB
130292020-02-05 Christian Biesinger <cbiesinger@google.com>
13030
13031 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13032 function call.
13033
c8ecdda6
CB
130342020-02-05 Christian Biesinger <cbiesinger@google.com>
13035
13036 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13037
f6480e70
MR
130382020-02-05 Maciej W. Rozycki <macro@wdc.com>
13039
13040 * nat/riscv-linux-tdesc.h: New file.
13041 * nat/riscv-linux-tdesc.c: New file, taking code from...
13042 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13043 ... here.
13044 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13045 NATDEPFILES.
13046
dcc9fbc6
AB
130472020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13048
13049 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13050 we don't set the fake simulator ptid to the null_ptid.
13051
719546c4
SM
130522020-02-03 Simon Marchi <simon.marchi@efficios.com>
13053
13054 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13055 * gdbthread.h (class thread_info) <resumed>: Likewise.
13056 * infrun.c (resume_1): Likewise.
13057 (proceed): Likewise.
13058 (infrun_thread_stop_requested): Likewise.
13059 (stop_all_threads): Likewise.
13060 (handle_inferior_event): Likewise.
13061 (restart_threads): Likewise.
13062 (finish_step_over): Likewise.
13063 (keep_going_stepped_thread): Likewise.
13064 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13065 (linux_handle_extended_wait): Likewise.
13066 * record-btrace.c (get_thread_current_frame_id): Likewise.
13067 * record-full.c (record_full_wait_1): Likewise.
13068 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13069 * target.c (target_resume): Likewise.
13070 * thread.c (set_running_thread): Likewise.
13071
e409c542
AKS
130722020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13073
13074 * f-valprint.c (f77_print_array_1): Changed datatype of index
13075 variable to LONGEST from int to enable it to contain bound
13076 values correctly.
13077
ee98c0da
MR
130782020-02-03 Maciej W. Rozycki <macro@wdc.com>
13079
13080 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13081 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13082 offsets according to FLEN determined.
13083 (riscv_linux_nat_target::read_description): Determine FLEN
13084 dynamically.
13085 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13086 according to FLEN determined.
13087 (riscv_linux_nat_target::store_registers): Likewise.
13088
aa66aac4
SV
130892020-02-01 Shahab Vahedi <shahab@synopsys.com>
13090
13091 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13092 when reg->group is empty and reggroup is not.
13093
fd9faca8
TT
130942020-01-31 Tom Tromey <tromey@adacore.com>
13095
13096 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13097 Call beneath target's mourn_inferior after unpushing.
13098
42330a68
AB
130992020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13100
13101 PR tui/9765
13102 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13103 have enough lines to fill the screen, still return the lowest
13104 address we found.
13105
7a27a45b
AB
131062020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13107
13108 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13109 '-', '<', and '>' commands.
13110
c47f70e2
PA
131112020-01-29 Pedro Alves <palves@redhat.com>
13112 Sergio Durigan Junior <sergiodj@redhat.com>
13113
13114 * infcmd.c (construct_inferior_arguments): Assert that
13115 'argc' is greater than 0.
13116
5133a315
LM
131172020-01-29 Luis Machado <luis.machado@linaro.org>
13118
13119 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13120 (BRK_INSN_MASK): Define to 0xd4200000.
13121 (aarch64_program_breakpoint_here_p): New function.
13122 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13123 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13124 breakpoint.c.
13125 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13126 breakpoint.h
13127 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13128 call gdbarch_program_breakpoint_here_p.
13129 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13130 default_program_breakpoint_here_p, changed return type to bool and
13131 simplified.
13132 * breakpoint.h (program_breakpoint_here): Moved prototype to
13133 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13134 return type to bool.
13135 * gdbarch.c: Regenerate.
13136 * gdbarch.h: Regenerate.
13137 * gdbarch.sh (program_breakpoint_here_p): New method.
13138 * infrun.c (handle_signal_stop): Call
13139 gdbarch_program_breakpoint_here_p.
13140
168f8c6b
TT
131412020-01-26 Tom Tromey <tom@tromey.com>
13142
13143 * ctfread.c (struct ctf_fp_info): Reindent.
13144 (_initialize_ctfread): Remove.
13145
128a391f
TT
131462020-01-26 Tom Tromey <tom@tromey.com>
13147
13148 * psymtab.c (partial_map_expand_apply)
13149 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13150 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13151 (psym_print_stats, psym_expand_symtabs_for_function)
13152 (psym_map_symbol_filenames, psym_map_matching_symbols)
13153 (psym_expand_symtabs_matching)
13154 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13155 (maintenance_check_psymtabs): Use new methods.
13156 * psympriv.h (struct partial_symtab) <readin_p,
13157 get_compunit_symtab>: New methods.
13158 <readin, compunit_symtab>: Remove members.
13159 (struct standard_psymtab): New.
13160 (struct legacy_psymtab): Derive from standard_psymtab.
13161 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13162 standard_psymtab.
13163 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13164
0494dbec
TT
131652020-01-26 Tom Tromey <tom@tromey.com>
13166
13167 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13168 read_dependencies. Add assert.
13169 * psymtab.c (partial_symtab::read_dependencies): New method.
13170 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13171 method.
13172 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13173 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13174 read_dependencies.
13175 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13176 Add assert.
13177
8566b89b
TT
131782020-01-26 Tom Tromey <tom@tromey.com>
13179
13180 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13181 Call expand_psymtab.
13182 (xcoff_read_symtab): Call expand_psymtab.
13183 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13184 legacy_expand_psymtab.
13185 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13186 method.
13187 (struct legacy_psymtab) <expand_psymtab>: Implement.
13188 <legacy_expand_psymtab>: New member.
13189 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13190 (parse_partial_symbols): Set legacy_expand_psymtab.
13191 (psymtab_to_symtab_1): Change argument order. Call
13192 expand_psymtab.
13193 (new_psymtab): Set legacy_expand_psymtab.
13194 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13195 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13196 expand_psymtab.
13197 (dwarf2_psymtab::expand_psymtab): Rename from
13198 psymtab_to_symtab_1. Call expand_psymtab.
13199 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13200 (dbx_end_psymtab): Likewise.
13201 (dbx_psymtab_to_symtab_1): Change argument order. Call
13202 expand_psymtab.
13203 (dbx_read_symtab): Call expand_psymtab.
13204 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13205 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13206 (ctf_psymtab::read_symtab): Call expand_psymtab.
13207
077cbab2
TT
132082020-01-26 Tom Tromey <tom@tromey.com>
13209
13210 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13211 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13212 messages.
13213 * mdebugread.c (mdebug_read_symtab): Remove prints.
13214 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13215 assert.
13216 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13217
891813be
TT
132182020-01-26 Tom Tromey <tom@tromey.com>
13219
13220 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13221 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13222 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13223 legacy_symtab.
13224 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13225 * psymtab.c (psymtab_to_symtab): Call method.
13226 (dump_psymtab): Update.
13227 * psympriv.h (struct partial_symtab): Add virtual destructor.
13228 <read_symtab>: New method.
13229 (struct legacy_symtab): New.
13230 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13231 (struct pst_map) <pst>: Now a legacy_psymtab.
13232 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13233 (new_psymtab): Use legacy_psymtab.
13234 * dwarf2read.h (struct dwarf2_psymtab): New.
13235 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13236 * dwarf2read.c (dwarf2_create_include_psymtab)
13237 (dwarf2_build_include_psymtabs, create_type_unit_group)
13238 (create_partial_symtab, process_psymtab_comp_unit_reader)
13239 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13240 (set_partial_user): Use dwarf2_psymtab.
13241 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13242 (psymtab_to_symtab_1, process_full_comp_unit)
13243 (process_full_type_unit, dwarf2_ranges_read)
13244 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13245 (dwarf_decode_lines): Use dwarf2_psymtab.
13246 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13247 (add_address_entry_worker, write_one_signatured_type)
13248 (recursively_count_psymbols, recursively_write_psymbols)
13249 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13250 (write_debug_names): Likewise.
13251 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13252 <pst>: Now a legacy_psymtab.
13253 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13254 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13255 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13256 * ctfread.c (struct ctf_psymtab): New.
13257 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13258 ctf_psymtab.
13259 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13260 (create_partial_symtab): Return a ctf_psymtab.
13261 (scan_partial_symbols): Update.
13262
c3693a1d
TT
132632020-01-26 Tom Tromey <tom@tromey.com>
13264
13265 * xcoffread.c (xcoff_start_psymtab): Use new.
13266 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13267 renamed from start_psymtab_common.
13268 * psympriv.h (struct partial_symtab): Add new constructor.
13269 (start_psymtab_common): Don't declare.
13270 * mdebugread.c (parse_partial_symbols): Use new.
13271 * dwarf2read.c (create_partial_symtab): Use new.
13272 * dbxread.c (start_psymtab): Use new.
13273 * ctfread.c (create_partial_symtab): Use new.
13274
32caafd0
TT
132752020-01-26 Tom Tromey <tom@tromey.com>
13276
13277 * xcoffread.c (xcoff_end_psymtab): Use new.
13278 * psymtab.c (start_psymtab_common): Use new.
13279 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13280 Update.
13281 * psympriv.h (struct partial_symtab): Add parameters to
13282 constructor. Don't inline.
13283 (allocate_psymtab): Don't declare.
13284 * mdebugread.c (new_psymtab): Use new.
13285 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13286 * dbxread.c (dbx_end_psymtab): Use new.
13287
abaa2f23
TT
132882020-01-26 Tom Tromey <tom@tromey.com>
13289
13290 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13291 allocate_psymtab. Update documentation.
13292 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13293 allocate_psymtab. Do not use new.
13294 (allocate_psymtab): Use new. Update.
13295
6d94535f
TT
132962020-01-26 Tom Tromey <tom@tromey.com>
13297
13298 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13299 * psymtab.c (psym_print_stats): Update.
13300 * psympriv.h (struct partial_symtab) <readin,
13301 psymtabs_addrmap_supported, anonymous>: Now bool.
13302 * mdebugread.c (psymtab_to_symtab_1): Update.
13303 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13304 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13305 (process_full_comp_unit, process_full_type_unit): Update.
13306 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13307 * ctfread.c (psymtab_to_symtab): Update.
13308
6f17252b
TT
133092020-01-26 Tom Tromey <tom@tromey.com>
13310
13311 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13312 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13313 * psymtab.c (psymtab_storage): Delete psymtabs.
13314 (psymtab_storage::allocate_psymtab): Use new.
13315 (psymtab_storage::discard_psymtab): Use delete.
13316 * psympriv.h (struct partial_symtab): Add constructor and
13317 initializers.
13318
f6f1cebc
TT
133192020-01-26 Tom Tromey <tom@tromey.com>
13320
13321 * machoread.c: Do not include psympriv.h.
13322
e47e48f6
PW
133232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13324
13325 * NEWS: Mention the new option and the set/show commands.
13326
a2fedca9
PW
133272020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13328
13329 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13330 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13331 (validate_exec_file): New variables, enums, functions.
13332 (exec_file_locate_attach, print_section_info): Style the filenames.
13333 (_initialize_exec): Install show_exec_file_mismatch_command and
13334 set_exec_file_mismatch_command.
13335 * gdbcore.h (validate_exec_file): Declare.
13336 * infcmd.c (attach_command): Call validate_exec_file.
13337 * remote.c ( remote_target::remote_add_inferior): Likewise.
13338
7ffa82e1
AB
133392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13340
13341 * frame.c (find_frame_sal): Move call to get_next_frame into more
13342 inner scope.
13343 * inline-frame.c (inilne_state) <inline_state>: Update argument
13344 types.
13345 (inilne_state) <skipped_symbol>: Rename to...
13346 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13347 (skip_inline_frames): Build vector of skipped symbols and use this
13348 to reate the inline_state.
13349 (inline_skipped_symbol): Add a comment and some assertions, fetch
13350 skipped symbol from the list.
13351
3d92a3e3
AB
133522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13353
13354 * buildsym.c (lte_is_less_than): Delete.
13355 (buildsym_compunit::end_symtab_with_blockvector): Create local
13356 lambda function to sort line table entries, and use
13357 std::stable_sort instead of std::sort.
13358 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13359 markers when looking for a previous line.
13360
94a72be7
AB
133612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13362
13363 * dwarf2read.c (lnp_state_machine::record_line): Include
13364 end_sequence parameter in debug print out. Record the line if we
13365 are at an end_sequence marker even if it's not the start of a
13366 statement.
13367 * symmisc.c (maintenance_print_one_line_table): Print end of
13368 sequence markers with 'END' not '0'.
13369
53af73bf
PA
133702020-01-24 Pedro Alves <palves@redhat.com>
13371
13372 PR gdb/25410
13373 * thread.c (scoped_restore_current_thread::restore): Use
13374 switch_to_inferior_no_thread.
13375 * exec.c: Include "progspace-and-thread.h".
13376 (add_target_sections, remove_target_sections):
13377 scoped_restore_current_pspace_and_thread instead of
13378 scoped_restore_current_thread.
13379 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13380 and aspace to the inferior before calling clone_program_space.
13381 Remove stale comment.
13382
3050c6f4
CB
133832020-01-24 Christian Biesinger <cbiesinger@google.com>
13384
13385 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13386 (arm_netbsd_nat_target::fetch_registers): ...this.
13387 (arm_nbsd_nat_target::store_registers): Rename to...
13388 (arm_netbsd_nat_target::store_registers): ...this.
13389
73685c7e
CB
133902020-01-24 Christian Biesinger <cbiesinger@google.com>
13391
13392 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13393 register_t.
13394
89203d40
CB
133952020-01-24 Christian Biesinger <cbiesinger@google.com>
13396
13397 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13398 Update comment.
13399 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13400 Likewise.
13401 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13402 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13403 the correct replacement (iterate_over_regset_sections).
13404 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13405 Update comment.
13406
1ba1ac88
AB
134072020-01-24 Graham Markall <graham.markall@embecosm.com>
13408
13409 PR gdb/23718
13410 * gdb/python/python.c (execute_gdb_command): Call
13411 async_enable_stdin in catch block.
13412
f3364a6d
AB
134132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13414
13415 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13416 SWITCH_THRU_ALL_UIS.
13417
733d0a67
AB
134182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13419
13420 PR tui/9765
13421 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13422 comment, add extra parameter, and update to store previous symbol
13423 when appropriate.
13424 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13425 add extra parameter.
13426 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13427 remove unneeded parameter, add try/catch around gdb_print_insn,
13428 rewrite to add items to asm_lines vector.
13429 (tui_find_backward_disassembly_start_address): New function.
13430 (tui_find_disassembly_address): Updated throughout.
13431 (tui_disasm_window::set_contents): Update for changes to
13432 tui_disassemble.
13433 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13434 number of lines to scroll.
13435
b3b3bada
SM
134362020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13437
13438 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13439 (SECT_OFF_DATA): Likewise.
13440 (SECT_OFF_RODATA): Likewise.
13441 (SECT_OFF_TEXT): Likewise.
13442 (SECT_OFF_BSS): Likewise.
13443 (struct objfile) <text_section_offset, data_section_offset>: New
13444 methods.
13445 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13446 objfile::text_section_offset.
13447 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13448 * coffread.c (coff_symtab_read): Likewise.
13449 (enter_linenos): Likewise.
13450 (process_coff_symbol): Likewise.
13451 * ctfread.c (get_objfile_text_range): Likewise.
13452 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13453 Use objfile::data_section_offset.
13454 * dwarf2-frame.c (execute_cfa_program): Use
13455 objfile::text_section_offset.
13456 (dwarf2_frame_find_fde): Likewise.
13457 * dwarf2read.c (create_addrmap_from_index): Likewise.
13458 (create_addrmap_from_aranges): Likewise.
13459 (dw2_find_pc_sect_compunit_symtab): Likewise.
13460 (process_psymtab_comp_unit_reader): Likewise.
13461 (add_partial_symbol): Likewise.
13462 (add_partial_subprogram): Likewise.
13463 (process_full_comp_unit): Likewise.
13464 (read_file_scope): Likewise.
13465 (read_func_scope): Likewise.
13466 (read_lexical_block_scope): Likewise.
13467 (read_call_site_scope): Likewise.
13468 (dwarf2_rnglists_process): Likewise.
13469 (dwarf2_ranges_process): Likewise.
13470 (dwarf2_ranges_read): Likewise.
13471 (dwarf_decode_lines_1): Likewise.
13472 (new_symbol): Likewise.
13473 (dwarf2_fetch_die_loc_sect_off): Likewise.
13474 (dwarf2_per_cu_text_offset): Likewise.
13475 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13476 * hppa-tdep.c (read_unwind_info): Likewise.
13477 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13478 * psympriv.h (struct partial_symtab): Likewise.
13479 * psymtab.c (find_pc_sect_psymtab): Likewise.
13480 * solib-svr4.c (enable_break): Likewise.
13481 * stap-probe.c (relocate_address): Use
13482 objfile::data_section_offset.
13483 * xcoffread.c (enter_line_range): Use
13484 objfile::text_section_offset.
13485 (read_xcoff_symtab): Likewise.
13486
ab53f382
SM
134872020-01-23 Simon Marchi <simon.marchi@efficios.com>
13488
13489 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13490 declaration to narrower scopes.
13491
e7eee665
SM
134922020-01-23 Simon Marchi <simon.marchi@efficios.com>
13493
13494 * darwin-nat.h (struct darwin_exception_msg, enum
13495 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13496 Move up.
13497 (class darwin_nat_target) <wait_1, check_new_threads,
13498 decode_exception_message, decode_message, stop_inferior,
13499 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13500 * darwin-nat.c (darwin_check_new_threads): Rename to...
13501 (darwin_nat_target::check_new_threads): ... this.
13502 (darwin_suspend_inferior_it): Remove.
13503 (darwin_decode_exception_message): Rename to...
13504 (darwin_nat_target::decode_exception_message): ... this.
13505 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13506 (darwin_decode_message): Rename to...
13507 (darwin_nat_target::decode_message): ... this.
13508 (cancel_breakpoint): Rename to...
13509 (darwin_nat_target::cancel_breakpoint): ... this.
13510 (darwin_wait): Rename to...
13511 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13512 instead of iterate_over_inferiors.
13513 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13514 (darwin_stop_inferior): Rename to...
13515 (darwin_nat_target::stop_inferior): ... this.
13516 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13517 (darwin_init_thread_list): Rename to...
13518 (darwin_nat_target::init_thread_list): ... this.
13519 (darwin_ptrace_him): Rename to...
13520 (darwin_nat_target::ptrace_him): ... this.
13521 (darwin_nat_target::create_inferior): Pass lambda function to
13522 fork_inferior.
13523 (darwin_nat_target::detach): Call stop_inferior instead of
13524 darwin_stop_inferior.
13525 * fork-inferior.h (fork_inferior): Change init_trace_fun
13526 parameter to gdb::function_view.
13527 * fork-inferior.c (fork_inferior): Likewise.
13528
c162ed3e
HD
135292020-01-23 Hannes Domani <ssbssa@yahoo.de>
13530
13531 * i386-cygwin-tdep.c (core_process_module_section): Update.
13532 * windows-nat.c (struct lm_info_windows): Add text_offset.
13533 (windows_xfer_shared_libraries): Update.
13534 * windows-tdep.c (windows_xfer_shared_library):
13535 Add text_offset_cached argument.
13536 * windows-tdep.h (windows_xfer_shared_library): Update.
13537
a1237872
SM
135382020-01-21 Simon Marchi <simon.marchi@efficios.com>
13539
13540 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13541
b3ee6dd9
SM
135422020-01-21 Simon Marchi <simon.marchi@efficios.com>
13543
13544 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13545 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13546 replace with range-based for.
13547 (gdbsim_interrupt_inferior): Remove.
13548 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13549 with a range-based for. Inline code from
13550 gdbsim_interrupt_inferior.
13551
f9fac3c8
SM
135522020-01-21 Simon Marchi <simon.marchi@efficios.com>
13553
13554 * infrun.c (proceed): Fix indentation.
13555
f6474de9
TT
135562020-01-21 Tom Tromey <tromey@adacore.com>
13557
13558 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13559 * python/python.c (python_extension_ops): Update.
13560 (gdbpy_colorize): New function.
13561 * python/lib/gdb/__init__.py (colorize): New function.
13562 * extension.h (ext_lang_colorize): Declare.
13563 * extension.c (ext_lang_colorize): New function.
13564 * extension-priv.h (struct extension_language_ops) <colorize>: New
13565 member.
13566 * cli/cli-style.c (_initialize_cli_style): Update help text.
13567
f0c702d4
LM
135682020-01-21 Luis Machado <luis.machado@linaro.org>
13569
13570 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13571 <cond>: Change type to bool.
13572 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13573 (aarch64_displaced_step_cb): Likewise.
13574 (aarch64_displaced_step_tb): Likewise.
13575
1ab139e5
LM
135762020-01-21 Luis Machado <luis.machado@linaro.org>
13577
13578 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13579 output.
13580
0c271889
LM
135812020-01-21 Luis Machado <luis.machado@linaro.org>
13582
13583 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13584 <pc_adjust>: Adjust the documentation.
13585 (aarch64_displaced_step_fixup): Check if PC really moved before
13586 adjusting it.
13587
4d89c1c7
TT
135882020-01-19 Tom Tromey <tom@tromey.com>
13589
13590 * disasm.c (~gdb_disassembler): New destructor.
13591 (gdb_buffered_insn_length): Call disassemble_free_target.
13592 * disasm.h (class gdb_disassembler): Declare destructor. Use
13593 DISABLE_COPY_AND_ASSIGN.
13594
c0ab21c2
TT
135952020-01-19 Tom Tromey <tom@tromey.com>
13596
13597 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13598 (die_reader_func_ftype): Remove.
13599 (cutu_reader): New class.
13600 (dw2_get_file_names_reader): Remove "data" parameter.
13601 (dw2_get_file_names): Use cutu_reader.
13602 (create_debug_type_hash_table): Update.
13603 (read_cutu_die_from_dwo): Update comment.
13604 (lookup_dwo_unit): Add dwo_name parameter.
13605 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13606 die_reader_func_ftype and data parameters.
13607 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13608 Remove die_reader_func_ftype and data parameters.
13609 (~cutu_reader): New; from init_cutu_and_read_dies.
13610 (cutu_reader::cutu_reader): Rename from
13611 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13612 and data parameters.
13613 (init_cutu_and_read_dies_simple): Remove.
13614 (struct process_psymtab_comp_unit_data): Remove.
13615 (process_psymtab_comp_unit_reader): Remove data parameter; add
13616 want_partial_unit and pretend_language parameters.
13617 (process_psymtab_comp_unit): Use cutu_reader.
13618 (build_type_psymtabs_reader): Remove data parameter.
13619 (build_type_psymtabs_1): Use cutu_reader.
13620 (process_skeletonless_type_unit): Likewise.
13621 (load_partial_comp_unit_reader): Remove.
13622 (load_partial_comp_unit): Use cutu_reader.
13623 (load_full_comp_unit_reader): Remove.
13624 (load_full_comp_unit): Use cutu_reader.
13625 (struct create_dwo_cu_data): Remove.
13626 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13627 dwo_unit parameters.
13628 (create_cus_hash_table): Use cutu_reader.
13629 (struct dwarf2_read_addr_index_data): Remove.
13630 (dwarf2_read_addr_index_reader): Remove.
13631 (dwarf2_read_addr_index): Use cutu_reader.
13632 (read_signatured_type_reader): Remove.
13633 (read_signatured_type): Use cutu_reader.
13634
45bbae5c
TT
136352020-01-19 Tom Tromey <tom@tromey.com>
13636
13637 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13638 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13639 (tui_wrefresh): Declare.
13640 * tui/tui-wingeneral.c (suppress_output): New global.
13641 (tui_suppress_output, ~tui_suppress_output): New constructor and
13642 destructor.
13643 (tui_wrefresh): New function.
13644 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13645 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13646 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13647 method.
13648 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13649 tui_wrefresh.
13650 (tui_data_window::no_refresh): New method.
13651 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13652 (tui_reg_command): Use tui_suppress_output
13653 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13654 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13655 method.
13656 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13657
4f13c1c0
TT
136582020-01-19 Tom Tromey <tom@tromey.com>
13659
13660 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13661 Handle case where symtab is null.
13662
fa47e446
SM
136632020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13664
13665 * linux-fork.c (one_fork_p): Simplify.
13666
26f42329
SM
136672020-01-17 Simon Marchi <simon.marchi@efficios.com>
13668
13669 * top.c (struct qt_args): Remove.
13670 (kill_or_detach): Change return type to void, replace `void *`
13671 parameter with a proper one.
13672 (print_inferior_quit_action): Likewise.
13673 (quit_confirm): Use range-based for loop to iterate over inferiors.
13674 (quit_force): Likewise.
13675
a9ac81b1
SM
136762020-01-17 Simon Marchi <simon.marchi@efficios.com>
13677
13678 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13679 `void *` parameter with proper parameters.
13680 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13681 (print_one_inferior): Change return type to void, replace `void *`
13682 parameter with proper parameters.
13683 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13684 inferiors.
13685 (get_other_inferior): Remove.
13686 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13687 inferiors.
13688
788eca49
SM
136892020-01-17 Simon Marchi <simon.marchi@efficios.com>
13690
13691 * mi/mi-interp.c (report_initial_inferior): Remove.
13692 (mi_interp::init): Use range-based for to iterate over inferiors.
13693
d9bc85b6
SM
136942020-01-17 Simon Marchi <simon.marchi@efficios.com>
13695
13696 * python/py-inferior.c (build_inferior_list): Remove.
13697 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13698
40c94099
CB
136992020-01-16 Christian Biesinger <cbiesinger@google.com>
13700
13701 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13702 (btrace_stitch_trace): Likewise.
13703 * charset.c (intermediate_encoding): Likewise (vaild).
13704 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13705 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13706 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13707
e0cdfe3c
HD
137082020-01-16 Hannes Domani <ssbssa@yahoo.de>
13709
13710 * windows-tdep.c (windows_get_tlb_type):
13711 Add rtl_user_process_parameters type.
13712
790f1718 137132020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13714 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13715
13716 PR build/24805
13717 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13718 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13719 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13720 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13721 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13722 (ps_plog): Redeclare exported functions with default visibility.
13723
3112ed97
NA
137242020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13725
13726 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13727 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13728
8dc3273e
SM
137292020-01-15 Simon Marchi <simon.marchi@efficios.com>
13730
13731 * infcmd.c (post_create_inferior): Use get_thread_regcache
13732 instead of get_current_regcache.
13733
ff47f4f0
TT
137342020-01-14 Tom Tromey <tom@tromey.com>
13735
13736 PR symtab/12535:
13737 * python/python.c (gdbpy_decode_line): Treat empty string the same
13738 as no argument.
13739
975f45b7
TT
137402020-01-14 Tom Tromey <tom@tromey.com>
13741
13742 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13743
25e57356
TT
137442020-01-14 Tom Tromey <tom@tromey.com>
13745
13746 * nat/linux-btrace.c: Don't include <config.h>.
13747 * nat/linux-ptrace.c: Don't include <config.h>.
13748 * nat/x86-linux-dregs.c: Don't include <config.h>.
13749
05ea2a05
TT
137502020-01-14 Tom Tromey <tom@tromey.com>
13751
13752 * configure: Rebuild.
13753 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13754
01027315
TT
137552020-01-14 Tom Tromey <tom@tromey.com>
13756
13757 * nat/x86-linux-dregs.c: Include configh.h.
13758 * nat/linux-ptrace.c: Include configh.h.
13759 * nat/linux-btrace.c: Include configh.h.
13760 * defs.h: Include config.h, bfd.h.
13761 * configure.ac: Don't source common.host.
13762 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13763 * configure: Rebuild.
13764 * acinclude.m4: Update path.
13765 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13766 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13767 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13768 (CLIBS): Add LIBSUPPORT.
13769 (CDEPS): Likewise.
13770 (COMMON_SFILES): Remove gdbsupport files.
13771 (HFILES_NO_SRCDIR): Likewise.
13772 (stamp-version): Update path to create-version.sh.
13773 (ALLDEPFILES): Remove gdbsupport files.
13774
b2ceabe8
TT
137752020-01-14 Tom Tromey <tom@tromey.com>
13776
13777 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13778 USE_WIN32API when needed.
13779 * configure.ac (USE_WIN32API): Don't define.
13780 (WIN32LIBS): Use WIN32APILIBS.
13781 * configure: Rebuild.
13782
25c51f71
TT
137832020-01-14 Tom Tromey <tom@tromey.com>
13784
13785 * configure: Rebuild.
13786 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13787
717c684d
BE
137882020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13789
13790 * skip.c (skip_function_command): Make skip w/o arguments use the
13791 name of the inlined function if pc is inside any inlined function.
13792
7da6a5b9
LM
137932020-01-14 Luis Machado <luis.machado@linaro.org>
13794
13795 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13796 * infrun.c (resume_1): Likewise.
13797 (handle_inferior_event): Remove stale comment.
13798 * linux-nat.c (linux_nat_target::resume): Update comments.
13799 (save_stop_reason): Likewise.
13800 (linux_nat_filter_event): Likewise.
13801 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13802
44e4c775
AB
138032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13804
13805 * elfread.c (record_minimal_symbol): Set section index to 0 for
13806 non-allocatable sections.
13807
18a8505e
AT
13808
138092020-01-13 Ali Tamur <tamur@google.com>
13810
13811 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13812 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13813 to gdb::optional. Update comments.
13814 (dwo_file): Update comments.
13815 (read_attribute): Update API to take an additional out parameter,
13816 need_reprocess. This is used to mark attributes that need other
13817 attributes (e.g. str_offsets_base) for correct computation which may not
13818 have been read yet.
13819 (read_attribute_reprocess): New function declaration.
13820 (read_addr_index): Likewise.
13821 (read_dwo_str_index): Likewise.
13822 (read_stub_str_index): Likewise.
13823 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13824 (lookup_addr_base): New function definition.
13825 (lookup_ranges_base): Likewise.
13826 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13827 lookup_ranges_base.
13828 (init_cutu_and_read_dies): Update comments.
13829 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13830 unit. This is used to inherit parent's str_offsets_base and addr_base.
13831 Update comments.
13832 (init_cutu_and_read_dies_simple): Reflect API changes.
13833 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13834 (create_cus_hash_table): Change API to take parent compile unit.
13835 Reflect API changes.
13836 (open_and_init_dwo_file): Reflect API changes.
13837 (dwarf2_get_pc_bounds): Update comments.
13838 (dwarf2_record_block_ranges): Likewise.
13839 (read_full_die_1): Change implementation to reprocess attributes that
13840 need str_offsets_base and addr_base.
13841 (partial_die_info::read): Likewise.
13842 (read_attribute_reprocess): New function definition.
13843 (read_attribute_value): Change API to take an additional out parameter,
13844 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13845 when a non-dwo compile unit has index based attributes.
13846 (read_attribute): Reflect API changes.
13847 (read_addr_index_1): Reflect API changes. Update comments.
13848 (dwarf2_read_addr_index_data): Reflect API changes.
13849 (dwarf2_read_addr_index): Likewise.
13850 (read_str_index): Change API and implementation. This becomes a helper
13851 to be used by the new string index related methods. Update error
13852 message and comments.
13853 (read_dwo_str_index): New function definition.
13854 (read_stub_str_index): Likewise.
13855 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13856 * symfile.h (dwarf2_debug_sections): Likewise.
13857 * xcoffread.c (dwarf2_debug_sections): Likewise.
13858
0cac9354
SM
138592020-01-13 Simon Marchi <simon.marchi@efficios.com>
13860
13861 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13862 core_reg_sect type to gdb_byte *.
13863 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13864 * cris-tdep.c (fetch_core_registers): Likewise.
13865 * corelow.c (core_target::get_core_register_section): Change
13866 type of `contents` to gdb::byte_vector.
13867
9a6d629c
AB
138682020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13869
13870 * tui/tui-wingeneral.c (box_win): Position the title in the center
13871 of the border.
13872
d8b2f9e3
SM
138732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13874
13875 * corelow.c (core_target::get_core_register_section): Use
13876 std::vector instead of alloca.
13877
bb564c58
SM
138782020-01-13 Simon Marchi <simon.marchi@efficios.com>
13879
13880 * warning.m4: Add -Wmissing-declarations to build_warnings.
13881 * configure: Re-generate.
13882
6b366111
SM
138832020-01-13 Simon Marchi <simon.marchi@efficios.com>
13884
13885 * python/python.c (init__gdb_module): Add declaration.
13886
6c265988
SM
138872020-01-13 Simon Marchi <simon.marchi@efficios.com>
13888
13889 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13890 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13891 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13892 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13893 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13894 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13895 * ada-exp.y (_initialize_ada_exp): Add declaration.
13896 * ada-lang.c (_initialize_ada_language): Add declaration.
13897 * ada-tasks.c (_initialize_tasks): Add declaration.
13898 * agent.c (_initialize_agent): Add declaration.
13899 * aix-thread.c (_initialize_aix_thread): Add declaration.
13900 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13901 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13902 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13903 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13904 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13905 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13906 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13907 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13908 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13909 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13910 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13911 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13912 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13913 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13914 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13915 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13916 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13917 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13918 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13919 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13920 * annotate.c (_initialize_annotate): Add declaration.
13921 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13922 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13923 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13924 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13925 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13926 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13927 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13928 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13929 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13930 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13931 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13932 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13933 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13934 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13935 * auto-load.c (_initialize_auto_load): Add declaration.
13936 * auxv.c (_initialize_auxv): Add declaration.
13937 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13938 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13939 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13940 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13941 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13942 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13943 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13944 * breakpoint.c (_initialize_breakpoint): Add declaration.
13945 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13946 * btrace.c (_initialize_btrace): Add declaration.
13947 * charset.c (_initialize_charset): Add declaration.
13948 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13949 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13950 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13951 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13952 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13953 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13954 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13955 * coffread.c (_initialize_coffread): Add declaration.
13956 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13957 * compile/compile.c (_initialize_compile): Add declaration.
13958 * complaints.c (_initialize_complaints): Add declaration.
13959 * completer.c (_initialize_completer): Add declaration.
13960 * copying.c (_initialize_copying): Add declaration.
13961 * corefile.c (_initialize_core): Add declaration.
13962 * corelow.c (_initialize_corelow): Add declaration.
13963 * cp-abi.c (_initialize_cp_abi): Add declaration.
13964 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13965 * cp-support.c (_initialize_cp_support): Add declaration.
13966 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13967 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13968 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13969 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13970 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13971 * ctfread.c (_initialize_ctfread): Add declaration.
13972 * d-lang.c (_initialize_d_language): Add declaration.
13973 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13974 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13975 * dbxread.c (_initialize_dbxread): Add declaration.
13976 * dcache.c (_initialize_dcache): Add declaration.
13977 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13978 * disasm.c (_initialize_disasm): Add declaration.
13979 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13980 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13981 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13982 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13983 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13984 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13985 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13986 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13987 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13988 * elfread.c (_initialize_elfread): Add declaration.
13989 * exec.c (_initialize_exec): Add declaration.
13990 * extension.c (_initialize_extension): Add declaration.
13991 * f-lang.c (_initialize_f_language): Add declaration.
13992 * f-valprint.c (_initialize_f_valprint): Add declaration.
13993 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13994 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13995 * filesystem.c (_initialize_filesystem): Add declaration.
13996 * findcmd.c (_initialize_mem_search): Add declaration.
13997 * findvar.c (_initialize_findvar): Add declaration.
13998 * fork-child.c (_initialize_fork_child): Add declaration.
13999 * frame-base.c (_initialize_frame_base): Add declaration.
14000 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14001 * frame.c (_initialize_frame): Add declaration.
14002 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14003 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14004 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14005 * gcore.c (_initialize_gcore): Add declaration.
14006 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14007 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14008 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14009 * gdbarch.c (_initialize_gdbarch): Add declaration.
14010 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14011 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14012 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14013 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14014 * go-lang.c (_initialize_go_language): Add declaration.
14015 * go32-nat.c (_initialize_go32_nat): Add declaration.
14016 * guile/guile.c (_initialize_guile): Add declaration.
14017 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14018 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14019 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14020 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14021 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14022 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14023 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14024 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14025 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14026 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14027 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14028 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14029 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14030 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14031 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14032 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14033 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14034 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14035 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14036 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14037 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14038 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14039 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14040 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14041 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14042 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14043 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14044 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14045 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14046 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14047 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14048 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14049 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14050 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14051 * infcall.c (_initialize_infcall): Add declaration.
14052 * infcmd.c (_initialize_infcmd): Add declaration.
14053 * inflow.c (_initialize_inflow): Add declaration.
14054 * infrun.c (_initialize_infrun): Add declaration.
14055 * interps.c (_initialize_interpreter): Add declaration.
14056 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14057 * jit.c (_initialize_jit): Add declaration.
14058 * language.c (_initialize_language): Add declaration.
14059 * linux-fork.c (_initialize_linux_fork): Add declaration.
14060 * linux-nat.c (_initialize_linux_nat): Add declaration.
14061 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14062 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14063 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14064 * m2-lang.c (_initialize_m2_language): Add declaration.
14065 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14066 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14067 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14068 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14069 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14070 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14071 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14072 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14073 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14074 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14075 * machoread.c (_initialize_machoread): Add declaration.
14076 * macrocmd.c (_initialize_macrocmd): Add declaration.
14077 * macroscope.c (_initialize_macroscope): Add declaration.
14078 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14079 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14080 * maint.c (_initialize_maint_cmds): Add declaration.
14081 * mdebugread.c (_initialize_mdebugread): Add declaration.
14082 * memattr.c (_initialize_mem): Add declaration.
14083 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14084 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14085 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14086 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14087 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14088 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14089 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14090 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14091 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14092 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14093 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14094 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14095 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14096 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14097 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14098 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14099 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14100 * mipsread.c (_initialize_mipsread): Add declaration.
14101 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14102 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14103 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14104 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14105 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14106 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14107 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14108 * nto-procfs.c (_initialize_procfs): Add declaration.
14109 * objc-lang.c (_initialize_objc_language): Add declaration.
14110 * observable.c (_initialize_observer): Add declaration.
14111 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14112 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14113 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14114 * osabi.c (_initialize_gdb_osabi): Add declaration.
14115 * osdata.c (_initialize_osdata): Add declaration.
14116 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14117 * parse.c (_initialize_parse): Add declaration.
14118 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14119 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14120 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14121 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14122 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14123 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14124 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14125 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14126 * printcmd.c (_initialize_printcmd): Add declaration.
14127 * probe.c (_initialize_probe): Add declaration.
14128 * proc-api.c (_initialize_proc_api): Add declaration.
14129 * proc-events.c (_initialize_proc_events): Add declaration.
14130 * proc-service.c (_initialize_proc_service): Add declaration.
14131 * procfs.c (_initialize_procfs): Add declaration.
14132 * producer.c (_initialize_producer): Add declaration.
14133 * psymtab.c (_initialize_psymtab): Add declaration.
14134 * python/python.c (_initialize_python): Add declaration.
14135 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14136 * record-btrace.c (_initialize_record_btrace): Add declaration.
14137 * record-full.c (_initialize_record_full): Add declaration.
14138 * record.c (_initialize_record): Add declaration.
14139 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14140 * regcache.c (_initialize_regcache): Add declaration.
14141 * reggroups.c (_initialize_reggroup): Add declaration.
14142 * remote-notif.c (_initialize_notif): Add declaration.
14143 * remote-sim.c (_initialize_remote_sim): Add declaration.
14144 * remote.c (_initialize_remote): Add declaration.
14145 * reverse.c (_initialize_reverse): Add declaration.
14146 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14147 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14148 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14149 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14150 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14151 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14152 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14153 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14154 Add declaration.
14155 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14156 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14157 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14158 * rust-exp.y (_initialize_rust_exp): Add declaration.
14159 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14160 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14161 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14162 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14163 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14164 * score-tdep.c (_initialize_score_tdep): Add declaration.
14165 * ser-go32.c (_initialize_ser_dos): Add declaration.
14166 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14167 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14168 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14169 * ser-uds.c (_initialize_ser_socket): Add declaration.
14170 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14171 * serial.c (_initialize_serial): Add declaration.
14172 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14173 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14174 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14175 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14176 * skip.c (_initialize_step_skip): Add declaration.
14177 * sol-thread.c (_initialize_sol_thread): Add declaration.
14178 * solib-aix.c (_initialize_solib_aix): Add declaration.
14179 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14180 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14181 * solib-frv.c (_initialize_frv_solib): Add declaration.
14182 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14183 * solib-target.c (_initialize_solib_target): Add declaration.
14184 * solib.c (_initialize_solib): Add declaration.
14185 * source-cache.c (_initialize_source_cache): Add declaration.
14186 * source.c (_initialize_source): Add declaration.
14187 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14188 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14189 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14190 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14191 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14192 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14193 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14194 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14195 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14196 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14197 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14198 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14199 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14200 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14201 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14202 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14203 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14204 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14205 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14206 * stabsread.c (_initialize_stabsread): Add declaration.
14207 * stack.c (_initialize_stack): Add declaration.
14208 * stap-probe.c (_initialize_stap_probe): Add declaration.
14209 * std-regs.c (_initialize_frame_reg): Add declaration.
14210 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14211 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14212 * symfile.c (_initialize_symfile): Add declaration.
14213 * symmisc.c (_initialize_symmisc): Add declaration.
14214 * symtab.c (_initialize_symtab): Add declaration.
14215 * target.c (_initialize_target): Add declaration.
14216 * target-connection.c (_initialize_target_connection): Add
14217 declaration.
14218 * target-dcache.c (_initialize_target_dcache): Add declaration.
14219 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14220 * thread.c (_initialize_thread): Add declaration.
14221 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14222 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14223 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14224 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14225 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14226 * tracectf.c (_initialize_ctf): Add declaration.
14227 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14228 * tracefile.c (_initialize_tracefile): Add declaration.
14229 * tracepoint.c (_initialize_tracepoint): Add declaration.
14230 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14231 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14232 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14233 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14234 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14235 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14236 * tui/tui.c (_initialize_tui): Add declaration.
14237 * typeprint.c (_initialize_typeprint): Add declaration.
14238 * ui-style.c (_initialize_ui_style): Add declaration.
14239 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14240 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14241 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14242 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14243 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14244 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14245 * unittests/filtered_iterator-selftests.c
14246 (_initialize_filtered_iterator_selftests): Add declaration.
14247 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14248 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14249 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14250 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14251 * unittests/main-thread-selftests.c
14252 (_initialize_main_thread_selftests): Add declaration.
14253 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14254 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14255 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14256 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14257 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14258 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14259 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14260 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14261 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14262 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14263 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14264 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14265 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14266 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14267 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14268 declaration.
14269 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14270 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14271 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14272 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14273 * user-regs.c (_initialize_user_regs): Add declaration.
14274 * utils.c (_initialize_utils): Add declaration.
14275 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14276 * valops.c (_initialize_valops): Add declaration.
14277 * valprint.c (_initialize_valprint): Add declaration.
14278 * value.c (_initialize_values): Add declaration.
14279 * varobj.c (_initialize_varobj): Add declaration.
14280 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14281 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14282 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14283 * windows-nat.c (_initialize_windows_nat): Add declaration.
14284 (_initialize_check_for_gdb_ini): Add declaration.
14285 (_initialize_loadable): Add declaration.
14286 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14287 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14288 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14289 * xcoffread.c (_initialize_xcoffread): Add declaration.
14290 * xml-support.c (_initialize_xml_support): Add declaration.
14291 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14292 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14293 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14294 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14295
e2de1eec
SM
142962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14297
14298 * regformats/regdat.sh: Generate declaration for init function.
14299
e0037b4c
SM
143002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14301
14302 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14303 up.
14304 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14305 close_one_inferior>: New methods.
14306 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14307 pass down target to find_inferior_pid.
14308 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14309 Pass down target to find_inferior_ptid.
14310 (gdbsim_target::create_inferior): Pass down target to
14311 add_thread_silent.
14312 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14313 target down to find_inferior_ptid and switch_to_thread.
14314 (gdbsim_target::close): Update to call close_one_inferior.
14315 (struct resume_data): Remove.
14316 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14317 directly, rather than through a void pointer.
14318 (gdbsim_target::resume): Update to call resume_one_inferior.
14319
58920b5b
SM
143202020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14321
14322 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14323
4ec89149
PA
143242020-01-12 Pedro Alves <palves@redhat.com>
14325
14326 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14327 directly for the current inferior instead of
14328 discard_all_inferiors.
14329 (discard_all_inferiors): Delete.
14330
7c392d1d
TT
143312020-01-11 Tom Tromey <tom@tromey.com>
14332
14333 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14334 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14335 deprecated_safe_get_selected_frame.
14336
d9ebdab7
TBA
143372020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14338
14339 * inferior.c (print_inferior): Switch inferior before printing it.
14340
f3c469b9
PA
143412020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14342 Pedro Alves <palves@redhat.com>
14343
14344 * progspace-and-thread.c (switch_to_program_space_and_thread):
14345 Assert there's an inferior for PSPACE. Use
14346 switch_to_inferior_no_thread to switch the inferior too.
14347 * progspace.c (program_space::~program_space): Call
14348 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14349 (program_space::free_all_objfiles): Don't call clear_symtab_users
14350 here.
14351 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14352
65c574f6
PA
143532020-01-10 Pedro Alves <palves@redhat.com>
14354
14355 * NEWS: Mention multi-target debugging, "info connections", and
14356 "add-inferior -no-connection".
14357
2f4fcf00
PA
143582020-01-10 Pedro Alves <palves@redhat.com>
14359
14360 * infrun.c: Include "target-connection.h".
14361 (check_multi_target_resumption): New.
14362 (proceed): Call it.
14363 * target-connection.c (make_target_connection_string): Make
14364 extern.
14365 * target-connection.h (make_target_connection_string): Declare.
14366
121b3efd
PA
143672020-01-10 Pedro Alves <palves@redhat.com>
14368
14369 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14370 * inferior.c (uiout_field_connection): New function.
14371 (print_inferior): Add new "connection-id" column.
14372 (add_inferior_command): Show connection number/string of added
14373 inferior.
14374 * process-stratum-target.h
14375 (process_stratum_target::connection_string): New virtual method.
14376 (process_stratum_target::connection_number): New field.
14377 * remote.c (remote_target::connection_string): New override.
14378 * target-connection.c: New file.
14379 * target-connection.h: New file.
14380 * target.c (decref_target): Remove process_stratum targets from
14381 the connection list.
14382 (target_stack::push): Add process_stratum targets to the
14383 connection list.
14384
4f837581
PA
143852020-01-10 Pedro Alves <palves@redhat.com>
14386
14387 Revert:
14388 2016-04-12 Pedro Alves <palves@redhat.com>
14389 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14390 Remove references to name.
14391 * serial.h (struct serial) <name>: Delete.
14392
f4ec508e
PA
143932020-01-10 Pedro Alves <palves@redhat.com>
14394
14395 * gdbarch-selftests.c (register_to_value_test): Remove "target
14396 already pushed" check.
14397
5b6d1e4f
PA
143982020-01-10 Pedro Alves <palves@redhat.com>
14399 John Baldwin <jhb@FreeBSD.org>
14400
14401 * aarch64-linux-nat.c
14402 (aarch64_linux_nat_target::thread_architecture): Adjust.
14403 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14404 (task_command_1): Likewise.
14405 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14406 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14407 (aix_thread_target::store_registers)
14408 (aix_thread_target::thread_alive): Adjust.
14409 * amd64-fbsd-tdep.c: Include "inferior.h".
14410 (amd64fbsd_get_thread_local_address): Pass down target.
14411 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14412 thread's gdbarch instead of target_gdbarch.
14413 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14414 get_last_target_status.
14415 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14416 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14417 inferiors.
14418 (update_inserted_breakpoint_locations): Skip if inferiors with no
14419 execution.
14420 (update_global_location_list): When handling moribund locations,
14421 find representative inferior for location's pspace, and use thread
14422 count of its process_stratum target.
14423 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14424 * bsd-uthread.c (bsd_uthread_target::wait): Use
14425 as_process_stratum_target and adjust thread_change_ptid and
14426 add_thread calls.
14427 (bsd_uthread_target::update_thread_list): Use
14428 as_process_stratum_target and adjust find_thread_ptid,
14429 thread_change_ptid and add_thread calls.
14430 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14431 find_thread_ptid call.
14432 * corelow.c (add_to_thread_list): Adjust add_thread call.
14433 (core_target_open): Adjust add_thread_silent and thread_count
14434 calls.
14435 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14436 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14437 * event-top.c (async_disconnect): Pop targets from all inferiors.
14438 * exec.c (add_target_sections): Push exec target on all inferiors
14439 sharing the program space.
14440 (remove_target_sections): Remove the exec target from all
14441 inferiors sharing the program space.
14442 (exec_on_vfork): New.
14443 * exec.h (exec_on_vfork): Declare.
14444 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14445 Pass it down.
14446 (fbsd_nat_target::update_thread_list): Adjust.
14447 (fbsd_nat_target::resume): Adjust.
14448 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14449 down.
14450 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14451 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14452 get_thread_arch_regcache call.
14453 * fork-child.c (gdb_startup_inferior): Pass target down to
14454 startup_inferior and set_executing.
14455 * gdbthread.h (struct process_stratum_target): Forward declare.
14456 (add_thread, add_thread_silent, add_thread_with_info)
14457 (in_thread_list): Add process_stratum_target parameter.
14458 (find_thread_ptid(inferior*, ptid_t)): New overload.
14459 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14460 parameter.
14461 (all_threads()): Delete overload.
14462 (all_threads, all_non_exited_threads): Add process_stratum_target
14463 parameter.
14464 (all_threads_safe): Use brace initialization.
14465 (thread_count): Add process_stratum_target parameter.
14466 (set_resumed, set_running, set_stop_requested, set_executing)
14467 (threads_are_executing, finish_thread_state): Add
14468 process_stratum_target parameter.
14469 (switch_to_thread): Use is_current_thread.
14470 * i386-fbsd-tdep.c: Include "inferior.h".
14471 (i386fbsd_get_thread_local_address): Pass down target.
14472 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14473 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14474 have_inferiors check.
14475 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14476 (inf_ptrace_target::attach): Adjust.
14477 * infcall.c (run_inferior_call): Adjust.
14478 * infcmd.c (run_command_1): Pass target to
14479 scoped_finish_thread_state.
14480 (proceed_thread_callback): Skip inferiors with no execution.
14481 (continue_command): Rename 'all_threads' local to avoid hiding
14482 'all_threads' function. Adjust get_last_target_status call.
14483 (prepare_one_step): Adjust set_running call.
14484 (signal_command): Use user_visible_resume_target. Compare thread
14485 pointers instead of inferior_ptid.
14486 (info_program_command): Adjust to pass down target.
14487 (attach_command): Mark target's 'thread_executing' flag.
14488 (stop_current_target_threads_ns): New, factored out from ...
14489 (interrupt_target_1): ... this. Switch inferior before making
14490 target calls.
14491 * inferior-iter.h
14492 (struct all_inferiors_iterator, struct all_inferiors_range)
14493 (struct all_inferiors_safe_range)
14494 (struct all_non_exited_inferiors_range): Filter on
14495 process_stratum_target too. Remove explicit.
14496 * inferior.c (inferior::inferior): Push dummy target on target
14497 stack.
14498 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14499 Add process_stratum_target parameter, and pass it down.
14500 (have_live_inferiors): Adjust.
14501 (switch_to_inferior_and_push_target): New.
14502 (add_inferior_command, clone_inferior_command): Handle
14503 "-no-connection" parameter. Use
14504 switch_to_inferior_and_push_target.
14505 (_initialize_inferior): Mention "-no-connection" option in
14506 the help of "add-inferior" and "clone-inferior" commands.
14507 * inferior.h: Include "process-stratum-target.h".
14508 (interrupt_target_1): Use bool.
14509 (struct inferior) <push_target, unpush_target, target_is_pushed,
14510 find_target_beneath, top_target, process_target, target_at,
14511 m_stack>: New.
14512 (discard_all_inferiors): Delete.
14513 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14514 (all_inferiors, all_non_exited_inferiors): Add
14515 process_stratum_target parameter.
14516 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14517 (target_last_proc_target): New global.
14518 (follow_fork_inferior): Push target on new inferior. Pass target
14519 to add_thread_silent. Call exec_on_vfork. Handle target's
14520 reference count.
14521 (follow_fork): Adjust get_last_target_status call. Also consider
14522 target.
14523 (follow_exec): Push target on new inferior.
14524 (struct execution_control_state) <target>: New field.
14525 (user_visible_resume_target): New.
14526 (do_target_resume): Call target_async.
14527 (resume_1): Set target's threads_executing flag. Consider resume
14528 target.
14529 (commit_resume_all_targets): New.
14530 (proceed): Also consider resume target. Skip threads of inferiors
14531 with no execution. Commit resumtion in all targets.
14532 (start_remote): Pass current inferior to wait_for_inferior.
14533 (infrun_thread_stop_requested): Consider target as well. Pass
14534 thread_info pointer to clear_inline_frame_state instead of ptid.
14535 (infrun_thread_thread_exit): Consider target as well.
14536 (random_pending_event_thread): New inferior parameter. Use it.
14537 (do_target_wait): Rename to ...
14538 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14539 down.
14540 (threads_are_resumed_pending_p, do_target_wait): New.
14541 (prepare_for_detach): Adjust calls.
14542 (wait_for_inferior): New inferior parameter. Handle it. Use
14543 do_target_wait_1 instead of do_target_wait.
14544 (fetch_inferior_event): Adjust. Switch to representative
14545 inferior. Pass target down.
14546 (set_last_target_status): Add process_stratum_target parameter.
14547 Save target in global.
14548 (get_last_target_status): Add process_stratum_target parameter and
14549 handle it.
14550 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14551 (context_switch): Check inferior_ptid == null_ptid before calling
14552 inferior_thread().
14553 (get_inferior_stop_soon): Pass down target.
14554 (wait_one): Rename to ...
14555 (poll_one_curr_target): ... this.
14556 (struct wait_one_event): New.
14557 (wait_one): New.
14558 (stop_all_threads): Adjust.
14559 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14560 event's target.
14561 (switch_back_to_stepped_thread): Also consider target.
14562 (print_stop_event): Update.
14563 (normal_stop): Update. Also consider the resume target.
14564 * infrun.h (wait_for_inferior): Remove declaration.
14565 (user_visible_resume_target): New declaration.
14566 (get_last_target_status, set_last_target_status): New
14567 process_stratum_target parameter.
14568 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14569 process_stratum_target parameter, and use it.
14570 (clear_inline_frame_state (thread_info*)): New.
14571 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14572 process_stratum_target parameter.
14573 (clear_inline_frame_state (thread_info*)): Declare.
14574 * linux-fork.c (delete_checkpoint_command): Pass target down to
14575 find_thread_ptid.
14576 (checkpoint_command): Adjust.
14577 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14578 instead of just tweaking inferior_ptid.
14579 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14580 (exit_lwp): Pass target down to find_thread_ptid.
14581 (attach_proc_task_lwp_callback): Pass target down to
14582 add_thread/set_running/set_executing.
14583 (linux_nat_target::attach): Pass target down to
14584 thread_change_ptid.
14585 (get_detach_signal): Pass target down to find_thread_ptid.
14586 Consider last target status's target.
14587 (linux_resume_one_lwp_throw, resume_lwp)
14588 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14589 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14590 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14591 (linux_nat_target::async_wait_fd): New.
14592 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14593 target down.
14594 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14595 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14596 * linux-thread-db.c (struct thread_db_info::process_target): New
14597 field.
14598 (add_thread_db_info): Save target.
14599 (get_thread_db_info): New process_stratum_target parameter. Also
14600 match target.
14601 (delete_thread_db_info): New process_stratum_target parameter.
14602 Also match target.
14603 (thread_from_lwp): Adjust to pass down target.
14604 (thread_db_notice_clone): Pass down target.
14605 (check_thread_db_callback): Pass down target.
14606 (try_thread_db_load_1): Always push the thread_db target.
14607 (try_thread_db_load, record_thread): Pass target down.
14608 (thread_db_target::detach): Pass target down. Always unpush the
14609 thread_db target.
14610 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14611 target down. Always unpush the thread_db target.
14612 (find_new_threads_callback, thread_db_find_new_threads_2)
14613 (thread_db_target::update_thread_list): Pass target down.
14614 (thread_db_target::pid_to_str): Pass current inferior down.
14615 (thread_db_target::get_thread_local_address): Pass target down.
14616 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14617 target down.
14618 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14619 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14620 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14621 (procfs_init_inferior): Rename to ...
14622 (procfs_target::procfs_init_inferior): ... this and adjust.
14623 (procfs_target::create_inferior, procfs_notice_thread)
14624 (procfs_do_thread_registers): Adjust.
14625 * ppc-fbsd-tdep.c: Include "inferior.h".
14626 (ppcfbsd_get_thread_local_address): Pass down target.
14627 * proc-service.c (ps_xfer_memory): Switch current inferior and
14628 program space as well.
14629 (get_ps_regcache): Pass target down.
14630 * process-stratum-target.c
14631 (process_stratum_target::thread_address_space)
14632 (process_stratum_target::thread_architecture): Pass target down.
14633 * process-stratum-target.h
14634 (process_stratum_target::threads_executing): New field.
14635 (as_process_stratum_target): New.
14636 * ravenscar-thread.c
14637 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14638 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14639 down.
14640 * record-btrace.c (record_btrace_target::info_record): Adjust.
14641 (record_btrace_target::record_method)
14642 (record_btrace_target::record_is_replaying)
14643 (record_btrace_target::fetch_registers)
14644 (get_thread_current_frame_id, record_btrace_target::resume)
14645 (record_btrace_target::wait, record_btrace_target::stop): Pass
14646 target down.
14647 * record-full.c (record_full_wait_1): Switch to event thread.
14648 Pass target down.
14649 * regcache.c (regcache::regcache)
14650 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14651 process_stratum_target parameter and handle it.
14652 (current_thread_target): New global.
14653 (get_thread_regcache): Add process_stratum_target parameter and
14654 handle it. Switch inferior before calling target method.
14655 (get_thread_regcache): Pass target down.
14656 (get_thread_regcache_for_ptid): Pass target down.
14657 (registers_changed_ptid): Add process_stratum_target parameter and
14658 handle it.
14659 (registers_changed_thread, registers_changed): Pass target down.
14660 (test_get_thread_arch_aspace_regcache): New.
14661 (current_regcache_test): Define a couple local test_target_ops
14662 instances and use them for testing.
14663 (readwrite_regcache): Pass process_stratum_target parameter.
14664 (cooked_read_test, cooked_write_test): Pass mock_target down.
14665 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14666 (get_thread_arch_aspace_regcache): Add process_stratum_target
14667 parameter.
14668 (regcache::target): New method.
14669 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14670 (regcache::registers_changed_ptid): Add process_stratum_target
14671 parameter.
14672 (regcache::m_target): New field.
14673 (registers_changed_ptid): Add process_stratum_target parameter.
14674 * remote.c (remote_state::supports_vCont_probed): New field.
14675 (remote_target::async_wait_fd): New method.
14676 (remote_unpush_and_throw): Add remote_target parameter.
14677 (get_current_remote_target): Adjust.
14678 (remote_target::remote_add_inferior): Push target.
14679 (remote_target::remote_add_thread)
14680 (remote_target::remote_notice_new_inferior)
14681 (get_remote_thread_info): Pass target down.
14682 (remote_target::update_thread_list): Skip threads of inferiors
14683 bound to other targets. (remote_target::close): Don't discard
14684 inferiors. (remote_target::add_current_inferior_and_thread)
14685 (remote_target::process_initial_stop_replies)
14686 (remote_target::start_remote)
14687 (remote_target::remote_serial_quit_handler): Pass down target.
14688 (remote_target::remote_unpush_target): New remote_target
14689 parameter. Unpush the target from all inferiors.
14690 (remote_target::remote_unpush_and_throw): New remote_target
14691 parameter. Pass it down.
14692 (remote_target::open_1): Check whether the current inferior has
14693 execution instead of checking whether any inferior is live. Pass
14694 target down.
14695 (remote_target::remote_detach_1): Pass down target. Use
14696 remote_unpush_target.
14697 (extended_remote_target::attach): Pass down target.
14698 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14699 (remote_target::append_resumption): Pass down target.
14700 (remote_target::append_pending_thread_resumptions)
14701 (remote_target::remote_resume_with_hc, remote_target::resume)
14702 (remote_target::commit_resume): Pass down target.
14703 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14704 (remote_target::interrupt_query)
14705 (remote_target::remove_new_fork_children)
14706 (remote_target::check_pending_events_prevent_wildcard_vcont)
14707 (remote_target::remote_parse_stop_reply)
14708 (remote_target::process_stop_reply): Pass down target.
14709 (first_remote_resumed_thread): New remote_target parameter. Pass
14710 it down.
14711 (remote_target::wait_as): Pass down target.
14712 (unpush_and_perror): New remote_target parameter. Pass it down.
14713 (remote_target::readchar, remote_target::remote_serial_write)
14714 (remote_target::getpkt_or_notif_sane_1)
14715 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14716 down target.
14717 (remote_target::mourn_inferior): Pass down target. Use
14718 remote_unpush_target.
14719 (remote_target::core_of_thread)
14720 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14721 (remote_target::pid_to_exec_file)
14722 (remote_target::thread_handle_to_thread_info): Pass down target.
14723 (remote_target::async_wait_fd): New.
14724 * riscv-fbsd-tdep.c: Include "inferior.h".
14725 (riscv_fbsd_get_thread_local_address): Pass down target.
14726 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14727 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14728 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14729 Adjust.
14730 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14731 * solib-svr4.c (enable_break): Pass down target.
14732 * spu-multiarch.c (parse_spufs_run): Pass down target.
14733 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14734 * target-delegates.c: Regenerate.
14735 * target.c (g_target_stack): Delete.
14736 (current_top_target): Return the current inferior's top target.
14737 (target_has_execution_1): Refer to the passed-in inferior's top
14738 target.
14739 (target_supports_terminal_ours): Check whether the initial
14740 inferior was already created.
14741 (decref_target): New.
14742 (target_stack::push): Incref/decref the target.
14743 (push_target, push_target, unpush_target): Adjust.
14744 (target_stack::unpush): Defref target.
14745 (target_is_pushed): Return bool. Adjust to refer to the current
14746 inferior's target stack.
14747 (dispose_inferior): Delete, and inline parts ...
14748 (target_preopen): ... here. Only dispose of the current inferior.
14749 (target_detach): Hold strong target reference while detaching.
14750 Pass target down.
14751 (target_thread_name): Add assertion.
14752 (target_resume): Pass down target.
14753 (target_ops::beneath, find_target_at): Adjust to refer to the
14754 current inferior's target stack.
14755 (get_dummy_target): New.
14756 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14757 has a thread running.
14758 (initialize_targets): Rename to ...
14759 (_initialize_target): ... this.
14760 * target.h: Include "gdbsupport/refcounted-object.h".
14761 (struct target_ops): Inherit refcounted_object.
14762 (target_ops::shortname, target_ops::longname): Make const.
14763 (target_ops::async_wait_fd): New method.
14764 (decref_target): Declare.
14765 (struct target_ops_ref_policy): New.
14766 (target_ops_ref): New typedef.
14767 (get_dummy_target): Declare function.
14768 (target_is_pushed): Return bool.
14769 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14770 (all_matching_threads_iterator::all_matching_threads_iterator):
14771 Handle filter target.
14772 * thread-iter.h (struct all_matching_threads_iterator, struct
14773 all_matching_threads_range, class all_non_exited_threads_range):
14774 Filter by target too. Remove explicit.
14775 * thread.c (threads_executing): Delete.
14776 (inferior_thread): Pass down current inferior.
14777 (clear_thread_inferior_resources): Pass down thread pointer
14778 instead of ptid_t.
14779 (add_thread_silent, add_thread_with_info, add_thread): Add
14780 process_stratum_target parameter. Use it for thread and inferior
14781 searches.
14782 (is_current_thread): New.
14783 (thread_info::deletable): Use it.
14784 (find_thread_ptid, thread_count, in_thread_list)
14785 (thread_change_ptid, set_resumed, set_running): New
14786 process_stratum_target parameter. Pass it down.
14787 (set_executing): New process_stratum_target parameter. Pass it
14788 down. Adjust reference to 'threads_executing'.
14789 (threads_are_executing): New process_stratum_target parameter.
14790 Adjust reference to 'threads_executing'.
14791 (set_stop_requested, finish_thread_state): New
14792 process_stratum_target parameter. Pass it down.
14793 (switch_to_thread): Also match inferior.
14794 (switch_to_thread): New process_stratum_target parameter. Pass it
14795 down.
14796 (update_threads_executing): Reimplement.
14797 * top.c (quit_force): Pop targets from all inferior.
14798 (gdb_init): Don't call initialize_targets.
14799 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14800 Declare.
14801 (windows_add_thread, windows_delete_thread): Adjust.
14802 (get_windows_debug_event): Rename to ...
14803 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14804 * tracefile-tfile.c (tfile_target_open): Pass down target.
14805 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14806 Forward declare.
14807 (switch_to_thread): Add process_stratum_target parameter.
14808 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14809 parameter. Use it.
14810 (mi_on_resume): Pass target down.
14811 * nat/fork-inferior.c (startup_inferior): Add
14812 process_stratum_target parameter. Pass it down.
14813 * nat/fork-inferior.h (startup_inferior): Add
14814 process_stratum_target parameter.
14815 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14816
75c6c844
PA
148172020-01-10 Pedro Alves <palves@redhat.com>
14818
14819 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14820 directly. Instead find the first thread in the thread list and
14821 use switch_to_thread.
14822
78f2c40a
PA
148232020-01-10 Pedro Alves <palves@redhat.com>
14824
14825 * remote.c (remote_target::remote_add_inferior): Don't bind a
14826 process to the current inferior if the current inferior is already
14827 bound to a process.
14828
e7af6c70
TBA
148292020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14830 Pedro Alves <palves@redhat.com>
14831
14832 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14833 If no process is specified, return null_ptid instead of
14834 inferior_ptid.
14835 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14836 TARGET_WAITKIND_SIGNALLED with no pid.
14837
31ba933e
PA
148382020-01-10 Pedro Alves <palves@redhat.com>
14839
14840 * remote.c (first_remote_resumed_thread): New.
14841 (remote_target::wait_as): Use it as default event_ptid instead of
14842 inferior_ptid.
14843
735fc2ca
PA
148442020-01-10 Pedro Alves <palves@redhat.com>
14845
14846 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14847
c17e02e1
PA
148482020-01-10 Pedro Alves <palves@redhat.com>
14849
14850 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14851 not -1.
14852
ab1ddbcf
PA
148532020-01-10 Pedro Alves <palves@redhat.com>
14854
14855 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14856 ptid to get_last_target_status.
14857 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14858 ptid to get_last_target_status.
14859 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14860 get_last_target_status.
14861 (info_program_command): Don't pass a target_waitstatus to
14862 get_last_target_status.
14863 * infrun.c (init_wait_for_inferior): Use
14864 nullify_last_target_wait_ptid.
14865 (get_last_target_status): Handle nullptr arguments.
14866 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14867 (print_stop_event): Don't pass a ptid to get_last_target_status.
14868 (normal_stop): Don't pass a ptid to get_last_target_status.
14869 * infrun.h (get_last_target_status, set_last_target_status): Move
14870 comments here and update.
14871 (nullify_last_target_wait_ptid): Declare.
14872 * linux-fork.c (fork_load_infrun_state): Remove local extern
14873 declaration of nullify_last_target_wait_ptid.
14874 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14875 to get_last_target_status.
14876
f3f8ece4
PA
148772020-01-10 Pedro Alves <palves@redhat.com>
14878
14879 * gdbthread.h (scoped_restore_current_thread)
14880 <dont_restore, restore, m_dont_restore>: Declare.
14881 * thread.c (thread_alive): Add assertion. Return bool.
14882 (switch_to_thread_if_alive): New.
14883 (prune_threads): Switch inferior/thread.
14884 (print_thread_info_1): Switch thread before calling target methods.
14885 (scoped_restore_current_thread::restore): New, factored out from
14886 ...
14887 (scoped_restore_current_thread::~scoped_restore_current_thread):
14888 ... this.
14889 (scoped_restore_current_thread::scoped_restore_current_thread):
14890 Add assertion.
14891 (thread_apply_all_command, thread_select): Use
14892 switch_to_thread_if_alive.
14893 * infrun.c (proceed, restart_threads, handle_signal_stop)
14894 (switch_back_to_stepped_thread): Switch current thread before
14895 calling target methods.
14896
db2d40f7
PA
148972020-01-10 Pedro Alves <palves@redhat.com>
14898
14899 * inferior.c (switch_to_inferior_no_thread): New function,
14900 factored out from ...
14901 (inferior_command): ... here.
14902 * inferior.h (switch_to_inferior_no_thread): Declare.
14903 * mi/mi-main.c (run_one_inferior): Use
14904 switch_to_inferior_no_thread.
14905
bd420a2d
PA
149062020-01-10 Pedro Alves <palves@redhat.com>
14907
14908 * infcmd.c (kill_command): Remove dead code.
14909
ddf5db90
PA
149102020-01-10 Pedro Alves <palves@redhat.com>
14911
14912 * remote.c (remote_target::mourn_inferior): No longer check
14913 whether the target is running.
14914
5018ce90
PA
149152020-01-10 Pedro Alves <palves@redhat.com>
14916
14917 * corelow.c (core_target::has_execution): Change parameter type to
14918 inferior pointer.
14919 * inferior.c (number_of_live_inferiors): Use
14920 inferior::has_execution instead of target_has_execution_1.
14921 * inferior.h (inferior::has_execution): New.
14922 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14923 inferior::has_execution instead of target_has_execution_1.
14924 * process-stratum-target.c
14925 (process_stratum_target::has_execution): Change parameter type to
14926 inferior pointer. Check the inferior's PID instead of
14927 inferior_ptid.
14928 * process-stratum-target.h
14929 (process_stratum_target::has_execution): Change parameter type to
14930 inferior pointer.
14931 * record-full.c (record_full_core_target::has_execution): Change
14932 parameter type to inferior pointer.
14933 * target.c (target_has_execution_1): Change parameter type to
14934 inferior pointer.
14935 (target_has_execution_current): Adjust.
14936 * target.h (target_ops::has_execution): Change parameter type to
14937 inferior pointer.
14938 (target_has_execution_1): Change parameter type to inferior
14939 pointer. Change return type to bool.
14940 * tracefile.h (tracefile_target::has_execution): Change parameter
14941 type to inferior pointer.
14942
74375d18
PA
149432020-01-10 Pedro Alves <palves@redhat.com>
14944
14945 * exceptions.c (print_flush): Remove current_top_target() check.
14946
acdf84a6
PA
149472020-01-10 Pedro Alves <palves@redhat.com>
14948
14949 * remote.c (show_remote_exec_file): Show the current inferior's
14950 exec-file instead of the command variable's value.
14951
ec506636
PA
149522020-01-10 Pedro Alves <palves@redhat.com>
14953
14954 * record-full.c (record_full_resume_ptid): New global.
14955 (record_full_target::resume): Set it.
14956 (record_full_wait_1): Use record_full_resume_ptid instead of
14957 inferior_ptid.
14958
873657b9
PA
149592020-01-10 Pedro Alves <palves@redhat.com>
14960
14961 * gdbthread.h (scoped_restore_current_thread)
14962 <dont_restore, restore, m_dont_restore>: Declare.
14963 * thread.c (thread_alive): Add assertion. Return bool.
14964 (switch_to_thread_if_alive): New.
14965 (prune_threads): Switch inferior/thread.
14966 (print_thread_info_1): Switch thread before calling target methods.
14967 (scoped_restore_current_thread::restore): New, factored out from
14968 ...
14969 (scoped_restore_current_thread::~scoped_restore_current_thread):
14970 ... this.
14971 (scoped_restore_current_thread::scoped_restore_current_thread):
14972 Add assertion.
14973 (thread_apply_all_command, thread_select): Use
14974 switch_to_thread_if_alive.
14975
7f0ae84c
GB
149762020-01-10 George Barrett <bob@bob131.so>
14977
14978 * stap-probe.c (stap_modify_semaphore): Don't check for null
14979 semaphores.
14980 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14981 for null semaphores.
14982
f5a7c406
AB
149832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14984
14985 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14986 all source windows, and maintain horizontal scroll status while
14987 doing so.
14988
9ae6bf64
TT
149892020-01-09 Tom Tromey <tom@tromey.com>
14990
14991 PR tui/18932:
14992 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14993 update_source_window, not print_source_lines.
14994
b2efe70c
AB
149952020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14996
14997 * tui/tui.c (tui_enable): Register tui hooks after calling
14998 tui_display_main.
14999
5f23a082
CB
150002020-01-09 Christian Biesinger <cbiesinger@google.com>
15001
15002 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15003
3061113b
SM
150042020-01-08 Simon Marchi <simon.marchi@efficios.com>
15005
15006 * thread.c (print_thread_info_1): Fix indentation.
15007
57d75002
CB
150082020-01-09 Christian Biesinger <cbiesinger@google.com>
15009
15010 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15011 unique_xmalloc_ptr outside the if to always free the demangled name.
15012
6a053cb1
TT
150132020-01-08 Tom Tromey <tromey@adacore.com>
15014
15015 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15016 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15017 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15018 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15019 Remove.
15020 (section_offsets): New typedef.
15021 * symtab.c (fixup_section, get_msymbol_address): Update.
15022 * symmisc.c (dump_msymbols): Update.
15023 * symfile.h (relative_addr_info_to_section_offsets)
15024 (symfile_map_offsets_to_segments): Update.
15025 * symfile.c (build_section_addr_info_from_objfile)
15026 (init_objfile_sect_indices): Update.
15027 (struct place_section_arg): Change type of "offsets".
15028 (place_section): Update.
15029 (relative_addr_info_to_section_offsets): Change type of
15030 "section_offsets". Remove "num_sections" parameter.
15031 (default_symfile_offsets, syms_from_objfile_1)
15032 (set_objfile_default_section_offset): Update.
15033 (reread_symbols): No need to preserve section offsets by hand.
15034 (symfile_map_offsets_to_segments): Change type of "offsets".
15035 * stap-probe.c (relocate_address): Update.
15036 * stabsread.h (process_one_symbol): Update.
15037 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15038 (solib_target_relocate_section_addresses): Update.
15039 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15040 Update.
15041 * solib-frv.c (frv_relocate_main_executable): Update.
15042 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15043 * solib-aix.c (solib_aix_get_section_offsets): Change return
15044 type.
15045 (solib_aix_solib_create_inferior_hook): Update.
15046 * remote.c (remote_target::get_offsets): Update.
15047 * psymtab.c (find_pc_sect_psymtab): Update.
15048 * psympriv.h (struct partial_symbol) <address, text_low,
15049 text_high>: Update.
15050 * objfiles.h (obj_section_offset): Update.
15051 (struct objfile) <section_offsets>: Change type.
15052 <num_sections>: Remove.
15053 (objfile_relocate): Update.
15054 * objfiles.c (entry_point_address_query): Update
15055 (relocate_one_symbol): Change type of "section_offsets".
15056 (objfile_relocate1, objfile_relocate1): Change type of
15057 "new_offsets".
15058 (objfile_rebase1): Update.
15059 * mipsread.c (mipscoff_symfile_read): Update.
15060 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15061 parameter.
15062 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15063 (parse_external, psymtab_to_symtab_1): Update.
15064 * machoread.c (macho_symfile_offsets): Update.
15065 * ia64-tdep.c (ia64_find_unwind_table): Update.
15066 * hppa-tdep.c (read_unwind_info): Update.
15067 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15068 * dwarf2read.c (create_addrmap_from_index)
15069 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15070 (process_psymtab_comp_unit_reader, add_partial_symbol)
15071 (add_partial_subprogram, process_full_comp_unit)
15072 (read_file_scope, read_func_scope, read_lexical_block_scope)
15073 (read_call_site_scope, dwarf2_rnglists_process)
15074 (dwarf2_ranges_process, dwarf2_ranges_read)
15075 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15076 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15077 Update.
15078 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15079 Update.
15080 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15081 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15082 (process_one_symbol): Change type of "section_offsets".
15083 * ctfread.c (get_objfile_text_range): Update.
15084 * coffread.c (coff_symtab_read, enter_linenos)
15085 (process_coff_symbol): Update.
15086 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15087 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15088
456e800a
TT
150892020-01-08 Tom Tromey <tromey@adacore.com>
15090
15091 * dwarf2read.c (parse_macro_definition): Use std::string.
15092 (parse_macro_definition): Likewise.
15093
6dfa2fc2
TT
150942020-01-08 Tom Tromey <tromey@adacore.com>
15095
15096 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15097 (ATTR_ALLOC_CHUNK): Remove.
15098
421d1616
TT
150992020-01-08 Tom Tromey <tromey@adacore.com>
15100
15101 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15102
43816ebc
TT
151032020-01-08 Tom Tromey <tromey@adacore.com>
15104
15105 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15106 (dwarf2_compute_name, open_dwo_file): Likewise.
15107 (process_enumeration_scope): Use std::vector.
15108 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15109 (partial_die_info::fixup, dwarf2_start_subfile)
15110 (guess_full_die_structure_name, dwarf2_name): Likewise.
15111 (determine_prefix): Update.
15112 (guess_full_die_structure_name): Make return type const.
15113 (partial_die_full_name): Return unique_xmalloc_ptr.
15114 (DW_FIELD_ALLOC_CHUNK): Remove.
15115
4212d509
TT
151162020-01-07 Tom Tromey <tromey@adacore.com>
15117
15118 PR build/24937:
15119 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15120
06a6207a
JT
151212020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15122
15123 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15124
153d79c4
AB
151252020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15126
15127 * stack.c (print_frame_info): Move disassemble_next_line code
15128 inside source_print block.
15129
66182876
EZ
151302020-01-06 Eli Zaretskii <eliz@gnu.org>
15131
15132 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15133 gdb/signals.h, as we are now using native signal symbols.
15134
cbfa8581
SV
151352020-01-06 Shahab Vahedi <shahab@synopsys.com>
15136
15137 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15138 overflow by an early check of content vs threshold.
aac66a4c 15139 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15140 Likewise.
15141
3f602821
EZ
151422020-01-06 Eli Zaretskii <eliz@gnu.org>
15143
15144 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15145
a08c904d
JT
151462020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15147
15148 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15149 export table if no section contains it's RVA.
15150
89a65580
EZ
151512020-01-06 Eli Zaretskii <eliz@gnu.org>
15152
15153 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15154
8b7fcda2
HD
151552020-01-06 Hannes Domani <ssbssa@yahoo.de>
15156
15157 * source.c (print_source_lines_base): Set last_line_listed.
15158
a61b4f69
SV
151592020-01-06 Shahab Vahedi <shahab@synopsys.com>
15160
15161 * tui/tui-disasm.c: Remove trailing spaces.
15162
559e7e50
EZ
151632020-01-06 Eli Zaretskii <eliz@gnu.org>
15164 Pedro Alves <palves@redhat.com>
15165
15166 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15167 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15168 (windows_gdb_signal_to_target): New function, uses the above
15169 enumeration to convert GDB internal signal codes to equivalent
15170 Windows codes.
15171 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15172 * windows-nat.c: Include "gdb_wait.h".
15173 (get_windows_debug_event): Extract the fatal exception from the
15174 exit status and convert to the equivalent Posix signal number.
15175 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15176 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15177 * gdbsupport/gdb_wait.c: New file, implements
15178 windows_status_to_termsig.
15179 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15180 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15181
f2302a34
AB
151822020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15183
15184 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15185 show_layout.
15186
6a5206eb
LM
151872020-01-05 Luis Machado <luis.machado@linaro.org>
15188
15189 * aarch64-linux-nat.c
15190 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15191 and bfd_mach_aarch64.
15192
6ec1d75e
PW
151932020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15194
15195 * ui-file.c (stdio_file::can_emit_style_escape)
15196 (tee_file::can_emit_style_escape): Ensure style is used also on
15197 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15198 to gdb_stdout.
15199 * main.c (set_gdb_data_directory): Use file style to output the
15200 warning that the given pathname is not a directory.
15201 * top.c (show_history_filename, gdb_safe_append_history)
15202 (show_gdb_datadir): Use file style.
15203
44f81a76
HD
152042020-01-03 Hannes Domani <ssbssa@yahoo.de>
15205
15206 * solib-target.c (struct lm_info_target):
15207 Change offsets to be a unique_xmalloc_ptr.
15208 (solib_target_relocate_section_addresses): Update.
15209
25057eb0
HD
152102020-01-03 Hannes Domani <ssbssa@yahoo.de>
15211
15212 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15213
6e2118f5
BE
152142020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15215
15216 * MAINTAINERS (Write After Approval): Add myself.
15217
8133c7dc
LM
152182020-01-02 Luis Machado <luis.machado@linaro.org>
15219
15220 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15221 Cell BE architecture.
15222 * target.h (struct target_ops) <thread_architecture>: Likewise.
15223
48189bec
HD
152242020-01-01 Hannes Domani <ssbssa@yahoo.de>
15225
15226 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15227
ead1063b
HD
152282020-01-01 Hannes Domani <ssbssa@yahoo.de>
15229
15230 * MAINTAINERS (Write After Approval): Add myself.
15231
e5d78223
JB
152322020-01-01 Joel Brobecker <brobecker@adacore.com>
15233
15234 * gdbarch.sh: Update copyright year range of generated files.
15235
b811d2c2
JB
152362020-01-01 Joel Brobecker <brobecker@adacore.com>
15237
15238 Update copyright year range in all GDB files.
15239
5f4def5c
JB
152402020-01-01 Joel Brobecker <brobecker@adacore.com>
15241
15242 * copyright.py: Convert to Python 3.
15243
51fd4002
JB
152442020-01-01 Joel Brobecker <brobecker@adacore.com>
15245
15246 * copyright.py: Adapt after move of gnulib directory from gdb
15247 directory to toplevel directory.
15248
5fb651f2
JB
152492020-01-01 Joel Brobecker <brobecker@adacore.com>
15250
15251 * copyright.py (main): Exit if run from the wrong directory.
15252
5dd8bf88
JB
152532020-01-01 Joel Brobecker <brobecker@adacore.com>
15254
15255 * top.c (print_gdb_version): Change copyright year to 2020.
15256
9f71dacb 152572020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15258
9f71dacb 15259 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15260
9f71dacb 15261For older changes see ChangeLog-2019.
c906108c
SS
15262\f
15263Local Variables:
15264mode: change-log
15265left-margin: 8
15266fill-column: 74
15267version-control: never
57da7796 15268coding: utf-8
c906108c 15269End:
This page took 3.175506 seconds and 4 git commands to generate.