]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/frame: remove an unused type alias
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
26703721
TBA
12020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * frame.c: Remove the unused 'uinteger_option_def' type alias.
4
61c26be8
MS
52020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
6
7 * breakpoint.c (handle_jit_event): Add an argument, change how
8 `jit_event_handler` is called.
9
932539d7
TT
102020-10-17 Tom Tromey <tom@tromey.com>
11
12 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
13 (scan_xcoff_symtab): Update.
14 * psymtab.h (class psymtab_storage) <global_psymbols,
15 static_psymbols, current_global_psymbols,
16 current_static_psymbols>: Remove.
17 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
18 (match_partial_symbol, lookup_partial_symbol): Update.
19 (print_partial_symbols): Change parameters.
20 (dump_psymtab, recursively_search_psymtabs)
21 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
22 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
23 (concat): Remove.
24 (end_psymtab_common): Simplify.
25 (append_psymbol_to_list): Change parameters.
26 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
27 (init_psymbol_list): Simplify.
28 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
29 * psympriv.h (struct partial_symtab) <empty>: New method.
30 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
31 Remove.
32 <global_psymbols, static_psymbols>: New members.
33 <add_psymbol>: New methods.
34 (add_psymbol_to_list): Don't declare.
35 (psymbol_placement): Move earlier.
36 * mdebugread.c (parse_partial_symbols): Update.
37 (handle_psymbol_enumerators): Change parameters.
38 (mdebug_expand_psymtab): Update.
39 * dwarf2/read.c (process_psymtab_comp_unit_reader)
40 (add_partial_symbol): Update.
41 * dwarf2/index-write.c (write_psymbols): Change parameters.
42 (write_one_signatured_type): Update.
43 (recursively_count_psymbols): Update.
44 (recursively_write_psymbols): Update.
45 (class debug_names) <recursively_write_psymbols>: Update.
46 <write_psymbols>: Change parameters.
47 <write_one_signatured_type>: Update.
48 * dbxread.c (read_dbx_symtab): Update.
49 (dbx_end_psymtab): Use partial_symtab::empty.
50 * ctfread.c (struct ctf_context) <pst>: New member.
51 (create_partial_symtab): Set it.
52 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
53 (scan_partial_symbols): Use the psymtab's context. Update.
54
cfabbd35
TT
552020-10-17 Tom Tromey <tom@tromey.com>
56
57 * valprint.c (generic_value_print): Remove comment.
58 * m2-valprint.c (m2_value_print_inner): Remove comment.
59 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
60 type.
61
520596f2
TV
622020-10-17 Tom de Vries <tdevries@suse.de>
63
64 PR symtab/26317
65 * source.c (select_source_symtab): Handling sal.symtab == NULL for
66 symbol main.
67
76547ab3
TV
682020-10-14 Tom de Vries <tdevries@suse.de>
69
70 PR gdb/26733
71 * solib.c (solib_contains_address_p): Handle
72 'solib->sections == nullptr'.
73
d3a07122
SM
742020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
75
76 PR gdb/26642
77 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
78 target can't do async.
79 * target.c (target_wait): Assert that we don't pass
80 TARGET_WNOHANG to a target that can't async.
81
1b71cfcf
KR
822020-10-13 Kamil Rytarowski <n54@gmx.com>
83
84 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
85 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
86 * alpha-bsd-nat.c: Adjust include.
87 * alpha-bsd-tdep.h: Adjust comment.
88 * alpha-nbsd-tdep.c: Rename to ...
89 * alpha-netbsd-tdep.c: ... this, adjust include.
90 * amd64-nbsd-nat.c: Rename to ...
91 * amd64-netbsd-nat.c: ... this, adjust include.
92 * amd64-nbsd-tdep.c: Rename to ...
93 * amd64-netbsd-tdep.c: ... this, adjust include.
94 * amd64-tdep.h: Adjust include.
95 * arm-nbsd-nat.c: Rename to ...
96 * arm-netbsd-nat.c: ... this, adjust include.
97 * arm-nbsd-tdep.c: Rename to ...
98 * arm-netbsd-tdep.c: ... this, adjust include.
99 * arm-nbsd-tdep.h: Rename to ...
100 * arm-netbsd-tdep.h: ... this, adjust include.
101 * configure.nat: Adjust file lists.
102 * configure.tgt: Likewise.
103 * hppa-nbsd-nat.c: Rename to ...
104 * hppa-netbsd-nat.c: ... this, adjust include.
105 * hppa-nbsd-tdep.c: Rename to ...
106 * hppa-netbsd-tdep.c: ... this, adjust include.
107 * i386-nbsd-nat.c: Rename to ...
108 * i386-netbsd-nat.c: ... this, adjust include.
109 * i386-nbsd-tdep.c: Rename to ...
110 * i386-netbsd-tdep.c: ... this, adjust include.
111 * m68k-bsd-nat.c: Adjust include.
112 * mips-nbsd-nat.c: Rename to ...
113 * mips-netbsd-nat.c: ... this, adjust include.
114 * mips-nbsd-tdep.c: Rename to ...
115 * mips-netbsd-tdep.c: ... this, adjust include.
116 * mips-nbsd-tdep.h: Rename to ...
117 * mips-netbsd-tdep.h: ... this.
118 * nbsd-nat.c: Rename to ...
119 * netbsd-nat.c: ... this, adjust include.
120 * nbsd-nat.h: Rename to ...
121 * netbsd-nat.h: ... this, adjust include.
122 * nbsd-tdep.c: Rename to ...
123 * netbsd-tdep.c: ... this, adjust include.
124 * nbsd-tdep.h: Rename to ...
125 * netbsd-tdep.h: ... this.
126 * ppc-nbsd-nat.c: Rename to ...
127 * ppc-netbsd-nat.c: ... this, adjust include.
128 * ppc-nbsd-tdep.c: Rename to ...
129 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
130 * ppc-nbsd-tdep.h: Rename to ...
131 * ppc-netbsd-tdep.h: ... this.
132 * sh-nbsd-nat.c: Rename to ...
133 * sh-netbsd-nat.c: ... this, adjust include.
134 * sh-nbsd-tdep.c: Rename to ...
135 * sh-netbsd-tdep.c: ... this, adjust include.
136 * sparc-nbsd-nat.c: Rename to ...
137 * sparc-netbsd-nat.c: ... this.
138 * sparc-nbsd-tdep.c: Rename to ...
139 * sparc-netbsd-tdep.c: ... this, adjust include.
140 * sparc64-nbsd-nat.c: Rename to ...
141 * sparc64-netbsd-nat.c: ... this.
142 * sparc64-nbsd-tdep.c: Rename to ...
143 * sparc64-netbsd-tdep.c: ... this, adjust include.
144 * sparc64-tdep.h: Adjust comment.
145 * vax-bsd-nat.c: Adjust include.
146 * vax-nbsd-tdep.c: Rename to ...
147 * vax-netbsd-tdep.c: ... this, adjust include.
148
d7a78e5c
TT
1492020-10-12 Tom Tromey <tom@tromey.com>
150
151 * target.h (struct target_ops) <get_section_table>: Update.
152 (target_get_section_table): Update.
153 * target.c (target_get_section_table, target_section_by_addr)
154 (memory_xfer_partial_1): Update.
155 * target-section.h (target_section_table): Now an alias.
156 * target-delegates.c: Rebuild.
157 * target-debug.h (target_debug_print_target_section_table_p):
158 Rename from target_debug_print_struct_target_section_table_p.
159 * symfile.c (build_section_addr_info_from_section_table): Update.
160 * solib.c (solib_map_sections, solib_contains_address_p): Update.
161 * solib-svr4.c (scan_dyntag): Update.
162 * solib-dsbt.c (scan_dyntag): Update.
163 * remote.c (remote_target::remote_xfer_live_readonly_partial):
164 Update.
165 * record-full.c (record_full_core_target::xfer_partial): Update.
166 * progspace.h (struct program_space) <target_sections>: Update.
167 * exec.h (print_section_info): Update.
168 * exec.c (exec_target::close, build_section_table)
169 (add_target_sections, add_target_sections_of_objfile)
170 (remove_target_sections, exec_on_vfork)
171 (section_table_available_memory)
172 (section_table_xfer_memory_partial)
173 (exec_target::get_section_table, exec_target::xfer_partial)
174 (print_section_info, set_section_command)
175 (exec_set_section_address, exec_target::has_memory): Update.
176 * corelow.c (core_target::build_file_mappings)
177 (core_target::xfer_partial, core_target::info_proc_mappings)
178 (core_target::info_proc_mappings): Update.
179 * bfd-target.c (class target_bfd): Update
180
eda214ce
TT
1812020-10-12 Tom Tromey <tom@tromey.com>
182
183 * progspace.c (program_space::~program_space): Don't call
184 clear_section_table.
185 * exec.h (clear_section_table): Don't declare.
186 * exec.c (exec_target::close): Update.
187 (clear_section_table): Remove.
188
91840ee3
TT
1892020-10-12 Tom Tromey <tom@tromey.com>
190
191 * exec.c (add_target_sections_of_objfile): Simplify.
192
2d128614
TT
1932020-10-12 Tom Tromey <tom@tromey.com>
194
195 * solib.c (solib_map_sections): Update.
196 * record-full.c (record_full_core_open_1): Update.
197 * exec.h (build_section_table): Return a target_section_table.
198 * exec.c (exec_file_attach): Update.
199 (build_section_table): Return a target_section_table.
200 * corelow.c (core_target::core_target): Update.
201 * bfd-target.c (target_bfd::target_bfd): Update.
202
bb2a6777
TT
2032020-10-12 Tom Tromey <tom@tromey.com>
204
205 * target.c (target_section_by_addr, memory_xfer_partial_1):
206 Update.
207 * target-section.h (struct target_section_table): Use
208 std::vector.
209 * symfile.h (build_section_addr_info_from_section_table): Take a
210 target_section_table.
211 * symfile.c (build_section_addr_info_from_section_table): Take a
212 target_section_table.
213 * solist.h (struct so_list) <sections>: Change type.
214 <sections_end>: Remove.
215 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
216 (solib_contains_address_p): Update.
217 * solib-svr4.c (scan_dyntag): Update.
218 * solib-dsbt.c (scan_dyntag): Update.
219 * remote.c (remote_target::remote_xfer_live_readonly_partial):
220 Update.
221 * record-full.c (record_full_core_start, record_full_core_end):
222 Remove.
223 (record_full_core_sections): New global.
224 (record_full_core_open_1, record_full_core_target::xfer_partial):
225 Update.
226 * exec.h (build_section_table, section_table_xfer_memory_partial)
227 (add_target_sections): Take a target_section_table.
228 * exec.c (exec_file_attach, clear_section_table): Update.
229 (resize_section_table): Remove.
230 (build_section_table, add_target_sections): Take a
231 target_section_table.
232 (add_target_sections_of_objfile, remove_target_sections)
233 (exec_on_vfork): Update.
234 (section_table_available_memory): Take a target_section_table.
235 (section_table_read_available_memory): Update.
236 (section_table_xfer_memory_partial): Take a target_section_table.
237 (print_section_info, set_section_command)
238 (exec_set_section_address, exec_target::has_memory): Update.
239 * corelow.c (class core_target) <m_core_section_table,
240 m_core_file_mappings>: Remove braces.
241 <~core_target>: Remove.
242 (core_target::core_target): Update.
243 (core_target::~core_target): Remove.
244 (core_target::build_file_mappings)
245 (core_target::xfer_memory_via_mappings)
246 (core_target::xfer_partial, core_target::info_proc_mappings):
247 Update.
248 * bfd-target.c (target_bfd::xfer_partial): Update.
249 (target_bfd::target_bfd): Update.
250 (target_bfd::~target_bfd): Remove.
251
7b466b10
TT
2522020-10-12 Tom Tromey <tom@tromey.com>
253
254 * target.h (struct target_section, struct target_section_table):
255 Move to target-section.h.
256 * target-section.h: New file.
257
87a37e5e
PA
2582020-10-12 Pedro Alves <pedro@palves.net>
259
260 PR exp/26602
261 * valops.c (struct struct_field_searcher): New.
262 (update_search_result): Rename to ...
263 (struct_field_searcher::update_result): ... this. Simplify
264 prototype. Record all found fields.
265 (do_search_struct_field): Rename to ...
266 (struct_field_searcher::search): ... this. Simplify prototype.
267 Maintain stack of visited baseclass path. Call update_result for
268 fields too. Keep searching fields in baseclasses instead of
269 stopping at the first found field.
270 (search_struct_field): Use struct_field_searcher. When looking
271 for fields, report ambiguous access attempts.
272
9370fd51
AB
2732020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * frame.c (inside_main_func): Check full symbols as well as
276 minimal symbols.
277
59c8a30b
JB
2782020-10-09 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-lang.c (advance_wild_match): Rewrite the function's
281 description. Change the type of target0, t0 and t1 to char.
282
7c184d33
TT
2832020-10-09 Tom Tromey <tromey@adacore.com>
284
285 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
286
5c4258f4
TT
2872020-10-09 Tom Tromey <tromey@adacore.com>
288
289 * ada-lang.h (ada_encode): Return std::string.
290 * ada-lang.c (ada_encode_1): Return std::string.
291 (ada_encode): Likewise.
292 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
293 Update.
294 * ada-exp.y (block_lookup, write_var_or_type): Update.
295
3d87245c
HD
2962020-10-09 Hannes Domani <ssbssa@yahoo.de>
297
298 PR exp/26714
299 * printcmd.c (print_formatted): Handle void results as
300 unformatted prints.
301
bbb826f5
AB
3022020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * arch/aarch32.c (aarch32_create_target_description): Release the
305 target_desc_up as late as possible.
306 * arch/aarch64.c (aarch64_create_target_description): Likewise.
307 * arch/amd64.c (amd64_create_target_description): Likewise.
308 * arch/arc.c (arc_create_target_description): Return a
309 target_desc_up, don't release it.
310 * arch/arc.h (arc_create_target_description): Update declaration.
311 (arc_lookup_target_description): Move target_desc_up into the
312 cache, and return a borrowed pointer.
313 * arch/arm.c (arm_create_target_description): Release the
314 target_desc_up as late as possible.
315 * arch/i386.c (i386_create_target_description): Likewise.
316 * arch/riscv.h (riscv_create_target_description): Update
317 declaration to match definition.
318 * arch/tic6x.c (tic6x_create_target_description): Release the
319 target_desc_up as late as possible.
320
361cb219
AB
3212020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
324 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
325
f5c4b229
JV
3262020-10-09 Jan Vrany <jan.vrany@labware.com>
327
328 * source.c (directory_command): Notify observers that "directories"
329 parameter has changed.
330
b2701685
TT
3312020-10-08 Tom Tromey <tom@tromey.com>
332
333 * cli/cli-cmds.c (print_disassembly): Style function name and
334 addresses. Add _() wrappers.
335
ada508b6
SV
3362020-10-08 Shahab Vahedi <shahab@synopsys.com>
337
338 * NEWS: Mention ARC support in GDBserver.
339
51a948fd
AB
3402020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * arch/aarch32.c (aarch32_create_target_description): Release
343 unique_ptr returned from allocate_target_description.
344 * arch/aarch64.c (aarch64_create_target_description): Likewise.
345 * arch/amd64.c (amd64_create_target_description): Likewise.
346 * arch/arc.c (arc_create_target_description): Likewise.
347 * arch/arm.c (arm_create_target_description): Likewise.
348 * arch/i386.c (i386_create_target_description): Likewise.
349 * arch/riscv.c (riscv_create_target_description): Update return
350 type. Handle allocate_target_description returning a unique_ptr.
351 (riscv_lookup_target_description): Update to handle unique_ptr.
352 * arch/tic6x.c (tic6x_create_target_description): Release
353 unique_ptr returned from allocate_target_description.
354 * features/microblaze-with-stack-protect.c: Regenerate.
355 * features/microblaze.c: Regenerate.
356 * features/mips-dsp-linux.c: Regenerate.
357 * features/mips-linux.c: Regenerate.
358 * features/mips64-dsp-linux.c: Regenerate.
359 * features/mips64-linux.c: Regenerate.
360 * features/nds32.c: Regenerate.
361 * features/nios2.c: Regenerate.
362 * features/or1k.c: Regenerate.
363 * features/rs6000/powerpc-32.c: Regenerate.
364 * features/rs6000/powerpc-32l.c: Regenerate.
365 * features/rs6000/powerpc-403.c: Regenerate.
366 * features/rs6000/powerpc-403gc.c: Regenerate.
367 * features/rs6000/powerpc-405.c: Regenerate.
368 * features/rs6000/powerpc-505.c: Regenerate.
369 * features/rs6000/powerpc-601.c: Regenerate.
370 * features/rs6000/powerpc-602.c: Regenerate.
371 * features/rs6000/powerpc-603.c: Regenerate.
372 * features/rs6000/powerpc-604.c: Regenerate.
373 * features/rs6000/powerpc-64.c: Regenerate.
374 * features/rs6000/powerpc-64l.c: Regenerate.
375 * features/rs6000/powerpc-7400.c: Regenerate.
376 * features/rs6000/powerpc-750.c: Regenerate.
377 * features/rs6000/powerpc-860.c: Regenerate.
378 * features/rs6000/powerpc-altivec32.c: Regenerate.
379 * features/rs6000/powerpc-altivec32l.c: Regenerate.
380 * features/rs6000/powerpc-altivec64.c: Regenerate.
381 * features/rs6000/powerpc-altivec64l.c: Regenerate.
382 * features/rs6000/powerpc-e500.c: Regenerate.
383 * features/rs6000/powerpc-e500l.c: Regenerate.
384 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
385 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
386 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
387 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
388 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
389 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
390 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
391 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
392 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
393 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
394 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
395 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
396 * features/rs6000/powerpc-vsx32.c: Regenerate.
397 * features/rs6000/powerpc-vsx32l.c: Regenerate.
398 * features/rs6000/powerpc-vsx64.c: Regenerate.
399 * features/rs6000/powerpc-vsx64l.c: Regenerate.
400 * features/rs6000/rs6000.c: Regenerate.
401 * features/rx.c: Regenerate.
402 * features/s390-gs-linux64.c: Regenerate.
403 * features/s390-linux32.c: Regenerate.
404 * features/s390-linux32v1.c: Regenerate.
405 * features/s390-linux32v2.c: Regenerate.
406 * features/s390-linux64.c: Regenerate.
407 * features/s390-linux64v1.c: Regenerate.
408 * features/s390-linux64v2.c: Regenerate.
409 * features/s390-te-linux64.c: Regenerate.
410 * features/s390-tevx-linux64.c: Regenerate.
411 * features/s390-vx-linux64.c: Regenerate.
412 * features/s390x-gs-linux64.c: Regenerate.
413 * features/s390x-linux64.c: Regenerate.
414 * features/s390x-linux64v1.c: Regenerate.
415 * features/s390x-linux64v2.c: Regenerate.
416 * features/s390x-te-linux64.c: Regenerate.
417 * features/s390x-tevx-linux64.c: Regenerate.
418 * features/s390x-vx-linux64.c: Regenerate.
419 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
420 from allocate_target_description.
421 * target-descriptions.c (allocate_target_description): Update
422 return type.
423 (print_c_tdesc::visit_pre): Release unique_ptr returned from
424 allocate_target_description.
425
485c47e5
TT
4262020-10-07 Tom Tromey <tromey@adacore.com>
427
428 * unittests/search-memory-selftests.c: New file.
429 * Makefile.in (SELFTESTS_SRCS): Add
430 unittests/search-memory-selftests.c.
431
3a135a91
TT
4322020-10-07 Tom Tromey <tromey@adacore.com>
433
434 PR gdb/16930:
435 * findcmd.c (_initialize_mem_search): Mention that the range is
436 inclusive.
437
4a72de73
TT
4382020-10-07 Tom Tromey <tromey@adacore.com>
439
440 * target.h (simple_search_memory): Don't declare.
441 * target.c (simple_search_memory): Move to gdbsupport.
442 (default_search_memory): Update.
443 * remote.c (remote_target::search_memory): Update.
444
a038ffd8
SM
4452020-10-07 Simon Marchi <simon.marchi@efficios.com>
446
447 * Makefile.in (COMPILE): Add CXXFLAGS.
448 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
449 (check-headers): Add CXXFLAGS.
450
cc463201
AK
4512020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
452
453 * arc-linux-tdep.h: New file.
454 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
455 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
456 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
457 arc_linux_gregset, arc_linux_v2_regset,
458 arc_linux_iterate_over_regset_sections,
459 arc_linux_core_read_description): Implement.
460 (arc_linux_init_osabi): Set iterate_over_regset_sections.
461 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
462 (arc_gdbarch_features_create): Add.
463 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
464
e4bd363f
SV
4652020-10-07 Shahab Vahedi <shahab@synopsys.com>
466
467 * arch/arc.h: Rename "arc_gdbarch_features" to
468 "arc_arch_features".
469 * arc-tdep.h: Likewise.
470 * arc-tdep.c: Likewise.
471
b68bef99
TBA
4722020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
473
474 * infcmd.c (attach_command): Remove the redundant call to
475 `clear_proceed_status`.
476
4641551a
KR
4772020-10-07 Kamil Rytarowski <n54@gmx.com>
478
479 * nat/netbsd-nat.c (write_memory, read_memory): Update.
480
91e5e8db
KR
4812020-10-07 Kamil Rytarowski <n54@gmx.com>
482
483 * nat/netbsd-nat.c (write_memory, read_memory): Add.
484 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
485 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
486
64c03bdb
SM
4872020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
490 (_initialize_break_catch_sig): Don't allocate array.
491
31a8f60f
AB
4922020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * symtab.c (find_pc_line): Return unmapped addresses when the
495 requested address is also unmapped.
496
9e6dbd8b
SM
4972020-10-05 Simon Marchi <simon.marchi@efficios.com>
498
499 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
500 tui/tui-out.h.
501
a1d217e8
SM
5022020-10-05 Simon Marchi <simon.marchi@efficios.com>
503
504 * amd64-windows-tdep.c (amd64_windows_return_value): Use
505 type::is_vector instead of TYPE_VECTOR.
506
7d144117
SM
5072020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
508
509 * auto-load.c (auto_load_objfile_script_1): Don't use
510 debugfile_holder as temporary variable when stripping drive
511 letter.
512
cd096ec8
HD
5132020-10-05 Hannes Domani <ssbssa@yahoo.de>
514
515 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
516 Add TYPE_CODE_COMPLEX.
517 (amd64_windows_return_value): Fix types returned via XMM0.
518
b58e7f72
AH
5192020-10-05 Alan Hayward <alan.hayward@arm.com>
520
521 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
522 AArch64/ARM maintainers.
523
8d378f27
SM
5242020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * NEWS: Mention set/show debug event-loop.
527
d5519913
TT
5282020-10-02 Tom Tromey <tromey@adacore.com>
529
530 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
531 REG_EXTENDED.
532
18b67edc
SM
5332020-10-02 Simon Marchi <simon.marchi@efficios.com>
534
535 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
536 * procfs.c (procfs_inferior_created): Remove.
537 (_initialize_procfs): Don't register procfs_inferior_created.
538
6b01403b
SM
5392020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
540
541 * async-event.c (invoke_async_signal_handlers): Add debug
542 print.
543 (check_async_event_handlers): Likewise.
544 * event-top.c (show_debug_event_loop): New function.
545 (_initialize_event_top): Register "set debug event-loop"
546 setting.
547
ba988419
SM
5482020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
551 * debug.h: Remove.
552 * infrun.c: Include gdbsupport/common-debug.h.
553 * linux-nat.c: Likewise.
554
db20ebdf
SM
5552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * async-event.h (create_async_signal_handler): Add name
558 parameter.
559 (create_async_event_handler): Likewise.
560 * async-event.c (struct async_signal_handler) <name>: New field.
561 (struct async_event_handler) <name>: New field.
562 (create_async_signal_handler): Assign name.
563 (create_async_event_handler): Assign name.
564 * event-top.c (async_init_signals): Pass name when creating
565 handler.
566 * infrun.c (_initialize_infrun): Likewise.
567 * record-btrace.c (record_btrace_push_target): Likewise.
568 * record-full.c (record_full_open): Likewise.
569 * remote-notif.c (remote_notif_state_allocate): Likewise.
570 * remote.c (remote_target::open_1): Likewise.
571 * tui/tui-win.c (tui_initialize_win): Likewise.
572
2554f6f5
SM
5732020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * async-event.c (initialize_async_signal_handlers): Pass name to
576 add_file_handler
577 * event-top.c (ui_register_input_event_handler): Likewise.
578 * linux-nat.c (linux_nat_target::async): Likewise.
579 * run-on-main-thread.c (_initialize_run_on_main_thread):
580 Likewise
581 * ser-base.c (reschedule): Likewise.
582 (ser_base_async): Likewise.
583 * tui/tui-io.c: Likewise.
584 * top.h (struct ui) <num>: New field.
585 * top.c (highest_ui_num): New variable.
586 (ui::ui): Initialize num.
587
a7aba266
SM
5882020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
589
590 * observable.h <inferior_created>: Remove parameters. Update all
591 listeners.
592 * inferior.h (post_create_inferior): Remove target parameter.
593 Update all callers.
594
048fde1e 5952020-10-02 Nitika Achra <Nitika.Achra@amd.com>
596
597 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
598 and DW_MACRO_undef_strx.
599 (dwarf_decode_macros): Likewise
600 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
601 which is the value of DW_AT_str_offsets_base.
602 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
603 str_offsets_base.
604
064280be
KR
6052020-10-01 Kamil Rytarowski <n54@gmx.com>
606
607 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
608
6ff33035
KR
6092020-10-01 Kamil Rytarowski <n54@gmx.com>
610
611 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
612 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
613
1eb6eb79
KR
6142020-10-01 Kamil Rytarowski <n54@gmx.com>
615
616 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
617
95eb9e54
TV
6182020-09-30 Tom de Vries <tdevries@suse.de>
619
620 PR symtab/26683
621 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
622
cae21f8e
TT
6232020-09-30 Tom Tromey <tromey@adacore.com>
624
625 * dwarf2/read.c (handle_variant): Use constant_value.
626
529908cb
TT
6272020-09-29 Tom Tromey <tom@tromey.com>
628
629 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
630 (read_file_scope, dwarf2_get_pc_bounds)
631 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
632 (read_structure_type, handle_struct_member_die)
633 (read_enumeration_type, read_array_type, read_set_type)
634 (read_tag_pointer_type, read_tag_reference_type)
635 (read_subroutine_type, read_base_type, read_subrange_type)
636 (read_full_die_1, partial_die_info::read)
637 (partial_die_info::read, by, new_symbol)
638 (dwarf2_const_value_data, dwarf2_const_value_attr)
639 (dump_die_shallow, dwarf2_fetch_constant_bytes)
640 (prepare_one_comp_unit): Update.
641 * dwarf2/attribute.h (DW_UNSND): Remove.
642
c45bc3f8
TT
6432020-09-29 Tom Tromey <tom@tromey.com>
644
645 * dwarf2/read.c (read_func_scope, prototyped_function_p)
646 (read_subroutine_type, partial_die_info::read)
647 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
648 (dwarf2_add_member_fn): Update.
649 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
650 * dwarf2/attribute.c (attribute::as_boolean): New method.
651
23dca5c3
TT
6522020-09-29 Tom Tromey <tom@tromey.com>
653
654 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
655 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
656 method.
657 * dwarf2/attribute.c (attribute::as_virtuality): New method.
658
52c14d11
TT
6592020-09-29 Tom Tromey <tom@tromey.com>
660
661 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
662 the attribute's form.
663
e8e5c158
TT
6642020-09-29 Tom Tromey <tom@tromey.com>
665
666 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
667 (dwarf2_add_member_fn): Update.
668 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
669 * dwarf2/attribute.c (attribute::defaulted): New method, from
670 is_valid_DW_AT_defaulted.
671
d4df075e
TT
6722020-09-29 Tom Tromey <tom@tromey.com>
673
674 * dwarf2/read.c (dw2_get_file_names_reader)
675 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
676 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
677 (dwarf2_symbol_mark_computed): Use as_unsigned.
678 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
679 method.
680 <form_is_section_offset>: Update comment.
681
bf23a268
TT
6822020-09-29 Tom Tromey <tom@tromey.com>
683
684 * dwarf2/read.c (dwarf2_access_attribute): Rename from
685 dwarf2_default_access_attribute. Look up attribute.
686 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
687 Update.
688
7a5f294d
TT
6892020-09-29 Tom Tromey <tom@tromey.com>
690
691 * dwarf2/read.c (skip_one_die): Update.
692 (read_full_die_1): Change how reprocessing is done.
693 (partial_die_info::read): Update.
694 (read_attribute_value): Remove need_reprocess parameter.
695 (read_attribute): Likewise.
696 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
697 New method.
698
36d378cf
TT
6992020-09-29 Tom Tromey <tom@tromey.com>
700
701 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
702 (dwarf2_const_value_attr, dump_die_shallow)
703 (dwarf2_fetch_constant_bytes): Update.
704 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
705 comment.
706 <set_address>: New method.
707 (DW_ADDR): Remove.
708 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
709 (attribute::as_string, attribute::as_address): Add assert.
710
fe56917a
TT
7112020-09-29 Tom Tromey <tom@tromey.com>
712
713 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
714 (read_attribute_reprocess, read_attribute_value): Update.
715 (read_attribute): Clear requires_reprocessing.
716 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
717 form_requires_reprocessing>: New methods.
718 <string_init>: Clear requires_reprocessing.
719 <set_unsigned_reprocess>: New method.
720 <name>: Shrink by one bit.
721 <requires_reprocessing>: New member.
722 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
723 method.
724
414ad644
TT
7252020-09-29 Tom Tromey <tom@tromey.com>
726
727 * dwarf2/read.c (read_attribute_value): Update.
728 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
729 set_unsigned>: New methods.
730 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
731
1bc397c5
TT
7322020-09-29 Tom Tromey <tom@tromey.com>
733
734 * dwarf2/read.c (get_alignment, read_array_order)
735 (read_attribute_value, dwarf2_const_value_attr)
736 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
737 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
738 New methods.
739 (DW_SND): Remove.
740
630ed6b9
TT
7412020-09-29 Tom Tromey <tom@tromey.com>
742
743 * dwarf2/read.c (read_attribute_value, lookup_die_type)
744 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
745 Update.
746 * dwarf2/attribute.h (struct attribute) <as_signature,
747 set_signature>: New methods.
748 (DW_SIGNATURE): Remove.
749
9d2246fc
TT
7502020-09-29 Tom Tromey <tom@tromey.com>
751
752 * dwarf2/read.c (read_call_site_scope)
753 (handle_data_member_location, dwarf2_add_member_fn)
754 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
755 (partial_die_info::read, read_attribute_value)
756 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
757 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
758 (dwarf2_symbol_mark_computed): Update.
759 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
760 methods.
761 (DW_BLOCK): Remove.
762 * dwarf2/attribute.c (attribute::form_is_block): Add
763 DW_FORM_data16.
764
c6481205
TT
7652020-09-29 Tom Tromey <tom@tromey.com>
766
767 * dwarf2/read.c (read_cutu_die_from_dwo)
768 (read_attribute_reprocess, read_attribute_value, read_attribute)
769 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
770 (dwarf2_fetch_constant_bytes): Update.
771 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
772 <set_string_noncanonical, set_string_canonical>: New methods.
773 <string_is_canonical>: Update comment.
774 <canonical_string_p>: Add assert.
775 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
776 * dwarf2/attribute.c (attribute::form_is_string): New method.
777 (attribute::string): Use it.
778
3b64bf15
TT
7792020-09-29 Tom Tromey <tom@tromey.com>
780
781 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
782 (dump_die_shallow): Use canonical_string_p.
783 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
784 method.
785
2c830f54
TT
7862020-09-29 Tom Tromey <tom@tromey.com>
787
788 * dwarf2/read.c (partial_die_info::read)
789 (dwarf2_const_value_attr, anonymous_struct_prefix, )
790 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
791 attribute::as_string.
792
6c412691
TT
7932020-09-29 Tom Tromey <tom@tromey.com>
794
795 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
796 DW_ADDR.
797 (attribute::string): Don't use DW_STRING.
798 (attribute::get_ref_die_offset): Don't use DW_UNSND.
799 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
800
95f982e5
TT
8012020-09-29 Tom Tromey <tom@tromey.com>
802
803 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
804 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
805 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
806 * dwarf2/attribute.h (struct attribute): Rename methods.
807 * dwarf2/attribute.c (attribute::as_address): Rename from
808 value_as_address.
809 (attribute::as_string): Rename from value_as_string.
810
f800b00e
TT
8112020-09-29 Tom Tromey <tom@tromey.com>
812
813 * dwarf2/read.c (partial_die_info::read) <case
814 DW_AT_linkage_name>: Use value_as_string.
815 (dwarf2_string_attr): Use value_as_string.
816 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
817 method.
818 * dwarf2/attribute.c (attribute::value_as_string): New method.
819
de38d64a
PA
8202020-09-29 Pedro Alves <pedro@palves.net>
821
822 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
823 defined before using '#pragma GCC diagnostic' instead of checking
824 __clang__.
825
9aed480c
TT
8262020-09-28 Tom Tromey <tom@tromey.com>
827
828 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
829 (handle_signal_stop): Update.
830 * procfs.c (procfs_target::insert_watchpoint): Update.
831 * target.h (target_have_steppable_watchpoint): Now a function.
832
8a3ecb79
TT
8332020-09-28 Tom Tromey <tom@tromey.com>
834
835 * infrun.c (set_schedlock_func): Update.
836 * target.h (target_can_lock_scheduler): Now a function.
837
55f6301a
TT
8382020-09-28 Tom Tromey <tom@tromey.com>
839
840 * inferior.h (class inferior) <has_execution>: Update.
841 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
842 * valops.c (find_function_in_inferior)
843 (value_allocate_space_in_inferior): Update.
844 * top.c (kill_or_detach): Update.
845 * target.c (target_preopen, set_target_permissions): Update.
846 (target_has_execution_current): Remove.
847 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
848 Update.
849 * solib.c (update_solib_list, reload_shared_libraries): Update.
850 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
851 * solib-dsbt.c (enable_break): Update.
852 * score-tdep.c (score7_fetch_inst): Update.
853 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
854 Update.
855 * remote.c (remote_target::start_remote)
856 (remote_target::remote_check_symbols, remote_target::open_1)
857 (remote_target::remote_detach_1, remote_target::verify_memory)
858 (remote_target::xfer_partial, remote_target::read_description)
859 (remote_target::get_min_fast_tracepoint_insn_len): Update.
860 * record-full.c (record_full_open_1): Update.
861 * record-btrace.c (record_btrace_target_open): Update.
862 * objc-lang.c (lookup_objc_class, lookup_child_selector)
863 (value_nsstring): Update.
864 * linux-thread-db.c (add_thread_db_info)
865 (thread_db_find_new_threads_silently, check_thread_db_callback)
866 (try_thread_db_load_1, record_thread): Update.
867 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
868 Update.
869 * linux-fork.c (checkpoint_command): Update.
870 * infrun.c (set_non_stop, set_observer_mode)
871 (check_multi_target_resumption, for_each_just_stopped_thread)
872 (maybe_remove_breakpoints, normal_stop)
873 (class infcall_suspend_state): Update.
874 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
875 (info_program_command, attach_command): Update.
876 * infcall.c (call_function_by_hand_dummy): Update.
877 * inf-loop.c (inferior_event_handler): Update.
878 * gcore.c (gcore_command, derive_heap_segment): Update.
879 * exec.c (exec_file_command): Update.
880 * eval.c (evaluate_subexp): Update.
881 * compile/compile.c (compile_to_object): Update.
882 * cli/cli-dump.c (restore_command): Update.
883 * breakpoint.c (update_watchpoint)
884 (update_inserted_breakpoint_locations)
885 (insert_breakpoint_locations, get_bpstat_thread): Update.
886 * target.h (target_has_execution): Remove macro.
887 (target_has_execution_current): Don't declare.
888 (target_has_execution): Rename from target_has_execution_1. Add
889 argument default.
890
05374cfd
TT
8912020-09-28 Tom Tromey <tom@tromey.com>
892
893 * mi/mi-main.c (exec_reverse_continue)
894 (mi_cmd_list_target_features): Update.
895 * infrun.c (set_exec_direction_func): Update.
896 * target.c (default_execution_direction): Update.
897 * reverse.c (exec_reverse_once): Update.
898 * target.h (target_can_execute_reverse): Now a function.
899
9dccd06e
TT
9002020-09-28 Tom Tromey <tom@tromey.com>
901
902 * tui/tui-regs.c (tui_get_register)
903 (tui_data_window::show_registers): Update.
904 * thread.c (scoped_restore_current_thread::restore)
905 (scoped_restore_current_thread::scoped_restore_current_thread):
906 Update.
907 * regcache-dump.c (regcache_print): Update.
908 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
909 Update.
910 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
911 * mep-tdep.c (current_me_module, current_options): Update.
912 * linux-thread-db.c (thread_db_load): Update.
913 * infcmd.c (registers_info, info_vector_command)
914 (info_float_command): Update.
915 * ia64-tdep.c (ia64_frame_prev_register)
916 (ia64_sigtramp_frame_prev_register): Update.
917 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
918 * gcore.c (derive_stack_segment): Update.
919 * frame.c (get_current_frame, has_stack_frames): Update.
920 * findvar.c (language_defn::read_var_value): Update.
921 * arm-tdep.c (arm_pc_is_thumb): Update.
922 * target.c (target_has_registers): Rename from
923 target_has_registers_1.
924 * target.h (target_has_registers): Remove macro.
925 (target_has_registers): Rename from target_has_registers_1.
926
841de120
TT
9272020-09-28 Tom Tromey <tom@tromey.com>
928
929 * windows-tdep.c (tlb_make_value): Update.
930 * tui/tui-regs.c (tui_data_window::show_registers): Update.
931 * thread.c (scoped_restore_current_thread::restore)
932 (scoped_restore_current_thread::scoped_restore_current_thread)
933 (thread_command): Update.
934 * stack.c (backtrace_command_1, frame_apply_level_command)
935 (frame_apply_all_command, frame_apply_command): Update.
936 * infrun.c (siginfo_make_value, restore_infcall_control_state):
937 Update.
938 * gcore.c (derive_stack_segment): Update.
939 * frame.c (get_current_frame, has_stack_frames): Update.
940 * auxv.c (info_auxv_command): Update.
941 * ada-tasks.c (ada_build_task_list): Update.
942 * target.c (target_has_stack): Rename from target_has_stack_1.
943 * target.h (target_has_stack): Remove macro.
944 (target_has_stack): Rename from target_has_stack_1.
945
a739972c
TT
9462020-09-28 Tom Tromey <tom@tromey.com>
947
948 * target.c (target_has_memory): Rename from target_has_memory_1.
949 * tui/tui-regs.c (tui_data_window::show_registers): Update.
950 * thread.c (scoped_restore_current_thread::restore)
951 (scoped_restore_current_thread::scoped_restore_current_thread):
952 Update.
953 * frame.c (get_current_frame, has_stack_frames): Update.
954 * target.h (target_has_memory): Remove macro.
955 (target_has_memory): Rename from target_has_memory_1.
956
5b8a4776
TT
9572020-09-28 Tom Tromey <tom@tromey.com>
958
959 * target.c (target_has_all_memory_1): Remove.
960 * target.h (target_has_all_memory): Remove define.
961 (target_has_all_memory_1): Don't declare.
962
bd356ec6
SM
9632020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
964
965 * ser-base.c: Adjust comments formatting.
966
2c72d5e5
TT
9672020-09-27 Tom Tromey <tom@tromey.com>
968
969 PR tui/25342:
970 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
971
35a98237
TT
9722020-09-27 Tom Tromey <tom@tromey.com>
973
974 PR tui/25342:
975 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
976
9e820dec
TT
9772020-09-27 Tom Tromey <tom@tromey.com>
978
979 * unittests/tui-selftests.c: Update.
980 * tui/tui-winsource.h (struct tui_source_window_base)
981 <extra_margin, show_line_number, refresh_pad>: New methods.
982 <m_max_length, m_pad>: New members.
983 (tui_copy_source_line): Update.
984 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
985 first_col, line_width, ndigits parameters. Add length.
986 (tui_source_window_base::show_source_line): Write to pad. Line
987 number now 0-based.
988 (tui_source_window_base::refresh_pad): New method.
989 (tui_source_window_base::show_source_content): Write to pad. Call
990 refresh_pad.
991 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
992 not refill.
993 (tui_source_window_base::update_exec_info): Call
994 show_line_number.
995 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
996 method.
997 <m_digits>: New member.
998 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
999 and m_max_length.
1000 (tui_source_window::show_line_number): New method.
1001 * tui/tui-io.h (tui_puts): Fix comment.
1002 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1003 m_max_length.
1004
c15c15c8
TT
10052020-09-27 Tom Tromey <tom@tromey.com>
1006
1007 * tui/tui-winsource.c
1008 (tui_source_window_base::set_is_exec_point_at): Don't call
1009 show_source_line.
1010
149830c1
TT
10112020-09-27 Tom Tromey <tom@tromey.com>
1012
1013 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1014 method.
1015 <erase>: Update.
1016 <cursor_x, cursor_y>: Remove.
1017 <m_inner_window>: New member.
1018 (tui_py_window::rerender): Create inner window.
1019 (tui_py_window::output): Write to inner window.
1020
8f9929bb
GR
10212020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1022
1023 PR python/26586
1024 * cli/cli-script.c (execute_control_commands): don't set
1025 instream to nullptr here as this breaks the from_tty argument
1026 to gdb.execute in Python.
1027 (execute_user_command): set instream to nullptr here instead.
1028
956bdb59
SM
10292020-09-25 Simon Marchi <simon.marchi@efficios.com>
1030
1031 * infrun.h (infrun_debug_printf): Fix formatting.
1032 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1033
3b93626b
SJ
10342020-09-25 Saagar Jha <saagar@saagarjha.com>
1035
1036 * compile/compile-object-load.h (struct munmap_list): Add
1037 explicitly-defined move constructor.
1038
b551a89f
TT
10392020-09-24 Tom Tromey <tromey@adacore.com>
1040
1041 PR tui/26638:
1042 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1043 method.
1044 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1045 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1046 (tui_prev_win): Rewrite.
1047
99bb393f
HD
10482020-09-23 Hannes Domani <ssbssa@yahoo.de>
1049
1050 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1051 in WOW64 processes as SIGINT.
1052 * nat/windows-nat.h: Make wow64_process a shared variable.
1053 * windows-nat.c: Remove static wow64_process variable.
1054
20a5fcbd
TT
10552020-09-23 Tom Tromey <tom@tromey.com>
1056
1057 PR symtab/25470:
1058 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1059 offset and bit size.
1060 * printcmd.c (print_scalar_formatted): Handle zero-length
1061 integer.
1062 (print_scalar_formatted): Use bit_size_differs_p.
1063 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1064 constant.
1065 (union type_specific): <int_stuff>: New member.
1066 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1067 methods.
1068 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1069 TYPE_SPECIFIC_FIELD.
1070 (recursive_dump_type, copy_type_recursive): Update.
1071 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1072 DW_AT_data_bit_offset.
1073
bac51ab7
TT
10742020-09-23 Tom Tromey <tom@tromey.com>
1075
1076 * utils.h (class gdb_argv): Add move operators.
1077 <append>: New methods.
1078 * compile/compile.c (build_argc_argv): Remove.
1079 (compile_args_argc): Remove.
1080 (compile_args_argv): Change type.
1081 (set_compile_args): Simplify.
1082 (append_args): Remove.
1083 (filter_args): Remove argcp parameter.
1084 (get_args): Return gdb_argv. Simplify.
1085 (compile_to_object): Update.
1086
92677124
TT
10872020-09-23 Tom Tromey <tom@tromey.com>
1088
1089 * compile/compile-object-run.c (do_module_cleanup)
1090 <~do_module_cleanup> :Remove.
1091 (do_module_cleanup): Update.
1092 * compile/compile-object-load.h (struct munmap_list): Add move
1093 assignment operator.
1094 <source_file>: Now a std::string.
1095 <munmap_list>: Rename. No longer a pointer.
1096 * compile/compile-object-load.c (struct setup_sections_data): Add
1097 constructor.
1098 <setup_one_section>: Declare.
1099 <munmap_list>: Move earlier.
1100 <m_bfd>: New member.
1101 <m_last_size, m_last_section_first, m_last_prot,
1102 m_last_max_alignment>: Rename, add initializers where needed.
1103 (setup_sections_data::setup_one_section): Rename from
1104 setup_sections. Update.
1105 (compile_object_load): Update. Don't use bfd_map_over_sections.
1106
e616f60a
TT
11072020-09-23 Tom Tromey <tom@tromey.com>
1108
1109 * compile/compile-object-run.c (struct do_module_cleanup): Add
1110 parameters to constructor. Update destructor.
1111 <source_file, scope, scope_data, out_value_type, out_value_addr,
1112 munmap_list_head, objfile_name_string>: Remove.
1113 <module>: New member.
1114 (do_module_cleanup): Update.
1115 (compile_object_run): Update.
1116
e947a848
TT
11172020-09-23 Tom Tromey <tom@tromey.com>
1118
1119 * compile/compile.c (eval_compile_command): Update.
1120 * compile/compile-object-run.h (compile_object_run): Take a
1121 compile_module_up.
1122 * compile/compile-object-run.c (compile_object_run): Take a
1123 compile_module_up.
1124 * compile/compile-object-load.h (struct compile_module): Add
1125 constructor, destructor.
1126 (compile_module_up): New typedef.
1127 (compile_object_load): Return compile_object_up.
1128 * compile/compile-object-load.c (compile_object_load): Return
1129 compile_module_up.
1130
0dbf6ee6
TT
11312020-09-23 Tom Tromey <tom@tromey.com>
1132
1133 * compile/compile-object-run.c (struct do_module_cleanup): Add
1134 constructor, destructor.
1135 <objfile_name_string>: Don't use struct hack.
1136 (do_module_cleanup): Use delete.
1137 (compile_object_run): Use new.
1138
ebe824f5
TT
11392020-09-23 Tom Tromey <tom@tromey.com>
1140
1141 * compile/compile-cplus-types.c
1142 (compile_cplus_convert_struct_or_union): Use std::vector.
1143 (compile_cplus_convert_func): Likewise.
1144 * compile/compile-c-types.c (convert_func): Use std::vector.
1145
5dd918d9
TT
11462020-09-21 Tom Tromey <tromey@adacore.com>
1147
1148 * sparc-tdep.c (sparc32_skip_prologue): Use
1149 skip_prologue_using_sal.
1150
5486c517
TT
11512020-09-19 Tom Tromey <tom@tromey.com>
1152
1153 * symfile.c (add_section_size_callback): Remove.
1154 (load_one_section): Rename from load_section_callback. Change
1155 parameters.
1156 (generic_load): Use foreach.
1157
8a6bb1d1
TT
11582020-09-19 Tom Tromey <tom@tromey.com>
1159
1160 * exec.c (add_to_section_table): Remove.
1161 (build_section_table): Use foreach.
1162
08f93a1a
TT
11632020-09-19 Tom Tromey <tom@tromey.com>
1164
1165 * elfread.c (elf_locate_sections): Change parameters.
1166 (elf_symfile_read): Use foreach.
1167
03cd72b8
TT
11682020-09-19 Tom Tromey <tom@tromey.com>
1169
1170 * cli/cli-dump.c (struct callback_data): Remove.
1171 (restore_one_section): Rename from restore_section_callback.
1172 Change parameters.
1173 (restore_binary_file): Change parameters.
1174 (restore_command): Use foreach.
1175
f4f2b85f
TT
11762020-09-19 Tom Tromey <tom@tromey.com>
1177
1178 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1179 (gcore_copy_callback): Likewise.
1180 (gcore_memory_sections): Use foreach.
1181
b35c1d1c
TT
11822020-09-19 Tom Tromey <tom@tromey.com>
1183
1184 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1185 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1186 parameters.
1187 (generic_elf_osabi_sniffer): Use foreach.
1188 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1189 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1190
5bb6e9dd
TT
11912020-09-19 Tom Tromey <tom@tromey.com>
1192
1193 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1194 (dwarf2_get_dwz_file): Use foreach.
1195 (dwarf2_locate_dwo_sections): Change parameters.
1196 (open_and_init_dwo_file): Use foreach.
1197 (dwarf2_locate_common_dwp_sections): Change parameters.
1198 (open_and_init_dwp_file): Use foreach.
1199
ad7277da
TT
12002020-09-19 Tom Tromey <tom@tromey.com>
1201
1202 * symfile.h: (find_lowest_section): Don't declare.
1203 * symfile.c (find_lowest_section): Now static. Change
1204 parameters.
1205 (struct place_section_arg): Remove.
1206 (place_section): Change parameters.
1207 (addr_info_make_relative): Use foreach.
1208 (symfile_dummy_outputs): Remove.
1209 (default_symfile_relocate): Use foreach.
1210
cb814f2e
TT
12112020-09-19 Tom Tromey <tom@tromey.com>
1212
1213 * objfiles.c (add_to_objfile_sections): Rename from
1214 add_to_objfile_sections_full.
1215 (add_to_objfile_sections): Remove.
1216 (build_objfile_section_table): Use foreach.
1217
3cabfd26
TT
12182020-09-19 Tom Tromey <tom@tromey.com>
1219
1220 * stap-probe.c (get_stap_base_address_1): Remove.
1221 (get_stap_base_address): Use foreach.
1222
1ce51eb5
TT
12232020-09-19 Tom Tromey <tom@tromey.com>
1224
1225 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1226 parameters.
1227 (gdb_bfd_close_or_warn): Use foreach.
1228
a190fabb
TT
12292020-09-19 Tom Tromey <tom@tromey.com>
1230
1231 * corelow.c (add_to_thread_list): Change parameters.
1232 (core_target_open): Use foreach.
1233
cafb0d81
TT
12342020-09-19 Tom Tromey <tom@tromey.com>
1235
1236 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1237 existing function.
1238
c8d5abea
AB
12392020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1242 for arrays.
1243
6d816919
AB
12442020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * eval.c: Remove 'f-lang.h' include.
1247 (value_f90_subarray): Moved to f-lang.c.
1248 (eval_call): Renamed to...
1249 (evaluate_subexp_do_call): ...this, is no longer static, header
1250 comment moved into header file.
1251 (evaluate_funcall): Update call to eval_call.
1252 (skip_undetermined_arglist): Moved to f-lang.c.
1253 (fortran_value_subarray): Likewise.
1254 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1255 moved to evaluate_subexp_f.
1256 (calc_f77_array_dims): Moved to f-lang.c
1257 * expprint.c (print_subexp_funcall): New function.
1258 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1259 moved to print_subexp_f, OP_FUNCALL uses new function.
1260 (dump_subexp_body_funcall): New function.
1261 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1262 moved to dump_subexp_f, OP_FUNCALL uses new function.
1263 * expression.h (evaluate_subexp_do_call): Declare.
1264 * f-lang.c (value_f90_subarray): Moved from eval.c.
1265 (skip_undetermined_arglist): Likewise.
1266 (calc_f77_array_dims): Likewise.
1267 (fortran_value_subarray): Likewise.
1268 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1269 (operator_length_f): Likewise.
1270 (print_subexp_f): Likewise.
1271 (dump_subexp_body_f): Likewise.
1272 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1273 declaration of this operation to here.
1274 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1275 support moved to operator_length_f.
1276 * parser-defs.h (dump_subexp_body_funcall): Declare.
1277 (print_subexp_funcall): Declare.
1278 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1279 fortran-operator.def.
1280
8c37706a
AB
12812020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * eval.c (fortran_value_subarray): New function, content is taken
1284 from...
1285 (evaluate_subexp_standard): ...here, in two places. Now arrays
1286 and strings both call the new function.
1287 (calc_f77_array_dims): Add header comment, handle strings.
1288
14f9473c
VC
12892020-09-18 Victor Collod <vcollod@nvidia.com>
1290
1291 PR gdb/26635
1292 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1293 (i386_analyze_prologue): Call i386_skip_endbr.
1294
b60cea74
TT
12952020-09-18 Tom Tromey <tromey@adacore.com>
1296
1297 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1298 (windows_nat_target::wait): Update.
1299 * target/wait.h (enum target_wait_flag): New. Use
1300 DEF_ENUM_FLAGS_TYPE.
1301 * target/target.h (target_wait): Change type of options.
1302 * target.h (target_options_to_string, default_target_wait):
1303 Update.
1304 (struct target_ops) <wait>: Change type of options.
1305 * target.c (target_wait, default_target_wait, do_option): Change
1306 type of "options".
1307 (target_options_to_string): Likewise.
1308 * target-delegates.c: Rebuild.
1309 * target-debug.h (target_debug_print_target_wait_flags): Rename
1310 from target_debug_print_options.
1311 * sol-thread.c (class sol_thread_target) <wait>: Update.
1312 (sol_thread_target::wait): Update.
1313 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1314 (rs6000_nat_target::wait): Update.
1315 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1316 Update.
1317 (remote_target::wait_ns, remote_target::wait_as): Change type of
1318 "options".
1319 (remote_target::wait): Update.
1320 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1321 (gdbsim_target::wait): Update.
1322 * record-full.c (class record_full_base_target) <wait>: Update.
1323 (record_full_wait_1): Change type of "options".
1324 (record_full_base_target::wait): Update.
1325 * record-btrace.c (class record_btrace_target) <wait>: Update.
1326 (record_btrace_target::wait): Update.
1327 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1328 Update.
1329 (ravenscar_thread_target::wait): Update.
1330 * procfs.c (class procfs_target) <wait>: Update.
1331 (procfs_target::wait): Update.
1332 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1333 * obsd-nat.c (obsd_nat_target::wait): Update.
1334 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1335 (nto_procfs_target::wait): Update.
1336 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1337 * nbsd-nat.c (nbsd_wait): Change type of "options".
1338 (nbsd_nat_target::wait): Update.
1339 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1340 (thread_db_target::wait): Update.
1341 * linux-nat.h (class linux_nat_target) <wait>: Update.
1342 * linux-nat.c (linux_nat_target::wait): Update.
1343 (linux_nat_wait_1): Update.
1344 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1345 "options".
1346 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1347 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1348 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1349 (go32_nat_target::wait): Update.
1350 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1351 * gnu-nat.c (gnu_nat_target::wait): Update.
1352 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1353 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1354 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1355 * darwin-nat.c (darwin_nat_target::wait): Update.
1356 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1357 (bsd_uthread_target::wait): Update.
1358 * aix-thread.c (class aix_thread_target) <wait>: Update.
1359 (aix_thread_target::wait): Update.
1360
0295dde6
AB
13612020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1362
1363 * compile/compile-object-run.c (create_copied_type_recursive): New
1364 function.
1365 (compile_object_run): Use new function.
1366
d3483b43
JT
13672020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1368
1369 * NEWS: Mention x86_64 Cygwin core file support.
1370
e7d612ad
JT
13712020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1372
1373 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1374 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1375
aff9d387
JT
13762020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1377
62a5151b
JT
1378 * windows-tdep.h: Add prototypes.
1379 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1380 (i386_windows_core_pid_to_str): Move and rename ...
1381 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1382 (windows_core_pid_to_str): ... and here.
1383 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1384
13852020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1386 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1387 (amd64_windows_init_abi_common): ... and register.
1388
7d155da3
JT
13892020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1390
1391 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1392 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1393
e8ef12b9
PA
13942020-09-18 Pedro Alves <pedro@palves.net>
1395
1396 PR gdb/26631
1397 * thread.c (thread_find_command): Switch inferior before calling
1398 target methods.
1399
c1e1314d
TT
14002020-09-17 Tom Tromey <tromey@adacore.com>
1401
1402 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1403 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1404 (tdesc_arch_data_up): New typedef.
1405 (tdesc_use_registers, tdesc_data_alloc): Update.
1406 (tdesc_data_cleanup): Don't declare.
1407 * target-descriptions.c (tdesc_data_alloc): Return a
1408 tdesc_arch_data_up.
1409 (tdesc_arch_data_deleter::operator()): Rename from
1410 tdesc_data_cleanup. Change argument type.
1411 (tdesc_use_registers): Change early_data to an rvalue reference.
1412 (tdesc_use_registers): Don't use delete.
1413 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1414 * s390-tdep.c (s390_gdbarch_init): Update.
1415 * rx-tdep.c (rx_gdbarch_init): Update.
1416 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1417 * riscv-tdep.c (riscv_gdbarch_init): Update.
1418 * or1k-tdep.c (or1k_gdbarch_init): Update.
1419 * nios2-tdep.c (nios2_gdbarch_init): Update.
1420 * nds32-tdep.c (nds32_gdbarch_init): Update.
1421 * mips-tdep.c (mips_gdbarch_init): Update.
1422 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1423 * m68k-tdep.c (m68k_gdbarch_init): Update.
1424 * i386-tdep.c (i386_gdbarch_init): Update.
1425 * arm-tdep.c (arm_gdbarch_init): Update.
1426 * arc-tdep.c (arc_tdesc_init): Update.
1427 (arc_gdbarch_init): Update.
1428 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1429
0363df3d
HD
14302020-09-17 Hannes Domani <ssbssa@yahoo.de>
1431
1432 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1433 for WOW64 processes.
1434
280a9412
TT
14352020-09-17 Tom Tromey <tom@tromey.com>
1436
1437 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1438
6108fd18
TT
14392020-09-17 Tom Tromey <tom@tromey.com>
1440
1441 * value.c (preserve_values): Update.
1442 * python/py-type.c (save_objfile_types): Update.
1443 * guile/scm-type.c (save_objfile_types): Update.
1444 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1445 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1446 * compile/compile-object-run.c (compile_object_run): Update.
1447
fa9b1164
TT
14482020-09-17 Tom Tromey <tom@tromey.com>
1449
1450 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1451 Remove.
1452 <m_table>: Now htab_up.
1453 * typeprint.c (typedef_hash_table::recursively_update)
1454 (typedef_hash_table::add_template_parameters)
1455 (typedef_hash_table::typedef_hash_table): Update.
1456 (typedef_hash_table::~typedef_hash_table): Remove.
1457 (typedef_hash_table::typedef_hash_table)
1458 (typedef_hash_table::find_global_typedef)
1459 (typedef_hash_table::find_typedef): Update.
1460
eb53f105
TT
14612020-09-17 Tom Tromey <tom@tromey.com>
1462
1463 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1464
7a8a5d47
TT
14652020-09-17 Tom Tromey <tom@tromey.com>
1466
1467 * linespec.c (class decode_compound_collector)
1468 <~decode_compound_collector>: Remove.
1469 <m_unique_syms>: Now htab_up.
1470 (decode_compound_collector::operator ()): Update.
1471 (class symtab_collector) <~symtab_collector>: Remove.
1472 <m_symtab_table>: Now htab_up.
1473 (symtab_collector::operator ()): Update.
1474
99032cfc
TT
14752020-09-17 Tom Tromey <tom@tromey.com>
1476
1477 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1478 (filename_seen_cache::clear): Update.
1479 (~filename_seen_cache): Remove.
1480 (filename_seen_cache::seen): Update.
1481 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1482 htab_up.
1483 <~filename_seen_cache>: Remove.
1484 <traverse>: Update.
1485
32580f6d
TT
14862020-09-17 Tom Tromey <tom@tromey.com>
1487
1488 * completer.c (completion_tracker::discard_completions)
1489 (completion_tracker::~completion_tracker)
1490 (completion_tracker::maybe_add_completion)
1491 (completion_tracker::remove_completion)
1492 (completion_tracker::recompute_lowest_common_denominator)
1493 (completion_tracker::build_completion_result): Update.
1494 * completer.h (class completion_tracker) <have_completions>:
1495 Update.
1496 <m_entries_hash>: Now htab_up.
1497
c1fb9836
TT
14982020-09-17 Tom Tromey <tom@tromey.com>
1499
1500 * breakpoint.c (ambiguous_names_p): Use htab_up.
1501
88f07206
TT
15022020-09-17 Tom Tromey <tom@tromey.com>
1503
1504 * auto-load.c (struct auto_load_pspace_info)
1505 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1506 <loaded_script_files, loaded_script_texts>: Change type to
1507 htab_up.
1508 (~auto_load_pspace_info) Remove.
1509 (init_loaded_scripts_info, maybe_add_script_file)
1510 (maybe_add_script_text, auto_load_info_scripts): Update.
1511
9519b2ee
TT
15122020-09-17 Tom Tromey <tromey@adacore.com>
1513
1514 * c-exp.y (name_obstack): Now static.
1515
d2cd4113
CC
15162020-09-17 Chungyi Chi <demonic@csie.io>
1517
1518 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1519
b650a282
SM
15202020-09-16 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1523 (add_solib_catchpoint): Likewise.
1524 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1525 to bool.
1526 (add_solib_catchpoint): Change int parameter/variable to bool.
1527 (catch_load_or_unload): Likewise.
1528 (init_catchpoint): Likewise.
1529 (create_fork_vfork_event_catchpoint): Likewise.
1530 (catch_fork_command_1): Likewise.
1531 (catch_exec_command_1): Likewise.
1532
4d0bcfcf
SM
15332020-09-16 Simon Marchi <simon.marchi@efficios.com>
1534
1535 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1536 Change instance_flags to m_instance_flags.
1537
fe830662
TT
15382020-09-16 Tom Tromey <tromey@adacore.com>
1539
1540 PR gdb/26598:
1541 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1542
fe5ddfc3
JB
15432020-09-16 John Baldwin <jhb@FreeBSD.org>
1544
1545 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1546 PL_FLAG_EXEC.
1547 (fbsd_nat_target::insert_exec_catchpoint)
1548 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1549 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1550 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1551
e911c666
JB
15522020-09-16 John Baldwin <jhb@FreeBSD.org>
1553
1554 * configure.ac: Remove check for kinfo_getvmmap().
1555 * configure, config.in: Regenerate.
1556 * fbsd-nat.c (fbsd_read_mapping): Remove
1557 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1558 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1559 kinfo_get_vmmap() are always present.
1560
1f17d372
JB
15612020-09-16 John Baldwin <jhb@FreeBSD.org>
1562
1563 * fbsd-nat.c: Always include support for
1564 TARGET_OBJECT_SIGNAL_INFO.
1565
bcb1da7f
JB
15662020-09-16 John Baldwin <jhb@FreeBSD.org>
1567
1568 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1569 sysctl and remove procfs fallback.
1570
5515f729
JB
15712020-09-16 John Baldwin <jhb@FreeBSD.org>
1572
1573 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1574 * fbsd-nat.h: Likewise.
1575
da1df1db
TBA
15762020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1577
1578 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1579 argument.
1580
0e25e767
AB
15812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1582
1583 * ada-lang.c (ada_language_data): Delete.
1584 (ada_language): Remove references to ada_language_data.
1585 * c-lang.c (c_language_data): Delete.
1586 (c_language): Remove references to c_language_data.
1587 (cplus_language_data): Delete.
1588 (cplus_language): Remove references to cplus_language_data.
1589 (asm_language_data): Delete.
1590 (asm_language): Remove references to asm_language_data.
1591 (minimal_language_data): Delete.
1592 (minimal_language): Remove references to minimal_language_data.
1593 * d-lang.c (d_language_data): Delete.
1594 (d_language): Remove references to d_language_data.
1595 * f-lang.c (f_language_data): Delete.
1596 (f_language): Remove references to f_language_data.
1597 * go-lang.c (go_language_data): Delete.
1598 (go_language): Remove references to go_language_data.
1599 * language.c (unknown_language_data): Delete.
1600 (unknown_language): Remove references to unknown_language_data.
1601 (auto_language_data): Delete.
1602 (auto_language): Remove references to auto_language_data.
1603 * language.h (language_data): Delete struct.
1604 (language_defn): No longer inherit from language_data.
1605 * m2-lang.c (m2_language_data): Delete.
1606 (m2_language): Remove references to m2_language_data.
1607 * objc-lang.c (objc_language_data): Delete.
1608 (objc_language): Remove references to objc_language_data.
1609 * opencl-lang.c (opencl_language_data): Delete.
1610 (opencl_language): Remove references to opencl_language_data.
1611 * p-lang.c (pascal_language_data): Delete.
1612 (pascal_language): Remove references to pascal_language_data.
1613 * rust-lang.c (rust_language_data): Delete.
1614 (rust_language): Remove references to rust_language_data.
1615
b7c6e27d
AB
16162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1617
1618 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1619 initializer.
1620 (ada_language::opcode_print_table): New member function.
1621 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1622 (c_language::opcode_print_table): New member function.
1623 (cplus_language_data): Remove la_op_print_tab initializer.
1624 (cplus_language::opcode_print_table): New member function.
1625 (asm_language_data): Remove la_op_print_tab initializer.
1626 (asm_language::opcode_print_table): New member function.
1627 (minimal_language_data): Remove la_op_print_tab initializer.
1628 (minimal_language::opcode_print_table): New member function.
1629 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1630 (d_language::opcode_print_table): New member function.
1631 * expprint.c (print_subexp_standard): Update call to
1632 opcode_print_table.
1633 (op_string): Likewise.
1634 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1635 (f_language::opcode_print_table): New member function.
1636 * go-lang.c (go_language_data): Remove la_op_print_tab
1637 initializer.
1638 (go_language::opcode_print_table): New member function.
1639 * language.c (unknown_language_data): Remove la_op_print_tab
1640 initializer.
1641 (unknown_language::opcode_print_table): New member function.
1642 (auto_language_data): Remove la_op_print_tab initializer.
1643 (auto_language::opcode_print_table): New member function.
1644 * language.h (language_data): Remove la_op_print_tab field.
1645 (language_defn::opcode_print_table): Declare new member function.
1646 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1647 initializer.
1648 (m2_language::opcode_print_table): New member function.
1649 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1650 initializer.
1651 (objc_language::opcode_print_table): New member function.
1652 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1653 initializer.
1654 (opencl_language::opcode_print_table): New member function.
1655 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1656 initializer.
1657 (pascal_language::opcode_print_table): New member function.
1658 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1659 initializer.
1660 (rust_language::opcode_print_table): New member function.
1661
5aba6ebe
AB
16622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1665 (ada_language::expression_ops): New member function.
1666 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1667 (c_language::expression_ops): New member function.
1668 (cplus_language_data): Remove la_exp_desc initializer.
1669 (cplus_language::expression_ops): New member function.
1670 (asm_language_data): Remove la_exp_desc initializer.
1671 (asm_language::expression_ops): New member function.
1672 (minimal_language_data): Remove la_exp_desc initializer.
1673 (minimal_language::expression_ops): New member function.
1674 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1675 (d_language::expression_ops): New member function.
1676 * eval.c (evaluate_subexp): Update call to expression_ops.
1677 * expprint.c (print_subexp): Likewise.
1678 (op_name): Likewise.
1679 (dump_subexp_body): Likewise.
1680 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1681 (f_language::expression_ops): New member function.
1682 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1683 (go_language::expression_ops): New member function.
1684 * language.c (language_defn::expression_ops): New function.
1685 (unknown_language_data): Remove la_exp_desc initializer.
1686 (auto_language_data): Likewise.
1687 * language.h (language_data): Remove la_exp_desc field.
1688 (language_defn::expression_ops): Declare new member function.
1689 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1690 (m2_language::expression_ops): New member function.
1691 * objc-lang.c (objc_language_data): Remove la_exp_desc
1692 initializer.
1693 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1694 initializer.
1695 (opencl_language::expression_ops): New member function.
1696 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1697 * parse.c (operator_length): Update call to expression_ops.
1698 (exp_iterate): Likewise.
1699 * rust-lang.c (rust_language_data): Remove la_exp_desc
1700 initializer.
1701 (ruse_language::expression_ops): New member function.
1702
b63a3f3f
AB
17032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1706 initializer.
1707 (ada_language::varobj_ops): New member function.
1708 * c-lang.c (c_language_data): Remove la_varobj_ops
1709 initializer.
1710 (cplus_language_data): Likewise.
1711 (cplus_language::varobj_ops): New member function.
1712 (asm_language_data): Remove la_varobj_ops initializer.
1713 (minimal_language_data): Likewise.
1714 * d-lang.c (d_language_data): Likewise.
1715 * f-lang.c (f_language_data): Likewise.
1716 * go-lang.c (go_language_data): Likewise.
1717 * language.c (language_defn::varobj_ops): New function.
1718 (unknown_language_data): Remove la_varobj_ops
1719 initializer.
1720 (auto_language_data): Likewise.
1721 * language.h (language_data): Remove la_varobj_ops field.
1722 (language_defn::varobj_ops): Declare new member function.
1723 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1724 * objc-lang.c (objc_language_data): Likewise.
1725 * opencl-lang.c (opencl_language_data): Likewise.
1726 * p-lang.c (pascal_language_data): Likewise.
1727 * rust-lang.c (rust_language_data): Likewise.
1728 * varobj.c (varobj_create): Update call to varobj_ops.
1729 * varobj.h (default_varobj_ops): Delete define.
1730
1ac14a04
AB
17312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1734 initializer.
1735 * c-lang.c (c_language_data): Likewise.
1736 (c_language::macro_expansion): New member function.
1737 (cplus_language_data): Likewise.
1738 (cplus_language::macro_expansion): New member function.
1739 (asm_language_data): Likewise.
1740 (asm_language::macro_expansion): New member function.
1741 (minimal_language_data): Likewise.
1742 (minimal_language::macro_expansion): New member function.
1743 * d-lang.c (d_language_data): Remove la_macro_expansion
1744 initializer.
1745 * f-lang.c (f_language_data): Likewise.
1746 * go-lang.c (go_language_data): Likewise.
1747 * language.c (unknown_language_data): Likewise.
1748 (auto_language_data): Likewise.
1749 * language.h (language_data): Remove la_macro_expansion field.
1750 (language_defn::macro_expansion): New member function.
1751 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1752 initializer.
1753 * objc-lang.c (objc_language_data): Likewise.
1754 (objc_language::macro_expansion): New member function.
1755 * opencl-lang.c (opencl_language_data): Likewise.
1756 (opencl_language::macro_expansion): New member function.
1757 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1758 initializer.
1759 * rust-lang.c (rust_language_data): Likewise.
1760 * symtab.c (default_collect_symbol_completion_matches_break_on):
1761 Update call to macro_expansion.
1762
3a3440fb
AB
17632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1764
1765 * ada-lang.c (ada_language_data): Remove la_array_ordering
1766 initializer.
1767 * c-lang.c (c_language_data): Likewise.
1768 (cplus_language_data): Likewise.
1769 (asm_language_data): Likewise.
1770 (minimal_language_data): Likewise.
1771 * d-lang.c (d_language_data): Likewise.
1772 * dwarf2/read.c (read_array_order): Update for call to
1773 array_ordering.
1774 * f-lang.c (f_language_data): Remove la_array_ordering
1775 initializer.
1776 (f_language::array_ordering): New member function.
1777 * go-lang.c (go_language_data): Remove la_array_ordering
1778 initializer.
1779 * language.c (unknown_language_data): Likewise.
1780 (auto_language_data): Likewise.
1781 * language.h (language_data): Delete la_array_ordering field.
1782 (language_defn::array_ordering): New member function.
1783 * m2-lang.c (m2_language_data): Remove la_array_ordering
1784 initializer.
1785 * objc-lang.c (objc_language_data): Likewise.
1786 * opencl-lang.c (opencl_language_data): Likewise.
1787 * p-lang.c (pascal_language_data): Likewise.
1788 * rust-lang.c (rust_language_data): Likewise.
1789
0d201fa4
AB
17902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1791
1792 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1793 initializer.
1794 * c-lang.c (c_language_data): Likewise.
1795 (cplus_language_data): Likewise.
1796 (asm_language_data): Likewise.
1797 (minimal_language_data): Likewise.
1798 * d-lang.c (d_language_data): Likewise.
1799 * f-lang.c (f_language_data): Likewise.
1800 (f_language::case_sensitivity): New member function.
1801 * go-lang.c (go_language_data): Remove la_case_sensitivity
1802 initializer.
1803 * language.c (enum case_mode): Moved here from language.h.
1804 (case_mode): Make static.
1805 (show_case_command): Update for case_sensitivity being a method.
1806 (set_case_command): Likewise.
1807 (set_range_case): Likewise.
1808 (unknown_language_data): Remove la_case_sensitivity initializer.
1809 (auto_language_data): Likewise.
1810 * language.h (case_mode): Delete, move enum declaration to
1811 language.c.
1812 (language_data): Delete la_case_sensitivity field.
1813 (language_defn::case_sensitivity): New member function.
1814 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1815 initializer.
1816 * objc-lang.c (objc_language_data): Likewise.
1817 * opencl-lang.c (opencl_language_data): Likewise.
1818 * p-lang.c (pascal_language_data): Likewise.
1819 * rust-lang.c (rust_language_data): Likewise.
1820
efdf6a73
AB
18212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * ada-lang.c (ada_language_data): Remove la_range_check
1824 initializer.
1825 * c-lang.c (c_language_data): Likewise.
1826 (cplus_language_data): Likewise.
1827 (asm_language_data): Likewise.
1828 (minimal_language_data): Likewise.
1829 * d-lang.c (d_language_data): Likewise.
1830 * f-lang.c (f_language_data): Likewise.
1831 (f_language::range_checking_on_by_default): New member function.
1832 * go-lang.c (go_language_data): Remove la_range_check initializer.
1833 * language.c (enum range_mode): Moved here from language.h.
1834 (range_mode): Made static.
1835 (show_range_command): Update to use
1836 range_checking_on_by_default.
1837 (set_range_command): Likewise.
1838 (set_range_case): Likewise.
1839 (unknown_language_data): Remove la_range_check initializer.
1840 (auto_language_data): Likewise.
1841 * language.h (range_mode): Delete. Enum definition moved to
1842 language.c.
1843 (language_data): Remove la_range_check field.
1844 (language_defn::range_checking_on_by_default): New member
1845 function.
1846 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1847 (m2_language::range_checking_on_by_default): New member function.
1848 * objc-lang.c (objc_language_data): Remove la_range_check
1849 initializer.
1850 * opencl-lang.c (opencl_language_data): Likewise.
1851 * p-lang.c (pascal_language_data): Likewise.
1852 (pascal_language::range_checking_on_by_default): New member
1853 function.
1854 * rust-lang.c (rust_language_data): Remove la_range_check
1855 initializer.
1856 (rust_language::range_checking_on_by_default): New member
1857 function.
1858
bf92aec5
AB
18592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * dwarf2/read.c (dwarf2_physname): Remove special case for
1862 language_go.
1863 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1864 member function.
1865
d3355e4d
AB
18662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * ada-lang.c (ada_language_data): Remove
1869 la_store_sym_names_in_linkage_form_p initializer.
1870 (ada_language::store_sym_names_in_linkage_form_p): New member
1871 function.
1872 * c-lang.c (c_language_data): Remove
1873 la_store_sym_names_in_linkage_form_p initializer.
1874 (c_language::store_sym_names_in_linkage_form_p): New member
1875 function.
1876 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1877 initializer.
1878 (asm_language_data): Likewise.
1879 (asm_language::store_sym_names_in_linkage_form_p): New member
1880 function.
1881 (minimal_language_data): Remove
1882 la_store_sym_names_in_linkage_form_p initializer.
1883 (minimal_language::store_sym_names_in_linkage_form_p): New member
1884 function.
1885 * d-lang.c (d_language_data): Remove
1886 la_store_sym_names_in_linkage_form_p initializer.
1887 * dwarf2/read.c (dwarf2_physname): Update call to
1888 store_sym_names_in_linkage_form_p.
1889 * f-lang.c (f_language_data): Remove
1890 la_store_sym_names_in_linkage_form_p initializer.
1891 * go-lang.c (go_language_data): Remove
1892 la_store_sym_names_in_linkage_form_p initializer.
1893 * language.c (unknown_language_data): Remove
1894 la_store_sym_names_in_linkage_form_p initializer.
1895 (unknown_language::store_sym_names_in_linkage_form_p): New member
1896 function.
1897 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1898 initializer.
1899 (auto_language::store_sym_names_in_linkage_form_p): New member
1900 function.
1901 * language.h (language_data): Remove
1902 la_store_sym_names_in_linkage_form_p member variable.
1903 (language_defn::store_sym_names_in_linkage_form_p): New member
1904 function.
1905 * m2-lang.c (m2_language_data): Remove
1906 la_store_sym_names_in_linkage_form_p initializer.
1907 * objc-lang.c (objc_language_data): Likewise.
1908 * opencl-lang.c (opencl_language_data): Likewise.
1909 * p-lang.c (pascal_language_data): Likewise.
1910 * rust-lang.c (rust_language_data): Likewise.
1911
22c12a6c
AB
19122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * ada-lang.c (ada_language_data): Remove string_lower_bound
1915 initializer.
1916 * c-lang.c (c_language_data): Likewise.
1917 (cplus_language_data): Likewise.
1918 (asm_language_data): Likewise.
1919 (minimal_language_data): Likewise.
1920 * d-lang.c (d_language_data): Likewise.
1921 * f-lang.c (f_language_data): Likewise.
1922 * go-lang.c (go_language_data): Likewise.
1923 * language.c (unknown_language_data): Likewise.
1924 (auto_language_data): Likewise.
1925 * language.h (language_data): Remove string_lower_bound field.
1926 (language_defn::string_lower_bound): New member function.
1927 * m2-lang.c (m2_language_data): Remove string_lower_bound
1928 initializer.
1929 (m2_language::string_lower_bound): New member function.
1930 * objc-lang.c (objc_language_data): Remove string_lower_bound
1931 initializer.
1932 * opencl-lang.c (opencl_language_data): Likewise.
1933 * p-lang.c (pascal_language_data): Likewise.
1934 * rust-lang.c (rust_language_data): Likewise.
1935 * valops.c (value_cstring): Update call to string_lower_bound.
1936 (value_string): Likewise.
1937 * value.c (allocate_repeated_value): Likewise.
1938
1c236ddd
AB
19392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1940
1941 * valops.c (value_repeat): Fix incorrect argument name in comment.
1942
67bd3fd5
AB
19432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * ada-lang.c (ada_language_data): Remove c_style_arrays
1946 initializer.
1947 (ada_language::c_style_arrays_p): New member fuction.
1948 * c-lang.c (c_language_data): Remove c_style_arrays
1949 initializer.
1950 (cplus_language_data): Likewise.
1951 (asm_language_data): Likewise.
1952 (minimal_language_data): Likewise.
1953 * d-lang.c (d_language_data): Likewise.
1954 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1955 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1956 (f_language::c_style_arrays_p): New member function.
1957 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1958 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1959 * language.c (unknown_language_data): Remove c_style_arrays
1960 initializer.
1961 (auto_language_data): Likewise.
1962 * language.h (language_data): Remove c_style_arrays field.
1963 (language_defn::c_style_arrays_p): New member function.
1964 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1965 (m2_language::c_style_arrays_p): New member function.
1966 * objc-lang.c (objc_language_data): Remove c_style_arrays
1967 initializer.
1968 * opencl-lang.c (opencl_language_data): Likewise.
1969 * p-lang.c (pascal_language_data): Likewise.
1970 * rust-lang.c (rust_language_data): Likewise.
1971 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1972 and update local variable to a bool.
1973 * valops.c (value_cast): Update call to c_style_arrays_p.
1974 (value_array): Likewise.
1975 * value.c (coerce_array): Likewise.
1976
85967615
AB
19772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * ada-lang.c (ada_language_data): Remove la_language initializer.
1980 * c-lang.c (c_language_data): Likewise.
1981 (cplus_language_data): Likewise.
1982 (asm_language_data): Likewise.
1983 (minimal_language_data): Likewise.
1984 * d-lang.c (d_language_data): Likewise.
1985 * f-lang.c (f_language_data): Likewise.
1986 * go-lang.c (go_language_data): Likewise.
1987 * language.c (unknown_language_data): Likewise.
1988 (auto_language_data): Likewise.
1989 * language.h (language_data): Remove la_language field.
1990 (language_defn::language_defn): Initialise la_language field.
1991 (language_defn::la_language): New member variable.
1992 * m2-lang.c (m2_language_data): Remove la_language field.
1993 * objc-lang.c (objc_language_data): Likewise.
1994 * opencl-lang.c (opencl_language_data): Likewise.
1995 * p-lang.c (pascal_language_data): Likewise.
1996 * rust-lang.c (rust_language_data): Likewise.
1997
e171d6f1
AB
19982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * ada-lang.c (ada_extensions): Delete, moved into
2001 ada_language::filename_extensions.
2002 (ada_language_data): Remove la_filename_extensions initializer.
2003 (ada_language::filename_extensions): New member function.
2004 * c-lang.c (c_extensions): Delete, moved into
2005 c_language::filename_extensions.
2006 (c_language_data): Remove la_filename_extensions initializer.
2007 (c_language::filename_extensions): New member function.
2008 (cplus_extensions): Delete, moved into
2009 cplus_language::filename_extensions.
2010 (cplus_language_data): Remove la_filename_extensions initializer.
2011 (cplus_language::filename_extensions): New member function.
2012 (asm_extensions): Delete, moved into
2013 asm_language::filename_extensions.
2014 (asm_language_data): Remove la_filename_extensions initializer.
2015 (asm_language::filename_extensions): New member function.
2016 (minimal_language_data): Remove la_filename_extensions
2017 initializer.
2018 * d-lang.c (d_extensions): Delete, moved into
2019 d_language::filename_extensions.
2020 (d_language_data): Remove la_filename_extensions initializer.
2021 (d_language::filename_extensions): New member function.
2022 * f-lang.c (f_extensions): Delete, moved into
2023 f_language::filename_extensions.
2024 (f_language_data): Remove la_filename_extensions initializer.
2025 (f_language::filename_extensions): New member function.
2026 * go-lang.c (go_language_data): Remove la_filename_extensions
2027 initializer.
2028 * language.c (add_set_language_command): Update now that
2029 filename_extensions returns a vector.
2030 (unknown_language_data): Remove la_filename_extensions
2031 initializer.
2032 (auto_language_data): Likewise.
2033 * language.h (language_data): Remove la_filename_extensions field.
2034 (language_defn::filename_extensions): New member function.
2035 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2036 initializer.
2037 * objc-lang.c (objc_extensions): Delete, moved into
2038 objc_language::filename_extensions.
2039 (objc_language_data): Remove la_filename_extensions initializer.
2040 (objc_language::filename_extensions): New member function.
2041 * opencl-lang.c (opencl_language_data): Remove
2042 la_filename_extensions initializer.
2043 * p-lang.c (pascal_extensions): Delete, moved into
2044 pascal_language::filename_extensions.
2045 (pascal_language_data): Remove la_filename_extensions initializer.
2046 (pascal_language::filename_extensions): New member function.
2047 * rust-lang.c (rust_extensions): Delete, moved into
2048 rust_language::filename_extensions.
2049 (rust_language_data): Remove la_filename_extensions initializer.
2050 (rust_language::filename_extensions): New member function.
2051 * symfile.c (add_filename_language): Add new assert.
2052
6f7664a9
AB
20532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * ada-lang.c (ada_language_data): Remove la_name and
2056 la_natural_name initializers.
2057 (ada_language::name): New member function.
2058 (ada_language::natural_name): New member function.
2059 * c-lang.c (c_language_data): Remove la_name and
2060 la_natural_name initializers.
2061 (c_language::name): New member function.
2062 (c_language::natural_name): New member function.
2063 (cplus_language_data): Remove la_name and
2064 la_natural_name initializers.
2065 (cplus_language::name): New member function.
2066 (cplus_language::natural_name): New member function.
2067 (asm_language_data): Remove la_name and
2068 la_natural_name initializers.
2069 (asm_language::name): New member function.
2070 (asm_language::natural_name): New member function.
2071 (minimal_language_data): Remove la_name and
2072 la_natural_name initializers.
2073 (minimal_language::name): New member function.
2074 (minimal_language::natural_name): New member function.
2075 * compile/compile.c (compile_to_object): Update call to
2076 lanugage_defn::name.
2077 * d-lang.c (d_language_data): Remove la_name and
2078 la_natural_name initializers.
2079 (d_language::name): New member function.
2080 (d_language::natural_name): New member function.
2081 * expprint.c (print_subexp_standard): Update call to
2082 language_defn::name.
2083 (dump_raw_expression): Likewise
2084 (dump_prefix_expression): Likewise.
2085 * f-lang.c (f_language_data): Remove la_name and
2086 la_natural_name initializers.
2087 (f_language::name): New member function.
2088 (f_language::natural_name): New member function.
2089 * go-lang.c (go_language_data): Remove la_name and
2090 la_natural_name initializers.
2091 (go_language::name): New member function.
2092 (go_language::natural_name): New member function.
2093 * language.c (show_language_command): Update call to
2094 language_defn::name.
2095 (set_language_command): Likewise.
2096 (language_enum): Likewise.
2097 (language_str): Likewise.
2098 (add_set_language_command): Likewise, use
2099 language_defn::natural_name in the doc string.
2100 (unknown_language_data): Remove la_name and
2101 la_natural_name initializers.
2102 (unknown_language::name): New member function.
2103 (unknown_language::natural_name): New member function.
2104 (auto_language_data): Remove la_name and
2105 la_natural_name initializers.
2106 (auto_language::name): New member function.
2107 (auto_language::natural_name): New member function.
2108 (language_lookup_primitive_type_as_symbol): Update call to
2109 language_defn::name.
2110 * language.h (language_data): Remove la_name and la_natural_name
2111 member variables.
2112 (language_defn::name): New member function.
2113 (language_defn::natural_name): New member function.
2114 * m2-lang.c (m2_language_data): Remove la_name and
2115 la_natural_name initializers.
2116 (m2_language::name): New member function.
2117 (m2_language::natural_name): New member function.
2118 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2119 language_defn::natural_name.
2120 * objc-lang.c (objc_language_data): Remove la_name and
2121 la_natural_name initializers.
2122 (objc_language::name): New member function.
2123 (objc_language::natural_name): New member function.
2124 * opencl-lang.c (opencl_language_data): Remove la_name and
2125 la_natural_name initializers.
2126 (opencl_language::name): New member function.
2127 (opencl_language::natural_name): New member function.
2128 * p-lang.c (pascal_language_data): Remove la_name and
2129 la_natural_name initializers.
2130 (pascal_language::name): New member function.
2131 (pascal_language::natural_name): New member function.
2132 * rust-lang.c (rust_language_data): Remove la_name and
2133 la_natural_name initializers.
2134 (rust_language::name): New member function.
2135 (rust_language::natural_name): New member function.
2136 * symtab.c (lookup_language_this): Update call to
2137 language_defn::name.
2138
5bae7c4e
AB
21392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * ada-lang.c (ada_language_data): Remove la_name_of_this
2142 initializer.
2143 * ax-gdb.c (gen_expr): Update call to name_of_this.
2144 * c-exp.y (classify_name): Likewise.
2145 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2146 (cplus_language_data): Likewise.
2147 (cplus_language::name_of_this): New member function.
2148 (asm_language_data): Remove la_name_of_this initializer.
2149 (minimal_language_data): Likewise.
2150 * d-lang.c (d_language_data): Likewise.
2151 (d_language::name_of_this): New member function.
2152 * expprint.c (print_subexp_standard): Update call to name_of_this.
2153 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2154 * go-lang.c (go_language_data): Likewise.
2155 * language.c (unknown_language_data): Likewise.
2156 (unknown_language::name_of_this): New member function.
2157 (auto_language_data): Remove la_name_of_this initializer.
2158 (auto_language::name_of_this): New member function.
2159 * language.h (language_data): Delete la_name_of_this member
2160 variable.
2161 (language_defn::name_of_this): New member function.
2162 * m2-lang.c (m2_language_data): Remove la_name_of_this
2163 initializer.
2164 * objc-lang.c (objc_language_data): Likewise.
2165 (objc_language::name_of_this): New member function.
2166 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2167 initializer.
2168 * p-lang.c (pascal_language_data): Likewise.
2169 (pascal_language::name_of_this): New member function.
2170 * rust-lang.c (rust_language_data): Remove la_name_of_this
2171 initializer.
2172 * symtab.c (lookup_language_this): Update call to name_of_this.
2173 (lookup_symbol_aux): Likewise.
2174 * valops.c (value_of_this): Likewise.
2175
22e3f3ed
AB
21762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * ada-lang.c (ada_language_data): Remove
2179 la_struct_too_deep_ellipsis initializer.
2180 (ada_language::struct_too_deep_ellipsis): New member function.
2181 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2182 initializer.
2183 (cplus_language_data): Likewise.
2184 (asm_language_data): Likewise.
2185 (minimal_language_data): Likewise.
2186 * cp-valprint.c (cp_print_value): Update call to
2187 struct_too_deep_ellipsis.
2188 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2189 initializer.
2190 * f-lang.c (f_language_data): Likewise.
2191 (f_language::struct_too_deep_ellipsis): New member function.
2192 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2193 initializer.
2194 * language.c (unknown_language_data): Likewise.
2195 (auto_language_data): Likewise.
2196 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2197 member variable.
2198 (language_defn::struct_too_deep_ellipsis): New member function.
2199 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2200 initializer.Q
2201 * objc-lang.c (objc_language_data): Likewise.
2202 * opencl-lang.c (opencl_language_data): Likewise.
2203 * p-lang.c (pascal_language_data): Likewise.
2204 * rust-lang.c (rust_language_data): Likewise.
2205 * valprint.c (val_print_check_max_depth): Update call to
2206 struct_too_deep_ellipsis.
2207
ed29e1c7
FW
22082020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2209
2210 * MAINTAINERS (Write After Approval): Add myself.
2211
12d8f940
TT
22122020-09-15 Tom Tromey <tom@tromey.com>
2213
2214 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2215 Remove.
2216
6b5a7bc7
TT
22172020-09-15 Tom Tromey <tom@tromey.com>
2218
2219 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2220 and TYPE_CODE_METHODPTR cases.
2221 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2222 (c_value_print_inner): Update.
2223 * valprint.c (generic_value_print_memberptr): New function, from
2224 c_value_print_memberptr.
2225 (generic_value_print): Use it. Call cplus_print_method_ptr.
2226
47f0e2ff
TT
22272020-09-15 Tom Tromey <tromey@adacore.com>
2228
2229 * python/python-internal.h (PyInt_FromLong): Remove define.
2230 * python/py-value.c (convert_value_from_python): Use
2231 gdb_py_object_from_longest.
2232 * python/py-type.c (typy_get_code): Use
2233 gdb_py_object_from_longest.
2234 * python/py-symtab.c (salpy_get_line): Use
2235 gdb_py_object_from_longest.
2236 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2237 gdb_py_object_from_longest.
2238 * python/py-record.c (recpy_gap_reason_code): Use
2239 gdb_py_object_from_longest.
2240 * python/py-record-btrace.c (recpy_bt_insn_size)
2241 (recpy_bt_func_level, btpy_list_count): Use
2242 gdb_py_object_from_longest.
2243 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2244 gdb_py_object_from_longest. Fix error handling.
2245 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2246 gdb_py_object_from_longest.
2247 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2248 gdb_py_object_from_longest.
2249 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2250 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2251 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2252
512116ce
TT
22532020-09-15 Tom Tromey <tromey@adacore.com>
2254
2255 * python/python.c (gdbpy_parameter_value): Use
2256 gdb_py_object_from_ulongest.
2257
4ab1029c
TT
22582020-09-15 Tom Tromey <tromey@adacore.com>
2259
2260 * python/py-infevents.c (create_register_changed_event_object):
2261 Use gdb_py_object_from_longest.
2262 * python/py-exitedevent.c (create_exited_event_object): Use
2263 gdb_py_object_from_longest.
2264
062534d4
TT
22652020-09-15 Tom Tromey <tromey@adacore.com>
2266
2267 * python/python.c (gdbpy_parameter_value): Use
2268 gdb_py_object_from_longest.
2269 * python/py-type.c (convert_field, typy_range): Use
2270 gdb_py_object_from_longest.
2271 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2272 gdb_py_object_from_longest.
2273 * python/py-lazy-string.c (stpy_get_length): Use
2274 gdb_py_object_from_longest.
2275 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2276 gdb_py_object_from_longest.
2277 * python/py-infevents.c (create_memory_changed_event_object): Use
2278 gdb_py_object_from_longest.
2279 * python/py-inferior.c (infpy_get_num): Use
2280 gdb_py_object_from_longest.
2281 (infpy_get_pid): Likewise.
2282
d1cab987
TT
22832020-09-15 Tom Tromey <tromey@adacore.com>
2284
2285 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2286 defines.
2287 * python/py-value.c (valpy_long): Use
2288 gdb_py_object_from_ulongest.
2289 * python/py-symtab.c (salpy_get_pc): Use
2290 gdb_py_object_from_ulongest.
2291 (salpy_get_last): Likewise.
2292 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2293 gdb_py_object_from_ulongest.
2294 * python/py-lazy-string.c (stpy_get_address): Use
2295 gdb_py_object_from_ulongest.
2296 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2297 * python/py-arch.c (archpy_disassemble): Use
2298 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2299 error handling.
2300
4bde49dc
TT
23012020-09-15 Tom Tromey <tromey@adacore.com>
2302
2303 * python/python-internal.h (gdb_py_long_from_longest): Remove
2304 defines.
2305 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2306 * python/py-type.c (convert_field, typy_get_sizeof): Use
2307 gdb_py_object_from_longest.
2308 * python/py-record-btrace.c (btpy_list_index): Use
2309 gdb_py_object_from_longest.
2310
37431074
TT
23112020-09-15 Tom Tromey <tromey@adacore.com>
2312
2313 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2314 * python/py-record.c (recpy_element_number): Use
2315 gdb_py_object_from_longest.
2316 (recpy_gap_number): Likewise.
2317
cbe25684
TT
23182020-09-15 Tom Tromey <tromey@adacore.com>
2319
2320 * top.c (ui::ui): Update.
2321 (highest_ui_num): Remove.
2322 * top.h (struct ui) <num>: Remove.
2323
db92ac45
TT
23242020-09-15 Tom Tromey <tromey@adacore.com>
2325
2326 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2327 * ui-style.c (ansi_regex_text): Now array.
2328 * rust-exp.y (number_regex_text): Now array.
2329 * linespec.c (linespec_quote_characters): Now array.
2330 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2331 Now arrays.
2332
d2b31b67
SM
23332020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2334
2335 * debuginfod-support.c (debuginfod_client_deleter): New.
2336 (debuginfod_client_up): New.
2337 (debuginfod_init): Return debuginfod_client_up.
2338 (debuginfod_source_query): Adjust.
2339 (debuginfod_debuginfo_query): Adjust.
2340
3246bd8e
SM
23412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2342
2343 * debuginfod-support.c (debuginfod_source_query): Use
2344 make_unique_xstrdup.
2345
10242f36
SM
23462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2347
2348 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2349 with `type::instance_flags`.
2350
e1044e6a
MM
23512020-09-14 Michael Mullin <masmullin@gmail.com>
2352
2353 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2354 Remove baton parameter.
2355
04902b09
PA
23562020-09-14 Pedro Alves <pedro@palves.net>
2357
2358 * Makefile.in (SELFTESTS_SRCS): Add
2359 unittests/enum-flags-selftests.c.
2360 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2361 btrace_function_flags instead of enum btrace_function_flag.
2362 * compile/compile-c-types.c (convert_qualified): Use
2363 enum_flags::raw.
2364 * compile/compile-cplus-symbols.c (convert_one_symbol)
2365 (convert_symbol_bmsym):
2366 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2367 (compile_cplus_convert_struct_or_union_methods)
2368 (compile_cplus_instance::convert_qualified_base):
2369 * go-exp.y (parse_string_or_char): Add cast to int.
2370 * unittests/enum-flags-selftests.c: New file.
2371 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2372 type to btrace_thread_flags from btrace_thread_flag.
2373 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2374 local's type to btrace_thread_flags from btrace_thread_flag. Add
2375 cast in DEBUG call.
2376
69896a2c
PA
23772020-09-14 Pedro Alves <pedro@palves.net>
2378
2379 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2380 * gdbtypes.c (address_space_name_to_int): Rename to ...
2381 (address_space_name_to_type_instance_flags): ... this.
2382 (address_space_int_to_name): Rename to ...
2383 (address_space_type_instance_flags_to_name): ... this.
2384 * gdbtypes.h (address_space_name_to_int): Rename to ...
2385 (address_space_name_to_type_instance_flags): ... this.
2386 (address_space_int_to_name): Rename to ...
2387 (address_space_type_instance_flags_to_name): ... this.
2388 * type-stack.c (type_stack::insert): Adjust to rename.
2389 * type-stack.h (type_stack::insert): Likewise.
2390
314ad88d
PA
23912020-09-14 Pedro Alves <pedro@palves.net>
2392 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * avr-tdep.c (avr_address_class_type_flags): Return
2395 type_instance_flags.
2396 (avr_address_class_type_flags_to_name): Take a
2397 type_instance_flags.
2398 (avr_address_class_name_to_type_flags): Return bool and take a
2399 type_instance_flags.
2400 * d-lang.c (build_d_types): Use type::set_instance_flags.
2401 * ft32-tdep.c (ft32_address_class_type_flags): Return
2402 type_instance_flags.
2403 (ft32_address_class_type_flags_to_name): Take a
2404 type_instance_flags.
2405 (ft32_address_class_name_to_type_flags): Return bool and take a
2406 type_instance_flags.
2407 (ft32_gdbarch_init): Use type::set_instance_flags.
2408 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2409 * gdbarch.h, gdbarch.c: Regenerate.
2410 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2411 (address_class_name_to_type_flags): Use type_instance_flags and
2412 bool.
2413 * gdbtypes.c (address_space_name_to_int)
2414 (address_space_int_to_name, make_qualified_type): Use
2415 type_instance_flags.
2416 (make_qualified_type): Use type_instance_flags and
2417 type::set_instance_flags.
2418 (make_type_with_address_space, make_cv_type, make_vector_type)
2419 (check_typedef): Use type_instance_flags.
2420 (recursive_dump_type): Cast type_instance_flags to unsigned for
2421 printing.
2422 (copy_type_recursive): Use type::set_instance_flags.
2423 (gdbtypes_post_init): Use type::set_instance_flags.
2424 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2425 <m_instance_flags>: ... this.
2426 <instance_flags, set_instance_flags>: New methods.
2427 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2428 (SET_TYPE_INSTANCE_FLAGS): New.
2429 (address_space_name_to_int, address_space_int_to_name)
2430 (make_type_with_address_space): Pass flags using
2431 type_instance_flags instead of int.
2432 * stabsread.c (cleanup_undefined_types_noname): Use
2433 type::set_instance_flags.
2434 * s390-tdep.c (s390_address_class_type_flags): Return
2435 type_instance_flags.
2436 (s390_address_class_type_flags_to_name): Take a
2437 type_instance_flags.
2438 (s390_address_class_name_to_type_flags): Return bool and take a
2439 type_instance_flags.
2440 * type-stack.c (type_stack::follow_types): Use
2441 type_instance_flags.
2442 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2443
27087b7f
TT
24442020-09-14 Tom Tromey <tromey@adacore.com>
2445
2446 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2447 * x86-tdep.c (x86_is_thunk_register_name)
2448 (x86_in_indirect_branch_thunk): Update.
2449 * sparc64-tdep.c (sparc64_fpu_register_names)
2450 (sparc64_cp0_register_names, sparc64_register_names)
2451 (sparc64_pseudo_register_names): Now const.
2452 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2453 cp0_registers_num>: Now const.
2454 * sparc-tdep.c (sparc_core_register_names)
2455 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2456 (sparc32_pseudo_register_names): Now const.
2457 (validate_tdesc_registers): Update.
2458 * rust-lang.c (rust_extensions): Now const.
2459 * p-lang.c (p_extensions): Now const.
2460 * objc-lang.c (objc_extensions): Now const.
2461 * nto-tdep.c (nto_thread_state_str): Now const.
2462 * moxie-tdep.c (moxie_register_names): Now const.
2463 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2464 Now const.
2465 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2466 (mips_linux_reg_names): Now const.
2467 (mips_gdbarch_init): Update.
2468 * microblaze-tdep.c (microblaze_register_names): Now const.
2469 * m68k-tdep.c (m68k_register_names): Now const.
2470 * m32r-tdep.c (m32r_register_names): Now const.
2471 * ia64-tdep.c (ia64_register_names): Now const.
2472 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2473 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2474 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2475 ymm_avx512_register_names, pkeys_register_names>: Now const.
2476 * i386-tdep.c (i386_register_names, i386_zmm_names)
2477 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2478 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2479 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2480 * f-lang.c (f_extensions): Now const.
2481 * d-lang.c (d_extensions): Now const.
2482 * csky-tdep.c (csky_register_names): Now const.
2483 * charset.c (default_charset_names, charset_enum): Now const.
2484 (_initialize_charset): Update.
2485 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2486 const.
2487 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2488 (bsd_uthread_solib_loaded): Update.
2489 (bsd_uthread_state): Now const.
2490 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2491 (amd64_ymm_avx512_names, amd64_ymmh_names)
2492 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2493 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2494 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2495 (amd64_dword_names): Now const.
2496 * agent.c (can_use_agent_enum): Now const.
2497 * ada-tasks.c (task_states, long_task_states): Now const.
2498 * ada-lang.c (known_runtime_file_name_patterns)
2499 (known_auxiliary_function_name_patterns, attribute_names)
2500 (standard_exc, ada_extensions): Now const.
2501
89806626
SM
25022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * bcache.h (struct bcache) <bcache>: Remove constructor.
2505 <m_hash_function, m_compare_function>: Remove.
2506 <~bcache>: Make virtual.
2507 <compare>: Remove static method, introduce virtual method.
2508 <default_hash>: Remove.
2509 <hash>: New virtual method.
2510 * bcache.c (bcache::expand_hash_table): Update.
2511 (bcache::insert): Update.
2512 (bcache::hash): New.
2513 (bcache::compare): Update comment and parameter names.
2514 * gdbtypes.c (types_deeply_equal): Update.
2515 * psymtab.h (struct psymbol_bcache): New struct.
2516 (class psymtab_storage) <psymtab_storage>: Make default.
2517 <psymbol_cache>: Change type to psymbol_bcache.
2518 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2519 (psymbol_hash): Change to...
2520 (psymbol_bcache::hash): ... this.
2521 (psymbol_compare): Change to...
2522 (psymbol_bcache::compare): ... this.
2523
677c92fe
SM
25242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2525
2526 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2527 checking for initial lwp.
2528
3eba3a01
TT
25292020-09-14 Tom Tromey <tromey@adacore.com>
2530
2531 * m68k-tdep.c (m68k_extract_return_value): Use
2532 pointer_result_regnum.
2533 (m68k_store_return_value): Likewise.
2534 (m68k_reg_struct_return_p): Handle vectors and arrays.
2535 (m68k_return_value): Handle arrays.
2536 (m68k_svr4_return_value): Fix single-element aggregate handling.
2537 Handle long double. Adjust for embedded ABI.
2538 (m68k_svr4_init_abi): Set pointer_result_regnum.
2539 (m68k_embedded_init_abi): New function.
2540 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2541 (m68k_osabi_sniffer): New function.
2542 (_initialize_m68k_tdep): Register osabi sniffer.
2543 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2544 member.
2545
33f4dd48
SM
25462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2547
2548 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2549 with gdb::unique_xmalloc_ptr<char>.
2550
8400a90d
SM
25512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * xml-support.h (xml_fetch_another): Change type to be a
2554 function_view.
2555 (xml_process_xincludes): Remove baton parameter.
2556 (xml_fetch_content_from_file): Change baton parameter to
2557 dirname.
2558 * xml-support.c (struct xinclude_parsing_data)
2559 <xinclude_parsing_data>: Remove baton parameter.
2560 <fetcher_baton>: Remove.
2561 (xinclude_start_include): Adjust.
2562 (xml_process_xincludes): Adjust.
2563 (xml_fetch_content_from_file): Replace baton parameter with
2564 dirname.
2565 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2566 (xml_init_syscalls_info): Use a lambda.
2567 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2568 (file_read_description_xml): Use a lambda.
2569 (fetch_available_features_from_target): Change baton parameter
2570 to target_ops.
2571 (target_read_description_xml): Use a lambda.
2572 (target_fetch_description_xml): Use a lambda.
2573 (string_read_description_xml): Update.
2574
04f5bab2
SM
25752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2576
2577 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2578 uses with type::endianity_is_not_default.
2579
db558e34
SM
25802020-09-14 Simon Marchi <simon.marchi@efficios.com>
2581
2582 * gdbtypes.h (struct type) <endianity_is_not_default,
2583 set_endianity_is_not_default>: New methods.
2584 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2585 type::endianity_is_not_default, change all write call sites to
2586 use type::set_endianity_is_not_default.
2587
22c4c60c
SM
25882020-09-14 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2591 uses with type::is_fixed_instance.
2592
9cdd0d12
SM
25932020-09-14 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * gdbtypes.h (struct type) <is_fixed_instance,
2596 set_is_fixed_instance>: New methods.
2597 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2598 write call sites to use type::set_is_fixed_instance.
2599
0becda7a
SM
26002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2601
2602 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2603 uses with type::is_gnu_ifunc.
2604
03cc7249
SM
26052020-09-14 Simon Marchi <simon.marchi@efficios.com>
2606
2607 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2608 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2609 use type::set_is_gnu_ifunc.
2610
3f46044c
SM
26112020-09-14 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2614 uses with type::stub_is_supported.
2615
9baccff6
SM
26162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2617
2618 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2619 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2620 use type::set_stub_is_supported.
2621
bd63c870
SM
26222020-09-14 Simon Marchi <simon.marchi@efficios.com>
2623
2624 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2625 uses with type::is_vector.
2626
2062087b
SM
26272020-09-14 Simon Marchi <simon.marchi@efficios.com>
2628
2629 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2630 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2631 use type::set_is_vector.
2632
a409645d
SM
26332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2634
2635 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2636 uses with type::has_varargs.
2637
1d6286ed
SM
26382020-09-14 Simon Marchi <simon.marchi@efficios.com>
2639
2640 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2641 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2642 use type::set_has_varargs.
2643
7f9f399b
SM
26442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2645
2646 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2647 uses with type::is_prototyped.
2648
27e69b7a
SM
26492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2650
2651 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2652 New methods.
2653 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2654 call sites to use type::set_is_prototyped.
2655
d2183968
SM
26562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2657
2658 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2659 uses with type::target_is_stub.
2660
8f53807e
SM
26612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2662
2663 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2664 New methods.
2665 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2666 sites to use type::set_target_is_stub.
2667
e46d3488
SM
26682020-09-14 Simon Marchi <simon.marchi@efficios.com>
2669
2670 * gdbtypes.h (TYPE_STUB): Remove, replace all
2671 uses with type::is_stub.
2672
b4b73759
SM
26732020-09-14 Simon Marchi <simon.marchi@efficios.com>
2674
2675 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2676 (TYPE_STUB): Use type::is_stub, change all write call sites to
2677 use type::set_is_stub.
2678
20ce4123
SM
26792020-09-14 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2682 type::has_no_signedness.
2683
15152a54
SM
26842020-09-14 Simon Marchi <simon.marchi@efficios.com>
2685
2686 * gdbtypes.h (struct type) <has_no_signedness,
2687 set_has_no_signedness>: New methods.
2688 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2689 call sites to use type::set_has_no_signedness.
2690
c6d940a9
SM
26912020-09-14 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2694 type::is_unsigned.
2695
653223d3
SM
26962020-09-14 Simon Marchi <simon.marchi@efficios.com>
2697
2698 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2699 methods.
2700 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2701 sites to use type::set_is_unsigned.
2702
55ea94da 27032020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2704 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2705
e851246a
SM
2706 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2707 pointer and stack frame offset when unwinding.
55ea94da 2708
6791b117
PA
27092020-09-13 Pedro Alves <pedro@palves.net>
2710
2711 * NEWS: Document "-break-insert --qualified".
2712 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2713
77f2120b
PA
27142020-09-13 Pedro Alves <pedro@palves.net>
2715
2716 * linespec.c (classify_mtype, compare_msyms): Delete.
2717 (search_minsyms_for_name): Remove classification logic. Instead
2718 filter out trampoline symbols if we also found an external
2719 function of the same name.
2720
ed6a896c
JB
27212020-09-13 Joel Brobecker <brobecker@adacore.com>
2722
2723 * NEWS: Create a new section for the next release branch.
2724 Rename the section of the current branch, now that it has
2725 been cut.
2726
32aea73e
JB
27272020-09-13 Joel Brobecker <brobecker@adacore.com>
2728
2729 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2730 * version.in: Bump version to 11.0.50.DATE-git.
2731
8087c3fa
JB
27322020-09-12 Joel Brobecker <brobecker@adacore.com>
2733
2734 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2735
2a67f09d
FW
27362020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2737 Felix Willgerodt <Felix.Willgerodt@intel.com>
2738
2739 * gdbarch.sh: Added bfloat16 type.
2740 * gdbarch.c: Regenerated.
2741 * gdbarch.h: Regenerated.
2742 * gdbtypes.c (floatformats_bfloat16): New struct.
2743 (gdbtypes_post_init): Add builtin_bfloat16.
2744 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2745 (floatformats_bfloat16): New struct.
2746 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2747 (i386_ymm_type): Add field "v16_bfloat16"
2748 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2749 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2750 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2751 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2752 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2753 * features/i386/64bit-avx512.c: Regenerated.
2754 * features/i386/64bit-sse.xml: Add bfloat16 type.
2755 * features/i386/64bit-sse.c: Regenerated.
2756
1347d111
FW
27572020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2758
2759 * i386-tdep.c (i386_zmm_type): Fix field names.
2760 (i386_ymm_type): Fix field names.
2761
7a4e8e7d
TBA
27622020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2763
2764 * breakpoint.c: Fix typo in the help message of the
2765 "set breakpoint condition-evaluation" command.
2766
cf4ac4be
KR
27672020-09-10 Kamil Rytarowski <n54@gmx.com>
2768
2769 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2770 * (nbsd_nat_target::pid_to_exec_file)
2771 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2772 (nbsd_nat_target::post_startup_inferior)
2773 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2774 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2775 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2776 * (nbsd_thread_lister): Remove.
2777
f404573e
KR
27782020-09-10 Kamil Rytarowski <n54@gmx.com>
2779
2780 * fork-inferior.c (startup_inferior): Avoid double free.
2781
1ccb2c17
KR
27822020-09-10 Kamil Rytarowski <n54@gmx.com>
2783
2784 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2785 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2786
feedfcc7
KR
27872020-09-10 Kamil Rytarowski <n54@gmx.com>
2788
2789 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2790 * netbsd-nat.c: Include <sys/ptrace.h>.
2791 * (netbsd_nat::enable_proc_events): Add.
2792
c489f8c6
KR
27932020-09-10 Kamil Rytarowski <n54@gmx.com>
2794
2795 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2796 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2797 (netbsd_nat::for_each_thread): Add.
2798 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2799 "gdbsupport/common-debug.h".
2800 * (netbsd_nat::netbsd_thread_lister)
2801 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2802 (netbsd_nat::for_each_thread): Add.
2803
330662f6
KR
28042020-09-10 Kamil Rytarowski <n54@gmx.com>
2805
2806 * netbsd-nat.h: Include <unistd.h>.
2807 * (netbsd_nat::pid_to_exec_file): Add.
2808 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2809 * (netbsd_nat::pid_to_exec_file) Add.
2810
70b67307
KR
28112020-09-10 Kamil Rytarowski <n54@gmx.com>
2812
2813 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2814
99cf6da6
KR
28152020-09-10 Kamil Rytarowski <n54@gmx.com>
2816
2817 * netbsd-nat.h: New file.
2818 * netbsd-nat.c: Likewise.
2819
1b788fb6
TT
28202020-09-09 Tom Tromey <tromey@adacore.com>
2821
2822 * ada-lang.c (remove_extra_symbols): Do not increment when
2823 removing an element
2824
03b0a45f
TT
28252020-09-08 Tom Tromey <tromey@adacore.com>
2826
2827 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2828
3cae4447
TT
28292020-09-08 Tom Tromey <tromey@adacore.com>
2830
2831 PR win32/25302:
2832 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2833 (gdb_bfd_init_data): New function.
2834 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2835
7f08fd51
TBA
28362020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 * infrun.c (fetch_inferior_event): Use
2839 `switch_to_target_no_thread` to switch the target.
2840
3e6ff933
TT
28412020-09-06 Tom Tromey <tom@tromey.com>
2842
2843 * symfile.h (dwarf2_free_objfile): Don't declare.
2844
e56798df
AKS
28452020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2846
2847 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2848 to match 16 byte real/complex type generated by Flang compiler.
2849
8f5c6526
TV
28502020-09-03 Tom de Vries <tdevries@suse.de>
2851
2852 PR breakpoint/26546
2853 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2854 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2855
c5065df0
SM
28562020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2857
2858 * maint.c (index_digits): New function.
2859 (struct maint_print_section_data): Remove.
2860 (print_bfd_section_info): Remove print_data parameter, add arg
2861 and index_digits.
2862 (print_objfile_section_info): Likewise.
2863 (print_bfd_section_info_maybe_relocated): Likewise (plus
2864 objfile).
2865 (maintenance_info_sections): Adjust calls.
2866
02c6f3f1
TT
28672020-09-02 Tom Tromey <tromey@adacore.com>
2868
2869 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2870 for null pointers.
2871 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2872
ef5e5b0b
SM
28732020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 * bcache.h (struct bcache) <insert>: Change type of `added` to
2876 pointer to bool.
2877 * bcache.c (bcache::insert): Likewise.
2878 * gdbtypes.c (check_types_worklist): Adjust.
2879 * psymtab.c (add_psymbol_to_bcache): Adjust.
2880
973695d6
KB
28812020-08-31 Kevin Buettner <kevinb@redhat.com>
2882
2883 * corelow.c (unordered_set): Include.
2884 (class core_target): Add field 'm_core_unavailable_mappings'.
2885 (core_target::build_file_mappings): Print only one warning
2886 per inaccessible file. Add unavailable/broken mappings
2887 to m_core_unavailable_mappings.
2888 (core_target::xfer_partial): Call...
2889 (core_target::xfer_memory_via_mappings): New method.
2890
264fc0e2
SM
28912020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2894 type to bool.
2895
2de01bdb
SM
28962020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * dwarf2/read.c (struct field_info): Fix indentation.
2899
f3bd50f1
SM
29002020-08-31 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2903 ordering in comment.
2904 * frame.c (frame_id_eq): Fix indentation.
2905
22b9b4b0
SL
29062020-08-31 Scott Linder <scott@scottlinder.com>
2907 Simon Marchi <simon.marchi@efficios.com>
2908
2909 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2910 inline frame ids in outer frame.
2911
84154d16
SM
29122020-08-31 Simon Marchi <simon.marchi@efficios.com>
2913
2914 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2915 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2916 (outer_frame_id): Use FID_STACK_OUTER instead of
2917 FID_STACK_INVALID.
2918 (frame_id_p): Don't check for outer_frame_id.
2919
8efaf6b3
SM
29202020-08-31 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2923 regnum/frame in value. Call allocate_value_lazy.
2924 * frame.c (frame_unwind_register_value): Use
2925 val_print_not_saved.
2926
fe1fe7ea
SM
29272020-08-31 Simon Marchi <simon.marchi@efficios.com>
2928
2929 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2930
f7c7700d
PA
29312020-08-29 Pedro Alves <pedro@palves.net>
2932
2933 * progspace.c (print_program_space): Use all_inferiors. Switch to
2934 the inferior before calling target_pid_to_str.
2935
e0814aae
TT
29362020-08-28 Tom Tromey <tom@tromey.com>
2937
2938 * xcoffread.c (xcoff_end_psymtab): Update comment.
2939 * dbxread.c (dbx_end_psymtab): Update comment.
2940
626d2320
TV
29412020-08-28 Tom de Vries <tdevries@suse.de>
2942
2943 PR breakpoint/26544
2944 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2945 event_location.
2946 (create_breakpoint): Same.
2947 (base_breakpoint_decode_location): Same.
2948 (bkpt_create_sals_from_location): Same.
2949 (bkpt_decode_location): Same.
2950 (bkpt_probe_create_sals_from_location): Same.
2951 (bkpt_probe_decode_location): Same.
2952 (tracepoint_create_sals_from_location): Same.
2953 (tracepoint_decode_location): Same.
2954 (tracepoint_probe_decode_location): Same.
2955 (strace_marker_create_sals_from_location): Same.
2956 (strace_marker_decode_location): Same.
2957 (create_sals_from_location_default): Same.
2958 (decode_location_default): Same.
2959 * breakpoint.h (struct breakpoint_ops): Same.
2960 (create_breakpoint): Same.
2961 * linespec.h (decode_line_full): Same.
2962 * linespec.c (decode_line_full): Same. Throw error if
2963 result.size () == 0.
2964
df631783
PA
29652020-08-27 Pedro Alves <pedro@palves.net>
2966
2967 PR gdb/26524
2968 * breakpoint.c (until_break_fsm) <location_breakpoint,
2969 caller_breakpoint>: Delete fields.
2970 <breakpoints>: New field.
2971 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2972 two individual breakpoints.
2973 (until_break_fsm::should_stop): Loop over breakpoints in the
2974 breakpoint vector.
2975 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2976 vector.
2977 (until_break_command): Handle location expanding into multiple
2978 sals.
2979
b2b38aa4
PA
29802020-08-27 Pedro Alves <pedro@palves.net>
2981
2982 PR gdb/26523
2983 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2984 bp_until breakpoints user-specified locations. Update intro
2985 comment.
2986
b886559f
SM
29872020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2988
2989 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2990 gdb_bfd_sections): New.
2991 * maint.c (print_bfd_section_info): Change param type to
2992 maint_print_section_data.
2993 (print_objfile_section_info): Likewise.
2994 (print_bfd_section_info_maybe_relocated): Likewise.
2995 (maintenance_info_sections): Use gdb_bfd_sections.
2996
4c6e63bf
SV
29972020-08-25 Shahab Vahedi <shahab@synopsys.com>
2998
2999 * MAINTAINERS: Add ARC target and maintainer.
3000
8d7f0635
AK
30012020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3002
3003 * configure.tgt: ARC support for GNU/Linux.
3004 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3005 * arc-linux-tdep.c: New file.
3006 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3007 * arc-tdep.c (arc_write_pc): Use it.
3008
fdd8731b
SV
30092020-08-25 Shahab Vahedi <shahab@synopsys.com>
3010
3011 * arc-tdep.c (arc_check_for_hardware_loop): New.
3012 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3013
22459524
SV
30142020-08-25 Shahab Vahedi <shahab@synopsys.com>
3015
3016 * arc-tdep.h: Include "gdbarch.h".
3017
995d3a19
SV
30182020-08-25 Shahab Vahedi <shahab@synopsys.com>
3019
3020 * arch/arc.h
3021 (arc_gdbarch_features): New class to stir the selection of target XML.
3022 (arc_create_target_description): Use FEATURES to choose XML target.
3023 (arc_lookup_target_description): Use arc_create_target_description
3024 to create _new_ target descriptions or return the already created
3025 ones if the FEATURES is the same.
3026 * arch/arc.c: Implementation of prototypes described above.
3027 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3028 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3029 * arc-tdep.c (*_feature_name): Make feature names consistent.
3030 (arc_register_feature): A new struct to hold information about
3031 registers of a particular target/feature.
3032 (arc_check_tdesc_feature): Check if XML provides registers in
3033 compliance with ARC_REGISTER_FEATURE structs.
3034 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3035 (determine_*_reg_feature_set): Which feature name to look for.
3036 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3037 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3038 to expected ISA enums to be used in arc_gdbarch_features structs.
3039 * features/Makefile (FEATURE_XMLFILES): Add new files.
3040 * gdb/features/arc/v1-aux.c: New file.
3041 * gdb/features/arc/v1-aux.xml: Likewise.
3042 * gdb/features/arc/v1-core.c: Likewise.
3043 * gdb/features/arc/v1-core.xml: Likewise.
3044 * gdb/features/arc/v2-aux.c: Likewise.
3045 * gdb/features/arc/v2-aux.xml: Likewise.
3046 * gdb/features/arc/v2-core.c: Likewise.
3047 * gdb/features/arc/v2-core.xml: Likewise.
3048 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3049
3945d2d7
GM
30502020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3051 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 PR m2/26372
fc5d6901 3054 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3055 an assert. Remove single element array indexing pattern as the
3056 MULTI_SUBSCRIPT support will handle this case too.
3057
2677f2d3
SM
30582020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3059
3060 * value.h (valprint_check_validity): Move declaration from
3061 here...
3062 * valprint.h (valprint_check_validity): ... to here.
3063
c426fddb
SM
30642020-08-24 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * debug.h: New file.
3067 * debug.c (debug_prefixed_vprintf): New function.
3068 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3069 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3070
1eb8556f
SM
30712020-08-24 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * infrun.h (infrun_debug_printf_1): New function declaration.
3074 (infrun_debug_printf): New macro.
3075 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3076 throughout.
3077 (infrun_debug_printf): New function.
3078 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3079 (handle_jit_event): Likewise.
3080
b8fff44e
MW
30812020-08-21 Mark Wielaard <mark@klomp.org>
3082
3083 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3084
d19c3068
SM
30852020-08-22 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * frame.c (enum class frame_id_status): New.
3088 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3089 (fprintf_frame): Update.
3090 (compute_frame_id): Set frame id status to "computing" on entry.
3091 Set it back to "not_computed" on failure and to "computed" on
3092 success.
3093 (get_frame_id): Assert the frame id is not being computed.
3094 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3095 (create_new_frame): Likewise.
3096 (frame_cleanup_after_sniffer): Update assert.
3097
b70e516e
SM
30982020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3099
3100 * regcache.c (pid_ptid_regcache_map): New type.
3101 (target_ptid_regcache_map): Remove.
3102 (target_pid_ptid_regcache_map): New type.
3103 (regcaches): Change type to target_pid_ptid_regcache_map.
3104 (get_thread_arch_aspace_regcache): Update.
3105 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3106 case.
3107 (regcaches_size): Update.
3108 (regcache_count): Update.
3109 (registers_changed_ptid_target_pid_test): New.
3110 (_initialize_regcache): Register new test.
3111
cdd9148a
SM
31122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3113
3114 * regcache.c (regcache_count): New.
3115 (struct regcache_test_data): New.
3116 (regcache_test_data_up): New.
3117 (populate_regcaches_for_test): New.
3118 (regcaches_test): Remove.
3119 (get_thread_arch_aspace_regcache_test): New.
3120 (registers_changed_ptid_all_test): New.
3121 (registers_changed_ptid_target_test): New.
3122 (registers_changed_ptid_target_ptid_test): New.
3123 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3124 (_initialize_regcache): Register new tests.
3125
dd125343
SM
31262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3127
3128 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3129 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3130 gdbarch and aspace parameter. Use current inferior's aspace.
3131 Validate regcache's arch value.
3132 (regcaches_test): Update.
3133
3ee93972
SM
31342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3135
3136 * regcache.c (regcaches_test): Call registers_changed.
3137
33bf4c5c
TBA
31382020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3139
3140 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3141
c2fd7fae
AKS
31422020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3143
3144 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3145 to find the end of prologue for flang compiled binaries.
3146 * arm-tdep.c (arm_skip_prologue): Likewise.
3147 * i386-tdep.c (i386_skip_prologue): Likewise.
3148 * producer.c (producer_is_llvm): New function.
3149 (producer_parsing_tests): Added new tests for clang/flang.
3150 * producer.h (producer_is_llvm): New declaration.
3151
9327494e
SM
31522020-08-18 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * linux-nat.c (linux_nat_debug_printf): New function.
3155 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3156
d138725a
AM
31572020-08-18 Aaron Merey <amerey@redhat.com>
3158
3159 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3160 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3161 (CLIBS): Add DEBUGINFOD_LIBS.
3162
f9b11e6b
ST
31632020-08-17 Sergei Trofimovich <siarheit@google.com>
3164
3165 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3166 'gdbarch_num_regs'.
3167
3ae7ab99
TT
31682020-08-17 Tom Tromey <tromey@adacore.com>
3169
3170 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3171 ada_get_decoded_value returns NULL.
3172
b017825f
TT
31732020-08-17 Tom Tromey <tromey@adacore.com>
3174
3175 * python/py-inferior.c (infpy_search_memory): Use
3176 gdb_py_object_from_ulongest.
3177 * python/py-infevents.c (create_inferior_call_event_object)
3178 (create_memory_changed_event_object): Use
3179 gdb_py_object_from_ulongest.
3180 * python/py-linetable.c (ltpy_entry_get_pc): Use
3181 gdb_py_object_from_ulongest.
3182
7635cf79
SM
31832020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3184
3185 * loc.c (class symbol_needs_eval_context): Fix indentation.
3186
f54be24b
SM
31872020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3188
3189 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3190 bool.
3191
53d5a2a5
TV
31922020-08-17 Tom de Vries <tdevries@suse.de>
3193
3194 PR gdb/26393
3195 * gdbtypes.c (dump_dynamic_prop): New function.
3196 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3197
547ce8f0
TV
31982020-08-15 Tom de Vries <tdevries@suse.de>
3199
3200 PR backtrace/26390
3201 * stack.c (print_frame_args): Temporarily set the selected
3202 frame to FRAME while printing the frame's arguments.
3203
6ea815e7
PFC
32042020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3205
3206 PR breakpoints/26385
3207 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3208 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3209
6e562fa3
PFC
32102020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3211
3212 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3213 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3214 and >= to check return value instead of == -1 and != -1.
3215
d369b608
SM
32162020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3217
3218 * utils.h (class gdb_argv) <as_array_view>: New method.
3219 * utils.c (gdb_argv_as_array_view_test): New.
3220 (_initialize_utils): Register selftest.
3221 * maint.c (maintenance_selftest): Use the new method.
3222
b31488a3
KR
32232020-08-13 Kamil Rytarowski <n54@gmx.com>
3224
3225 * target.h (supports_dumpcore, dumpcore): New
3226 function declarations.
3227 * target.c (supports_dumpcore, dumpcore): New
3228 functions.
3229 * target-delegates.c: Rebuild.
3230 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3231 and target_dumpcore ().
3232
002a3166
AM
32332020-08-13 Aaron Merey <amerey@redhat.com>
3234
3235 * debuginfod-support.c: Replace global variables with user_data.
3236
ece5bc8a
SM
32372020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3238
3239 * maint.c (maintenance_selftest): Split args and pass array_view
3240 to run_tests.
3241
6d8a0a5e
LM
32422020-08-12 Luis Machado <luis.machado@linaro.org>
3243
3244 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3245 type's length.
3246 Use %s and pulongest to print the length.
3247
7cf663a9
PA
32482020-08-12 Pedro Alves <palves@redhat.com>
3249
3250 * NEWS: Move "Multi-target debugging support" item to the
3251 "Changes since GDB 9" section.
3252
27c7b875
PA
32532020-08-12 Pedro Alves <palves@redhat.com>
3254
3255 PR gdb/26336
3256 * progspace.c (program_space::remove_objfile): Invalidate the
3257 frame cache.
3258
1796a2a1
TV
32592020-08-11 Tom de Vries <tdevries@suse.de>
3260
3261 * MAINTAINERS: Mark ms1 as deleted.
3262
f8e3fe0d
LM
32632020-08-10 Luis Machado <luis.machado@linaro.org>
3264
3265 PR gdb/26310
3266
3267 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3268 act accordingly.
3269 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3270 movz/str/stur/stp skipping behavior.
3271
cc308722
LM
32722020-08-10 Luis Machado <luis.machado@linaro.org>
3273
3274 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3275 struct user_sve_header instead of struct sve_context.
3276
041d9819
SM
32772020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * read.h (dwarf2_fetch_die_loc_sect_off,
3280 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3281 `void *` parameter with function_view.
3282 * read.c (dwarf2_fetch_die_loc_sect_off,
3283 dwarf2_fetch_die_loc_cu_off): Likewise.
3284 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3285 (per_cu_dwarf_call): Adjust.
3286 (get_frame_address_in_block_wrapper): Remove.
3287 (indirect_synthetic_pointer): Adjust.
3288 (get_ax_pc): Remove.
3289 (dwarf2_compile_expr_to_ax): Adjust.
3290
38f8aa06
TV
32912020-08-08 Tom de Vries <tdevries@suse.de>
3292
3293 PR build/26344
3294 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3295 constructor.
3296 * regcache.c (get_thread_arch_aspace_regcache): Same.
3297
a52b3ae2
TT
32982020-08-07 Tom Tromey <tromey@adacore.com>
3299
3300 * ravenscar-thread.c
3301 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3302 New method.
3303 (ravenscar_thread_target::wait): Check
3304 runtime_initialized.
3305 (ravenscar_thread_target::prepare_to_store)
3306 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3307 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3308 (ravenscar_thread_target::stopped_by_watchpoint)
3309 (ravenscar_thread_target::stopped_data_address)
3310 (ravenscar_thread_target::core_of_thread): Use
3311 scoped_restore_current_thread and
3312 set_base_thread_from_ravenscar_task.
3313
0e29517d
TT
33142020-08-07 Tom Tromey <tromey@adacore.com>
3315
3316 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3317
592f9bd7
TT
33182020-08-07 Tom Tromey <tromey@adacore.com>
3319
3320 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3321 update_inferior_ptid before update_thread_list.
3322 (temporarily_change_regcache_ptid): New class.
3323 (ravenscar_thread_target::fetch_registers)
3324 (ravenscar_thread_target::store_registers)
3325 (ravenscar_thread_target::prepare_to_store): Use base thread when
3326 forwarding operation.
3327
39e2018a
TT
33282020-08-07 Tom Tromey <tromey@adacore.com>
3329
3330 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3331 "is_pid" case.
3332
2080266b
TT
33332020-08-07 Tom Tromey <tromey@adacore.com>
3334
3335 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3336 New methods.
3337 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3338 first.
3339 (ravenscar_thread_target::add_thread): Rename from
3340 ravenscar_add_thread.
3341 (ravenscar_thread_target::update_thread_list): Use a lambda.
3342 (ravenscar_thread_target::xfer_partial): New method.
3343
78c02f21
TT
33442020-08-07 Tom Tromey <tromey@adacore.com>
3345
3346 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3347 gdb::function_view.
3348 (iterate_over_live_ada_tasks): Change type of argument.
3349 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3350 of argument.
3351
d5d833af
TT
33522020-08-07 Tom Tromey <tromey@adacore.com>
3353
3354 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3355 Remove.
3356 (ravenscar_thread_target::extra_thread_info): Remove.
3357 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3358 defer to target beneath for non-Ravenscar threads.
3359
a8ac85bb
TT
33602020-08-07 Tom Tromey <tromey@adacore.com>
3361
3362 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3363 get_base_thread_from_ravenscar_task>: Now methods.
3364 <m_cpu_map>: New member.
3365 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3366 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3367 (ravenscar_thread_target::task_is_currently_active): Update.
3368 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3369 Now a method.
3370 (ravenscar_thread_target::add_active_thread): Put initial thread
3371 into the m_cpu_map.
3372
550ab58d
TT
33732020-08-07 Tom Tromey <tromey@adacore.com>
3374
3375 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3376 event_ptid.
3377
e9546579
TT
33782020-08-07 Tom Tromey <tromey@adacore.com>
3379
3380 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3381 runtime_initialized.
3382
3d4470e5
TT
33832020-08-07 Tom Tromey <tromey@adacore.com>
3384
3385 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3386 add_active_thread.
3387 (ravenscar_thread_target::add_active_thread): Now public.
3388 (ravenscar_inferior_created): Call add_active_thread after pushing
3389 the target.
3390
888bdb2b
SM
33912020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * regcache.c (ptid_regcache_map): New type.
3394 (target_ptid_regcache_map): New type.
3395 (regcaches): Change type to target_ptid_regcache_map.
3396 (get_thread_arch_aspace_regcache): Update to regcaches' new
3397 type.
3398 (regcache_thread_ptid_changed): Likewise.
3399 (registers_changed_ptid): Likewise.
3400 (regcaches_size): Likewise.
3401 (regcaches_test): Update.
3402 (regcache_thread_ptid_changed): Update.
3403 * regcache.h (regcache_up): New type.
3404 * gdbsupport/ptid.h (hash_ptid): New struct.
3405
b161a60d
SM
34062020-08-07 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * observable.h (thread_ptid_changed): Add parameter
3409 `process_stratum_target *`.
3410 * infrun.c (infrun_thread_ptid_changed): Add parameter
3411 `process_stratum_target *` and use it.
3412 (selftests): New namespace.
3413 (infrun_thread_ptid_changed): New function.
3414 (_initialize_infrun): Register selftest.
3415 * regcache.c (regcache_thread_ptid_changed): Add parameter
3416 `process_stratum_target *` and use it.
3417 (regcache_thread_ptid_changed): New function.
3418 (_initialize_regcache): Register selftest.
3419 * thread.c (thread_change_ptid): Pass target to
3420 thread_ptid_changed observable.
3421
d2854d8d
CT
34222020-08-06 Caroline Tice <cmtice@google.com>
3423
fe4c3d43
SM
3424 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3425 (struct dwp_sections): Update field comments. Add loclists and
3426 rnglists fields.
3427 (struct virtual_v2_dwo_sections): Rename struct to
3428 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3429 size & offset fields for loclists and rnglists.
3430 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3431 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3432 skipping dummy type units.
3433 (create_dwp_hash_table): Update the large comment above the function to
3434 discuss Version 5 DWP files as well, with references. Update all the
3435 version checks in the function to check for version 5 as well. Add new
3436 section at the end to create dwp hash table for version 5.
3437 (create_dwp_v2_section): Rename function to
3438 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3439 Add V5 to error message text.
3440 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3441 into calls to create_dwp_v2_or_v5_section.
3442 (create_dwo_unit_in_dwp_v5): New function.
3443 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3444 check for version2; add else clause to handle version 5.
3445 (open_and_init_dwo_file): Add code to check dwarf version & only call
3446 create_debug_types_hash_table (with sections.types) if version is not 5;
3447 else call create_debug_type_hash_table, with sections.info.
3448 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3449 version 5.
3450 (dwarf2_locate_v5_dwp_sections): New function.
3451 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3452 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3453
159ed7d9
SM
34542020-08-06 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * regcache.h (class regcache): Remove friend
3457 registers_changed_ptid.
3458 <regcache_thread_ptid_changed>: Remove.
3459 <regcaches>: Remove.
3460 * regcache.c (regcache::regcaches): Rename to...
3461 (regcaches): ... this. Make static.
3462 (get_thread_arch_aspace_regcache): Update.
3463 (regcache::regcache_thread_ptid_changed): Rename to...
3464 (regcache_thread_ptid_changed): ... this. Update.
3465 (class regcache_access): Remove.
3466 (regcaches_test): Update.
3467 (_initialize_regcache): Update.
3468 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3469 <forward_list>.
3470
174981ae
SM
34712020-08-06 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * regcache.h (class regcache) <current_regcache>: Rename to...
3474 <regcaches>: ... this. Move doc here.
3475 * regcache.c (regcache::current_regcache) Rename to...
3476 (regcache::regcaches): ... this. Move doc to header.
3477 (get_thread_arch_aspace_regcache): Update.
3478 (regcache::regcache_thread_ptid_changed): Update.
3479 (registers_changed_ptid): Update.
3480 (class regcache_access) <current_regcache_size>: Rename to...
3481 <regcaches_size>: ... this.
3482 (current_regcache_test): Rename to...
3483 (regcaches_test): ... this.
3484 (_initialize_regcache): Update.
3485
ed908db6
VC
34862020-08-06 Victor Collod <vcollod@nvidia.com>
3487
3488 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3489
b5582ab7
KB
34902020-08-05 Kevin Buettner <kevinb@redhat.com>
3491
3492 * corelow.c (core_target::build_file_mappings): Don't output
3493 null pathname in warning.
3494
ea946b86
SM
34952020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3496
3497 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3498 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3499 gdb.dwarf2/dw2-single-line-discriminators.exp,
3500 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3501
57d02173
TT
35022020-08-05 Tom Tromey <tromey@adacore.com>
3503
3504 PR rust/26197:
3505 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3506 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3507 Fix off-by-one and type size errors in ordinary case.
3508
5555c86d
TV
35092020-08-05 Tom de Vries <tdevries@suse.de>
3510
3511 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3512 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3513
97916bfe
SM
35142020-08-04 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * frame.h (frame_id_p): Return bool.
3517 (frame_id_artificial_p): Return bool.
3518 (frame_id_eq): Return bool.
3519 (has_stack_frames): Return bool.
3520 (get_selected_frame): Fix typo in comment.
3521 (get_frame_pc_if_available): Return bool.
3522 (get_frame_address_in_block_if_available): Return bool.
3523 (get_frame_func_if_available): Return bool.
3524 (read_frame_register_unsigned): Return bool.
3525 (get_frame_register_bytes): Return bool.
3526 (safe_frame_unwind_memory): Return bool.
3527 (deprecated_frame_register_read): Return bool.
3528 (frame_unwinder_is): Return bool.
3529 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3530 bool.
3531 <this_id::p>: Likewise.
3532 <prev_p>: Likewise.
3533 (frame_stash_add): Return bool.
3534 (get_frame_id): Use bool.
3535 (frame_id_build_special) Use bool.
3536 (frame_id_build_unavailable_stack): Use bool.
3537 (frame_id_build): Use bool.
3538 (frame_id_p): Return bool, use true/false instead of 1/0.
3539 (frame_id_artificial_p): Likewise.
3540 (frame_id_eq): Likewise.
3541 (frame_id_inner): Likewise.
3542 (get_frame_func_if_available): Likewise.
3543 (read_frame_register_unsigned): Likewise.
3544 (deprecated_frame_register_read): Likewise.
3545 (get_frame_register_bytes): Likewise.
3546 (has_stack_frames): Likewise.
3547 (inside_main_func): Likewise.
3548 (inside_entry_func): Likewise.
3549 (get_frame_pc_if_available): Likewise.
3550 (get_frame_address_in_block_if_available): Likewise.
3551 (frame_unwinder_is): Likewise.
3552 (safe_frame_unwind_memory): Likewise.
3553 (frame_unwind_arch): Likewise.
3554
fedfee88
SM
35552020-08-04 Simon Marchi <simon.marchi@efficios.com>
3556
3557 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3558 type to cached_copy_status.
3559 (fprintf_frame): Adjust.
3560 (get_frame_func_if_available): Adjust.
3561 (frame_cleanup_after_sniffer): Adjust.
3562
6cfa9b59
MW
35632020-08-04 Mark Wielaard <mark@klomp.org>
3564
3565 * MAINTAINERS (Write After Approval): Update email address.
3566
66d6346b
SM
35672020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3570 dynamic_prop::const_val.
3571
8a6d5e35
SM
35722020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3573
3574 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3575 dynamic_prop::kind.
3576
51d6067d
SM
35772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3578
3579 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3580
b26e2ae7
JM
35812020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3582
3583 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3584
39791af2
JM
35852020-08-04 Weimin Pan <weimin.pan@oracle.com>
3586 Jose E. Marchesi <jose.marchesi@oracle.com>
3587
3588 * configure.tgt: Add entry for bpf-*-*.
3589 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3590 (ALLDEPFILES): Add bpf-tdep.c.
3591 * bpf-tdep.c: New file.
3592 * MAINTAINERS: Add bpf target and maintainer.
3593 * NEWS: Mention the support for the new target.
3594
521894aa
TV
35952020-08-04 Tom de Vries <tdevries@suse.de>
3596
3597 PR symtab/23270
3598 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3599 Error.
3600
5d6356e9
JB
36012020-08-03 John Baldwin <jhb@FreeBSD.org>
3602
3603 * syscalls/freebsd.xml: Regenerate.
3604
0cf82b81
JB
36052020-08-03 John Baldwin <jhb@FreeBSD.org>
3606
3607 * syscalls/update-freebsd.sh: Fix usage and year range.
3608
8f34b746
TV
36092020-08-03 Tom de Vries <tdevries@suse.de>
3610
3611 PR symtab/26333
3612 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3613 DW_LNE_lo_user/DW_LNE_hi_user range.
3614
5e500d33
SM
36152020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3616
3617 PR ada/26318
3618 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3619 kind.
3620
78319c15
TBA
36212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3622
3623 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3624
4c55e970
TBA
36252020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3626
3627 * breakpoint.c (set_breakpoint_condition): Update the condition
3628 expressions after checking that the input condition string parses
3629 successfully and does not contain junk at the end.
3630
1e620590
TBA
36312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3632
3633 * breakpoint.c (set_breakpoint_condition): Update the
3634 condition string after parsing the new condition successfully.
3635
c8693053
RO
36362020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3637
3638 * proc-api.c (_STRUCTURED_PROC): Don't define.
3639 * proc-events.c: Likewise.
3640 * proc-flags.c: Likewise.
3641 * proc-why.c: Likewise.
3642 * procfs.c: Likewise.
3643
3644 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3645 * configure, config.in: Regenerate.
3646
5a99adb8
TV
36472020-07-30 Tom de Vries <tdevries@suse.de>
3648
3649 PR build/26320
3650 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3651 m_red/m_green/m_blue in a union.
3652
8ba83e91
TV
36532020-07-29 Tom de Vries <tdevries@suse.de>
3654
3655 PR tdep/26280
3656 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3657
f75a0693
AB
36582020-07-28 Tom Tromey <tromey@adacore.com>
3659
3660 PR symtab/26270:
3661 * symtab.h (find_pc_partial_function_sym): Declare.
3662 * cli/cli-cmds.c (disassemble_command): Use
3663 find_pc_partial_function_sym. Check asm_demangle.
3664 * blockframe.c (cache_pc_function_sym): New global.
3665 (cache_pc_function_name): Remove.
3666 (clear_pc_function_cache): Update.
3667 (find_pc_partial_function_sym): New function, from
3668 find_pc_partial_function.
3669 (find_pc_partial_function): Rewrite using
3670 find_pc_partial_function_sym.
3671
16f3242c
TT
36722020-07-28 Tom Tromey <tromey@adacore.com>
3673
3674 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3675 help. Add usage.
3676
4888741a
TT
36772020-07-28 Tom Tromey <tromey@adacore.com>
3678
3679 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3680 <DW_OP_GNU_variable_value>: Cast to address type.
3681
4d46f402
KR
36822020-07-28 Kamil Rytarowski <n54@gmx.com>
3683
3684 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3685 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3686 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3687 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3688 (nbsd_get_siginfo_type): New.
3689 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3690 (_initialize_nbsd_tdep): New.
3691
d70f978b
L
36922020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3693
3694 PR binutils/26301
3695 * configure: Regenerated.
3696
377170fa
L
36972020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3698
3699 PR binutils/26301
3700 * configure: Regenerated.
3701
43d5901d
AB
37022020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3703
3704 * python/py-frame.c: Remove 'user-regs.h' include.
3705 (frapy_read_register): Rewrite to make use of
3706 gdbpy_parse_register_id.
3707 * python/py-registers.c (gdbpy_parse_register_id): New function,
3708 moved here from python/py-unwind.c. Updated the return type, and
3709 also accepts register descriptor objects.
3710 * python/py-unwind.c: Remove 'user-regs.h' include.
3711 (pyuw_parse_register_id): Moved to python/py-registers.c.
3712 (unwind_infopy_add_saved_register): Update to use
3713 gdbpy_parse_register_id.
3714 (pending_framepy_read_register): Likewise.
3715 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3716
14fa8fb3
AB
37172020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3718
3719 * python/py-registers.c: Add 'user-regs.h' include.
3720 (register_descriptor_iter_find): New function.
3721 (register_descriptor_iterator_object_methods): New static global
3722 methods array.
3723 (register_descriptor_iterator_object_type): Add pointer to methods
3724 array.
3725
ddce1758
JB
37262020-07-27 John Baldwin <jhb@FreeBSD.org>
3727
3728 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3729 for all architectures on FreeBSD 11.3 and later.
3730
a4089f52
TT
37312020-07-27 Tom Tromey <tromey@adacore.com>
3732
3733 * gcore.h (load_corefile): Don't declare.
3734
95420d30
TV
37352020-07-27 Tom de Vries <tdevries@suse.de>
3736
3737 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3738 * config.in: Regenerate.
3739 * configure: Regenerate.
3740
05a6b8c2
EZ
37412020-07-26 Eli Zaretskii <eliz@gnu.org>
3742
3743 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3744 ws2tcpip.h. When checking whether socklen_t type is defined, use
3745 ws2tcpip.h if it is available and sys/socket.h isn't.
3746 * configure: Regenerate.
3747 * config.in: Regenerate.
3748
e79eb02f
AB
37492020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 PR fortran/23051
3752 PR fortran/26139
3753 * valops.c (value_ind): Pass address to
3754 readjust_indirect_value_type.
3755 * value.c (readjust_indirect_value_type): Make parameter
3756 non-const, and add extra address parameter. Resolve original type
3757 before using it.
3758 * value.h (readjust_indirect_value_type): Update function
3759 signature and comment.
3760
876518dd
TV
37612020-07-25 Tom de Vries <tdevries@suse.de>
3762
3763 PR symtab/26243
3764 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3765 entries.
3766
f6720b1c
AM
37672020-07-24 Aaron Merey <amerey@redhat.com>
3768
3769 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3770 * configure: Rebuild.
3771
513487e1
KB
37722020-07-23 Kevin Buettner <kevinb@redhat.com>
3773
3774 PR corefiles/26294
3775 * corelow.c (_initialize_corelow): Add period to help text
3776 for "maintenance print core-file-backed-mappings".
3777
e7bc9db8
PA
37782020-07-23 Pedro Alves <pedro@palves.net>
3779
3780 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3781 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3782 meanwhile.
3783 * frame.c (frame_cache_generation, get_frame_cache_generation):
3784 New.
3785 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3786 (get_prev_frame_if_no_cycle): On exception, don't touch
3787 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3788 * frame.h (get_frame_cache_generation): Declare.
3789
90fcc466
TV
37902020-07-23 Tom de Vries <tdevries@suse.de>
3791
3792 PR tui/26282
3793 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3794 New default constructor.
3795
78344df7
AB
37962020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3797
3798 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3799 exclude non-statement entries.
3800
b089853a
KB
38012020-07-22 Kevin Buettner <kevinb@redhat.com>
3802
3803 * NEWS (New commands): Mention new command
3804 "maintenance print core-file-backed-mappings".
3805
09c2f5d4
KB
38062020-07-22 Kevin Buettner <kevinb@redhat.com>
3807
3808 * corelow.c (gdbcmd.h): Include.
3809 (core_target::info_proc_mappings): New method.
3810 (get_current_core_target): New function.
3811 (maintenance_print_core_file_backed_mappings): New function.
3812 (_initialize_corelow): Add core-file-backed-mappings to
3813 "maint print" commands.
3814
9c5ec5c2 38152020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3816
9c5ec5c2
KB
3817 * linux-tdep.c (dump_note_entry_p): New function.
3818 (linux_dump_mapping_p_ftype): New typedef.
3819 (linux_find_memory_regions_full): Add new parameter,
3820 should_dump_mapping_p.
3821 (linux_find_memory_regions): Adjust call to
3822 linux_find_memory_regions_full.
3823 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3824 call to linux_find_memory_regions_full.
3825
db082f59
KB
38262020-07-22 Kevin Buettner <kevinb@redhat.com>
3827
3828 * corelow.c (solist.h, unordered_map): Include.
3829 (class core_target): Add field m_core_file_mappings and
3830 method build_file_mappings.
3831 (core_target::core_target): Call build_file_mappings.
3832 (core_target::~core_target): Free memory associated with
3833 m_core_file_mappings.
3834 (core_target::build_file_mappings): New method.
3835 (core_target::xfer_partial): Use m_core_file_mappings
3836 for memory transfers.
3837 * linux-tdep.c (linux_read_core_file_mappings): New
3838 function.
3839 (linux_core_info_proc_mappings): Rewrite to use
3840 linux_read_core_file_mappings.
3841 (linux_init_abi): Register linux_read_core_file_mappings.
3842
7e183d27
KB
38432020-07-22 Kevin Buettner <kevinb@redhat.com>
3844
3845 * arch-utils.c (default_read_core_file_mappings): New function.
3846 * arch-utils.c (default_read_core_file_mappings): Declare.
3847 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3848 * gdbarch.h, gdbarch.c: Regenerate.
3849
2735d421
KB
38502020-07-22 Kevin Buettner <kevinb@redhat.com>
3851
3852 PR corefiles/25631
3853 * corelow.c (core_target:xfer_partial): Revise
3854 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3855 case after first checking the stratum beneath the core
3856 target.
3857 (has_all_memory): Return true.
3858 * target.c (raw_memory_xfer_partial): Revise comment
3859 regarding use of has_all_memory.
3860
e56cb451
KB
38612020-07-22 Kevin Buettner <kevinb@redhat.com>
3862
3863 * exec.h (section_table_xfer_memory): Revise declaration,
3864 replacing section name parameter with an optional callback
3865 predicate.
3866 * exec.c (section_table_xfer_memory): Likewise.
3867 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3868 of section_table_xfer_memory.
3869
32fa152e
TT
38702020-07-22 Tom Tromey <tromey@adacore.com>
3871
3872 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3873 lookup_symbol_search_name.
3874
a67a1c41
AB
38752020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3876
3877 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3878 redundant local variable.
3879 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3880 reference, not pointer, update code accordingly.
3881
a7b4ff4f
SM
38822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3883 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3884
3885 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3886 * jit.c (jit_breakpoint_re_set_internal): Use the
3887 `skip_jit_symbol_lookup` field.
3888
2340e834
SM
38892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3890 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3891
3892 * jit.c (jit_read_descriptor): Define the descriptor address once,
3893 use twice.
3894 (jit_breakpoint_deleted): Move the declaration of the loop variable
3895 `iter` into the loop header.
3896 (jit_breakpoint_re_set_internal): Move the declaration of the local
3897 variable `objf_data` to the first point of definition.
3898 (jit_event_handler): Move the declaration of local variables
3899 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3900 Rename `objf` to `jited`.
3901
c1072906
SM
39022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3903
3904 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3905 Remove.
3906 * jit.c (get_jiter_objfile_data): Update.
3907
c8474dc3
TBA
39082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3909 Simon Marchi <simon.marchi@polymtl.ca>
3910
3911 * jit.c (struct jit_program_space_data): Remove.
3912 (jit_program_space_key): Remove.
3913 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3914 stuff.
3915 (get_jit_program_space_data): Remove.
3916 (jit_breakpoint_deleted): Iterate on all of the program space's
3917 objfiles.
3918 (jit_inferior_init): Likewise.
3919 (jit_breakpoint_re_set_internal): Likewise. Also change return
3920 type to void.
3921 (jit_breakpoint_re_set): Pass current_program_space to
3922 jit_breakpoint_re_set_internal.
3923
77208eb7
SM
39242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3925
3926 * jit.h (struct jiter_objfile_data) <cached_code_address,
3927 jit_breakpoint>: Move to here from ...
3928 * jit.c (jit_program_space_data): ... here.
3929 (jiter_objfile_data::~jiter_objfile_data): Update.
3930 (jit_breakpoint_deleted): Update.
3931 (jit_breakpoint_re_set_internal): Update.
3932
8c1c720f
SM
39332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3934
3935 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3936 checks.
3937 (jit_read_descriptor): Remove NULL check.
3938 (jit_event_handler): Add an assertion.
3939
0e74a041
SM
39402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3941
3942 * jit.h (struct jit_objfile_data): Split into...
3943 (struct jiter_objfile_data): ... this ...
3944 (struct jited_objfile_data): ... and this.
3945 * objfiles.h (struct objfile) <jit_data>: Remove.
3946 <jiter_data, jited_data>: New fields.
3947 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3948 (jiter_objfile_data::~jiter_objfile_data): ... this.
3949 (get_jit_objfile_data): Rename to ...
3950 (get_jiter_objfile_data): ... this.
3951 (add_objfile_entry): Update.
3952 (jit_read_descriptor): Use get_jiter_objfile_data.
3953 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3954 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3955 (jit_inferior_exit_hook): Use objfile's jited_data field.
3956
238b5c9f
SM
39572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3958
3959 * jit.h: Forward-declare `struct minimal_symbol`.
3960 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3961 constructor, destructor, and an objfile* field.
3962 * jit.c (jit_objfile_data): Remove.
3963 (struct jit_objfile_data): Migrate from here to jit.h.
3964 (jit_objfile_data::~jit_objfile_data): New destructor
3965 implementation with code moved from free_objfile_data.
3966 (free_objfile_data): Delete.
3967 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3968 (jit_find_objf_with_entry_addr): Ditto.
3969 (jit_inferior_exit_hook): Ditto.
3970 (_initialize_jit): Remove the call to
3971 register_objfile_data_with_cleanup.
3972 * objfiles.h (struct objfile) <jit_data>: New field.
3973
fe053b9e
TBA
39742020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3975
3976 * jit.h: Forward-declare `struct objfile`.
3977 (jit_event_handler): Add a second parameter, the JITer objfile.
3978 * jit.c (jit_read_descriptor): Change the signature to take the
3979 JITer objfile as an argument instead of the jit_program_space_data.
3980 (jit_inferior_init): Update the call to jit_read_descriptor.
3981 (jit_event_handler): Use the new JITer objfile argument when calling
3982 jit_read_descriptor.
3983 * breakpoint.c (handle_jit_event): Update the call to
3984 jit_event_handler to pass the JITer objfile.
3985
4cec0c66
JB
39862020-07-21 John Baldwin <jhb@FreeBSD.org>
3987
3988 * gdbarch.c: Regenerate.
3989 * gdbarch.h: Regenerate.
3990 * gdbarch.sh (handle_segmentation_fault): Remove method.
3991 * infrun.c (handle_segmentation_fault): Remove.
3992 (print_signal_received_reason): Remove call to
3993 handle_segmentation_fault.
3994
0e42f66a
JB
39952020-07-21 John Baldwin <jhb@FreeBSD.org>
3996
3997 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3998 Rename to sparc64_linux_report_signal_info and add siggnal
3999 argument.
4000 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4001 instead of sparc64_linux_handle_segmentation_fault.
4002
77bdfeb2
JB
40032020-07-21 John Baldwin <jhb@FreeBSD.org>
4004
4005 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4006 i386_linux_report_signal_info instead of
4007 i386_linux_handle_segmentation_fault.
4008 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4009 to i386_linux_report_signal_info and add siggnal argument.
4010 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4011 of i386_linux_handle_segmentation_fault.
4012 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4013 to i386_linux_report_signal_info and add siggnal argument.
4014
ad97bfc5
JB
40152020-07-21 John Baldwin <jhb@FreeBSD.org>
4016
4017 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4018 hook if present.
4019
272bb05c
JB
40202020-07-21 John Baldwin <jhb@FreeBSD.org>
4021
4022 * gdbarch.c: Regenerate.
4023 * gdbarch.h: Regenerate.
4024 * gdbarch.sh (report_signal_info): New method.
4025 * infrun.c (print_signal_received_reason): Invoke gdbarch
4026 report_signal_info hook if present.
4027
baf8791e
AB
40282020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4029
4030 * python/py-registers.c : Add 'unordered_map' include.
4031 (gdbpy_new_reggroup): Renamed to...
4032 (gdbpy_get_reggroup): ...this. Update to only create register
4033 group descriptors when needed.
4034 (gdbpy_reggroup_iter_next): Update.
4035
f7306dac
AB
40362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * python/py-registers.c (gdbpy_register_object_data): New static
4039 global.
4040 (gdbpy_register_object_data_init): New function.
4041 (gdbpy_new_register_descriptor): Renamed to...
4042 (gdbpy_get_register_descriptor): ...this, and update to reuse
4043 existing register descriptors where possible.
4044 (gdbpy_register_descriptor_iter_next): Update.
4045 (gdbpy_initialize_registers): Register new gdbarch data.
4046
05c309a8
SM
40472020-07-21 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * linux-nat.c (stopped_pids): Make static.
4050
d1fd641e
SM
40512020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4052
4053 PR ada/26235
4054 * gdbtypes.c (ada_discrete_type_low_bound,
4055 ada_discrete_type_high_bound): Handle undefined bounds.
4056
1de14d77
KR
40572020-07-21 Kamil Rytarowski <n54@gmx.com>
4058
4059 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4060 declaration.
4061 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4062 function.
4063
ed810cc7
JB
40642020-07-20 John Baldwin <jhb@FreeBSD.org>
4065
4066 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4067 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4068 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4069 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4070 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4071 method.
4072
ae5369e7
LC
40732020-07-20 Ludovic Courtès <ludo@gnu.org>
4074
4075 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4076 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4077 which are deprecated in Guile 3.0.
4078 * configure.ac (try_guile_versions): Add "guile-3.0".
4079 * configure (try_guile_versions): Regenerate.
4080 * NEWS: Update entry.
4081
68cf161c
LC
40822020-07-20 Ludovic Courtès <ludo@gnu.org>
4083 Doug Evans <dje@google.com>
4084
4085 PR gdb/21104
4086 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4087 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4088 USING_GUILE_BEFORE_2_2.
4089 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4090 Change type to 'scm_t_port_type *'.
4091 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4092 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4093 parameter and honor it. Update callers.
4094 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4095 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4096 functions.
4097 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4098 USING_GUILE_BEFORE_2_2.
4099 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4100 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4101 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4102 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4103 and 'SCM_PORT_TYPE'.
4104 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4105 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4106 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4107 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4108 [!USING_GUILE_BEFORE_2_2]: New functions.
4109 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4110 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4111 'gdbscm_memory_port_read'.
4112 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4113 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4114 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4115 function.
4116 (ioscm_init_memory_port): Remove.
4117 (ioscm_init_memory_port_stream): New function
4118 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4119 function.
4120 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4121 Return scm_from_uint (0).
4122 (gdbscm_set_memory_port_read_buffer_size_x)
4123 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4124 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4125 Return scm_from_uint (0).
4126 (gdbscm_set_memory_port_write_buffer_size_x)
4127 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4128 * configure.ac (try_guile_versions): Add "guile-2.2".
4129 * configure: Regenerate.
4130 * NEWS: Add entry.
4131
aee91db3
TT
41322020-07-18 Tom Tromey <tom@tromey.com>
4133
4134 * linux-nat.c (linux_multi_process): Remove.
4135 (linux_nat_target::supports_multi_process): Return true.
4136
0e267416
AB
41372020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4140 (riscv_lookup_target_description): Return pointer out of
4141 unique_ptr.
4142 * target-descriptions.c (allocate_target_description): Add
4143 comment.
4144 (target_desc_deleter::operator()): Likewise.
4145 * target-descriptions.h (struct target_desc_deleter): Moved to
4146 gdbsupport/tdesc.h.
4147 (target_desc_up): Likewise.
4148
f80c8ec4
TT
41492020-07-17 Tom Tromey <tromey@adacore.com>
4150
4151 * linux-nat.c (linux_nat_target::supports_non_stop)
4152 (linux_nat_target::always_non_stop_p): Use "true".
4153 (linux_nat_target::supports_disable_randomization): Use "true" and
4154 "false".
4155
d0ce17d8
CT
41562020-07-16 Caroline Tice <cmtice@google.com>
4157
4158 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4159 (RNGLIST_HEADER_SIZE64): New constant definition.
4160 (struct dwop_section_names): Add rnglists_dwo.
4161 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4162 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4163 (struct dwo_sections): Add rnglists field.
4164 (read_attribut_reprocess): Add tag parameter.
4165 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4166 (cu_debug_rnglists_section): New function (decl & definition).
4167 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4168 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4169 die whose range is being checked; get rnglist section from
4170 cu_debug_rnglists_section, to get from either objfile or dwo file as
4171 appropriate. Add cases for DW_RLE_base_addressx,
4172 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4173 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4174 test inside if-condition and updating complaint message.
4175 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4176 dwarf2_rnglists_process.
4177 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4178 dwarf2_ranges_process.
4179 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4180 need_ranges_base and update comment appropriately. Also pass die tag
4181 to dwarf2_ranges_read.
4182 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4183 need_ranges_base and update comment appropriately. Also pass die tag
4184 to dwarf2_ranges_process.
4185 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4186 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4187 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4188 need_ranges_base and update comment appropriately. Also pass die tag
4189 to read_attribute_reprocess and dwarf2_ranges_read.
4190 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4191 and update function comment appropriately.
4192 (read_loclist_index): Call read_loclists_rnglists_header instead of
4193 read_loclist_header.
4194 (read_rnglist_index): New function.
4195 (read_attribute_reprocess): Add tag parameter. Add code for
4196 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4197 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4198
3dcc261c
AB
41992020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4202 being resolved.
4203
ccb9eba6
AB
42042020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4205
4206 * arch-utils.c (show_architecture): Update formatting of messages.
4207
cf88be68
SM
42082020-07-12 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * gdbtypes.h (struct type) <bounds>: Handle array and string
4211 types.
4212 * ada-lang.c (assign_aggregate): Use type::bounds on
4213 array/string type.
4214 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4215 * c-varobj.c (c_number_of_children): Likewise.
4216 (c_describe_child): Likewise.
4217 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4218 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4219 (f_type_print_base): Likewise.
4220 * f-valprint.c (f77_array_offset_tbl): Likewise.
4221 (f77_get_upperbound): Likewise.
4222 (f77_print_array_1): Likewise.
4223 * guile/scm-type.c (gdbscm_type_range): Likewise.
4224 * m2-typeprint.c (m2_array): Likewise.
4225 (m2_is_long_set_of_type): Likewise.
4226 * m2-valprint.c (get_long_set_bounds): Likewise.
4227 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4228 * python/py-type.c (typy_range): Likewise.
4229 * rust-lang.c (rust_internal_print_type): Likewise.
4230 * type-stack.c (type_stack::follow_types): Likewise.
4231 * valarith.c (value_subscripted_rvalue): Likewise.
4232 * valops.c (value_cast): Likewise.
4233
509971ae
SM
42342020-07-12 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4237 callers to use the equivalent accessor methods.
4238
107406b7
SM
42392020-07-12 Simon Marchi <simon.marchi@efficios.com>
4240
4241 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4242 (struct type) <bit_stride>: New method.
4243 (TYPE_BIT_STRIDE): Remove.
4244 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4245
bb789949
SM
42462020-07-12 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4249 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4250 callers to use the equivalent accessor methods instead.
4251
39498edb
SM
42522020-07-12 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4255 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4256 callers to use the equivalent accessor methods instead.
4257
3b606f38
SM
42582020-07-12 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4261 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4262 to use dynamic_prop::kind.
4263
064d9cb9
SM
42642020-07-12 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4267 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4268 to get the bound property's kind and check against
4269 PROP_UNDEFINED.
4270
5537ddd0
SM
42712020-07-12 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4274 all callers to use type::range_bounds followed by
4275 dynamic_prop::{low,high}.
4276
8c2e4e06
SM
42772020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4278
4279 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4280 const_val, set_const_val, baton, set_locexpr, set_loclist,
4281 set_addr_offset, variant_parts, set_variant_parts,
4282 original_type, set_original_type>: New methods.
4283 <kind>: Rename to...
4284 <m_kind>: ... this. Update all users to use the new methods
4285 instead.
4286 <data>: Rename to...
4287 <m_data>: ... this. Update all users to use the new methods
4288 instead.
4289
7c6f2712
SM
42902020-07-12 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * gdbtypes.c (get_discrete_bounds): Return failure if
4293 the range type's bounds are not both defined and constant
4294 values.
4295 (get_array_bounds): Update comment. Remove undefined bound check.
4296
599088e3
SM
42972020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4298
4299 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4300 the type::bounds method directly.
4301
c4dfcb36
SM
43022020-07-12 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4305 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4306 are used to set the range type's bounds to use set_bounds.
4307
0a278aa7
PW
43082020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4309
4310 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4311
cce20f10
PA
43122020-07-10 Pedro Alves <pedro@palves.net>
4313
4314 * gdbthread.h (inferior_ref): Define.
4315 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4316 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4317 * thread.c
4318 (scoped_restore_current_thread::restore):
4319 Adjust to gdb::ref_ptr.
4320 (scoped_restore_current_thread::~scoped_restore_current_thread):
4321 Remove manual decref handling.
4322 (scoped_restore_current_thread::scoped_restore_current_thread):
4323 Adjust to use
4324 inferior_ref::new_reference/thread_info_ref::new_reference.
4325 Incref the thread before calling get_frame_id instead of after.
4326 Let TARGET_CLOSE_ERROR propagate.
4327
6d7aa592
PA
43282020-07-10 Pedro Alves <pedro@palves.net>
4329
4330 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4331 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4332 NOT_AVAILABLE_ERROR.
4333 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4334 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4335
b3e3a4c1
SM
43362020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4337 Pedro Alves <pedro@palves.net>
4338
4339 PR gdb/26199
4340 * infrun.c (threads_are_resumed_pending_p): Delete.
4341 (do_target_wait): Remove threads_are_executing and
4342 threads_are_resumed_pending_p checks from the inferior_matches
4343 lambda. Update comments.
4344
d6cc5d98
PA
43452020-07-10 Pedro Alves <pedro@palves.net>
4346
4347 PR gdb/26199
4348 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4349 executing threads.
4350
7d3badc6
PA
43512020-07-10 Pedro Alves <pedro@palves.net>
4352
4353 PR gdb/26199
4354 * infrun.c (handle_no_resumed): Handle multiple targets.
4355
42bd97a6
PA
43562020-07-10 Pedro Alves <pedro@palves.net>
4357
4358 PR gdb/26199
4359 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4360 target_is_async_p.
4361
43667cc6
PA
43622020-07-10 Pedro Alves <pedro@palves.net>
4363
4364 PR gdb/26199
4365 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4366 threads, not all threads.
4367
96118d11
PA
43682020-07-10 Pedro Alves <pedro@palves.net>
4369
4370 PR gdb/26199
4371 * remote.c (remote_target::open_1): Pass remote target pointer as
4372 data to create_async_event_handler.
4373 (remote_async_inferior_event_handler): Mark async event handler
4374 before returning if the remote target still has either pending
4375 events or unacknowledged notifications.
4376
54904d81
JB
43772020-07-10 John Baldwin <jhb@FreeBSD.org>
4378
4379 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4380 declaration.
4381 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4382 function.
4383
f37e5866
JB
43842020-07-09 John Baldwin <jhb@FreeBSD.org>
4385
4386 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4387 inferior_ptid.
4388
fc238d4a
JB
43892020-07-09 John Baldwin <jhb@FreeBSD.org>
4390
4391 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4392 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4393 AT_FREEBSD_PS_STRINGS.
4394
6e2469ff
HD
43952020-07-08 Hannes Domani <ssbssa@yahoo.de>
4396
4397 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4398 of debugfile path on Windows.
4399
d1076c41
JB
44002020-07-08 John Baldwin <jhb@FreeBSD.org>
4401
4402 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4403 argument to 'data'.
4404
15f3b077
TT
44052020-07-08 Tom Tromey <tromey@adacore.com>
4406
4407 * ada-lang.c (ada_exception_message_1): Use read_memory.
4408
9fc501fd
AB
44092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4410
4411 PR python/22748
4412 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4413 special handling for inline frames.
4414 * findvar.c (value_of_register_lazy): Skip inline frames when
4415 creating lazy register values.
4416 * frame.c (frame_id_computed_p): Delete definition.
4417 * frame.h (frame_id_computed_p): Delete declaration.
4418
64cb3757
AB
44192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * NEWS: Mention additions to Python API.
4422 * python/py-arch.c (archpy_register_groups): New function.
4423 (arch_object_methods): Add 'register_groups' method.
4424 * python/py-registers.c (reggroup_iterator_object): New struct.
4425 (reggroup_object): New struct.
4426 (gdbpy_new_reggroup): New function.
4427 (gdbpy_reggroup_to_string): New function.
4428 (gdbpy_reggroup_name): New function.
4429 (gdbpy_reggroup_iter): New function.
4430 (gdbpy_reggroup_iter_next): New function.
4431 (gdbpy_new_reggroup_iterator): New function
4432 (gdbpy_initialize_registers): Register new types.
4433 (reggroup_iterator_object_type): Define new Python type.
4434 (gdbpy_reggroup_getset): New static global.
4435 (reggroup_object_type): Define new Python type.
4436 * python/python-internal.h
4437
0f767f94
AB
44382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4441 * python/py-arch.c (archpy_registers): New function.
4442 (arch_object_methods): Add 'registers' method.
4443 * python/py-registers.c: New file.
4444 * python/python-internal.h
4445 (gdbpy_new_register_descriptor_iterator): Declare.
4446 (gdbpy_initialize_registers): Declare.
4447 * python/python.c (do_start_initialization): Call
4448 gdbpy_initialize_registers.
4449 * NEWS: Mention additions to the Python API.
4450
87dbc774
AB
44512020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * NEWS: Mention new Python API method.
4454 * python/py-unwind.c (pending_framepy_architecture): New function.
4455 (pending_frame_object_methods): Add architecture method.
4456
3bc98c0c
AB
44572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * gdbarch.c: Regenerate.
4460 * gdbarch.h: Regenerate.
4461 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4462 (gdbarch_data): Use internal_error for the case where
4463 deprecated_set_gdbarch_data was originally needed.
4464 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4465 and use passed in obstack.
4466 (libunwind_frame_set_descr): Should no longer get back NULL from
4467 gdbarch_data.
4468 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4469 type.
4470 * user-regs.c (user_regs_init): Update parameters, and use passed
4471 in obstack.
4472 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4473 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4474
d8cc8af6
TV
44752020-07-06 Tom de Vries <tdevries@suse.de>
4476
4477 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4478 End-Of-Sequence in lte_is_less_than.
4479 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4480 "gdb: Don't reorder line table entries too much when sorting".
4481
947f7597
TV
44822020-07-06 Tom de Vries <tdevries@suse.de>
4483
4484 PR tui/26205
4485 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4486
1e7c1b22
TV
44872020-07-05 Tom de Vries <tdevries@suse.de>
4488
4489 PR build/26187
4490 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4491 std::uncaught_exceptions instead of deprecated
4492 std::uncaught_exception.
4493
a36158ec
SM
44942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4495
4496 * macroexp.h (macro_stringify): Return
4497 gdb::unique_xmalloc_ptr<char>.
4498 * macroexp.c (macro_stringify): Likewise.
4499 * macrotab.c (fixup_definition): Update.
4500
14d960c8
SM
45012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4502
4503 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4504 (lex_one_token): Update.
4505 * macroexp.c (struct macro_buffer) <release>: Return
4506 gdb::unique_xmalloc_ptr<char>.
4507 (macro_stringify): Update.
4508 (macro_expand): Update.
4509 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4510 * macroexp.h (macro_expand_next): Likewise.
4511
211d5b1c
SM
45122020-07-02 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * macroexp.h (macro_lookup_ftype): Remove.
4515 (macro_expand, macro_expand_once, macro_expand_next): Remove
4516 lookup function parameters, add scope parameter.
4517 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4518 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4519 * macroscope.h (standard_macro_lookup): Change parameter type
4520 to macro_scope.
4521 * macroscope.c (standard_macro_lookup): Likewise.
4522 * c-exp.y (lex_one_token): Update.
4523 * macrocmd.c (macro_expand_command): Likewise.
4524 (macro_expand_once_command): Likewise.
4525
b1a35af2
SM
45262020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4527
4528 * inf-loop.c (inferior_event_handler): Remove client_data param.
4529 * inf-loop.h (inferior_event_handler): Likewise.
4530 * infcmd.c (step_1): Adjust.
4531 * infrun.c (proceed): Adjust.
4532 (fetch_inferior_event): Remove client_data param.
4533 (infrun_async_inferior_event_handler): Adjust.
4534 * infrun.h (fetch_inferior_event): Remove `void *` param.
4535 * linux-nat.c (handle_target_event): Adjust.
4536 * record-btrace.c (record_btrace_handle_async_inferior_event):
4537 Adjust.
4538 * record-full.c (record_full_async_inferior_event_handler):
4539 Adjust.
4540 * remote.c (remote_async_inferior_event_handler): Adjust.
4541
1cdf9e33
TT
45422020-07-01 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4545 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4546
32c1e210
TT
45472020-07-01 Tom Tromey <tom@tromey.com>
4548
4549 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4550 tui_gen_win_info.
4551 (tui_win_info::make_window): Merge with
4552 tui_gen_win_info::make_window.
4553 (tui_win_info::make_visible): Move from tui_gen_win_info.
4554 * tui/tui-win.c (tui_win_info::max_width): Move from
4555 tui_gen_win_info.
4556 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4557 type.
4558 <window_factory>: Likewise.
4559 * tui/tui-layout.c (tui_win_info::resize): Move from
4560 tui_gen_win_info.
4561 (make_standard_window): Change return type.
4562 (get_locator_window, tui_get_window_by_name): Likewise.
4563 (tui_layout_window::apply): Remove a cast.
4564 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4565 (struct tui_win_info): Merge with tui_gen_win_info.
4566 (struct tui_gen_win_info): Remove.
4567
a30cb6da
TT
45682020-07-01 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-stack.h (struct tui_locator_window): Derive from
4571 tui_win_info.
4572 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4573 <can_box>: New method.
4574
1eb2161f
TT
45752020-07-01 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4578
7134f2eb
TT
45792020-07-01 Tom Tromey <tom@tromey.com>
4580
4581 * tui/tui-regs.c (tui_data_window::display_registers_from)
4582 (tui_data_window::display_registers_from)
4583 (tui_data_window::first_data_item_displayed)
4584 (tui_data_window::delete_data_content_windows): Update.
4585 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4586 Remove.
4587 (tui_data_window::check_register_values): Update.
4588 (tui_data_item_window::rerender): Add parameters. Update.
4589 (tui_data_item_window::refresh_window): Remove.
4590 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4591 virtual.
4592 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4593 tui_gen_win_info.
4594 <refresh_window, max_height, min_height>: Remove.
4595 <rerender>: Add parameters.
4596 <x, y, visible>: New members.
4597 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4598 <m_item_width>: New member.
4599
22b7b041
TT
46002020-07-01 Tom Tromey <tom@tromey.com>
4601
4602 * tui/tui-regs.c (tui_data_window::show_register_group)
4603 (tui_data_window::check_register_values): Update.
4604 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4605 from item_no.
4606
c9753adb
TT
46072020-07-01 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4610 useless "if".
4611
9ab26b4a
TT
46122020-07-01 Tom Tromey <tom@tromey.com>
4613
4614 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4615 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4616
e555083f
TT
46172020-07-01 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4620 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4621 (struct tui_line_or_address): Move from tui-data.h.
4622 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4623 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4624 (tui_cmd_window, tui_source_window_base, tui_source_window)
4625 (tui_disasm_window): Don't declare.
4626 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4627 to tui-winsource.h.
4628 (SINGLE_KEY): Move to tui-stack.c.
4629
7a02bab7
TT
46302020-07-01 Tom Tromey <tom@tromey.com>
4631
4632 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4633 std::string.
4634 * tui/tui-regs.c (class tab_expansion_file): New.
4635 (tab_expansion_file::write): New method.
4636 (tui_register_format): Change return type. Use
4637 tab_expansion_file.
4638 (tui_get_register, tui_data_window::display_registers_from)
4639 (tui_data_item_window::rerender): Update.
4640 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4641 * tui/tui-io.c (tui_expand_tabs): Remove.
4642
ea68593b
TT
46432020-07-01 Tom Tromey <tom@tromey.com>
4644
4645 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4646
a8caed5d
FS
46472020-07-01 Fangrui Song <maskray@google.com>
4648
4649 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4650
9cdf9820
AKS
46512020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4652
4653 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4654 forms for DW_AT_associated and DW_AT_allocated attributes,
4655 which is already checked in function attr_to_dynamic_prop.
4656
a1520ad8
TT
46572020-06-30 Tom Tromey <tromey@adacore.com>
4658
4659 * dwarf2/read.c (quirk_rust_enum): Correctly call
4660 alloc_rust_variant for default-less enum.
4661
5ac58899
TT
46622020-06-30 Tom Tromey <tromey@adacore.com>
4663
4664 PR build/26183:
4665 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4666 gdb::to_string.
4667
19b187a9
SM
46682020-06-29 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4671 * gdbarch.h: Re-generate.
4672
cd4c4c07
TT
46732020-06-28 Tom Tromey <tom@tromey.com>
4674
4675 * command.h (cmd_types): Remove.
4676 (cmd_type): Don't declare.
4677 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4678 typedef.
4679 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4680 * cli/cli-decode.c (cmd_type): Remove.
4681
05779d57
PA
46822020-06-27 Pedro Alves <palves@redhat.com>
4683
4684 * fork-child.c (prefork_hook): Adjust.
4685 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4686 Delete.
4687 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4688 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4689 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4690 Remove declarations.
4691 (struct inferior) <set_tty, tty>: New methods.
4692 (struct inferior) <terminal>: Rename to ...
4693 (struct inferior) <m_terminal>: ... this and make private.
4694 * main.c (captured_main_1): Adjust.
4695 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4696 (mi_cmd_inferior_tty_show): Adjust.
4697 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4698 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4699
1776e3e5
NA
47002020-06-26 Nick Alcock <nick.alcock@oracle.com>
4701
4702 * configure.ac: Add --enable-libctf: handle --disable-static
4703 properly.
4704 * acinclude.m4: sinclude ../config/enable.m4.
4705 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4706 (LIBCTF): Substitute in.
4707 (CTF_DEPS): New, likewise.
4708 (CLIBS): libctf needs symbols from libbfd: move earlier.
4709 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4710 flags.
4711 * ctfread.c: Surround in ENABLE_LIBCTF.
4712 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4713 * configure: Regenerate.
4714 * config.in: Likewise.
4715
58373b80
SM
47162020-06-25 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4719
277474ee
SM
47202020-06-25 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * inferior.h (struct inferior) <terminal>: Change type to
4723 gdb::unique_xmalloc_ptr<char>.
4724 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4725 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4726 field, adjust to unique pointer.
4727 (get_inferior_io_terminal): Adjust to unique pointer.
4728
6d74da72
AB
47292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4730
4731 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4732 registers, not just the known core set of registers.
4733
2e52d038
AB
47342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4735
4736 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4737 fflags, frm, and fcsr registers.
4738 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4739 restore groups.
4740 (riscv_tdesc_unknown_reg): New function.
4741 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4742 tdesc_use_registers.
4743 * riscv-tdep.h (struct gdbarch_tdep): Add
4744 unknown_csrs_first_regnum, unknown_csrs_count,
4745 duplicate_fflags_regnum, duplicate_frm_regnum, and
4746 duplicate_fcsr_regnum fields.
4747
be64fd07
AB
47482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4751 callback, use the callback (when not null) to help number unknown
4752 registers.
4753 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4754 (tdesc_use_registers): Add extra parameter to declaration.
4755
3b9fce96
AB
47562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4759 in the file.
4760 (class riscv_pending_register_alias): Likewise.
4761 (riscv_register_feature::register_info): Change 'required_p' field
4762 to 'required', and change its type. Add 'check' member function.
4763 (riscv_register_feature::register_info::check): Define new member
4764 function.
4765 (riscv_xreg_feature): Change initialisation of 'required' field.
4766 (riscv_freg_feature): Likewise.
4767 (riscv_virtual_feature): Likewise.
4768 (riscv_csr_feature): Likewise.
4769 (riscv_check_tdesc_feature): Take extra parameter, the csr
4770 tdesc_feature, rewrite the function to use the new
4771 riscv_register_feature::register_info::check function.
4772 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4773
865bad26
AB
47742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4775
4776 * features/Makefile: Remove all references to the deleted files
4777 below.
4778 * features/riscv/32bit-csr.c: Deleted.
4779 * features/riscv/32bit-csr.xml: Deleted.
4780 * features/riscv/64bit-csr.c: Deleted.
4781 * features/riscv/64bit-csr.xml: Deleted.
4782 * features/riscv/rebuild-csr-xml.sh: Deleted.
4783
ed69cbc8
AB
47842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4785
4786 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4787 whitespace error for declaration of names member variable.
4788 (struct riscv_register_feature): Add new prefer_first_name member
4789 variable, and fix whitespace error in declaration of registers.
4790 (riscv_xreg_feature): Initialize prefer_first_name field.
4791 (riscv_freg_feature): Likewise.
4792 (riscv_virtual_feature): Likewise.
4793 (riscv_csr_feature): Likewise.
4794 (riscv_register_name): Expand on comments. Remove register name
4795 modifications for CSR and virtual registers.
4796
4445e8f5
AB
47972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4798
4799 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4800 errors.
4801
767a879e
AB
48022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4803
4804 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4805 riscv-opc.h.
4806 (class riscv_pending_register_alias): New class.
4807 (riscv_check_tdesc_feature): Take vector of pending aliases and
4808 populate it as appropriate.
4809 (riscv_setup_register_aliases): Delete.
4810 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4811 to riscv_check_tdesc_feature in all cases. Use the vector to
4812 create the register aliases.
4813
bb6e55f3
RO
48142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4815
4816 * sol2-tdep.c (sol2_static_transform_name): Remove.
4817 (sol2_init_abi): Don't register it.
4818 * gdbarch.sh (static_transform_name): Remove.
4819 * gdbarch.c, gdbarch.h: Regenerate.
4820
4821 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4822 gdbarch_static_transform_name.
4823 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4824 * stabsread.c (define_symbol) <'X'>: Remove.
4825 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4826 handling.
4827 <'V'>: Likewise.
4828 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4829 <'S'>: Remove call to gdbarch_static_transform_name.
4830
c6d36836
RO
48312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4832
4833 * procfs.c (procfs_pre_trace): New function.
4834 (procfs_target::create_inferior): Pass it to fork_inferior.
4835
a7e6196b
RO
48362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4837
4838 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4839 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4840 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4841 sol2-tdep.o, sparc-sol2-tdep.o.
4842 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4843 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4844 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4845 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4846
d412e696
RO
48472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4848
4849 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4850 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4851 Call sol2_init_abi.
4852 Remove calls to set_gdbarch_skip_solib_resolver,
4853 set_gdbarch_core_pid_to_str.
4854 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4855 (i386_sol2_static_transform_name): Remove.
4856 (i386_sol2_init_abi): Call sol2_init_abi.
4857 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4858 set_gdbarch_static_transform_name,
4859 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4860 Use sol2_sigtramp_p.
4861 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4862 (sol2_sigtramp_p): New function.
4863 (sol2_static_transform_name): New function.
4864 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4865 (sol2_init_abi): New function.
4866 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4867 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4868 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4869 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4870 (sparc_sol2_static_transform_name): Remove.
4871 (sparc32_sol2_init_abi): Call sol2_init_abi.
4872 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4873 set_gdbarch_static_transform_name,
4874 set_gdbarch_skip_solib_resolver,
4875 set_gdbarch_core_pid_to_str.
4876 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4877 (sparc_sol2_static_transform_name): Remove
4878 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4879 call sol2_sigtramp_p.
4880 (sparc64_sol2_init_abi): Call sol2_init_abi.
4881 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4882 set_gdbarch_static_transform_name,
4883 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4884
a8654e7d
PW
48852020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4886
4887 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4888 * exec.c (validate_exec_file): If from_tty, set both
4889 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4890 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4891 and from_tty, unconditionally ask a confirmation.
4892
caa7fd04
AB
48932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4894
4895 * target-descriptions.c (tdesc_architecture_name): Protect against
4896 NULL pointer dereference.
4897 (maint_print_xml_tdesc_cmd): New function.
4898 (_initialize_target_descriptions): Register new 'maint print
4899 xml-tdesc' command and give it the filename completer.
4900 * NEWS: Mention new 'maint print xml-tdesc' command.
4901
fbf42f4e
AB
49022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4903
4904 * target-descriptions.c (class tdesc_compatible_info): New class.
4905 (struct target_desc): Change type of compatible vector.
4906 (tdesc_compatible_p): Update for change in type of
4907 target_desc::compatible.
4908 (tdesc_compatible_info_list): New function.
4909 (tdesc_compatible_info_arch_name): New function.
4910 (tdesc_add_compatible): Update for change in type of
4911 target_desc::compatible.
4912 (print_c_tdesc::visit_pre): Likewise.
4913
20821f4e
AB
49142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4915
4916 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4917 whitespace to underscore.
4918 (maint_print_c_tdesc_cmd): Use fake filename for target
4919 descriptions that came from the target.
4920 (_initialize_target_descriptions): Add filename command completion
4921 for 'maint print c-tdesc'.
4922
1fb5ee62
SM
49232020-06-23 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4926 lines.
4927
fc3ecb3e
SM
49282020-06-23 Simon Marchi <simon.marchi@efficios.com>
4929
4930 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4931 lines.
4932 (dwarf2_find_location_expression): Likewise.
4933 (call_site_parameter_matches): Likewise.
4934 (dwarf2_compile_expr_to_ax): Likewise.
4935 (disassemble_dwarf_expression): Likewise.
4936 (loclist_describe_location): Likewise.
4937
236ef034
PA
49382020-06-23 Pedro Alves <palves@redhat.com>
4939
4940 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4941 progspace-and-thread.h. Include scoped-mock-context.h instead.
4942 (register_to_value_test): Use scoped_mock_context.
4943 * regcache.c: Include "scoped-mock-context.h".
4944 (cooked_read_test): Don't error out if a target is already pushed.
4945 Use scoped_mock_context. Adjust.
4946 * scoped-mock-context.h: New file.
4947
39e7ecca
AB
49482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4949
4950 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4951 initializer.
4952 (ada_language::is_string_type_p): New member function.
4953 * c-lang.c (c_language_data): Delete la_is_string_type_p
4954 initializer.
4955 (cplus_language_data): Likewise.
4956 (asm_language_data): Likewise.
4957 (minimal_language_data): Likewise.
4958 * d-lang.c (d_language_data): Likewise.
4959 * f-lang.c (f_is_string_type_p): Delete function, implementation
4960 moved to f_language::is_string_type_p.
4961 (f_language_data): Delete la_is_string_type_p initializer.
4962 (f_language::is_string_type_p): New member function,
4963 implementation from f_is_string_type_p.
4964 * go-lang.c (go_is_string_type_p): Delete function, implementation
4965 moved to go_language::is_string_type_p.
4966 (go_language_data): Delete la_is_string_type_p initializer.
4967 (go_language::is_string_type_p): New member function,
4968 implementation from go_is_string_type_p.
4969 * language.c (language_defn::is_string_type_p): Define new member
4970 function.
4971 (default_is_string_type_p): Make static, add comment copied from
4972 header file.
4973 (unknown_language_data): Delete la_is_string_type_p initializer.
4974 (unknown_language::is_string_type_p): New member function.
4975 (auto_language_data): Delete la_is_string_type_p initializer.
4976 (auto_language::is_string_type_p): New member function.
4977 * language.h (language_data): Delete la_is_string_type_p field.
4978 (language_defn::is_string_type_p): Declare new function.
4979 (default_is_string_type_p): Delete desclaration, move comment to
4980 definition.
4981 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4982 moved to m2_language::is_string_type_p.
4983 (m2_language_data): Delete la_is_string_type_p initializer.
4984 (m2_language::is_string_type_p): New member function,
4985 implementation from m2_is_string_type_p.
4986 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4987 initializer.
4988 * opencl-lang.c (opencl_language_data): Likewise.
4989 * p-lang.c (pascal_is_string_type_p): Delete function,
4990 implementation moved to pascal_language::is_string_type_p.
4991 (pascal_language_data): Delete la_is_string_type_p initializer.
4992 (pascal_language::is_string_type_p): New member function,
4993 implementation from pascal_is_string_type_p.
4994 * rust-lang.c (rust_is_string_type_p): Delete function,
4995 implementation moved to rust_language::is_string_type_p.
4996 (rust_language_data): Delete la_is_string_type_p initializer.
4997 (rust_language::is_string_type_p): New member function,
4998 implementation from rust_is_string_type_p.
4999 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5000 is_string_type_p.
5001
4ffc13fb
AB
50022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5003
5004 * ada-lang.c (ada_language_data): Delete la_print_typedef
5005 initializer.
5006 (ada_language::print_typedef): New member function.
5007 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5008 (cplus_language_data): Likewise.
5009 (asm_language_data): Likewise.
5010 (minimal_language_data): Likewise.
5011 * d-lang.c (d_language_data): Likewise.
5012 * f-lang.c (f_language_data): Likewise.
5013 (f_language::print_typedef): New member function.
5014 * go-lang.c (go_language_data): Delete la_print_typedef
5015 initializer.
5016 * language.c (language_defn::print_typedef): Define member
5017 function.
5018 (unknown_language_data): Delete la_print_typedef initializer.
5019 (unknown_language::print_typedef): New member function.
5020 (auto_language_data): Delete la_print_typedef initializer.
5021 (auto_language::print_typedef): New member function.
5022 * language.h (language_data): Delete la_print_typedef field.
5023 (language_defn::print_typedef): Declare new member function.
5024 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5025 (default_print_typedef): Delete declaration.
5026 * m2-lang.c (m2_language_data): Delete la_print_typedef
5027 initializer.
5028 (m2_language::print_typedef): New member function.
5029 * objc-lang.c (objc_language_data): Delete la_print_typedef
5030 initializer.
5031 * opencl-lang.c (opencl_language_data): Likewise.
5032 * p-lang.c (pascal_language_data): Likewise.
5033 (pascal_language::print_typedef): New member function.
5034 * rust-lang.c (rust_print_typedef): Delete function,
5035 implementation moved to rust_language::print_typedef.
5036 (rust_language): Delete la_print_typedef initializer.
5037 (rust_language::print_typedef): New member function,
5038 implementation from rust_print_typedef.
5039 * typeprint.c (default_print_typedef): Delete.
5040
d711ee67
AB
50412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5044 (ada_language::printstr): New member function.
5045 * c-lang.c (c_language_data): Delete la_printstr initializer.
5046 (cplus_language_data): Likewise.
5047 (asm_language_data): Likewise.
5048 (minimal_language_data): Likewise.
5049 * d-lang.c (d_language_data): Likewise.
5050 * f-lang.c (f_printstr): Rename to f_language::printstr.
5051 (f_language_data): Delete la_printstr initializer.
5052 (f_language::printstr): New member function, implementation from
5053 f_printstr.
5054 * go-lang.c (go_language_data): Delete la_printstr initializer.
5055 * language.c (language_defn::printstr): Define new member
5056 function.
5057 (unk_lang_printstr): Delete.
5058 (unknown_language_data): Delete la_printstr initializer.
5059 (unknown_language::printstr): New member function.
5060 (auto_language_data): Delete la_printstr initializer.
5061 (auto_language::printstr): New member function.
5062 * language.h (language_data): Delete la_printstr field.
5063 (language_defn::printstr): Declare new member function.
5064 (LA_PRINT_STRING): Update call to printstr.
5065 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5066 (m2_language_data): Delete la_printstr initializer.
5067 (m2_language::printstr): New member function, implementation from
5068 m2_printstr.
5069 * objc-lang.c (objc_language_data): Delete la_printstr
5070 initializer.
5071 * opencl-lang.c (opencl_language_data): Likewise.
5072 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5073 (pascal_language_data): Delete la_printstr initializer.
5074 (pascal_language::printstr): New member function, implementation
5075 from pascal_printstr.
5076 * p-lang.h (pascal_printstr): Delete declaration.
5077 * rust-lang.c (rust_printstr): Update header comment.
5078 (rust_language_data): Delete la_printstr initializer.
5079 (rust_language::printstr): New member function.
5080
52b50f2c
AB
50812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5082
5083 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5084 (ada_language::printchar): New member function.
5085 * c-lang.c (c_language_data): Delete la_printchar initializer.
5086 (cplus_language_data): Likewise.
5087 (asm_language_data): Likewise.
5088 (minimal_language_data): Likewise.
5089 * d-lang.c (d_language_data): Likewise.
5090 * f-lang.c (f_printchar): Rename to f_language::printchar.
5091 (f_language_data): Delete la_printchar initializer.
5092 (f_language::printchar): New member function, implementation from
5093 f_printchar.
5094 * go-lang.c (go_language_data): Delete la_printchar initializer.
5095 * language.c (unk_lang_printchar): Delete.
5096 (language_defn::printchar): Define new member function.
5097 (unknown_language_data): Delete la_printchar initializer.
5098 (unknown_language::printchar): New member function.
5099 (auto_language_data): Delete la_printchar initializer.
5100 (auto_language::printchar): New member function.
5101 * language.h (language_data): Delete la_printchar field.
5102 (language_defn::printchar): Declare new member function.
5103 (LA_PRINT_CHAR): Update call to printchar.
5104 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5105 (m2_language::printchar): New member function.
5106 * objc-lang.c (objc_language_data): Delete la_printchar
5107 initializer.
5108 * opencl-lang.c (opencl_language_data): Likewise.
5109 * p-lang.c (pascal_language_data): Delete la_printchar
5110 initializer.
5111 (pascal_language::printchar): New member function.
5112 * rust-lang.c (rust_printchar): Rename to
5113 rust_language::printchar.
5114 (rust_language_data): Delete la_printchar initializer.
5115 (rust_language::printchar): New member function, implementation
5116 from rust_printchar.
5117
ec8cec5b
AB
51182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5121 (ada_language_data): Delete la_emitchar initializer.
5122 (ada_language::emitchar): New member function, implementation from
5123 emit_char.
5124 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5125 (cplus_language_data): Likewise.
5126 (asm_language_data): Likewise.
5127 (minimal_language_data): Likewise.
5128 * d-lang.c (d_language_data): Likewise.
5129 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5130 (f_language_data): Delete la_emitchar initializer.
5131 (f_language::emitchar): New member function, implementation from
5132 f_emit_char.
5133 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5134 * language.c (unk_lang_emit_char): Delete.
5135 (language_defn::emitchar): New member function definition.
5136 (unknown_language_data): Delete la_emitchar initializer.
5137 (unknown_language::emitchar): New member function.
5138 (auto_language_data): Delete la_emitchar initializer.
5139 (auto_language::emitchar): New member function.
5140 * language.h (language_data): Delete la_emitchar field.
5141 (language_defn::emitchar): New member field declaration.
5142 (LA_EMIT_CHAR): Update call to emitchar.
5143 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5144 (m2_language_data): Delete la_emitchar initializer.
5145 (m2_language::emitchar): New member function, implementation from
5146 m2_emit_char.
5147 * objc-lang.c (objc_language_data): Delete la_emitchar
5148 initializer.
5149 * opencl-lang.c (opencl_language_data): Likewise.
5150 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5151 (pascal_language_data): Delete la_emitchar initializer.
5152 (pascal_language::emitchar): New member function, implementation
5153 from pascal_emit_char.
5154 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5155 (rust_language_data): Delete la_emitchar initializer.
5156 (rust_language::emitchar): New member function, implementation
5157 from rust_emitchar.
5158
1bf9c363
AB
51592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5162 (ada_language_data): Delete la_post_parser initializer.
5163 (ada_language::post_parser): New member function.
5164 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5165 (cplus_language_data): Likewise.
5166 (asm_language_data): Likewise.
5167 (minimal_language_data): Likewise.
5168 * d-lang.c (d_language_data): Likewise.
5169 * f-lang.c (f_language_data): Likewise.
5170 * go-lang.c (go_language_data): Likewise.
5171 * language.c (unknown_language_data): Likewise.
5172 (auto_language_data): Likewise.
5173 * language.h (language_data): Delete la_post_parser field.
5174 (language_defn::post_parser): New member function.
5175 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5176 * objc-lang.c (objc_language_data): Likewise.
5177 * opencl-lang.c (opencl_language_data): Likewise.
5178 * p-lang.c (pascal_language_data): Likewise.
5179 * parse.c (parse_exp_in_context): Update call to post_parser.
5180 (null_post_parser): Delete definition.
5181 * parser-defs.h (null_post_parser): Delete declaration.
5182 * rust-lang.c (rust_language_data): Delete la_post_parser
5183 initializer.
5184
87afa652
AB
51852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5186
5187 * ada-lang.c (parse): Rename to ada_language::parser.
5188 (ada_language_data): Delete la_parser initializer.
5189 (ada_language::parser): New member function, implementation from
5190 parse.
5191 * c-lang.c (c_language_data): Delete la_parser initializer.
5192 (cplus_language_data): Likewise.
5193 (asm_language_data): Likewise.
5194 (minimal_language_data): Likewise.
5195 * d-lang.c (d_language_data): Likewise.
5196 (d_language::parser): New member function.
5197 * f-lang.c (f_language_data): Delete la_parser initializer.
5198 (f_language::parser): New member function.
5199 * go-lang.c (go_language_data): Delete la_parser initializer.
5200 (go_language::parser): New member function.
5201 * language.c (unk_lang_parser): Delete.
5202 (language_defn::parser): Define new member function.
5203 (unknown_language_data): Delete la_parser initializer.
5204 (unknown_language::parser): New member function.
5205 (auto_language_data): Delete la_parser initializer.
5206 (auto_language::parser): New member function.
5207 * language.h (language_data): Delete la_parser field.
5208 (language_defn::parser): Declare new member function.
5209 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5210 (m2_language::parser): New member function.
5211 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5212 * opencl-lang.c (opencl_language_data): Likewise.
5213 * p-lang.c (pascal_language_data): Likewise.
5214 (pascal_language::parser): New member function.
5215 * parse.c (parse_exp_in_context): Update call to parser.
5216 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5217 (rust_language::parser): New member function.
5218
37825800
AB
52192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5220
5221 * top.c (print_gdb_configuration): Print --with-python-libdir
5222 configuration value.
5223
5b860c93
PW
52242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5225
5226 * NEWS: Mention change to the alias command.
5227
cf00cd6f
PW
52282020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5229
5230 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5231 (alias_command_completer)
5232 (make_alias_options_def_group): New functions.
5233 (alias_opts, alias_option_defs): New struct and array.
5234 (alias_usage_error): Update usage.
5235 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5236 Use option framework.
5237 (_initialize_cli_cmds): Update alias command help.
5238 Update aliases command help.
5239 (show_user):
5240 Add NULL for new default_args lookup_cmd argument.
5241 (valid_command_p): Rename to validate_aliased_command.
5242 Add NULL for new default_args lookup_cmd argument. Verify that the
5243 aliased_command has no default args.
5244 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5245 (lookup_cmd_1, lookup_cmd): New argument default_args.
5246 (add_alias_cmd):
5247 Add NULL for new default_args lookup_cmd argument.
5248 (print_help_for_command): Show default args under the layout
5249 alias some_alias = some_aliased_cmd some_alias_default_arg.
5250 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5251 xfree default_args in destructor.
5252 * cli/cli-script.c (process_next_line, do_define_command):
5253 Add NULL for new default_args lookup_cmd argument.
5254 * command.h: Declare new default_args argument in lookup_cmd
5255 and lookup_cmd_1.
5256 * completer.c (complete_line_internal_1):
5257 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5258 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5259 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5260 Likewise.
5261 * infcmd.c (_initialize_infcmd): Likewise.
5262 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5263 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5264 * python/py-param.c (add_setshow_generic): Likewise.
5265 * remote.c (_initialize_remote): Likewise.
5266 * top.c (execute_command): Prepend default_args if command has some.
5267 (set_verbose):
5268 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5269 * tracepoint.c (validate_actionline, encode_actions_1):
5270 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5271
bd920864
TBA
52722020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5273
5274 * jit.c (jit_read_descriptor): Use bool as the return type.
5275 (jit_breakpoint_re_set_internal): Use bool as the return type.
5276 Invert the return value logic; return true if the jit breakpoint
5277 has been successfully initialized.
5278 (jit_inferior_init): Update the call to
5279 jit_breakpoint_re_set_internal.
5280
f8098322
PA
52812020-06-22 Pedro Alves <palves@redhat.com>
5282
5283 PR gdb/25939
5284 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5285 Use the current inferior instead. Don't return
5286 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5287 wait again.
5288 * sol-thread.c (sol_thread_target::wait): Don't reference
5289 inferior_ptid.
5290 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5291 (sol_update_thread_list_callback): Use the current inferior's pid
5292 instead of inferior_ptid.
5293
196535a6
RO
52942020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5295
5296 * procfs.c: Cleanup many comments.
5297
5298 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5299 (AFTER_WATCHFLAG): Replace by value.
5300
5301 (MAIN_PROC_NAME_FORMAT): Inline ...
5302 (create_procinfo): ... here.
5303
5304 (procfs_debug_inferior): Remove SYS_exec handling.
5305 (syscall_is_exec): Likewise.
5306 (procfs_set_exec_trap): Likewise.
5307
5308 (syscall_is_lwp_exit): Inline in callers.
5309 (syscall_is_exit): Likewise.
5310 (syscall_is_exec): Likewise.
5311 (syscall_is_lwp_create): Likewise.
5312
5313 (invalidate_cache): Remove #if 0 code.
5314
5315 (make_signal_thread_runnable): Remove.
5316 (procfs_target::resume): Remove #if 0 code.
5317
cf6f3e86
RO
53182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5319
5320 PR gdb/25939
5321 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5322 call ...
5323 (procfs_target::create_inferior): ... here.
5324
48e9cc84
PW
53252020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5326
5327 * exec.c (validate_exec_file): Ensure the build-id is up to
5328 date by calling reopen_exec_file (that checks file timestamp
5329 to decide to re-read the file).
5330
3922b302
PA
53312020-06-18 Pedro Alves <palves@redhat.com>
5332
5333 PR gdb/25412
5334 * gdbthread.h (delete_thread, delete_thread_silent)
5335 (find_thread_ptid): Update comments.
5336 * thread.c (current_thread_): New global.
5337 (is_current_thread): Move higher, and reimplement.
5338 (inferior_thread): Reimplement.
5339 (set_thread_exited): Use bool. Add assertions.
5340 (add_thread_silent): Simplify thread-reuse handling by always
5341 calling delete_thread.
5342 (delete_thread): Remove intro comment.
5343 (find_thread_ptid): Skip exited threads.
5344 (switch_to_thread_no_regs): Write to current_thread_.
5345 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5346 INFERIOR_PTID. Clear current_thread_.
5347
6dbdab44
PA
53482020-06-18 Pedro Alves <palves@redhat.com>
5349
5350 * aix-thread.c (pd_update): Use switch_to_thread.
5351
2da4b788
PA
53522020-06-18 Pedro Alves <palves@redhat.com>
5353
5354 * ravenscar-thread.c (ravenscar_thread_target): Update.
5355 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5356 (ravenscar_thread_target::add_active_thread): ... this. Don't
5357 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5358 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5359
50838d1b
PA
53602020-06-18 Pedro Alves <palves@redhat.com>
5361
5362 * nat/windows-nat.c (current_windows_thread): Remove.
5363 * nat/windows-nat.h (current_windows_thread): Remove.
5364 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5365 Adjust.
5366 (display_selectors): Adjust to fetch the current
5367 windows_thread_info based on inferior_ptid.
5368 (fake_create_process): No longer write to current_windows_thread.
5369 (windows_nat_target::get_windows_debug_event):
5370 Don't set inferior_ptid or current_windows_thread.
5371 (windows_nat_target::wait): Adjust to not rely on
5372 current_windows_thread.
5373 (do_initial_windows_stuff): Now a method of windows_nat_target.
5374 Switch to the last_ptid thread.
5375 (windows_nat_target::attach): Adjust.
5376 (windows_nat_target::detach): Use switch_to_no_thread instead of
5377 writing to inferior_ptid directly.
5378 (windows_nat_target::create_inferior): Adjust.
5379
31ce04e9
PA
53802020-06-18 Pedro Alves <palves@redhat.com>
5381
5382 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5383
1ee1a363
PA
53842020-06-18 Pedro Alves <palves@redhat.com>
5385
5386 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5387 after creating it, instead of writing to inferior_ptid. Don't
5388 write to inferior_ptid.
5389
6d350754
PA
53902020-06-18 Pedro Alves <palves@redhat.com>
5391
5392 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5393
5d971d48
PA
53942020-06-18 Pedro Alves <palves@redhat.com>
5395
5396 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5397 it, instead of writing to inferior_ptid.
5398
86e57d1b
PA
53992020-06-18 Pedro Alves <palves@redhat.com>
5400
5401 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5402 to inferior_ptid.
5403
f2e1c129
PA
54042020-06-18 Pedro Alves <palves@redhat.com>
5405
5406 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5407 instead of writing to inferior_ptid directly.
5408
60db1b85
PA
54092020-06-18 Pedro Alves <palves@redhat.com>
5410
5411 * corelow.c (core_target::close): Use switch_to_no_thread instead
5412 of writing to inferior_ptid directly.
5413 (add_to_thread_list, core_target_open): Use switch_to_thread
5414 instead of writing to inferior_ptid directly.
5415
fe7d6a8d
PA
54162020-06-18 Pedro Alves <palves@redhat.com>
5417
5418 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5419 inferior_ptid.
5420 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5421 inferior_ptid.
5422 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5423 inferior_ptid directly.
5424 (darwin_nat_target::init_thread_list): Switch to thread, instead
5425 of writing to inferior_ptid.
5426 (darwin_nat_target::attach): Don't write to inferior_ptid.
5427 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5428
975f8708
PA
54292020-06-18 Pedro Alves <palves@redhat.com>
5430
5431 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5432 thread.
5433 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5434 Instead use switch_to_thread.
5435 (gnu_nat_target::detach): Use switch_to_no_thread
5436 instead of writing to inferior_ptid directly. Used passed-in
5437 inferior instead of looking up the inferior by pid.
5438
1a204730
PA
54392020-06-18 Pedro Alves <palves@redhat.com>
5440
5441 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5442 inferior_ptid.
5443
ebe84f23
PA
54442020-06-18 Pedro Alves <palves@redhat.com>
5445
5446 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5447 inferior_ptid.
5448 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5449 thread.
5450 (nto_procfs_target::detach): Avoid referencing
5451 inferior_ptid. Use switch_to_no_thread instead of writing to
5452 inferior_ptid directly.
5453 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5454 instead of writing to inferior_ptid directly.
5455 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5456 to thread.
5457
191f02e5
PA
54582020-06-18 Pedro Alves <palves@redhat.com>
5459
5460 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5461 after creating it, instead of writing to inferior_ptid.
5462 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5463 to inferior_ptid directly.
5464 (gdbsim_target::wait): Don't write to inferior_ptid.
5465
0ac55310
PA
54662020-06-18 Pedro Alves <palves@redhat.com>
5467
5468 * remote.c (remote_target::remote_notice_new_inferior): Use
5469 switch_to_thread instead of writing to inferior_ptid directly.
5470 (remote_target::add_current_inferior_and_thread): Use
5471 switch_to_no_thread instead of writing to inferior_ptid directly.
5472 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5473 and switch_to_thread instead of using set_current_inferior or
5474 writing to inferior_ptid directly.
5475
5233f39b
PA
54762020-06-18 Pedro Alves <palves@redhat.com>
5477
5478 * tracectf.c (ctf_target_open): Switch to added thread instead of
5479 writing to inferior_ptid directly.
5480 (ctf_target::close): Use switch_to_no_thread instead of writing to
5481 inferior_ptid directly.
5482
087e161b
PA
54832020-06-18 Pedro Alves <palves@redhat.com>
5484
5485 * tracefile-tfile.c (tfile_target_open): Don't write to
5486 inferior_ptid directly, instead switch to added thread.
5487 (tfile_target::close): Use switch_to_no_thread instead of writing
5488 to inferior_ptid directly.
5489
7fb43e53
PA
54902020-06-18 Pedro Alves <palves@redhat.com>
5491
5492 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5493 (procfs_target::detach): Use switch_to_no_thread
5494 instead of writing to inferior_ptid directly.
5495 (do_attach): Change return type to void. Switch to the added
5496 thread.
5497 (procfs_target::create_inferior): Switch to the added thread.
5498 (procfs_do_thread_registers): Don't write to inferior_ptid.
5499
18493a00
PA
55002020-06-18 Pedro Alves <palves@redhat.com>
5501
5502 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5503 of writing to inferior_ptid.
5504 (scoped_restore_exited_inferior): Delete.
5505 (handle_vfork_child_exec_or_exit): Simplify using
5506 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5507 instead of writing to inferior_ptid.
5508 (THREAD_STOPPED_BY): Delete.
5509 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5510 (thread_stopped_by_hw_breakpoint): Delete.
5511 (save_waitstatus): Use
5512 scoped_restore_current_thread+switch_to_thread, and call
5513 target_stopped_by_watchpoint instead of
5514 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5515 instead of thread_stopped_by_sw_breakpoint, and
5516 target_stopped_by_hw_breakpoint instead of
5517 thread_stopped_by_hw_breakpoint.
5518 (handle_inferior_event)
5519 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5520 inferior_ptid directly, nor
5521 set_current_inferior/set_current_program_space. Use
5522 switch_to_thread / switch_to_inferior_no_thread instead.
5523
a0776b13
PA
55242020-06-18 Pedro Alves <palves@redhat.com>
5525
5526 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5527 instead of writing to inferior_ptid.
5528
6155c136
PA
55292020-06-18 Pedro Alves <palves@redhat.com>
5530
5531 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5532 added thread.
5533 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5534 to the added thread.
5535 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5536 instead of writing to inferior_ptid.
5537
c5316fc6
PA
55382020-06-18 Pedro Alves <palves@redhat.com>
5539
5540 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5541 (register_to_value_test): Mock a program_space too. Heap-allocate
5542 the address space. Don't write to inferior_ptid. Use
5543 switch_to_thread instead.
5544
8df01799
PA
55452020-06-18 Pedro Alves <palves@redhat.com>
5546
5547 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5548 Delete.
5549 (find_signalled_thread()): New, factored out from
5550 linux_make_corefile_notes and adjusted to handle exited threads.
5551 (linux_make_corefile_notes): Adjust to use the new
5552 find_signalled_thread.
5553
41792d68
PA
55542020-06-18 Pedro Alves <palves@redhat.com>
5555
5556 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5557 of saving/restoring inferior_ptid.
5558
612f258a
TT
55592020-06-17 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5562 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5563 declare.
5564 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5565
efb763a5
SM
55662020-06-15 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5569 of partial symtabs.
5570
2951f6c0
SM
55712020-06-17 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * regformats/reg-arm.dat: Remove.
5574 * regformats/reg-bfin.dat: Remove.
5575 * regformats/reg-cris.dat: Remove.
5576 * regformats/reg-crisv32.dat: Remove.
5577 * regformats/reg-m32r.dat: Remove.
5578 * regformats/reg-tilegx.dat: Remove.
5579 * regformats/reg-tilegx32.dat: Remove.
5580
7d458ea5
SM
55812020-06-17 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * features/Makefile (WHICH): Remove arm files.
5584 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5585 * regformats/arm/arm-with-neon.dat: Remove.
5586 * regformats/arm/arm-with-vfpv2.dat: Remove.
5587 * regformats/arm/arm-with-vfpv3.dat: Remove.
5588
3af96c0d
SM
55892020-06-17 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * features/Makefile (XMLTOC): Remove rx.xml.
5592
b25e22fd
PA
55932020-06-17 Pedro Alves <palves@redhat.com>
5594
5595 * gdbthread.h (thread_control_state) <trap_expected> Update
5596 comments.
5597
a78a19b1
AB
55982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5599
5600 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5601 ada_language::lookup_symbol_nonlocal.
5602 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5603 (ada_language::lookup_symbol_nonlocal): New member function,
5604 implementation from ada_lookup_symbol_nonlocal.
5605 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5606 initializer.
5607 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5608 initializer.
5609 (cplus_language::lookup_symbol_nonlocal): New member function.
5610 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5611 (minimal_language_data) Likewise.
5612 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5613 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5614 initializer.
5615 (d_language::lookup_symbol_nonlocal): New member function.
5616 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5617 initializer.
5618 (f_language::lookup_symbol_nonlocal): New member function.
5619 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5620 initializer.
5621 * language.c (unknown_language_data): Likewise.
5622 (auto_language_data): Likewise.
5623 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5624 field.
5625 (language_defn::lookup_symbol_nonlocal): New member function.
5626 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5627 initializer.
5628 * objc-lang.c (objc_language_data): Likewise.
5629 * opencl-lang.c (opencl_language_data): Likewise.
5630 * p-lang.c (pascal_language_data): Likewise.
5631 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5632 rust_language::lookup_symbol_nonlocal.
5633 (rust_language_data): Delete la_lookup_symbol_nonlocal
5634 initializer.
5635 (rust_language::lookup_symbol_nonlocal): New member function,
5636 implementation from rust_lookup_symbol_nonlocal.
5637 * symtab.c (lookup_symbol_aux): Update call to
5638 lookup_symbol_nonlocal.
5639 (basic_lookup_symbol_nonlocal): Rename to...
5640 (language_defn::lookup_symbol_nonlocal): ...this, and update
5641 header comment. Remove language_defn parameter, and replace with
5642 uses of `this'.
5643 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5644
ebe2334e
AB
56452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5646
5647 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5648 initializer.
5649 (ada_language::value_print_inner): New member function.
5650 * c-lang.c (c_language_data): Delete la_value_print_inner
5651 initializer.
5652 (cplus_language_data): Likewise.
5653 (asm_language_data): Likewise.
5654 (minimal_language_data): Likewise.
5655 * d-lang.c (d_language_data): Likewise.
5656 (d_language::value_print_inner): New member function.
5657 * f-lang.c (f_language_data): Delete la_value_print_inner
5658 initializer.
5659 (f_language::value_print_inner): New member function.
5660 * f-lang.h (f_value_print_innner): Rename to...
5661 (f_value_print_inner): ...this (note spelling of 'inner').
5662 * f-valprint.c (f_value_print_innner): Rename to...
5663 (f_value_print_inner): ...this (note spelling of 'inner').
5664 * go-lang.c (go_language_data): Delete la_value_print_inner
5665 initializer.
5666 (go_language::value_print_inner): New member function.
5667 * language.c (language_defn::value_print_inner): Define new member
5668 function.
5669 (unk_lang_value_print_inner): Delete.
5670 (unknown_language_data): Delete la_value_print_inner initializer.
5671 (unknown_language::value_print_inner): New member function.
5672 (auto_language_data): Delete la_value_print_inner initializer.
5673 (auto_language::value_print_inner): New member function.
5674 * language.h (language_data): Delete la_value_print_inner field.
5675 (language_defn::value_print_inner): Delcare new member function.
5676 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5677 initializer.
5678 (m2_language::value_print_inner): New member function.
5679 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5680 initializer.
5681 * opencl-lang.c (opencl_language_data): Likewise.
5682 * p-lang.c (pascal_language_data): Likewise.
5683 (pascal_language::value_print_inner): New member function.
5684 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5685 initializer.
5686 (rust_language::value_print_inner): New member function.
5687 * valprint.c (do_val_print): Update call to value_print_inner.
5688
a1d1fa3e
AB
56892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5690
5691 * ada-lang.c (ada_language_data): Delete la_value_print
5692 initializer.
5693 (ada_language::value_print): New member function.
5694 * c-lang.c (c_language_data): Delete la_value_print initializer.
5695 (cplus_language_data): Likewise.
5696 (asm_language_data): Likewise.
5697 (minimal_language_data): Likewise.
5698 * d-lang.c (d_language_data): Likewise.
5699 * f-lang.c (f_language_data): Likewise.
5700 * go-lang.c (go_language_data): Likewise.
5701 * language.c (unk_lang_value_print): Delete.
5702 (language_defn::value_print): Define new member function.
5703 (unknown_language_data): Delete la_value_print initializer.
5704 (unknown_language::value_print): New member function.
5705 (auto_language_data): Delete la_value_print initializer.
5706 (auto_language::value_print): New member function.
5707 * language.h (language_data): Delete la_value_print field.
5708 (language_defn::value_print): Declare new member function.
5709 (LA_VALUE_PRINT): Update call to value_print.
5710 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5711 * objc-lang.c (objc_language_data): Likewise.
5712 * opencl-lang.c (opencl_language_data): Likewise.
5713 * p-lang.c (pascal_language_data): Likewise.
5714 (pascal_language::value_print): New member function.
5715 * rust-lang.c (rust_language_data): Delete la_value_print
5716 initializer.
5717
f16a9f57
AB
57182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5719
5720 * ada-lang.c (ada_watch_location_expression): Rename to
5721 ada_language::watch_location_expression.
5722 (ada_language_data): Delete la_watch_location_expression
5723 initializer.
5724 (ada_language::watch_location_expression): New member function,
5725 implementation from ada_watch_location_expression.
5726 * breakpoint.c (watch_command_1): Update call to
5727 watch_location_expression.
5728 * c-lang.c (c_watch_location_expression): Rename to
5729 language_defn::watch_location_expression.
5730 (c_language_data): Delete la_watch_location_expression
5731 initializer.
5732 (cplus_language_data): Likewise.
5733 (asm_language_data): Likewise.
5734 (minimal_language_data): Likewise.
5735 * c-lang.h (c_watch_location_expression): Delete declaration.
5736 * d-lang.c (d_language_data): Delete la_watch_location_expression
5737 initializer.
5738 * f-lang.c (f_language_data): Likewise.
5739 * go-lang.c (go_language_data): Likewise.
5740 * language.c (language_defn::watch_location_expression): Member
5741 function implementation from c_watch_location_expression.
5742 (unknown_language_data): Delete la_watch_location_expression
5743 initializer.
5744 (auto_language_data): Likewise.
5745 * language.h (language_data): Delete la_watch_location_expression
5746 field.
5747 (language_defn::watch_location_expression): Declare new member
5748 function.
5749 * m2-lang.c (m2_language_data): Delete
5750 la_watch_location_expression initializer.
5751 * objc-lang.c (objc_language_data): Likewise.
5752 * opencl-lang.c (opencl_language_data): Likewise.
5753 * p-lang.c (pascal_language_data): Likewise.
5754 * rust-lang.c (rust_watch_location_expression): Rename to
5755 rust_language::watch_location_expression.
5756 (rust_language_data): Delete la_watch_location_expression
5757 initializer.
5758 (rust_language::watch_location_expression): New member function,
5759 implementation from rust_watch_location_expression.
5760
7e56227d
AB
57612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5762
5763 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5764 ada_language::collect_symbol_completion_matches.
5765 (ada_language_data): Delete la_collect_symbol_completion_matches
5766 initializer.
5767 (ada_language::collect_symbol_completion_matches): New member
5768 function, implementation from
5769 ada_collect_symbol_completion_matches.
5770 * c-lang.c (c_language_data): Delete
5771 la_collect_symbol_completion_matches initializer.
5772 (cplus_language_data): Likewise.
5773 (asm_language_data): Likewise.
5774 (minimal_language_data): Likewise.
5775 * d-lang.c (d_language_data): Likewise.
5776 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5777 f_language::collect_symbol_completion_matches.
5778 (f_language_data): Delete la_collect_symbol_completion_matches
5779 initializer.
5780 (f_language::collect_symbol_completion_matches) New member
5781 function, implementation from f_collect_symbol_completion_matches.
5782 * go-lang.c (go_language_data): Delete
5783 la_collect_symbol_completion_matches initializer.
5784 * language.c (unknown_language_data): Likewise.
5785 (auto_language_data): Likewise.
5786 * language.h (language_data): Delete
5787 la_collect_symbol_completion_matches field.
5788 (language_defn::collect_symbol_completion_matches): New member
5789 function.
5790 * m2-lang.c (m2_language_data): Delete
5791 la_collect_symbol_completion_matches initializer.
5792 * objc-lang.c (objc_language_data): Likewise.
5793 * opencl-lang.c (opencl_language_data): Likewise.
5794 * p-lang.c (pascal_language_data): Likewise.
5795 * rust-lang.c (rust_language_data): Likewise.
5796 * symtab.c (default_collect_symbol_completion_matches): Delete.
5797 (collect_symbol_completion_matches): Update call to
5798 collect_symbol_completion_matches.
5799 (collect_symbol_completion_matches_type): Likewise.
5800 * symtab.h (default_collect_symbol_completion_matches): Delete
5801 declaration.
5802
53fc67f8
AB
58032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5804
5805 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5806 (ada_language_data): Delete la_word_break_characters initializer.
5807 (ada_language::word_break_characters): New member function.
5808 * c-lang.c (c_language_data): Delete la_word_break_characters
5809 initializer.
5810 (cplus_language_data): Likewise.
5811 (asm_language_data): Likewise.
5812 (minimal_language_data): Likewise.
5813 * completer.c: Update global comment.
5814 (advance_to_expression_complete_word_point): Update call to
5815 word_break_characters.
5816 (complete_files_symbols): Likewise.
5817 (complete_line_internal_1): Likewise.
5818 (default_completer_handle_brkchars): Likewise.
5819 (skip_quoted_chars): Likewise.
5820 * d-lang.c (d_language_data): Delete la_word_break_characters
5821 initializer.
5822 * f-lang.c (f_word_break_characters): Delete.
5823 (f_language_data): Delete la_word_break_characters initializer.
5824 (f_language::word_break_characters): New member function.
5825 * go-lang.c (go_language_data): Delete la_word_break_characters
5826 initializer.
5827 * language.c (unknown_language_data): Likewise.
5828 (auto_language_data): Likewise.
5829 * language.h (default_word_break_characters): Move declaration to
5830 earlier in the file.
5831 (language_data): Delete la_word_break_characters field.
5832 (language_defn::word_break_characters): New member function.
5833 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5834 initializer.
5835 * objc-lang.c (objc_language_data): Likewise.
5836 * opencl-lang.c (opencl_language_data): Likewise.
5837 * p-lang.c (pascal_language_data): Likewise.
5838 * rust-lang.c (rust_language_data): Likewise.
5839
c9debfb9
AB
58402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5843 (ada_language_data): Delete la_get_symbol_name_matcher
5844 initializer.
5845 (language_defn::get_symbol_name_matcher_inner): New member
5846 function.
5847 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5848 initializer.
5849 (cplus_language_data): Likewise.
5850 (cplus_language::get_symbol_name_matcher_inner): New member
5851 function.
5852 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5853 (minimal_language_data): Likewise.
5854 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5855 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5856 initializer.
5857 * dictionary.c (iter_match_first_hashed): Update call to
5858 get_symbol_name_matcher.
5859 (iter_match_next_hashed): Likewise.
5860 (iter_match_next_linear): Likewise.
5861 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5862 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5863 initializer.
5864 (f_language::get_symbol_name_matcher_inner): New member function.
5865 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5866 initializer.
5867 * language.c (default_symbol_name_matcher): Update header comment,
5868 make static.
5869 (language_defn::get_symbol_name_matcher): New definition.
5870 (language_defn::get_symbol_name_matcher_inner): Likewise.
5871 (get_symbol_name_matcher): Delete.
5872 (unknown_language_data): Delete la_get_symbol_name_matcher
5873 initializer.
5874 (auto_language_data): Likewise.
5875 * language.h (language_data): Delete la_get_symbol_name_matcher
5876 field.
5877 (language_defn::get_symbol_name_matcher): New member function.
5878 (language_defn::get_symbol_name_matcher_inner): Likewise.
5879 (default_symbol_name_matcher): Delete declaration.
5880 * linespec.c (find_methods): Update call to
5881 get_symbol_name_matcher.
5882 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5883 initializer.
5884 * minsyms.c (lookup_minimal_symbol): Update call to
5885 get_symbol_name_matcher.
5886 (iterate_over_minimal_symbols): Likewise.
5887 * objc-lang.c (objc_language_data): Delete
5888 la_get_symbol_name_matcher initializer.
5889 * opencl-lang.c (opencl_language_data): Likewise.
5890 * p-lang.c (pascal_language_data): Likewise.
5891 * psymtab.c (psymbol_name_matches): Update call to
5892 get_symbol_name_matcher.
5893 * rust-lang.c (rust_language_data): Delete
5894 la_get_symbol_name_matcher initializer.
5895 * symtab.c (symbol_matches_search_name): Update call to
5896 get_symbol_name_matcher.
5897 (compare_symbol_name): Likewise.
5898
9a49ad8c
AB
58992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * ada-lang.c (ada_language_data): Delete la_compute_program
5902 initializer.
5903 * c-lang.c (c_language_data): Likewise.
5904 (c_language::compute_program): New member function.
5905 (cplus_language_data): Delete la_compute_program initializer.
5906 (cplus_language::compute_program): New member function.
5907 (asm_language_data): Delete la_compute_program initializer.
5908 (minimal_language_data): Likewise.
5909 * c-lang.h (c_compute_program): Update comment.
5910 (cplus_compute_program): Likewise.
5911 * compile/compile-c-support.c (c_compute_program): Likewise.
5912 (cplus_compute_program): Likewise.
5913 * compile/compile.c (compile_to_object): Update call to
5914 la_compute_program.
5915 * d-lang.c (d_language_data): Delete la_compute_program
5916 initializer.
5917 * f-lang.c (f_language_data): Likewise.
5918 * go-lang.c (go_language_data): Likewise.
5919 * language.c (unknown_language_data): Likewise.
5920 (auto_language_data): Likewise.
5921 * language.h (language_data): Delete la_compute_program field.
5922 (language_defn::compute_program): New member function.
5923 * m2-lang.c (m2_language_data): Delete la_compute_program
5924 initializer.
5925 * objc-lang.c (objc_language_data): Likewise.
5926 * opencl-lang.c (opencl_language_data): Likewise.
5927 * p-lang.c (pascal_language_data): Likewise.
5928 * rust-lang.c (rust_language_data): Likewise.
5929
eff93b4d
AB
59302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * ada-lang.c (ada_language_data) Delete
5933 la_class_name_from_physname initializer.
5934 * c-lang.c (c_language_data): Likewise.
5935 (cplus_language_data): Likewise.
5936 (cplus_language::class_name_from_physname): New member function.
5937 (asm_language_data): Delete la_class_name_from_physname
5938 initializer.
5939 (minimal_language_data): Likewise.
5940 * d-lang.c (d_language_data): Likewise.
5941 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5942 method on language_defn class.
5943 (guess_full_die_structure_name): Likewise.
5944 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5945 initializer.
5946 * go-lang.c (go_language_data): Likewise.
5947 * language.c (language_class_name_from_physname): Delete.
5948 (unk_lang_class_name): Delete.
5949 (unknown_language_data): Delete la_class_name_from_physname
5950 initializer.
5951 (auto_language_data): Likewise.
5952 * language.h (language_data): Delete la_class_name_from_physname
5953 field.
5954 (language_defn::class_name_from_physname): New function.
5955 (language_class_name_from_physname): Delete declaration.
5956 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5957 initializer.
5958 * objc-lang.c (objc_language_data): Likewise.
5959 * opencl-lang.c (opencl_language_data): Likewise.
5960 * p-lang.c (pascal_language_data): Likewise.
5961 * rust-lang.c (rust_language_data): Likewise.
5962
de543742
TT
59632020-06-16 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-data.h (STATUS_NAME): New macro.
5966 * tui/tui-layout.c (tui_remove_some_windows)
5967 (initialize_known_windows, tui_register_window)
5968 (tui_layout_split::remove_windows, initialize_layouts)
5969 (tui_new_layout_command): Don't use hard-coded window names.
5970
a350efd4
TT
59712020-06-16 Tom Tromey <tom@tromey.com>
5972
5973 PR tui/25348:
5974 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5975 tui_initialize_readline. Only run once. Call rl_initialize.
5976 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5977 tui_initialize_readline.
5978 * tui/tui-io.c (tui_setup_io): Call
5979 tui_ensure_readline_initialized.
5980 * tui/tui-interp.c (tui_interp::init): Update.
5981
39ec0490
TT
59822020-06-16 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5985 Also preserve the status window.
5986
d2d1ea20
TT
59872020-06-16 Tom Tromey <tom@tromey.com>
5988
5989 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5990 where m_window==nullptr.
5991
66920317
TT
59922020-06-15 Tom Tromey <tromey@adacore.com>
5993
5994 * windows-nat.c (windows_nat::handle_output_debug_string):
5995 Update.
5996 (windows_nat::handle_ms_vc_exception): Update.
5997 * target.h (target_read_string): Change API.
5998 * target.c (target_read_string): Change API.
5999 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6000 Update.
6001 * solib-frv.c (frv_current_sos): Update.
6002 * solib-dsbt.c (dsbt_current_sos): Update.
6003 * solib-darwin.c (darwin_current_sos): Update.
6004 * linux-thread-db.c (inferior_has_bug): Update.
6005 * expprint.c (print_subexp_standard): Update.
6006 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6007 (ada_exception_message_1): Update.
6008
a5d871dd
TT
60092020-06-15 Tom Tromey <tromey@adacore.com>
6010
6011 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6012
670e35fa
TT
60132020-06-15 Tom Tromey <tromey@adacore.com>
6014
6015 * valprint.c (read_string): Update comment.
6016 * target.c (MIN): Remove.
6017 (target_read_string): Rewrite.
6018
f5272a3b
TT
60192020-06-15 Tom Tromey <tromey@adacore.com>
6020
6021 * corefile.c (read_memory_string): Remove.
6022 * ada-valprint.c (ada_value_print_ptr): Update.
6023 * ada-lang.h (ada_tag_name): Change return type.
6024 * ada-lang.c (type_from_tag): Update.
6025 (ada_tag_name_from_tsd): Change return type. Use
6026 target_read_string.
6027 (ada_tag_name): Likewise.
6028 * gdbcore.h (read_memory_string): Don't declare.
6029
2c074f49
HD
60302020-06-14 Hannes Domani <ssbssa@yahoo.de>
6031
6032 * symtab.c (rbreak_command): Ignore Windows drive colon.
6033
6a17d503
SM
60342020-06-12 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * NEWS: Mention removed GDBserver host support.
6037
453c733f
NC
60382020-06-12 Nelson Chu <nelson.chu@sifive.com>
6039
6040 * features/riscv/rebuild-csr-xml.sh: Updated.
6041
2b4e6a3f
TT
60422020-06-11 Tom Tromey <tom@tromey.com>
6043
6044 PR gdb/18318:
6045 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6046
4412332f
JG
60472020-06-09 Jonny Grant <jg@jguk.org>
60482020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * main.c (captured_main_1): Don't print new line after help.
6051 (print_gdb_help): add mailing list and IRC channel information
6052 to --help. Add new lines between items in the footer. Remove
6053 quotes around bug url.
6054
2f33032a
KS
60552020-06-11 Keith Seitz <keiths@redhat.com>
6056
6057 PR gdb/21356
6058 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6059 Resolve typedefs for type length calculations.
6060
7ab96794
TV
60612020-06-10 Tom de Vries <tdevries@suse.de>
6062
6063 PR ada/24713
6064 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6065 (write_psymbols): Enable .gdb_index for ada.
6066 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6067 ada.
6068
e5f3ece2
TV
60692020-06-10 Tom de Vries <tdevries@suse.de>
6070
6071 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6072 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6073 namei" instead of "const char *name" argument.
6074 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6075 dw2_symtab_iter_init.
6076
940da03e
SM
60772020-06-08 Simon Marchi <simon.marchi@efficios.com>
6078
6079 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6080 to use type::field and field::type instead.
6081
b6cdac4b
SM
60822020-06-08 Simon Marchi <simon.marchi@efficios.com>
6083
6084 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6085 to use field::type instead.
6086
5d14b6e5
SM
60872020-06-08 Simon Marchi <simon.marchi@efficios.com>
6088
6089 * gdbtypes.h (struct field) <type, set_type>: New methods.
6090 Rename `type` field to...
6091 <m_type>: ... this. Change references throughout to use type or
6092 set_type methods.
6093 (FIELD_TYPE): Use field::type. Change call sites that modify
6094 the field's type to use field::set_type instead.
6095
3d967001
SM
60962020-06-08 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6099 to use type::index_type instead.
6100
262abc0d
SM
61012020-06-08 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6104 methods.
6105 (TYPE_INDEX_TYPE): Use type::index_type.
6106 * gdbtypes.c (create_array_type_with_stride): Likewise.
6107
82836c92
TT
61082020-06-07 Tom Tromey <tom@tromey.com>
6109
6110 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6111 parameter.
6112 (generic_value_print): Update.
6113
940dace9
AB
61142020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6115
6116 Revert commit 982a38f60b0.
6117 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6118
982a38f6
AB
61192020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6122 avoid use after free.
6123
82f06518
TV
61242020-06-05 Tom de Vries <tdevries@suse.de>
6125
6126 * NEWS: Fix typos.
6127
f8c41851
SM
61282020-06-04 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6131 the per_bfd object.
6132 (dwarf2_read_debug_names): Likewise.
6133 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6134 object when re-using a per_bfd object with an index.
6135
f9b5d5ea
TV
61362020-06-03 Tom de Vries <tdevries@suse.de>
6137
6138 PR symtab/26046
6139 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6140 children for C++.
6141 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6142 DW_TAG_subprogram.
6143
f6eee2d0
AB
61442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6145
6146 * ada-lang.c (ada_language_data): Delete skip_trampoline
6147 initializer.
6148 * c-lang.c (c_language_data): Likewise.
6149 (cplus_language_data): Likewise.
6150 (cplus_language::skip_trampoline): New member function.
6151 (asm_language_data): Delete skip_trampoline initializer.
6152 (minimal_language_data): Likewise.
6153 * d-lang.c (d_language_data): Likewise.
6154 * f-lang.c (f_language_data): Likewise.
6155 * go-lang.c (go_language_data): Likewise.
6156 * language.c (unk_lang_trampoline): Delete function.
6157 (skip_language_trampoline): Update.
6158 (unknown_language_data): Delete skip_trampoline initializer.
6159 (auto_language_data): Likewise.
6160 * language.h (language_data): Delete skip_trampoline field.
6161 (language_defn::skip_trampoline): New function.
6162 * m2-lang.c (m2_language_data): Delete skip_trampoline
6163 initializer.
6164 * objc-lang.c (objc_skip_trampoline): Delete function, move
6165 implementation to objc_language::skip_trampoline.
6166 (objc_language_data): Delete skip_trampoline initializer.
6167 (objc_language::skip_trampoline): New member function with
6168 implementation from objc_skip_trampoline.
6169 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6170 initializer.
6171 * p-lang.c (pascal_language_data): Likewise.
6172 * rust-lang.c (rust_language_data): Likewise.
6173
0a50df5d
AB
61742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6177 (ada_language::demangle): New member function.
6178 * c-lang.c (c_language_data): Delete la_demangle initializer.
6179 (cplus_language_data): Delete la_demangle initializer.
6180 (cplus_language::demangle): New member function.
6181 (asm_language_data): Delete la_demangle initializer.
6182 (minimal_language_data): Delete la_demangle initializer.
6183 * d-lang.c (d_language_data): Delete la_demangle initializer.
6184 (d_language::demangle): New member function.
6185 * f-lang.c (f_language_data): Delete la_demangle initializer.
6186 (f_language::demangle): New member function.
6187 * go-lang.c (go_language_data): Delete la_demangle initializer.
6188 (go_language::demangle): New member function.
6189 * language.c (language_demangle): Update.
6190 (unk_lang_demangle): Delete.
6191 (unknown_language_data): Delete la_demangle initializer.
6192 (unknown_language::demangle): New member function.
6193 (auto_language_data): Delete la_demangle initializer.
6194 (auto_language::demangle): New member function.
6195 * language.h (language_data): Delete la_demangle field.
6196 (language_defn::demangle): New function.
6197 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6198 * objc-lang.c (objc_language_data): Delete la_demangle
6199 initializer.
6200 (objc_language::demangle): New member function.
6201 * opencl-lang.c (opencl_language_data): Delete la_demangle
6202 initializer.
6203 * p-lang.c (pascal_language_data): Likewise.
6204 * rust-lang.c (rust_language_data): Likewise.
6205 (rust_language::demangle): New member function.
6206
fbfb0a46
AB
62072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6208
6209 * ada-lang.c (ada_language_data): Delete la_print_type
6210 initializer.
6211 (ada_language::print_type): New member function.
6212 * c-lang.c (c_language_data): Delete la_print_type initializer.
6213 (c_language::print_type): New member function.
6214 (cplus_language_data): Delete la_print_type initializer.
6215 (cplus_language::print_type): New member function.
6216 (asm_language_data): Delete la_print_type initializer.
6217 (asm_language::print_type): New member function.
6218 (minimal_language_data): Delete la_print_type initializer.
6219 (minimal_language::print_type): New member function.
6220 * d-lang.c (d_language_data): Delete la_print_type initializer.
6221 (d_language::print_type): New member function.
6222 * f-lang.c (f_language_data): Delete la_print_type initializer.
6223 (f_language::print_type): New member function.
6224 * go-lang.c (go_language_data): Delete la_print_type initializer.
6225 (go_language::print_type): New member function.
6226 * language.c (unk_lang_print_type): Delete.
6227 (unknown_language_data): Delete la_print_type initializer.
6228 (unknown_language::print_type): New member function.
6229 (auto_language_data): Delete la_print_type initializer.
6230 (auto_language::print_type): New member function.
6231 * language.h (language_data): Delete la_print_type field.
6232 (language_defn::print_type): New function.
6233 (LA_PRINT_TYPE): Update.
6234 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6235 (m2_language::print_type): New member function.
6236 * objc-lang.c (objc_language_data): Delete la_print_type
6237 initializer.
6238 (objc_language::print_type): New member function.
6239 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6240 to opencl_language::print_type.
6241 (opencl_language_data): Delete la_print_type initializer.
6242 (opencl_language::print_type): New member function, implementation
6243 from opencl_print_type.
6244 * p-lang.c (pascal_language_data): Delete la_print_type
6245 initializer.
6246 (pascal_language::print_type): New member function.
6247 * rust-lang.c (rust_print_type): Delete, implementation moved to
6248 rust_language::print_type.
6249 (rust_language_data): Delete la_print_type initializer.
6250 (rust_language::print_type): New member function, implementation
6251 from rust_print_type.
6252
6f827019
AB
62532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6256 implementation moves to...
6257 (ada_language::sniff_from_mangled_name): ...here. Update return
6258 type.
6259 (ada_language_data): Delete la_sniff_from_mangled_name
6260 initializer.
6261 * c-lang.c (c_language_data): Likewise.
6262 (cplus_language_data): Likewise.
6263 (cplus_language::sniff_from_mangled_name): New member function,
6264 implementation taken from gdb_sniff_from_mangled_name.
6265 (asm_language_data): Delete la_sniff_from_mangled_name
6266 initializer.
6267 (minimal_language_data): Likewise.
6268 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6269 implementation moves to cplus_language::sniff_from_mangled_name.
6270 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6271 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6272 moves to...
6273 (d_language::sniff_from_mangled_name): ...here.
6274 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6275 * f-lang.c (f_language_data): Likewise.
6276 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6277 moves to...
6278 (go_language::sniff_from_mangled_name): ...here.
6279 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6280 * language.c (language_sniff_from_mangled_name): Delete.
6281 (unknown_language_data): Delete la_sniff_from_mangled_name
6282 initializer.
6283 (auto_language_data): Likewise.
6284 * language.h (language_data): Delete la_sniff_from_mangled_name
6285 field.
6286 (language_defn::sniff_from_mangled_name): New function.
6287 (language_sniff_from_mangled_name): Delete declaration.
6288 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6289 field.
6290 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6291 implementation moves to...
6292 (objc_language::sniff_from_mangled_name): ...here.
6293 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6294 * opencl-lang.c (opencl_language_data): Likewise.
6295 * p-lang.c (pascal_language_data): Likewise.
6296 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6297 implementation moves to...
6298 (rust_language::sniff_from_mangled_name): ...here.
6299 (rust_language_data): Delete la_sniff_from_mangled_name
6300 initializer.
6301 * symtab.c (symbol_find_demangled_name): Call
6302 sniff_from_mangled_name member function.
6303
fb8006fd
AB
63042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6305
6306 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6307 initializer.
6308 * c-lang.c (c_language_data): Likewise.
6309 (cplus_language_data): Likewise.
6310 (cplus_language::search_name_hash): New member function.
6311 (asm_language_data): Delete la_search_name_hash initializer.
6312 (minimal_language_data): Likewise.
6313 * d-lang.c (d_language_data): Likewise.
6314 * dictionary.c (default_search_name_hash): Rename to...
6315 (language_defn::search_name_hash): ...this.
6316 * f-lang.c (f_language_data): Likewise.
6317 (f_language::search_name_hash): New member function.
6318 * go-lang.c (go_language_data): Delete la_search_name_hash
6319 initializer.
6320 * language.c (unknown_language_data): Likewise.
6321 (auto_language_data): Likewise.
6322 * language.h (struct language_data): Delete la_search_name_hash
6323 field.
6324 (language_defn::search_name_hash): Declare new member function.
6325 (default_search_name_hash): Delete declaration.
6326 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6327 initializer.
6328 * objc-lang.c (objc_language_data): Likewise.
6329 * opencl-lang.c (opencl_language_data): Likewise.
6330 * p-lang.c (pascal_language_data): Likewise.
6331 * rust-lang.c (rust_language_data): Likewise.
6332 * symtab.c (search_name_hash): Update call.
6333
8e25bafe
AB
63342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6335
6336 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6337 initializer.
6338 * c-lang.c (class compile_instance): Declare.
6339 (c_language_data): Delete la_get_compile_instance initializer.
6340 (c_language::get_compile_instance): New member function.
6341 (cplus_language_data): Delete la_get_compile_instance initializer.
6342 (cplus_language::get_compile_instance): New member function.
6343 (asm_language_data): Delete la_get_compile_instance initializer.
6344 (minimal_language_data): Likewise.
6345 * c-lang.h (c_get_compile_context): Update comment.
6346 (cplus_get_compile_context): Update comment.
6347 * compile/compile.c (compile_to_object): Update calls, don't rely
6348 on function pointer being NULL.
6349 * d-lang.c (d_language_data): Delete la_get_compile_instance
6350 initializer.
6351 * f-lang.c (f_language_data): Likewise.
6352 * go-lang.c (go_language_data): Likewise.
6353 * language.c (unknown_language_data): Likewise.
6354 (auto_language_data): Likewise.
6355 * language.h (language_data): Delete la_get_compile_instance field.
6356 (language_defn::get_compile_instance): New member function.
6357 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6358 initializer.
6359 * objc-lang.c (objc_language_data): Likewise.
6360 * opencl-lang.c (opencl_language_data): Likewise.
6361 * p-lang.c (pascal_language_data): Likewise.
6362 * rust-lang.c (rust_language_data): Likewise.
6363
4009ee92
AB
63642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6365
6366 * ada-lang.c (ada_add_all_symbols): Update comment.
6367 (ada_iterate_over_symbols): Delete, move implementation to...
6368 (ada_language::iterate_over_symbols): ...here, a new member
6369 function, rewrite to use range based for loop.
6370 (ada_language_data): Delete la_iterate_over_symbols initializer.
6371 * c-lang.c (c_language_data): Likewise.
6372 (cplus_language_data): Likewise.
6373 (asm_language_data): Likewise.
6374 (minimal_language_data): Likewise.
6375 * d-lang.c (d_language_data): Likewise.
6376 * f-lang.c (f_language_data): Likewise.
6377 * go-lang.c (go_language_data): Likewise.
6378 * language.c (unknown_language_data): Likewise.
6379 (auto_language_data): Likewise.
6380 * language.h (language_data): Delete la_iterate_over_symbols field.
6381 (language_defn::iterate_over_symbols): New member function.
6382 (LA_ITERATE_OVER_SYMBOLS): Update.
6383 * linespec.c (iterate_over_all_matching_symtabs): Update.
6384 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6385 initializer.
6386 * objc-lang.c (objc_language_data): Likewise.
6387 * opencl-lang.c (opencl_language_data): Likewise.
6388 * p-lang.c (pascal_language_data): Likewise.
6389 * rust-lang.c (rust_language_data): Likewise.
6390
54f4ca46
AB
63912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * ada-lang.c (ada_language_data): Delete
6394 la_lookup_transparent_type initializer.
6395 * c-lang.c (c_language_data): Likewise.
6396 (cplus_language_data): Likewise.
6397 (cplus_language::lookup_transparent_type): New member function.
6398 (asm_language_data): Delete la_lookup_transparent_type
6399 initializer.
6400 (minimal_language_data): Likewise.
6401 * d-lang.c (d_language_data): Likewise.
6402 * f-lang.c (f_language_data): Likewise.
6403 * go-lang.c (go_language_data): Likewise.
6404 * language.c (unknown_language_data): Likewise.
6405 (auto_language_data): Likewise.
6406 * language.h (struct language_data): Delete
6407 la_lookup_transparent_type field.
6408 (language_defn::lookup_transparent_type): New member function.
6409 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6410 initializer.
6411 * objc-lang.c (objc_language_data): Likewise.
6412 * opencl-lang.c (opencl_language_data): Likewise.
6413 * p-lang.c (pascal_language_data): Likewise.
6414 * rust-lang.c (rust_language_data): Likewise.
6415 * symtab.c (symbol_matches_domain): Update call.
6416
1fb314aa
AB
64172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6418
6419 * ada-lang.c (ada_language_arch_info): Delete function, move
6420 implementation to...
6421 (ada_language::language_arch_info): ...here, a new member
6422 function.
6423 (ada_language_data): Delete la_language_arch_info.
6424 * c-lang.c (c_language_data): Likewise.
6425 (c_language::language_arch_info): New member function.
6426 (cplus_language_arch_info): Delete function, move
6427 implementation to...
6428 (cplus_language::language_arch_info): ...here, a new member
6429 function.
6430 (cplus_language_data): Delete la_language_arch_info.
6431 (asm_language_data): Likewise.
6432 (asm_language::language_arch_info): New member function.
6433 (minimal_language_data): Delete la_language_arch_info.
6434 (minimal_language::language_arch_info): New member function.
6435 * d-lang.c (d_language_arch_info): Delete function, move
6436 implementation to...
6437 (d_language::language_arch_info): ...here, a new member
6438 function.
6439 (d_language_data): Delete la_language_arch_info.
6440 * f-lang.c (f_language_arch_info): Delete function, move
6441 implementation to...
6442 (f_language::language_arch_info): ...here, a new member
6443 function.
6444 (f_language_data): Delete la_language_arch_info.
6445 * go-lang.c (go_language_arch_info): Delete function, move
6446 implementation to...
6447 (go_language::language_arch_info): ...here, a new member
6448 function.
6449 (go_language_data): Delete la_language_arch_info.
6450 * language.c (unknown_language_data): Likewise.
6451 (unknown_language::language_arch_info): New member function.
6452 (auto_language_data): Delete la_language_arch_info.
6453 (auto_language::language_arch_info): New member function.
6454 (language_gdbarch_post_init): Update call to
6455 la_language_arch_info.
6456 * language.h (language_data): Delete la_language_arch_info
6457 function pointer.
6458 (language_defn::language_arch_info): New function.
6459 * m2-lang.c (m2_language_arch_info): Delete function, move
6460 implementation to...
6461 (m2_language::language_arch_info): ...here, a new member
6462 function.
6463 (m2_language_data): Delete la_language_arch_info.
6464 * objc-lang.c (objc_language_arch_info): Delete function, move
6465 implementation to...
6466 (objc_language::language_arch_info): ...here, a new member
6467 function.
6468 (objc_language_data): Delete la_language_arch_info.
6469 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6470 implementation to...
6471 (opencl_language::language_arch_info): ...here, a new member
6472 function.
6473 (opencl_language_data): Delete la_language_arch_info.
6474 * p-lang.c (pascal_language_arch_info): Delete function, move
6475 implementation to...
6476 (pascal_language::language_arch_info): ...here, a new member
6477 function.
6478 (pascal_language_data): Delete la_language_arch_info.
6479 * rust-lang.c (rust_language_arch_info): Delete function, move
6480 implementation to...
6481 (rust_language::language_arch_info): ...here, a new member
6482 function.
6483 (rust_language_data): Delete la_language_arch_info.
6484
48448202
AB
64852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6488 initializer.
6489 * c-lang.c (c_language_data): Likewise.
6490 (cplus_language_data): Likewise.
6491 (cplus_language::pass_by_reference_info): New method.
6492 (asm_language_data): Delete la_pass_by_reference initializer.
6493 (minimal_language_data): Likewise.
6494 * cp-abi.c (cp_pass_by_reference): Remove use of
6495 default_pass_by_reference.
6496 * d-lang.c (d_language_data): Likewise.
6497 * f-lang.c (f_language_data): Likewise.
6498 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6499 default_pass_by_reference.
6500 * go-lang.c (go_language_data): Likewise.
6501 * language.c (language_pass_by_reference): Update.
6502 (default_pass_by_reference): Delete.
6503 (unknown_language_data): Delete la_pass_by_reference
6504 initializer.
6505 (auto_language_data): Likewise.
6506 * language.h (struct language_data): Delete la_pass_by_reference
6507 field.
6508 (language_defn::pass_by_reference_info): New member function.
6509 (default_pass_by_reference): Delete declaration.
6510 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6511 initializer.
6512 * objc-lang.c (objc_language_data): Likewise.
6513 * opencl-lang.c (opencl_language_data): Likewise.
6514 * p-lang.c (pascal_language_data): Likewise.
6515 * rust-lang.c (rust_language_data): Likewise.
6516
15e5fd35
AB
65172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6518
6519 * ada-lang.c (ada_read_var_value): Delete function, move
6520 implementation to...
6521 (ada_language::read_var_value): ...here.
6522 (ada_language_data): Delete la_read_var_value initializer.
6523 * c-lang.c (c_language_data): Likewise.
6524 (cplus_language_data): Likewise.
6525 (minimal_language_data): Likewise.
6526 * d-lang.c (d_language_data): Likewise.
6527 * f-lang.c (f_language_data): Likewise.
6528 * findvar.c (default_read_var_value): Rename to...
6529 (language_defn::read_var_value): ...this.
6530 * findvar.c (read_var_value): Update header comment, and change to
6531 call member function instead of function pointer.
6532 * go-lang.c (go_language_data): Likewise.
6533 * language.c (unknown_language_data): Delete la_read_var_value
6534 initializer.
6535 (auto_language_data): Likewise.
6536 * language.h (struct language_data): Delete la_read_var_value
6537 field.
6538 (language_defn::read_var_value): New member function.
6539 (default_read_var_value): Delete declaration.
6540 * m2-lang.c (m2_language_data): Delete la_read_var_value
6541 initializer.
6542 * objc-lang.c (objc_language_data): Likewise.
6543 * opencl-lang.c (opencl_language_data): Likewise.
6544 * p-lang.c (pascal_language_data): Likewise.
6545 * rust-lang.c (rust_language_data): Likewise.
6546 * value.h (default_read_var_value): Delete declaration.
6547
5bd40f2a
AB
65482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * ada-lang.c (ada_print_array_index): Delete function, move
6551 implementation to...
6552 (ada_language::print_array_index): ...here.
6553 (ada_language_data): Delete la_print_array_index initializer.
6554 * c-lang.c (c_language_data): Likewise.
6555 (cplus_language_data): Likewise.
6556 (minimal_language_data): Likewise.
6557 * d-lang.c (d_language_data): Likewise.
6558 * f-lang.c (f_language_data): Likewise.
6559 * go-lang.c (go_language_data): Likewise.
6560 * language.c (default_print_array_index): Delete function, move
6561 implementation to...
6562 (language_defn::print_array_index): ...here.
6563 (unknown_language_data): Delete la_print_array_index initializer.
6564 (auto_language_data): Likewise.
6565 * language.h (struct language_data): Delete la_print_array_index
6566 field.
6567 (language_defn::print_array_index): New member function.
6568 (LA_PRINT_ARRAY_INDEX): Update.
6569 (default_print_array_index): Delete declaration.
6570 * m2-lang.c (m2_language_data): Delete la_print_array_index
6571 initializer.
6572 * objc-lang.c (objc_language_data): Likewise.
6573 * opencl-lang.c (opencl_language_data): Likewise.
6574 * p-lang.c (pascal_language_data): Likewise.
6575 * rust-lang.c (rust_language_data): Likewise.
6576
0874fd07
AB
65772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6578
6579 * gdb/ada-lang.c (ada_language_defn): Convert to...
6580 (ada_language_data): ...this.
6581 (class ada_language): New class.
6582 (ada_language_defn): New static global.
6583 * gdb/c-lang.c (c_language_defn): Convert to...
6584 (c_language_data): ...this.
6585 (class c_language): New class.
6586 (c_language_defn): New static global.
6587 (cplus_language_defn): Convert to...
6588 (cplus_language_data): ...this.
6589 (class cplus_language): New class.
6590 (cplus_language_defn): New static global.
6591 (asm_language_defn): Convert to...
6592 (asm_language_data): ...this.
6593 (class asm_language): New class.
6594 (asm_language_defn): New static global.
6595 (minimal_language_defn): Convert to...
6596 (minimal_language_data): ...this.
6597 (class minimal_language): New class.
6598 (minimal_language_defn): New static global.
6599 * gdb/d-lang.c (d_language_defn): Convert to...
6600 (d_language_data): ...this.
6601 (class d_language): New class.
6602 (d_language_defn): New static global.
6603 * gdb/f-lang.c (f_language_defn): Convert to...
6604 (f_language_data): ...this.
6605 (class f_language): New class.
6606 (f_language_defn): New static global.
6607 * gdb/go-lang.c (go_language_defn): Convert to...
6608 (go_language_data): ...this.
6609 (class go_language): New class.
6610 (go_language_defn): New static global.
6611 * gdb/language.c (unknown_language_defn): Remove declaration.
6612 (current_language): Initialize to nullptr, real initialization is
6613 moved to _initialize_language.
6614 (languages): Delete global.
6615 (language_defn::languages): Define.
6616 (set_language_command): Use language_defn::languages.
6617 (set_language): Likewise.
6618 (range_error): Likewise.
6619 (language_enum): Likewise.
6620 (language_def): Likewise.
6621 (add_set_language_command): Use language_def::languages for the
6622 language list, and language_def to lookup language pointers.
6623 (skip_language_trampoline): Use language_defn::languages.
6624 (unknown_language_defn): Convert to...
6625 (unknown_language_data): ...this.
6626 (class unknown_language): New class.
6627 (unknown_language_defn): New static global.
6628 (auto_language_defn): Convert to...
6629 (auto_language_data): ...this.
6630 (class auto_language): New class.
6631 (auto_language_defn): New static global.
6632 (language_gdbarch_post_init): Use language_defn::languages.
6633 (_initialize_language): Initialize current_language.
6634 * gdb/language.h (struct language_defn): Rename to...
6635 (struct language_data): ...this.
6636 (struct language_defn): New.
6637 (auto_language_defn): Delete.
6638 (unknown_language_defn): Delete.
6639 (minimal_language_defn): Delete.
6640 (ada_language_defn): Delete.
6641 (asm_language_defn): Delete.
6642 (c_language_defn): Delete.
6643 (cplus_language_defn): Delete.
6644 (d_language_defn): Delete.
6645 (f_language_defn): Delete.
6646 (go_language_defn): Delete.
6647 (m2_language_defn): Delete.
6648 (objc_language_defn): Delete.
6649 (opencl_language_defn): Delete.
6650 (pascal_language_defn): Delete.
6651 (rust_language_defn): Delete.
6652 * gdb/m2-lang.c (m2_language_defn): Convert to...
6653 (m2_language_data): ...this.
6654 (class m2_language): New class.
6655 (m2_language_defn): New static global.
6656 * gdb/objc-lang.c (objc_language_defn): Convert to...
6657 (objc_language_data): ...this.
6658 (class objc_language): New class.
6659 (objc_language_defn): New static global.
6660 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6661 (opencl_language_data): ...this.
6662 (class opencl_language): New class.
6663 (opencl_language_defn): New static global.
6664 * gdb/p-lang.c (pascal_language_defn): Convert to...
6665 (pascal_language_data): ...this.
6666 (class pascal_language): New class.
6667 (pascal_language_defn): New static global.
6668 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6669 language pointer, update comment format.
6670 * gdb/rust-lang.c (rust_language_defn): Convert to...
6671 (rust_language_data): ...this.
6672 (class rust_language): New class.
6673 (rust_language_defn): New static global.
6674
1313c56e
AB
66752020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6676
6677 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6678 member variable.
6679 <m_stmt_at_address>: New member variable.
6680 (lnp_state_machine::record_line): Don't record some lines, update
6681 tracking of is_stmt at the same address.
6682 (lnp_state_machine::lnp_state_machine): Initialise new member
6683 variables.
6684
b7ed9f3d
ST
66852020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6686
6687 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6688 "-include gnu-nat-mig.h".
6689 * gnu-nat-mig.h: New file.
6690 * gnu-nat.c: Include "gnu-nat-mig.h".
6691 (exc_server, msg_reply_server, notify_server,
6692 process_reply_server): Remove declarations.
6693
14a8ad62
ST
66942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6695
6696 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6697 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6698 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6699 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6700 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6701 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6702 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6703 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6704 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6705 to gnu_nat_target class.
6706 * gnu-nat.c: Likewise.
6707 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6708 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6709 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6710 object.
6711 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6712 instead of `gnu_target'.
6713
0af5e106
ST
67142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6715
6716 * i386-gnu-tdep.c: Include "gdbcore.h"
6717 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6718 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6719 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6720 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6721 i386_gnu_sigcontext_addr): New functions
6722 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6723 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6724 tdep.
6725
078f2fc9
ST
67262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6727
6728 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6729 before fork_inferior call. Avoid calling it if target_is_pushed returns
6730 true.
6731
53dff92c
ST
67322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6733
6734 * gnu-nat.h (gnu_target): New variable declaration.
6735 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6736 gnu_target.
6737 * gnu-nat.c (gnu_target): New variable.
6738 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6739 add_thread_silent, and add_thread calls.
6740 (gnu_nat_target::create_inferior): Pass gnu_target to
6741 add_thread_silent, thread_change_ptid call.
6742 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6743 call.
6744
5a8b8627
ST
67452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6746
6747 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6748 (gnu_nat_target::find_memory_regions): Remove unused
6749 `old_address' variable.
6750
366f550a
ST
67512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6752
6753 * gnu-nat.c: Include "gdbarch.h".
6754
f14871bf
ST
67552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6756
6757 * reply_mig_hack.awk (Error return): Cast function through
6758 void *, to bypass compiler function call check.
6759
c6887cfb
ST
67602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6761
6762 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6763 $(srcdir)/reply_mig_hack.awk.
6764
6930bffe
ST
67652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6766
6767 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6768
112c22ed
JG
67692020-05-30 Jonny Grant <jg@jguk.org>
6770
6771 * configure.ac (ACX_BUGURL): change bug URL to https.
6772
f68f85b5
PA
67732020-05-30 Pedro Alves <palves@redhat.com>
6774
6775 * cp-support.c (replace_typedefs_template): New.
6776 (replace_typedefs_qualified_name): Handle
6777 DEMANGLE_COMPONENT_TEMPLATE.
6778
976ca316
SM
67792020-05-29 Simon Marchi <simon.marchi@efficios.com>
6780
6781 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6782 dwarf2/index-cache.h, dwarf2/index-write.c,
6783 dwarf2/index-write.h, dwarf2/line-header.c,
6784 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6785 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6786 variables and fields from `dwarf2_per_objfile` to just
6787 `per_objfile` throughout.
6788
989ade05
SM
67892020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6790
6791 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6792 <push_dwarf_reg_entry_value>: Add comment.
6793
c47bae85
KB
67942020-05-28 Kevin Buettner <kevinb@redhat.com>
6795 Keith Seitz <keiths@redhat.com>
6796
6797 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6798 instead of PyEval_ReleaseLock.
6799 (class gdbpy_gil): Move to earlier in file.
6800 (finalize_python): Set gdb_python_initialized.
6801 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6802 when not initialized.
6803
44486dcf
SM
68042020-05-28 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6807 <push_dwarf_reg_entry_value>: Remove assert. Override
6808 per_objfile with caller_per_objfile.
6809
f030440d
TV
68102020-05-28 Tom de Vries <tdevries@suse.de>
6811
6812 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6813 PR gold/15646 workaround to symbol kind "type".
6814
f0fbb768
TT
68152020-05-27 Tom Tromey <tromey@adacore.com>
6816
6817 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6818
af0b2a3e
TT
68192020-05-27 Tom Tromey <tromey@adacore.com>
6820
6821 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6822 Use htab_find_with_hash.
6823 <add_abbrev>: Remove "abbrev_number" parameter.
6824 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6825 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6826 (hash_abbrev): Add comment.
6827 (abbrev_table::lookup_abbrev): Move to header file.
6828 (abbrev_table::read): Update.
6829
7d00ffec
TT
68302020-05-27 Tom Tromey <tromey@adacore.com>
6831
6832 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6833 method.
6834 <canonical_name>: New member.
6835 <raw_name>: Rename from "name".
6836 (partial_die_info): Initialize canonical_name.
6837 (scan_partial_symbols): Check raw_name.
6838 (partial_die_parent_scope, partial_die_full_name)
6839 (add_partial_symbol, add_partial_subprogram)
6840 (add_partial_enumeration, load_partial_dies): Use "name" method.
6841 (partial_die_info::name): New method.
6842 (partial_die_info::read, guess_partial_die_structure_name)
6843 (partial_die_info::fixup): Update.
6844
697bba18
TT
68452020-05-27 Tom Tromey <tromey@adacore.com>
6846
6847 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6848 <get_ref_die_offset>: Inline.
6849 <get_ref_die_offset_complaint>: New method.
6850 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6851 (attribute::get_ref_die_offset_complaint): Rename from
6852 get_ref_die_offset. Just issue complaint.
6853
c17ace43
HD
68542020-05-27 Hannes Domani <ssbssa@yahoo.de>
6855
6856 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6857
96445f0b
HD
68582020-05-27 Hannes Domani <ssbssa@yahoo.de>
6859
6860 * exec.c (exec_file_attach): Use errno value of first openp failure.
6861
ac637ec3
HD
68622020-05-27 Hannes Domani <ssbssa@yahoo.de>
6863
6864 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6865 Don't close thread handle.
6866
17ee85fc
TT
68672020-05-27 Tom Tromey <tom@tromey.com>
6868 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6871 shared_ptr.
6872 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6873 member.
6874 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6875 dwarf2_per_bfd_objfile_data_key>: New globals.
6876 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6877 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6878 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6879 shared.
6880 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6881 short-circuit when sharing.
6882 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6883 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6884
39b16f87
SM
68852020-05-27 Simon Marchi <simon.marchi@efficios.com>
6886
6887 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6888 to...
6889 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6890 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6891
fcf23d5b
SM
68922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6895 build_name_components, find_name_components_bounds>:
6896 Add per_objfile parameter.
6897 (struct mapped_index) <symbol_name_at>: Likewise.
6898 (struct mapped_debug_names): Remove constructor.
6899 <dwarf2_per_objfile>: Remove field.
6900 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6901 (mapped_index_base::find_name_components_bounds,
6902 mapped_index_base::build_name_components,
6903 dw2_expand_symtabs_matching_symbol): Likewise.
6904 (class mock_mapped_index) <symbol_name_at>: Likewise.
6905 (check_match): Likewise.
6906 (check_find_bounds_finds): Likewise.
6907 (test_mapped_index_find_name_component_bounds): Update.
6908 (CHECK_MATCH): Update.
6909 (dw2_expand_symtabs_matching): Update.
6910 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6911 per_objfile parameter.
6912 <find_vec_in_debug_names>: Likewise.
6913 <m_per_objfile>: New field.
6914 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6915 parameter.
6916 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6917 (dw2_debug_names_iterator::next): Update.
6918 (dw2_debug_names_lookup_symbol): Update.
6919 (dw2_debug_names_expand_symtabs_for_function): Update.
6920 (dw2_debug_names_map_matching_symbols): Update.
6921 (dw2_debug_names_expand_symtabs_matching): Update.
6922 (dwarf2_read_debug_names): Update.
6923
7188ed02
SM
69242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6927 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6928 move to dwarf2_per_objfile.
6929 <read_in_chain>: Remove.
6930 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6931 remove_all_cus, age_comp_units>: New methods.
6932 <m_dwarf2_cus>: New member.
6933 (struct dwarf2_per_cu_data) <cu>: Remove.
6934 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6935 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6936 moved to methods of dwarf2_per_objfile.
6937 (dwarf2_clear_marks): Remove.
6938 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6939 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6940 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6941 (dwarf2_per_objfile::remove_all_cus): New.
6942 (class free_cached_comp_units) <~free_cached_comp_units>:
6943 Update.
6944 (load_cu): Update.
6945 (dw2_do_instantiate_symtab): Adjust.
6946 (fill_in_sig_entry_from_dwo_entry): Adjust.
6947 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6948 (cutu_reader::cutu_reader): Likewise.
6949 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6950 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6951 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6952 and dwarf2_per_objfile::age_comp_units.
6953 (load_partial_comp_unit): Update.
6954 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6955 (process_queue): Likewise.
6956 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6957 backlink.
6958 (dwarf2_read_addr_index): Likewise.
6959 (follow_die_offset): Likewise.
6960 (dwarf2_fetch_die_loc_sect_off): Likewise.
6961 (dwarf2_fetch_constant_bytes): Likewise.
6962 (dwarf2_fetch_die_type_sect_off): Likewise.
6963 (follow_die_sig_1): Likewise.
6964 (load_full_type_unit): Likewise.
6965 (read_signatured_type): Likewise.
6966 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6967 (dwarf2_cu::~dwarf2_cu): Remove.
6968 (dwarf2_per_objfile::get_cu): New.
6969 (dwarf2_per_objfile::set_cu): New.
6970 (age_cached_comp_units): Rename to...
6971 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6972 to std::unordered_map.
6973 (free_one_cached_comp_unit): Rename to...
6974 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6975 to std::unordered_map.
6976 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6977 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6978 a dwarf2_per_objfile in data.
6979 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6980 (dwarf2_clear_marks): Remove.
6981
2e671100
SM
69822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6985 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6986 (init_tu_and_read_dwo_dies): Likewise.
6987 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6988 (cutu_reader::cutu_reader): Likewise.
6989 (load_partial_comp_unit): Likewise.
6990 (process_psymtab_comp_unit): Update.
6991 (build_type_psymtabs_1): Update.
6992 (process_skeletonless_type_unit): Update.
6993 (load_full_comp_unit): Update.
6994 (find_partial_die): Update.
6995 (dwarf2_read_addr_index): Update.
6996 (read_signatured_type): Update.
6997
2e6a9f79
SM
69982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6999
7000 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7001 m_header_read_in>: New fields.
7002 <get_header>: New method.
7003 * dwarf2/read.c (per_cu_header_read_in): Remove.
7004 (dwarf2_per_cu_data::get_header): New.
7005 (dwarf2_per_cu_data::addr_size): Update.
7006 (dwarf2_per_cu_data::offset_size): Update.
7007 (dwarf2_per_cu_data::ref_addr_size): Update.
7008
1b555f17
SM
70092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7010
7011 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7012 (dw2_do_instantiate_symtab): Update.
7013 (queue_and_load_all_dwo_tus): Change parameter from
7014 dwarf2_per_cu_data to dwarf2_cu.
7015 (dwarf2_fetch_die_loc_sect_off): Update.
7016 (dwarf2_fetch_constant_bytes): Update.
7017 (dwarf2_fetch_die_type_sect_off): Update.
7018
8fc0b21d
SM
70192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7020
7021 * dwarf2/read.c (process_full_comp_unit,
7022 process_full_type_unit): Remove per_cu, per_objfile paramters.
7023 Add dwarf2_cu parameter.
7024 (process_queue): Update.
7025
168c9250
SM
70262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7027
7028 * dwarf2/read.c (create_cu_from_index_list): Replace
7029 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7030 (create_cus_from_index_list): Likewise.
7031 (create_cus_from_index): Likewise.
7032 (create_signatured_type_table_from_index): Likewise.
7033 (create_cus_from_debug_names_list): Likewise.
7034 (create_cus_from_debug_names): Likewise.
7035 (dwarf2_read_gdb_index): Update.
7036 (dwarf2_read_debug_names): Update.
7037
e286671b
TT
70382020-05-27 Tom Tromey <tom@tromey.com>
7039 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * dwarf2/read.h (struct dwarf2_per_objfile)
7042 <get_type_for_signatured_type, set_type_for_signatured_type>:
7043 New methods.
7044 <m_type_map>: New member.
7045 (struct signatured_type) <type>: Remove.
7046 * dwarf2/read.c
7047 (dwarf2_per_objfile::get_type_for_signatured_type,
7048 dwarf2_per_objfile::set_type_for_signatured_type): New.
7049 (get_signatured_type): Use new methods.
7050
8adb8487
TT
70512020-05-27 Tom Tromey <tom@tromey.com>
7052 Simon Marchi <simon.marchi@efficios.com>
7053
7054 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7055 (struct dwarf2_per_objfile) <type_units>: New member.
7056 <get_type_unit_group_unshareable>: New method.
7057 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7058 num_symtabs, symtabs>: Remove; move to
7059 type_unit_group_unshareable.
7060 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7061 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7062 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7063
127bbf4b
SM
70642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7065
7066 * dwarf2/read.h (struct dwarf2_per_cu_data):
7067 <dwarf2_per_objfile>: Remove.
7068 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7069 dwarf2_per_objfile.
7070 (create_signatured_type_table_from_index): Likewise.
7071 (create_signatured_type_table_from_debug_names): Likewise.
7072 (create_debug_type_hash_table): Likewise.
7073 (fill_in_sig_entry_from_dwo_entry): Likewise.
7074 (create_type_unit_group): Likewise.
7075 (read_comp_units_from_section): Likewise.
7076 (create_cus_hash_table): Likewise.
7077
f6e649dd
SM
70782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7079
7080 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7081 dwarf2_per_cu_data::dwarf2_per_objfile.
7082 (compute_compunit_symtab_includes): Likewise.
7083 (dwarf2_cu::start_symtab): Likewise.
7084
aa66c379
SM
70852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7086
7087 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7088 parameter.
7089 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7090 (read_namespace_alias): Update.
7091 (lookup_die_type): Update.
7092 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7093 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7094 Update.
7095 (disassemble_dwarf_expression): Update.
7096
120ce1b5
SM
70972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * dwarf2/read.h (struct dwarf2_queue_item): Add
7100 dwarf2_per_objfile parameter, assign new parameter.
7101 <per_objfile>: New field.
7102 * dwarf2/read.c (free_one_cached_comp_unit): Add
7103 dwarf2_per_objfile parameter.
7104 (queue_comp_unit): Likewise.
7105 (dw2_do_instantiate_symtab): Update.
7106 (process_psymtab_comp_unit): Update.
7107 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7108 (process_imported_unit_die): Update.
7109 (queue_and_load_dwo_tu): Update.
7110 (follow_die_offset): Update.
7111 (follow_die_sig_1): Update.
7112
9f47c707
SM
71132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7114
7115 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7116 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7117 (read_call_site_scope): Assign per_objfile.
7118 (dwarf2_per_cu_data::objfile): Remove.
7119 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7120 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7121 dwarf2_per_objfile parameter.
7122 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7123 dwarf2_per_objfile parameter.
7124 (dwarf_expr_reg_to_entry_parameter): Add output
7125 dwarf2_per_objfile parameter.
7126 (locexpr_get_frame_base): Update.
7127 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7128 <push_dwarf_reg_entry_value>: Update.
7129 <call_site_to_target_addr>: Update.
7130 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7131 parameter.
7132 (value_of_dwarf_reg_entry): Update.
7133 (rw_pieced_value): Update.
7134 (indirect_synthetic_pointer): Update.
7135 (dwarf2_evaluate_property): Update.
7136 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7137 parameter.
7138 (locexpr_read_variable): Update.
7139 (locexpr_get_symbol_read_needs): Update.
7140 (loclist_read_variable): Update.
7141
14095eb3
SM
71422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7146 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7147 parameter.
7148 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7149 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7150 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7151 parameter.
7152 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7153 sect_variable_value): Add dwarf2_per_objfile parameter.
7154 (class dwarf_evaluate_loc_desc) <dwarf_call,
7155 dwarf_variable_value>: Update.
7156 (fetch_const_value_from_synthetic_pointer): Add
7157 dwarf2_per_objfile parameter.
7158 (fetch_const_value_from_synthetic_pointer): Update.
7159 (coerced_pieced_ref): Update.
7160 (class symbol_needs_eval_context) <dwarf_call,
7161 dwarf_variable_value>: Update.
7162 (dwarf2_compile_expr_to_ax): Update.
7163
3c3cd3d4
SM
71642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7165
7166 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7167 parameter.
7168 (dwarf2_evaluate_loc_desc_full): Update.
7169
82ca3f51
SM
71702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7171
7172 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7173 parameter.
7174 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7175 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7176 dwarf2_per_objfile parameter.
7177 (decode_debug_loc_dwo_addresses): Likewise.
7178 (dwarf2_find_location_expression): Update.
7179 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7180 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7181 parameter.
7182 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7183 parameter.
7184 (locexpr_describe_location_1): Likewise.
7185 (locexpr_describe_location): Update.
7186
4b167ea1
SM
71872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7188
7189 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7190 Remove.
7191 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7192 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7193 (dwarf2_compile_property_to_c): Update.
7194 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7195 use text offset from objfile.
7196 (locexpr_tracepoint_var_ref): Update.
7197 (locexpr_generate_c_location): Update.
7198 (loclist_describe_location): Update.
7199 (loclist_tracepoint_var_ref): Update.
7200 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7201 dwarf2_per_objfile parameter.
7202 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7203 use text offset from objfile.
7204 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7205
89b07335
SM
72062020-05-27 Simon Marchi <simon.marchi@efficios.com>
7207
7208 * dwarf2/expr.h (struct dwarf_expr_context)
7209 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7210 <offset>: Remove.
7211 <per_objfile>: New member.
7212 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7213 dwarf2_per_objfile parameter. Don't set offset, set
7214 per_objfile.
7215 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7216 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7217 a dwarf2_per_objfile object instead of an offset.
7218 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7219 constructor.
7220 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7221 to dwarf2_expr_executor constructor. Don't set offset.
7222 (dwarf2_fetch_cfa_info): Update.
7223 (struct dwarf2_frame_cache) <text_offset>: Remove.
7224 <per_objfile>: New field.
7225 (dwarf2_frame_cache): Update.
7226 (dwarf2_frame_prev_register): Update.
7227 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7228 <dwarf_evaluate_loc_desc>: Add constructor.
7229 (dwarf2_evaluate_loc_desc_full): Update.
7230 (dwarf2_locexpr_baton_eval): Update.
7231 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7232 Add constructor.
7233 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7234
293e7e51
SM
72352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7238 addr_sized_int_type>: Move to dwarf2_cu.
7239 <int_type>: Move to dwarf2_per_objfile.
7240 (struct dwarf2_per_objfile) <int_type>: Move here.
7241 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7242 addr_sized_int_type>: Move here.
7243 (read_func_scope): Update.
7244 (read_array_type): Update.
7245 (read_tag_string_type): Update.
7246 (attr_to_dynamic_prop): Update.
7247 (dwarf2_per_cu_data::int_type): Rename to...
7248 (dwarf2_per_objfile::int_type): ... this.
7249 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7250 (dwarf2_cu::addr_sized_int_type): ... this.
7251 (read_subrange_type): Update.
7252 (dwarf2_per_cu_data::addr_type): Rename to...
7253 (dwarf2_cu::addr_type): ... this.
7254 (set_die_type): Update.
7255
64874a40
SM
72562020-05-27 Simon Marchi <simon.marchi@efficios.com>
7257
7258 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7259 data through per_cu->cu.
7260
4ab09049
SM
72612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7262
7263 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7264 dwarf2_per_cu_data parameter fo dwarf2_cu.
7265 (lookup_dwo_type_unit): Likewise.
7266 (read_cutu_die_from_dwo): Likewise.
7267 (lookup_dwo_unit): Likewise.
7268 (open_and_init_dwo_file): Likewise.
7269 (lookup_dwo_cutu): Likewise.
7270 (lookup_dwo_comp_unit): Likewise.
7271 (lookup_dwo_type_unit): Likewise.
7272 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7273 (cutu_reader::cutu_reader): Update.
7274
47b14e86
SM
72752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7276
7277 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7278 parameter.
7279 (process_full_type_unit): Likewise.
7280 (process_queue): Update.
7281
43182c09
SM
72822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7283
7284 * dwarf2/read.c (recursively_compute_inclusions): Add
7285 dwarf2_per_objfile parameter.
7286 (compute_compunit_symtab_includes): Likewise.
7287 (process_cu_includes): Update.
7288
7aa104c4
SM
72892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7290
7291 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7292 parameter.
7293 (create_type_unit_group): Update.
7294 (process_psymtab_comp_unit_reader): Update.
7295 (build_type_psymtabs_reader): Update.
7296
e3beb21d
SM
72972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7298
7299 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7300 object through m_this_cu->cu.
7301
d460f660
SM
73022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7305 the info parameter.
7306 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7307
ab432490
SM
73082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7309
7310 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7311 per_objfile parameter.
7312 (load_full_type_unit): Add per_objfile parameter.
7313 (read_signatured_type): Likewise.
7314 (load_full_comp_unit): Likewise.
7315 (load_cu): Likewise.
7316 (dw2_do_instantiate_symtab): Likewise.
7317 (dw2_get_file_names): Likewise.
7318 (dw2_map_symtabs_matching_filename): Update.
7319 (dw_expand_symtabs_matching_file_matcher): Update.
7320 (dw2_map_symbol_filenames): Update.
7321 (process_psymtab_comp_unit): Add per_objfile parameter.
7322 (build_type_psymtabs_1): Update.
7323 (process_skeletonless_type_unit): Update.
7324 (dwarf2_build_psymtabs_hard): Update.
7325 (load_partial_comp_unit): Add per_objfile parameter.
7326 (scan_partial_symbols): Update.
7327 (load_full_comp_unit): Add per_objfile parameter.
7328 (process_imported_unit_die): Update.
7329 (create_cus_hash_table): Update.
7330 (find_partial_die): Update.
7331 (dwarf2_read_addr_index): Update.
7332 (follow_die_offset): Update.
7333 (dwarf2_fetch_die_loc_sect_off): Update.
7334 (dwarf2_fetch_constant_bytes): Update.
7335 (dwarf2_fetch_die_type_sect_off): Update.
7336 (follow_die_sig_1): Update.
7337 (load_full_type_unit): Add per_objfile parameter.
7338 (read_signatured_type): Likewise.
7339
313bad1b
SM
73402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7341
7342 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7343 of objfile_name.
7344
c3699833
SM
73452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7346
7347 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7348 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7349 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7350 field.
7351 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7352 (create_cus_from_index): Update.
7353 (dwarf2_read_gdb_index): Update.
7354 (create_cus_from_debug_names): Update.
7355 (dwarf2_read_debug_names): Update.
7356 (get_abbrev_section_for_cu): Update.
7357 (create_all_comp_units): Update.
7358 (read_attribute_value): Update.
7359 (get_debug_line_section): Update.
7360 * dwarf2/index-cache.c (index_cache::store): Update.
7361 * dwarf2/index-write.c (save_gdb_index_command): Update.
7362 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7363
1859c670
SM
73642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7365
7366 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7367 member.
7368 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7369 dwarf2_per_cu_data::per_bfd.
7370 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7371 (create_type_unit_group): Likewise.
7372 (queue_comp_unit): Remove reference to
7373 per_cu->dwarf2_per_objfile.
7374 (maybe_queue_comp_unit): Likewise.
7375 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7376 (create_cus_hash_table): Assign new field.
7377
5e22e966
SM
73782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7379
7380 * dwarf2/read.c: Replace
7381 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7382 dwarf2_cu->per_objfile throughout.
7383
97a1449a
SM
73842020-05-27 Simon Marchi <simon.marchi@efficios.com>
7385
7386 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7387 parameter, don't use per_cu->dwarf2_per_objfile.
7388 (dw2_instantiate_symtab): Likewise.
7389 (dw2_find_last_source_symtab): Update.
7390 (dw2_map_expand_apply): Update.
7391 (dw2_lookup_symbol): Update.
7392 (dw2_expand_symtabs_for_function): Update.
7393 (dw2_expand_all_symtabs): Update.
7394 (dw2_expand_symtabs_with_fullname): Update.
7395 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7396 don't use per_cu->dwarf2_per_objfile.
7397 (dw2_expand_marked_cus): Update.
7398 (dw2_find_pc_sect_compunit_symtab): Update.
7399 (dw2_debug_names_lookup_symbol): Update.
7400 (dw2_debug_names_expand_symtabs_for_function): Update.
7401 (dw2_debug_names_map_matching_symbols): Update.
7402 (dwarf2_psymtab::expand_psymtab): Update.
7403
9e021579
SM
74042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7407 <per_objfile>: New member.
7408 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7409 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7410 call to dwarf2_cu.
7411 (cutu_reader::cutu_reader): Update.
7412 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7413
ae090bdb
SM
74142020-05-27 Simon Marchi <simon.marchi@efficios.com>
7415
7416 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7417 struct dwarf2_per_objfile.
7418 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7419 dwarf2_per_bfd.
7420 * dwarf2/read.c (set_die_type): Update.
7421 (get_die_type_at_offset): Update.
7422
af758d11
SM
74232020-05-27 Tom Tromey <tom@tromey.com>
7424 Simon Marchi <simon.marchi@efficios.com>
7425
7426 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7427 method.
7428 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7429 get_symtab, set_symtab>: New methods.
7430 <m_symtabs>: New field.
7431 (struct dwarf2_psymtab): Derive from partial_symtab.
7432 <readin_p, get_compunit_symtab>: Declare methods.
7433 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7434 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7435 New methods.
7436 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7437 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7438 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7439 (dw2_symtab_iter_next, dw2_print_stats)
7440 (dw2_expand_symtabs_with_fullname)
7441 (dw2_expand_symtabs_matching_one)
7442 (dw_expand_symtabs_matching_file_matcher)
7443 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7444 (dw2_debug_names_iterator::next)
7445 (dw2_debug_names_map_matching_symbols)
7446 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7447 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7448 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7449 New methods.
7450 (get_compunit_symtab, process_full_comp_unit)
7451 (process_full_type_unit): Update.
7452 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7453
5989a64e
SM
74542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7455
7456 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7457 then introduce a new dwarf2_per_objfile type.
7458 <read_line_string>: Move to the new dwarf2_per_objfile type.
7459 <objfile>: Likewise.
7460 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7461 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7462 dwarf2_per_objfile->per_bfd.
7463 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7464 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7465 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7466 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7467 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7468 (dwarf2_per_objfile::locate_sections): Rename to...
7469 (dwarf2_per_bfd::locate_sections): ... this.
7470 (dwarf2_per_objfile::get_cutu): Rename to...
7471 (dwarf2_per_bfd::get_cutu): ... this.
7472 (dwarf2_per_objfile::get_cu): Rename to...
7473 (dwarf2_per_bfd::get_cu): ... this.
7474 (dwarf2_per_objfile::get_tu): Rename to...
7475 (dwarf2_per_bfd::get_tu): ... this.
7476 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7477 (dwarf2_per_bfd::allocate_per_cu): ... this.
7478 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7479 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7480 (get_gdb_index_contents_ftype): Change parameter from
7481 dwarf2_per_objfile to dwarf2_per_bfd.
7482 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7483 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7484
a50264ba
TT
74852020-05-27 Tom Tromey <tom@tromey.com>
7486 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7489 (allocate_piece_closure): Set "per_objfile" member.
7490 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7491 (locexpr_describe_location, loclist_describe_location): Use new
7492 member.
7493 * dwarf2/read.c (read_call_site_scope)
7494 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7495 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7496 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7497 handle_data_member_location): Set per_objfile member.
7498 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7499 member.
7500 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7501
d3473f0c
TT
75022020-05-27 Tom Tromey <tom@tromey.com>
7503
7504 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7505 allocate_signatured_type>: Declare new methods.
7506 <m_num_psymtabs>: New member.
7507 (struct dwarf2_per_cu_data) <index>: New member.
7508 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7509 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7510 (create_cu_from_index_list): Use allocate_per_cu.
7511 (create_signatured_type_table_from_index)
7512 (create_signatured_type_table_from_debug_names)
7513 (create_debug_type_hash_table, add_type_unit)
7514 (read_comp_units_from_section): Use allocate_signatured_type.
7515
5717c425
TT
75162020-05-27 Tom Tromey <tom@tromey.com>
7517
7518 * psymtab.c (partial_map_expand_apply)
7519 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7520 (psym_lookup_global_symbol_language)
7521 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7522 (psym_print_stats, psym_expand_symtabs_for_function)
7523 (psym_map_symbol_filenames, psym_map_matching_symbols)
7524 (psym_expand_symtabs_matching)
7525 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7526 (maintenance_check_psymtabs): Update.
7527 * psympriv.h (struct partial_symtab) <readin_p,
7528 get_compunit_symtab>: Add objfile parameter.
7529 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7530 Likewise.
7531 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7532 get_compunit_symtab>: Likewise.
7533 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7534
45940949
TT
75352020-05-27 Tom Tromey <tom@tromey.com>
7536
7537 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7538 member.
7539 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7540 (create_cu_from_index_list)
7541 (create_signatured_type_table_from_index)
7542 (create_signatured_type_table_from_debug_names)
7543 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7544 (dwarf2_create_include_psymtab)
7545 (create_debug_type_hash_table, add_type_unit)
7546 (create_type_unit_group, read_comp_units_from_section)
7547 (dwarf2_compute_name, create_cus_hash_table)
7548 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7549 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7550 obstack.
7551 (dw2_get_real_path): Likewise. Change argument to
7552 dwarf2_per_objfile.
7553
f8c6d152
LM
75542020-05-27 Luis Machado <luis.machado@linaro.org>
7555
7556 PR tdep/26000
7557 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7558 for ldrd (immediate).
7559
e98d2e6d
PW
75602020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7561
7562 * command.h: Add comment giving the name of class_tui.
7563 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7564 create the fake command for the help for class_tui.
7565
53a47a3e
TT
75662020-05-26 Tom Tromey <tromey@adacore.com>
7567
7568 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7569 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7570 (val_atr): New function.
7571 (value_val_atr): Use it.
7572 * ada-valprint.c (print_optional_low_bound): Change low bound
7573 handling for enums.
7574 (val_print_packed_array_elements): Don't call discrete_position.
7575 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7576 discrete_position for enum types.
7577 * language.c (default_print_array_index): Change type.
7578 * language.h (struct language_defn) <la_print_array_index>: Add
7579 index_type parameter, change type of index_value.
7580 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7581 (default_print_array_index): Update.
7582 * valprint.c (maybe_print_array_index): Don't call
7583 value_from_longest. Update.
7584 (value_print_array_elements): Don't call discrete_position.
7585
0bc2354b
TT
75862020-05-26 Tom Tromey <tromey@adacore.com>
7587
7588 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7589 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7590
1218a4bf
CDA
75912020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7592
7593 PR gdb/13519
7594 * avr-tdep.c (avr_integer_to_address): Return data or code
7595 address accordingly to the second 'type' argument of the
7596 function.
7597
92651b1d
MW
75982020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7599
7600 * infcmd.c, inferior.h: (construct_inferior_arguments):
7601 Moved function from here to gdbsupport/common-inferior.{h,cc}
7602
0a4f5f8c
TT
76032020-05-23 Tom Tromey <tom@tromey.com>
7604
7605 Revert commit eca1f90c:
7606 * NEWS: Remove entry for completion styling.
7607 * completer.c (_rl_completion_prefix_display_length): Move
7608 declaration later.
7609 (gdb_fnprint): Revert.
7610 (gdb_display_match_list_1): Likewise.
7611 * cli/cli-style.c (completion_prefix_style)
7612 (completion_difference_style, completion_suffix_style): Remove.
7613 (_initialize_cli_style): Revert.
7614 * cli/cli-style.h (completion_prefix_style)
7615 (completion_difference_style, completion_suffix_style): Don't
7616 declare.
7617
e08bd6c5
PA
76182020-05-24 Pedro Alves <palves@redhat.com>
7619
7620 * symtab.c (completion_list_add_name): Return boolean indication
7621 of whether the symbol matched.
7622 (completion_list_add_symbol): Don't try to remove C++ aliases if
7623 the symbol didn't match in the first place.
7624 * symtab.h (completion_list_add_name): Return bool.
7625
ceacbf6e
SM
76262020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7627
7628 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7629 type::field.
7630
26f16254
JB
76312020-05-23 Joel Brobecker <brobecker@adacore.com>
7632
7633 GDB 9.2 released.
7634
eca1f90c
TT
76352020-05-23 Tom Tromey <tom@tromey.com>
7636
7637 * NEWS: Add entry for completion styling.
7638 * completer.c (_rl_completion_prefix_display_length): Move
7639 declaration earlier.
7640 (gdb_fnprint): Use completion_style.
7641 (gdb_display_match_list_1): Likewise.
7642 * cli/cli-style.c (completion_prefix_style)
7643 (completion_difference_style, completion_suffix_style): New
7644 globals.
7645 (_initialize_cli_style): Register new globals.
7646 * cli/cli-style.h (completion_prefix_style)
7647 (completion_difference_style, completion_suffix_style): Declare.
7648
51e2cfa2
PA
76492020-05-23 Pedro Alves <palves@redhat.com>
7650
7651 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7652 (parse_escape): Use ISDIGIT instead of isdigit.
7653 (puts_debug): Use gdb_isprint instead of isprint.
7654 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7655 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7656 ISSPACE instead of isspace.
7657 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7658 instead of isspace.
7659 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7660 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7661 instead of isxdigit and ISDIGIT instead of isdigit.
7662
80fc5e77
SM
76632020-05-22 Simon Marchi <simon.marchi@efficios.com>
7664
7665 * gdbtypes.h (struct type) <field>: New method.
7666 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7667 or type::field.
7668
3cabb6b0
SM
76692020-05-22 Simon Marchi <simon.marchi@efficios.com>
7670
7671 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7672 (TYPE_FIELDS): Use type::fields. Change all call sites that
7673 modify the propery to use type::set_fields instead.
7674
1f704f76
SM
76752020-05-22 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7678 type::num_fields instead.
7679
5e33d5f4
SM
76802020-05-22 Simon Marchi <simon.marchi@efficios.com>
7681
7682 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7683 methods.
7684 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7685 that modify the number of fields to use type::set_num_fields
7686 instead.
7687
9392ebb3
TT
76882020-05-22 Tom Tromey <tromey@adacore.com>
7689
7690 * compile/compile-object-load.h (munmap_list_free): Don't
7691 declare.
7692
7c13f4e8
AB
76932020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * annotate.c (annotate_source_line): Update return type, add call
7696 to update current symtab and line.
7697 * annotate.h (annotate_source_line): Update return type, and
7698 extend header comment.
7699 * source.c (info_line_command): Check annotation_level before
7700 calling annotate_source_line.
7701 * stack.c (print_frame_info): If calling annotate_source_line
7702 returns true, then don't print any other source line information.
7703
aa370940
SM
77042020-05-21 Simon Marchi <simon.marchi@efficios.com>
7705
7706 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7707
84d53fa9
SM
77082020-05-21 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * coffread.c (patch_type): Remove NULL check before xfree.
7711 * corefile.c (set_gnutarget): Likewise.
7712 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7713 * exec.c (build_section_table): Likewise.
7714 * remote.c (remote_target::pass_signals): Likewise.
7715 * utils.c (n_spaces): Likewise.
7716 * cli/cli-script.c (document_command): Likewise.
7717 * i386-windows-tdep.c (core_process_module_section): Likewise.
7718 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7719
9d428aae
SM
77202020-05-20 Simon Marchi <simon.marchi@efficios.com>
7721
7722 * symfile.c (reread_symbols): Clear objfile's section_offsets
7723 vector and section indices, re-compute them by calling
7724 sym_offsets.
7725
250106a7
TT
77262020-05-20 Tom Tromey <tromey@adacore.com>
7727
7728 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7729 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7730
9a0bacfb
TV
77312020-05-20 Tom de Vries <tdevries@suse.de>
7732
7733 PR symtab/25833
7734 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7735
7b958a48
AM
77362020-05-20 Alan Modra <amodra@gmail.com>
7737
7738 PR 25993
7739 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7740 bfd_set_filename.
7741 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7742 passed to bfd_set_filename.
7743 * symfile-mem.c (add_vsyscall_page): Likewise for string
7744 passed to symbol_file_add_from_memory.
7745 (symbol_file_add_from_memory): Make name param a const char* and
7746 don't strdup.
7747
c7e97679
AM
77482020-05-20 Alan Modra <amodra@gmail.com>
7749
7750 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7751 rather than accessing bfd->filename directly.
7752 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7753 and use bfd_section_name.
7754 * dwarf2/frame.c (decode_frame_entry): Likewise.
7755 * exec.c (exec_set_section_address): Likewise.
7756 * solib-aix.c (solib_aix_bfd_open): Likewise.
7757 * stap-probe.c (get_stap_base_address): Likewise.
7758 * symfile.c (reread_symbols): Likewise.
7759
563c591b
TT
77602020-05-19 Tom Tromey <tromey@adacore.com>
7761
7762 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7763
f408d82c
SM
77642020-05-19 Simon Marchi <simon.marchi@efficios.com>
7765
7766 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7767
98c59b52
PA
77682020-05-19 Pedro Alves <palves@redhat.com>
7769
7770 * NEWS (set exec-file-mismatch): Adjust entry.
7771 * exec.c: Include "build-id.h".
7772 (validate_exec_file): Try to match build IDs instead of filenames.
7773 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7774 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7775 and pass down 'warn_if_slow'.
7776 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7777 gdb_bfd_open_closure to pass it down.
7778 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7779
4111f652
PA
77802020-05-19 Pedro Alves <palves@redhat.com>
7781
7782 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7783 * target.c (target_fileio_open_1): Rename to target_fileio_open
7784 and make extern. Use bool.
7785 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7786 (target_fileio_read_alloc_1): Adjust.
7787 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7788 (target_fileio_open_warn_if_slow): Delete declaration.
7789
ad80db5b
PA
77902020-05-19 Pedro Alves <palves@redhat.com>
7791
7792 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7793 Adjust all callers.
7794
1d6ce4d3
YS
77952020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7796
7797 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7798 whether disp is negative.
7799
9005fbbb
SM
78002020-05-19 Simon Marchi <simon.marchi@efficios.com>
7801
7802 * symfile.h (struct symfile_segment_data)
7803 <~symfile_segment_data>: Remove.
7804 <segment_info>: Change to std::vector.
7805 * symfile.c (default_symfile_segments): Update.
7806 * elfread.c (elf_symfile_segments): Update.
7807
68b888ff
SM
78082020-05-19 Simon Marchi <simon.marchi@efficios.com>
7809
7810 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7811 <segments>: New.
7812 <segment_bases, segment_sizes>: Remove.
7813 * symfile.c (default_symfile_segments): Update.
7814 * elfread.c (elf_symfile_segments): Update.
7815 * remote.c (remote_target::get_offsets): Update.
7816 * solib-target.c (solib_target_relocate_section_addresses):
7817 Update.
7818
62982abd
SM
78192020-05-19 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * symfile.h (struct symfile_segment_data): Initialize fields.
7822 <~symfile_segment_data>: Add.
7823 (symfile_segment_data_up): New.
7824 (struct sym_fns) <sym_segments>: Return a
7825 symfile_segment_data_up.
7826 (default_symfile_segments): Return a symfile_segment_data_up.
7827 (free_symfile_segment_data): Remove.
7828 (get_symfile_segment_data): Return a symfile_segment_data_up.
7829 * symfile.c (default_symfile_segments): Likewise.
7830 (get_symfile_segment_data): Likewise.
7831 (free_symfile_segment_data): Remove.
7832 (symfile_find_segment_sections): Update.
7833 * elfread.c (elf_symfile_segments): Return a
7834 symfile_segment_data_up.
7835 * remote.c (remote_target::get_offsets): Update.
7836 * solib-target.c (solib_target_relocate_section_addresses):
7837 Update.
7838 * symfile-debug.c (debug_sym_segments): Return a
7839 symfile_segment_data_up.
7840
7f204339
RO
78412020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7842
e52a0f1b
RO
7843 PR build/25981
7844 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7845 Hardcode register numbers.
7846
7f204339
RO
7847 PR build/25981
7848 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7849 procfs_find_LDT_entry): Remove.
7850 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7851 procfs_find_LDT_entry): Remove.
7852 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7853 Remove.
7854
7f32a4d5
PA
78552020-05-17 Pedro Alves <palves@redhat.com>
7856 Andrew Burgess <andrew.burgess@embecosm.com>
7857 Keno Fischer <keno@juliacomputing.com>
7858
7859 PR gdb/25741
7860 * breakpoint.c (build_target_condition_list): Update comments.
7861 (build_target_command_list): Update comments and skip matching
7862 locations.
7863 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7864 a separate function. Simplify "set breakpoint auto-hw off"
7865 handling.
7866 (insert_breakpoints): Update comment.
7867 (tracepoint_locations_match): New parameter. For breakpoints,
7868 compare location types too, if the caller wants to.
7869 (handle_automatic_hardware_breakpoints): New functions.
7870 (bp_location_is_less_than): Also sort by location type and
7871 hardware breakpoint length.
7872 (update_global_location_list): Handle "set breakpoint auto-hw on"
7873 here.
7874 (update_breakpoint_locations): Ask breakpoint_locations_match to
7875 ignore location types.
7876
7d93a1e0
SM
78772020-05-16 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7880 type::name instead.
7881
d0e39ea2
SM
78822020-05-16 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * gdbtypes.h (struct type) <name, set_name>: New methods.
7885 (TYPE_CODE): Use type::name. Change all call sites used to set
7886 the name to use type::set_name instead.
7887
2dab0c7b
TT
78882020-05-16 Tom Tromey <tom@tromey.com>
7889
7890 * top.c (quit_force): Update.
7891 * infrun.c (handle_no_resumed): Update.
7892 * top.h (all_uis): New function.
7893 (ALL_UIS): Remove.
7894
59f7bd8d
SM
78952020-05-16 Simon Marchi <simon.marchi@efficios.com>
7896
7897 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7898
9bf058f0
PA
78992020-05-16 Pedro Alves <palves@redhat.com>
7900
7901 * ia64-linux-nat.c
7902 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7903 Declare method.
7904 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7905
8f86ae1a
SM
79062020-05-15 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7909 (sparc64_adi_info): Likewise.
7910
d6bc0792
TT
79112020-05-15 Tom Tromey <tom@tromey.com>
7912
7913 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7914 block_objfile.
7915 (lookup_objfile_from_block): Remove.
7916 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7917 (lookup_global_symbol): Use block_objfile.
7918 * symtab.h (lookup_objfile_from_block): Don't declare.
7919 * printcmd.c (clear_dangling_display_expressions): Use
7920 block_objfile.
7921 * parse.c (operator_check_standard): Use block_objfile.
7922
8c14c3a3
TT
79232020-05-15 Tom Tromey <tom@tromey.com>
7924
7925 * language.c (language_alloc_type_symbol): Set
7926 SYMBOL_SECTION.
7927 * symtab.c (initialize_objfile_symbol): Remove.
7928 (allocate_symbol): Remove.
7929 (allocate_template_symbol): Remove.
7930 * dwarf2/read.c (fixup_go_packaging): Use "new".
7931 (new_symbol): Use "new".
7932 (read_variable): Don't call initialize_objfile_symbol. Use
7933 "new".
7934 (read_func_scope): Use "new".
7935 * xcoffread.c (process_xcoff_symbol): Don't call
7936 initialize_objfile_symbol.
7937 (SYMBOL_DUP): Remove.
7938 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7939 "new".
7940 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7941 (allocate_template_symbol): Don't declare.
7942 (struct symbol): Add copy constructor. Change defaults.
7943 * jit.c (finalize_symtab): Use "new".
7944 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7945 Use "new".
7946 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7947 (common_block_end): Use "new".
7948 * mdebugread.c (parse_symbol): Use "new".
7949 (new_symbol): Likewise.
7950
5b4a1a8d
PW
79512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7952
7953 * NEWS: Mention changes to help and apropos.
7954
57b4f16e
PW
79552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7956
7957 * command.h (enum command_class): Improve comments, document
7958 that class_alias is for user-defined aliases, give the class
7959 name for each class, remove unused class_xdb.
7960 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7961 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7962 by a precise class.
7963 * infcmd.c (_initialize_infcmd): Likewise.
7964 * reverse.c (_initialize_reverse): Likewise.
7965 * stack.c (_initialize_stack): Likewise.
7966 * symfile.c (_initialize_symfile): Likewise.
7967 * tracepoint.c (_initialize_tracepoint): Likewise.
7968
7c05caf7
PW
79692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7970
7971 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7972 when their aliased command is traversed.
7973 (help_cmd): Add fput_command_names_styled call to
7974 output command name and aliases when command has an alias.
7975
3b3aaacb
PW
79762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7977
7978 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7979 * cli/cli-decode.c (help_cmd_list): Declare as static,
7980 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7981 a command together with the command.
7982 (fput_command_name_styled, fput_command_names_styled): New functions.
7983 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7984 fput_command_name_styled.
7985 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7986 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7987
7aa1b46f
PW
79882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7989
7990 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7991 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7992 * command.h (cmd_show_list): Likewise.
7993 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7994 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7995
89bcba74
PW
79962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7997
7998 * unittests/command-def-selftests.c (traverse_command_structure):
7999 Verify all commands of a list have the same prefix command and
8000 that only the top cmdlist commands have a null prefix.
8001
3f4d92eb
PW
80022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8003
8004 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8005 as prefix, not one of its aliases.
8006 (set_cmd_prefix): Remove.
8007 (do_add_cmd): Centralize the setting of the prefix of a command, when
8008 command is defined after its full chain of prefix commands.
8009 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8010 (add_setshow_cmd_full): Likewise.
8011 (update_prefix_field_of_prefixed_commands): New function.
8012 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8013 update_prefix_field_of_prefixed_commands.
8014 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8015 addresses of remote_set_cmdlist and remote_show_cmdlist given
8016 as argument, not the address of an argument.
8017 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8018 * gdb/remote.c (_initialize_remote): Likewise.
8019
0605465f
PW
80202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8021
8022 * cli/cli-cmds.c (alias_command): Check for an existing alias
8023 using lookup_cmd_composition, as valid_command_p is too strict
8024 and forbids aliases that are the prefix of an existing alias
8025 or command.
8026 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8027 command is properly recognised as a valid command.
8028
58e6ac70
PW
80292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8030
8031 * unittests/help-doc-selftests.c: Rename to
8032 unittests/command-def-selftests.c
8033 * unittests/command-def-selftests.c (help_doc_tests): Update some
8034 comments.
8035 (command_structure_tests, traverse_command_structure): New namespace
8036 and function.
8037 (command_structure_invariants_tests): New function.
8038 (_initialize_command_def_selftests) Renamed from
8039 _initialize_help_doc_selftests, register command_structure_invariants
8040 selftest.
8041
a7b9ceb8
PW
80422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8043
8044 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8045 an alias of 'show'.
8046
b2188a06
JB
80472020-05-15 Joel Brobecker <brobecker@adacore.com>
8048
8049 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8050 ada_is_fixed_point_type. Update all callers.
8051 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8052 all callers.
8053 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8054 Update all callers.
8055 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8056 print_fixed_point_type. Update all callers.
8057 * ada-valprint.c (ada_value_print_num): Replace call to
8058 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8059
a51951c2
KB
80602020-05-14 Kevin Buettner <kevinb@redhat.com>
8061
8062 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8063 processors.
8064 (cpu_supports_bts): Add CV_AMD case.
8065
29d6859f
LM
80662020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8067 Simon Marchi <simon.marchi@efficios.com>
8068
8069 * infrun.c (stop_all_threads): Collect multiple wait events at
8070 each pass.
8071
78134374
SM
80722020-05-14 Simon Marchi <simon.marchi@efficios.com>
8073
8074 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8075 type::code instead.
8076
67607e24
SM
80772020-05-14 Simon Marchi <simon.marchi@efficios.com>
8078
8079 * gdbtypes.h (struct type) <code, set_code>: New methods.
8080 (TYPE_CODE): Use type::code. Change all call sites used to set
8081 the code to use type::set_code instead.
8082
a05575d3
TBA
80832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8084 Tom de Vries <tdevries@suse.de>
8085 Pedro Alves <palves@redhat.com>
8086
8087 PR threads/25478
8088 * infrun.c (stop_all_threads): Do NOT ignore
8089 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8090 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8091 received.
8092 (handle_no_resumed): Remove code handling a live inferior with no
8093 threads.
8094 * remote.c (has_single_non_exited_thread): New.
8095 (remote_target::update_thread_list): Do not delete a thread if is
8096 the last thread of the process.
8097 * thread.c (thread_select): Call delete_exited_threads instead of
8098 prune_threads.
8099
6ad82919
TBA
81002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8101
8102 * infrun.c (stop_all_threads): Enable/disable thread events of all
8103 targets. Move a debug message denoting the end of the function
8104 into the SCOPED_EXIT block.
8105
d890404b
TBA
81062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8107
8108 * process-stratum-target.h: Include <set>.
8109 (all_non_exited_process_targets, switch_to_target_no_thread): New
8110 function declarations.
8111 * process-stratum-target.c (all_non_exited_process_targets)
8112 (switch_to_target_no_thread): New function implementations.
8113
293b3ebc
TBA
81142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8115
8116 * infrun.c (handle_inferior_event): Extract out a piece of code
8117 into...
8118 (mark_non_executing_threads): ...this new function.
8119
7ca9b62a
TBA
81202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8121
8122 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8123 use.
8124
fc75c28b
TBA
81252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8126
8127 * regcache.c (regcache_read_pc_protected): New function
8128 implementation that returns 0 if the PC cannot read via
8129 'regcache_read_pc'.
8130 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8131 instead of 'regcache_read_pc'.
8132 (keep_going_pass_signal): Ditto.
8133
a89febbd
TT
81342020-05-13 Tom Tromey <tromey@adacore.com>
8135
8136 * ada-lang.c (align_value): Remove.
8137 (ada_template_to_fixed_record_type_1): Use align_up.
8138
f7e23710
TBA
81392020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8140
8141 * async-event.c: Update the copyright year.
8142 * async-event.h: Update the copyright year.
8143
02ff80c2
SM
81442020-05-12 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * objfiles.h (is_addr_in_objfile,
8147 shared_objfile_contains_address_p): Return bool.
8148 * objfile.c (is_addr_in_objfile,
8149 shared_objfile_contains_address_p): Return bool.
8150
4fd6c7e8
TT
81512020-05-11 Tom Tromey <tromey@adacore.com>
8152
8153 * cli/cli-cmds.c (info_command): Restore.
8154 (_initialize_cli_cmds): Use add_prefix_command for "info".
8155 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8156
5eb68a39
TT
81572020-05-11 Tom Tromey <tromey@adacore.com>
8158
8159 * ada-lang.c (ada_value_primitive_field): Now public.
8160 * ada-lang.h (ada_value_primitive_field): Declare.
8161 * ada-valprint.c (print_field_values): Use
8162 ada_value_primitive_field for wrapper fields.
8163
7666722f
TV
81642020-05-11 Tom de Vries <tdevries@suse.de>
8165
8166 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8167 MODULE_DOMAIN.
8168
3ee6bb11
TV
81692020-05-11 Tom de Vries <tdevries@suse.de>
8170
8171 PR symtab/25941
8172 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8173 with length 0, if not gdb-produced.
8174 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8175
43434996
TV
81762020-05-09 Tom de Vries <tdevries@suse.de>
8177
8178 PR gdb/25955
8179 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8180 calculation.
8181
2f78cffc
TT
81822020-05-09 Tom Tromey <tom@tromey.com>
8183
8184 * top.c (server_command): Now bool.
8185 * top.h (server_command): Now bool.
8186
4f7bc5ed
TT
81872020-05-08 Tom Tromey <tromey@adacore.com>
8188
8189 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8190 already being processed.
8191
8be4b118
TT
81922020-05-08 Tom Tromey <tom@tromey.com>
8193
8194 * printcmd.c (struct display) <next>: Remove.
8195 <display>: New constructor.
8196 <exp_string>: Now a std::string.
8197 <enabled_p>: Now a bool.
8198 (display_number): Move definition earlier.
8199 (displays): Rename from display_chain. Now a std::vector.
8200 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8201 (display_command): Update.
8202 (do_one_display, disable_display)
8203 (enable_disable_display_command, do_enable_disable_display):
8204 Update.
8205 (free_display): Remove.
8206 (clear_displays): Rewrite.
8207 (delete_display): Update.
8208 (map_display_numbers): Use function_view. Remove "data"
8209 parameter. Update.
8210 (do_delete_display): Remove.
8211 (undisplay_command): Update.
8212 (do_one_display, do_displays, disable_display)
8213 (info_display_command): Update.
8214 (do_enable_disable_display): Remove.
8215 (enable_disable_display_command)
8216 (clear_dangling_display_expressions): Update.
8217
94c93c35
TT
82182020-05-08 Tom Tromey <tom@tromey.com>
8219
8220 * symtab.c (set_symbol_cache_size)
8221 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8222 (maintenance_print_symbol_cache_statistics): Update.
8223 * symmisc.c (print_symbol_bcache_statistics)
8224 (print_objfile_statistics, maintenance_print_objfiles)
8225 (maintenance_info_symtabs, maintenance_check_symtabs)
8226 (maintenance_expand_symtabs, maintenance_info_line_tables):
8227 Update.
8228 * symfile-debug.c (set_debug_symfile): Update.
8229 * source.c (forget_cached_source_info): Update.
8230 * python/python.c (gdbpy_progspaces): Update.
8231 * psymtab.c (maintenance_info_psymtabs): Update.
8232 * probe.c (parse_probes): Update.
8233 * linespec.c (iterate_over_all_matching_symtabs)
8234 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8235 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8236 * exec.c (exec_target::close): Update.
8237 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8238 * breakpoint.c (print_one_breakpoint_location)
8239 (create_longjmp_master_breakpoint)
8240 (create_std_terminate_master_breakpoint): Update.
8241 * progspace.c (program_spaces): Now a std::vector.
8242 (maybe_new_address_space): Update.
8243 (add_program_space): Remove.
8244 (program_space::program_space): Update.
8245 (remove_program_space): Update.
8246 (number_of_program_spaces): Remove.
8247 (print_program_space, update_address_spaces): Update.
8248 * progspace.h (program_spaces): Change type.
8249 (ALL_PSPACES): Remove.
8250 (number_of_program_spaces): Don't declare.
8251 (struct program_space) <next>: Remove.
8252
a1fd1ac9
TT
82532020-05-08 Tom Tromey <tom@tromey.com>
8254
8255 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8256 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8257 (enable_break): Update.
8258 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8259 (frv_fdpic_find_canonical_descriptor): Update.
8260 (frv_fetch_objfile_link_map): Update.
8261 * progspace.c (program_space::free_all_objfiles): Update.
8262 (program_space::solibs): New method.
8263 * progspace.h (struct program_space) <solibs>: New method.
8264 * solist.h (master_so_list): Don't declare.
8265 (ALL_SO_LIBS): Remove.
8266 * solib.h (so_list_head): Remove.
8267 (update_solib_list): Update comment.
8268 * solib.c (master_so_list): Remove.
8269 (solib_used, update_solib_list, solib_add)
8270 (info_sharedlibrary_command, clear_solib)
8271 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8272
38eae084
TT
82732020-05-08 Tom Tromey <tom@tromey.com>
8274
8275 * extension.c (extension_languages): Now a std::array.
8276 (ALL_EXTENSION_LANGUAGES): Remove.
8277 (get_ext_lang_defn, get_ext_lang_of_file)
8278 (eval_ext_lang_from_control_command): Update.
8279 (finish_ext_lang_initialization)
8280 (auto_load_ext_lang_scripts_for_objfile)
8281 (ext_lang_type_printers::ext_lang_type_printers)
8282 (apply_ext_lang_type_printers)
8283 (ext_lang_type_printers::~ext_lang_type_printers)
8284 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8285 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8286 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8287 (get_matching_xmethod_workers, ext_lang_colorize)
8288 (ext_lang_before_prompt): Update.
8289 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8290
596dc4ad
TT
82912020-05-08 Tom Tromey <tom@tromey.com>
8292
8293 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8294 overload.
8295 <swap_string, m_string>: Remove.
8296 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8297 Update.
8298 * stabsread.c (define_symbol, read_type): Update.
8299 * linespec.c (find_linespec_symbols): Update.
8300 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8301 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8302 * dbxread.c (read_dbx_symtab): Update.
8303 * cp-support.h (cp_canonicalize_string_full)
8304 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8305 Return unique_xmalloc_ptr.
8306 * cp-support.c (inspect_type): Update.
8307 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8308 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8309 Likewise.
8310 * c-typeprint.c (print_name_maybe_canonical): Update.
8311 * break-catch-throw.c (check_status_exception_catchpoint):
8312 Update.
8313
bf4cb9be
TV
83142020-05-08 Tom de Vries <tdevries@suse.de>
8315
8316 * infrun.c (follow_fork): Copy current_line and current_symtab to
8317 child thread.
8318
a1b68f28
SM
83192020-05-07 Simon Marchi <simon.marchi@efficios.com>
8320
8321 * async-event.c (struct async_signal_handler, struct
8322 async_event_handler): Reformat, remove typedef.
8323
98d48915
SM
83242020-05-07 Simon Marchi <simon.marchi@efficios.com>
8325
8326 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8327 access thistype->main_type->dyn_prop_list directly.
8328
7aa91313
SM
83292020-05-07 Simon Marchi <simon.marchi@efficios.com>
8330
8331 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8332 (remove_dyn_prop): Remove. Update all users to use
8333 type::remove_dyn_prop.
8334 * gdbtypes.c (remove_dyn_prop): Rename to...
8335 (type::remove_dyn_prop): ... this.
8336
5c54719c
SM
83372020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8338
8339 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8340 (add_dyn_prop): Remove. Update all users to use
8341 type::add_dyn_prop.
8342 * gdbtypes.c (add_dyn_prop): Rename to...
8343 (type::add_dyn_prop): ... this.
8344
24e99c6c
SM
83452020-05-07 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8348 (get_dyn_prop): Remove. Update all users to use
8349 type::dyn_prop.
8350 * gdbtypes.c (get_dyn_prop): Rename to...
8351 (type::dyn_prop): ... this.
8352
0d4bf016
SM
83532020-05-06 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8356
ac4a4f1c
SM
83572020-05-06 Simon Marchi <simon.marchi@efficios.com>
8358
8359 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8360 instruction, skip it if it's there.
8361
a3bbacc1
SM
83622020-05-05 Simon Marchi <simon.marchi@efficios.com>
8363
8364 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8365
c3236f84
SM
83662020-05-04 Simon Marchi <simon.marchi@efficios.com>
8367
8368 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8369 * gdbtypes.c (recursive_dump_type): Remove use of
8370 TYPE_INCOMPLETE.
8371
3b6acaee
TT
83722020-05-03 Tom Tromey <tom@tromey.com>
8373
8374 * breakpoint.c (catch_command, tcatch_command): Remove.
8375 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8376 add_show_prefix_cmd.
8377 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8378 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8379 Remove.
8380 (add_internal_problem_command): Use add_basic_prefix_cmd,
8381 add_show_prefix_cmd.
8382 * mips-tdep.c (set_mipsfpu_command): Remove.
8383 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8384 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8385 (_initialize_index_cache): Use add_basic_prefix_cmd.
8386 * memattr.c (dummy_cmd): Remove.
8387 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8388 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8389 (_initialize_tui_win): Use add_basic_prefix_cmd,
8390 add_show_prefix_cmd.
8391 * cli/cli-logging.c (set_logging_command): Remove.
8392 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8393 add_show_prefix_cmd.
8394 (show_logging_command): Remove.
8395 * target.c (target_command): Remove.
8396 (add_target): Use add_basic_prefix_cmd.
8397
a51119cd
HD
83982020-05-02 Hannes Domani <ssbssa@yahoo.de>
8399
8400 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8401
652fc23a 84022020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8403
652fc23a
PW
8404 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8405 info_command.
8406
117539e6
KR
84072020-04-30 Kamil Rytarowski <n54@gmx.com>
8408
8409 * nbsd-nat.c (nbsd_enable_proc_events)
8410 (nbsd_nat_target::post_startup_inferior): Add.
8411 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8412 (nbsd_nat_target::update_thread_list): Rewrite.
8413 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8414 "PTRACE_LWP_CREATE".
8415 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8416
102e38eb 84172020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8418
102e38eb
PW
8419 * stack.c (_initialize_stack): Remove duplicated creation
8420 of "frame" command and "f" alias.
8421
ee9d1e5f
HD
84222020-04-30 Hannes Domani <ssbssa@yahoo.de>
8423
8424 PR gdb/18706
8425 * gdbtypes.c (check_typedef): Calculate size of array of
8426 stubbed type.
8427
627c7fb8
HD
84282020-04-30 Hannes Domani <ssbssa@yahoo.de>
8429
8430 PR gdb/15559
8431 * i386-tdep.c (i386_push_dummy_call): Call
8432 i386_thiscall_push_dummy_call.
8433 (i386_thiscall_push_dummy_call): New function.
8434 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8435 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8436 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8437
ffc2844e
SM
84382020-04-29 Simon Marchi <simon.marchi@efficios.com>
8439
8440 * gdbarch.sh (do_read): Add shellcheck disable directive for
8441 warning SC2162.
8442
1207375d
SM
84432020-04-29 Simon Marchi <simon.marchi@efficios.com>
8444
8445 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8446 "referenced but not assigned" warning.
8447
9fdb2916
SM
84482020-04-29 Simon Marchi <simon.marchi@efficios.com>
8449
8450 * gdbarch.sh: Remove code that sets fallbackdefault.
8451
759cea5e
SM
84522020-04-29 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * gdbarch.sh: Use shell operators && and || instead of
8455 -a and -o.
8456
cb02ab24
SM
84572020-04-29 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * gdbarch.sh: Use $(...) instead of `...`.
8460
a6fc5ffc
SM
84612020-04-29 Simon Marchi <simon.marchi@efficios.com>
8462
8463 * gdbarch.sh: Use double quotes around variables.
8464
8d113d13
SM
84652020-04-29 Simon Marchi <simon.marchi@efficios.com>
8466
8467 * gdbarch.sh: Use %s with printf, instead of variables in the
8468 format string.
8469
ed6acedd
TT
84702020-04-29 Tom Tromey <tromey@adacore.com>
8471
8472 PR ada/25875:
8473 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8474 type fields here.
8475 (read_enumeration_type): Call
8476 update_enumeration_type_from_children later. Update comments.
8477 (process_enumeration_scope): Don't create type fields.
8478
b68b1b58
KR
84792020-04-29 Kamil Rytarowski <n54@gmx.com>
8480
8481 * nbsd-tdep.c: Include "xml-syscall.h".
8482 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8483
f94b2e03
KR
84842020-04-29 Kamil Rytarowski <n54@gmx.com>
8485
8486 * nbsd-nat.c: Include "sys/wait.h".
8487 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8488 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8489 (nbsd_nat_target::remove_exec_catchpoint)
8490 (nbsd_nat_target::set_syscall_catchpoint): Add.
8491 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8492 (nbsd_nat_target::insert_exec_catchpoint)
8493 (nbsd_nat_target::remove_exec_catchpoint)
8494 (nbsd_nat_target::set_syscall_catchpoint): Add.
8495 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8496 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8497 `nbsd_get_syscall_number'.
8498
fc49bc72
TT
84992020-04-29 Tom Tromey <tom@tromey.com>
8500
8501 * stack.c (print_block_frame_labels): Remove.
8502
d642b692
HD
85032020-04-29 Hannes Domani <ssbssa@yahoo.de>
8504
8505 PR gdb/17320
8506 * ada-valprint.c (val_print_packed_array_elements): Move array
8507 end bracket to new line.
8508 (ada_val_print_string): Remove extra spaces before first array
8509 element.
8510 * c-valprint.c (c_value_print_array): Likewise.
8511 * m2-valprint.c (m2_print_array_contents): Likewise.
8512 (m2_value_print_inner): Likewise.
8513 * p-valprint.c (pascal_value_print_inner): Likewise.
8514 * valprint.c (generic_val_print_array): Likewise.
8515 (value_print_array_elements): Move first array element and array
8516 end bracket to new line.
8517
ea90f227
TV
85182020-04-29 Tom de Vries <tdevries@suse.de>
8519
8520 PR symtab/25889
8521 * linespec.c (find_method): Fix ix calculation.
8522
4498ef4f
KR
85232020-04-28 Kamil Rytarowski <n54@gmx.com>
8524
8525 * syscalls/update-netbsd.sh: New file.
8526 * syscalls/netbsd.xml: Regenerate.
8527 * data-directory/Makefile.in: Register `netbsd.xml' in
8528 `SYSCALLS_FILES'.
8529
a55e30b5
SM
85302020-04-28 Simon Marchi <simon.marchi@efficios.com>
8531
8532 * syscalls/update-freebsd.sh: Add double quotes.
8533
2b2fbab8
TT
85342020-04-28 Tom Tromey <tom@tromey.com>
8535
8536 * NEWS: Update.
8537 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8538 (cmdpy_init): Allow class_tui.
8539
a65189c9
TV
85402020-04-28 Mark Williams <mark@myosotissp.com>
8541
8542 PR gdb/24480
8543 * dwarf2read.c: Add missing assingments to list_in_scope when
8544 start_symtab was already called.
8545
1b95cdb7
SM
85462020-04-28 Simon Marchi <simon.marchi@efficios.com>
8547
8548 PR gdb/25881
8549 * dwarf2/read.c (offset_map_type): Use
8550 gdb:hash_enum<sect_offset> as hash function.
8551
15cd93d0
TV
85522020-04-28 Tom de Vries <tdevries@suse.de>
8553
8554 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8555 with DW_AT_signature.
8556
1eb39914
SM
85572020-04-27 Simon Marchi <simon.marchi@efficios.com>
8558
8559 * configure.ac: Remove check for fs_base/gs_base in
8560 user_regs_struct.
8561 * configure: Re-generate.
8562 * config.in: Re-generate.
8563 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8564 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8565 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8566
991a3e2e
LM
85672020-04-27 Luis Machado <luis.machado@linaro.org>
8568
8569 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8570 problematic inline frame unwinding situation.
8571 * frame.c (frame_id_computed_p): New function.
8572 * frame.h (frame_id_computed_p): New prototype.
8573
361ba0e8
TT
85742020-04-26 Tom Tromey <tom@tromey.com>
8575
8576 * command.h (enum command_class) <class_pseudo>: Remove.
8577
bc3609fd
PW
85782020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8579
8580 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8581 and whitespace.
8582
b9771db7
KR
85832020-04-25 Kamil Rytarowski <n54@gmx.com>
8584
ec16513e
SM
8585 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8586 `PT_GET_PROCESS_STATE' block.
b9771db7 8587
7151c1af
TT
85882020-04-24 Tom Tromey <tom@tromey.com>
8589
8590 * symtab.h (symbol_get_demangled_name): Don't declare.
8591 * symtab.c (symbol_get_demangled_name): Remove.
8592 (general_symbol_info::natural_name)
8593 (general_symbol_info::demangled_name): Update.
8594
906bb4c5
TT
85952020-04-24 Tom Tromey <tom@tromey.com>
8596
8597 PR rust/25025:
8598 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8599
bcfe6157
TT
86002020-04-24 Tom Tromey <tom@tromey.com>
8601
8602 PR symtab/12707:
8603 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8604 exists.
8605 (new_symbol): Likewise.
8606 * compile/compile-object-load.c (get_out_value_type): Use
8607 symbol_matches_search_name.
8608
f049a313
TT
86092020-04-24 Tom Tromey <tom@tromey.com>
8610
8611 * dwarf2/read.c (add_partial_symbol): Do not call
8612 compute_and_set_names.
8613
76e288d1
TT
86142020-04-24 Tom Tromey <tom@tromey.com>
8615
8616 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8617 overload.
8618
2467f4f6
TT
86192020-04-24 Tom Tromey <tom@tromey.com>
8620
8621 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8622 (add_psymbol_to_list): New overload. Make old overload call new
8623 one.
8624 * psympriv.h (add_psymbol_to_list): New overload.
8625
e61108c9
TT
86262020-04-24 Tom Tromey <tom@tromey.com>
8627
8628 * dwarf2/read.c (partial_die_info::read) <case
8629 DW_AT_linkage_name>: Use value_as_string.
8630 (dwarf2_string_attr): Use value_as_string.
8631 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8632 method.
8633 * dwarf2/attribute.c (attribute::value_as_string): New method.
8634
8c87a452
TT
86352020-04-24 Tom Tromey <tom@tromey.com>
8636
8637 * symtab.c (general_symbol_info::natural_name)
8638 (general_symbol_info::demangled_name): Check for language_rust.
8639
787de330
TT
86402020-04-24 Tom Tromey <tom@tromey.com>
8641
8642 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8643 (dwarf2_physname): ... from here.
8644 (partial_die_info::read): Add Rust "{" hack.
8645
ff985671
TT
86462020-04-24 Tom Tromey <tom@tromey.com>
8647
8648 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8649 method.
8650 (symbol_set_demangled_name): Don't declare.
8651 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8652 symbol_set_demangled_name.
8653 (general_symbol_info::set_language)
8654 (general_symbol_info::compute_and_set_names): Update.
8655 * minsyms.c (minimal_symbol_reader::install): Update.
8656 * dwarf2/read.c (new_symbol): Update.
8657
1acda803
TT
86582020-04-24 Tom Tromey <tromey@adacore.com>
8659
8660 PR python/23662:
8661 * python/py-type.c (convert_field): Handle
8662 FIELD_LOC_KIND_DWARF_BLOCK.
8663 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8664 (typy_get_dynamic): Nw function.
8665 (type_object_getset): Add "dynamic".
8666 * NEWS: Add entry.
8667
d656f129
TT
86682020-04-24 Tom Tromey <tromey@adacore.com>
8669
8670 * ada-typeprint.c (print_choices, print_variant_part)
8671 (print_record_field_types_dynamic): New functions.
8672 (print_record_field_types): Use print_record_field_types_dynamic.
8673
7d79de9a
TT
86742020-04-24 Tom Tromey <tromey@adacore.com>
8675
8676 * dwarf2/read.c (handle_data_member_location): New overload.
8677 (dwarf2_add_field): Use it.
8678 (decode_locdesc): Add "computed" parameter. Update comment.
8679 * gdbtypes.c (is_dynamic_type_internal): Also look for
8680 FIELD_LOC_KIND_DWARF_BLOCK.
8681 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8682 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8683 virtual base classes.
8684 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8685 FIELD_LOC_KIND_DWARF_BLOCK.
8686
f8e89861
TT
86872020-04-24 Tom Tromey <tromey@adacore.com>
8688
8689 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8690 * gdbtypes.c (is_dynamic_type_internal): Check
8691 TYPE_HAS_DYNAMIC_LENGTH.
8692 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8693 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8694 New macros.
8695 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8696 constant.
8697
9c6a1327
TT
86982020-04-24 Tom Tromey <tromey@adacore.com>
8699
8700 * dwarf2/read.c (struct variant_field): Rewrite.
8701 (struct variant_part_builder): New.
8702 (struct nextfield): Remove "variant" field. Add "offset".
8703 (struct field_info): Add "current_variant_part" and
8704 "variant_parts".
8705 (alloc_discriminant_info): Remove.
8706 (alloc_rust_variant): New function.
8707 (quirk_rust_enum): Update.
8708 (dwarf2_add_field): Set "offset" member. Don't handle
8709 DW_TAG_variant_part.
8710 (offset_map_type): New typedef.
8711 (convert_variant_range, create_one_variant)
8712 (create_one_variant_part, create_variant_parts)
8713 (add_variant_property): New functions.
8714 (dwarf2_attach_fields_to_type): Call add_variant_property.
8715 (read_structure_type): Don't handle DW_TAG_variant_part.
8716 (handle_variant_part, handle_variant): New functions.
8717 (handle_struct_member_die): Use them.
8718 (process_structure_scope): Don't handle variant parts.
8719 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8720 (struct discriminant_info): Remove.
8721 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8722 (struct main_type) <flag_discriminated_union>: Remove.
8723 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8724 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8725 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8726 Update.
8727 * valops.c (value_union_variant): Remove.
8728 * value.h (value_union_variant): Don't declare.
8729
b249d2c2
TT
87302020-04-24 Tom Tromey <tromey@adacore.com>
8731
8732 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8733 (ada_value_primitive_packed_val): Update.
8734 * ada-valprint.c (ada_value_print_1): Update.
8735 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8736 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8737 just an address. Use evaluate_for_locexpr_baton.
8738 (dwarf2_evaluate_property): Update.
8739 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8740 array_view.
8741 * findvar.c (default_read_var_value): Update.
8742 * gdbtypes.c (compute_variant_fields_inner)
8743 (resolve_dynamic_type_internal): Update.
8744 (resolve_dynamic_type): Change type of valaddr parameter.
8745 * gdbtypes.h (resolve_dynamic_type): Update.
8746 * valarith.c (value_subscripted_rvalue): Update.
8747 * value.c (value_from_contents_and_address): Update.
8748
61122aa9
TT
87492020-04-24 Tom Tromey <tromey@adacore.com>
8750
8751 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8752 "push_initial_value" parameter.
8753 (dwarf2_evaluate_property): Likewise.
8754 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8755
ef83a141
TT
87562020-04-24 Tom Tromey <tromey@adacore.com>
8757
8758 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8759 (variant::matches, compute_variant_fields_recurse)
8760 (compute_variant_fields_inner, compute_variant_fields): New
8761 functions.
8762 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8763 Use resolved_type after type is made.
8764 (operator==): Add new cases.
8765 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8766 (struct discriminant_range, struct variant, struct variant_part):
8767 New.
8768 (union dynamic_prop_data) <variant_parts, original_type>: New
8769 members.
8770 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8771 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8772 constants.
8773 * value.c (unpack_bits_as_long): Now public.
8774 * value.h (unpack_bits_as_long): Declare.
8775
675127ec
TT
87762020-04-24 Tom Tromey <tromey@adacore.com>
8777
8778 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8779 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8780
9852ceef
HD
87812020-04-24 Hannes Domani <ssbssa@yahoo.de>
8782
8783 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8784
7632c6ce
KR
87852020-04-24 Kamil Rytarowski <n54@gmx.com>
8786
8787 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8788 (remove_fork_catchpoint, post_startup_inferior)
8789 (post_attach): Move...
8790 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8791 (remove_fork_catchpoint, post_startup_inferior)
8792 (post_attach): ...here.
8793 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8794 (remove_fork_catchpoint, post_startup_inferior)
8795 (post_attach): Move...
8796 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8797 (remove_fork_catchpoint, post_startup_inferior)
8798 (post_attach): ...here.
8799
7be2bb4f
TT
88002020-04-24 Tom Tromey <tromey@adacore.com>
8801
8802 * nat/windows-nat.h (struct windows_thread_info)
8803 <pc_adjusted>: New member.
8804 * windows-nat.c (windows_fetch_one_register): Check
8805 pc_adjusted.
8806 (windows_nat_target::get_windows_debug_event)
8807 (windows_nat_target::wait): Set pc_adjusted.
8808
f80cb3b4
TV
88092020-04-24 Tom de Vries <tdevries@suse.de>
8810
8811 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8812 Run gdb-add-index inside temp dir.
8813
29514b87
TT
88142020-04-23 Tom Tromey <tromey@adacore.com>
8815
8816 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8817 in loop.
8818
5939967b
LM
88192020-04-23 Luis Machado <luis.machado@linaro.org>
8820
8821 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8822 get_frame_register instead of gdbarch_unwind_pc.
8823
70bc38f5
TV
88242020-04-23 Tom de Vries <tdevries@suse.de>
8825
8826 * symtab.c (lookup_global_symbol): Prefer def over decl.
8827
de82891c
TV
88282020-04-23 Tom de Vries <tdevries@suse.de>
8829
8830 PR symtab/25807
8831 * block.c (best_symbol, better_symbol): Promote to external.
8832 * block.h (best_symbol, better_symbol): Declare.
8833 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8834 decl.
8835
ecc6c606
TT
88362020-04-23 Tom Tromey <tromey@adacore.com>
8837
8838 PR ada/25837:
8839 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8840 "const char *", not a "const std::string &".
8841 <name_and_matcher::operator==>: Update.
8842 * unittests/lookup_name_info-selftests.c: Change type of
8843 "result".
8844
740480b8
TT
88452020-04-23 Tom Tromey <tom@tromey.com>
8846
8847 * inferior.h (iterate_over_inferiors): Don't declare.
8848 * inferior.c (iterate_over_inferiors): Remove.
8849 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8850 Remove.
8851 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8852 use iterate_over_inferiors.
8853 (darwin_resume_inferior_it)
8854 (struct resume_inferior_threads_param)
8855 (darwin_resume_inferior_threads_it): Remove.
8856 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8857
ae3ab1f0
TV
88582020-04-23 Tom de Vries <tdevries@suse.de>
8859
8860 * blockframe.c (find_pc_partial_function): Use
8861 find_pc_sect_compunit_symtab rather than
8862 objfile->sf->qf->find_pc_sect_compunit_symtab.
8863
317d2668
TV
88642020-04-22 Tom de Vries <tdevries@suse.de>
8865
8866 PR symtab/25764
8867 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8868 in psymtabs.
8869
eea9e357
TV
88702020-04-22 Tom de Vries <tdevries@suse.de>
8871
8872 PR symtab/25801
8873 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8874 symtabs.
8875
3d5afab3
TV
88762020-04-22 Tom de Vries <tdevries@suse.de>
8877
8878 PR symtab/25700
8879 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8880 CU if already created.
8881
d43b7a2d
TBA
88822020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8883
8884 * infrun.c (displaced_step_fixup): Switch to the event_thread
8885 before calling displaced_step_restore, not after.
8886
d89edf9b
MM
88872020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8888
8889 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8890 its inferior is not recorded by us.
8891 (record_btrace_target_open): Replace call to
8892 all_non_exited_threads () with call to current_inferior
8893 ()->non_exited_threads ().
8894 (record_btrace_target::stop_recording): Likewise.
8895 (record_btrace_target::close): Likewise.
8896 (record_btrace_target::wait): Likewise.
8897 (record_btrace_target::record_stop_replaying): Likewise.
8898
5897fd49
MM
88992020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8900
8901 * btrace.c (btrace_enable): Throw an error on double enables and
8902 when enabling recording fails.
8903 (btrace_disable): Throw an error if the thread is not recorded.
8904
1a476b6d
MM
89052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8906
8907 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8908 request if we do not have a thread_info.
8909
4778a5f8
TV
89102020-04-21 Tom de Vries <tdevries@suse.de>
8911
8912 PR gdb/25471
8913 * thread.c
8914 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8915 exception in get_frame_id.
8916
0fa7617d
TT
89172020-04-20 Tom Tromey <tromey@adacore.com>
8918
8919 * python/python.c (struct gdbpy_event): Mark move constructor as
8920 noexcept.
8921 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8922 constructor as noexcept.
8923 * completer.h (struct completion_result): Mark move constructor as
8924 noexcept.
8925 * completer.c (completion_result::completion_result): Use
8926 initialization style. Don't call reset_match_list.
8927
ad23bda0
MS
89282020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8929
8930 * MAINTAINERS (Write After Approval): Add myself.
8931
45e1f031
TT
89322020-04-18 Tom Tromey <tom@tromey.com>
8933
8934 * windows-tdep.c (init_w32_command_list)
8935 (w32_prefix_command_valid): Restore.
8936 (_initialize_windows_tdep): Call init_w32_command_list.
8937
08feed99
TT
89382020-04-18 Tom Tromey <tom@tromey.com>
8939
8940 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8941 * value.c (value_fn_field): Update.
8942 * valops.c (find_function_in_inferior)
8943 (value_allocate_space_in_inferior): Update.
8944 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8945 Update.
8946 * tui/tui-source.c (tui_source_window::set_contents): Update.
8947 * symtab.c (lookup_global_or_static_symbol)
8948 (find_function_start_sal_1, skip_prologue_sal)
8949 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8950 * symmisc.c (dump_msymbols, dump_symtab_1)
8951 (maintenance_print_one_line_table): Update.
8952 * symfile.c (init_entry_point_info, section_is_mapped)
8953 (list_overlays_command, simple_read_overlay_table)
8954 (simple_overlay_update_1): Update.
8955 * stap-probe.c (handle_stap_probe): Update.
8956 * stabsread.c (dbx_init_float_type, define_symbol)
8957 (read_one_struct_field, read_enum_type, read_range_type): Update.
8958 * source.c (info_line_command): Update.
8959 * python/python.c (gdbpy_source_objfile_script)
8960 (gdbpy_execute_objfile_script): Update.
8961 * python/py-type.c (save_objfile_types): Update.
8962 * python/py-objfile.c (py_free_objfile): Update.
8963 * python/py-inferior.c (python_new_objfile): Update.
8964 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8965 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8966 (maintenance_check_psymtabs): Update.
8967 * printcmd.c (info_address_command): Update.
8968 * objfiles.h (struct objfile) <arch>: New method, from
8969 get_objfile_arch.
8970 (get_objfile_arch): Don't declare.
8971 * objfiles.c (get_objfile_arch): Remove.
8972 (filter_overlapping_sections): Update.
8973 * minsyms.c (msymbol_is_function): Update.
8974 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8975 (output_nondebug_symbol): Update.
8976 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8977 (mdebug_expand_psymtab): Update.
8978 * machoread.c (macho_add_oso_symfile): Update.
8979 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8980 Update.
8981 * linux-fork.c (checkpoint_command): Update.
8982 * linespec.c (convert_linespec_to_sals): Update.
8983 * jit.c (finalize_symtab): Update.
8984 * infrun.c (insert_exception_resume_from_probe): Update.
8985 * ia64-tdep.c (ia64_find_unwind_table): Update.
8986 * hppa-tdep.c (internalize_unwinds): Update.
8987 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8988 Update.
8989 * gcore.c (call_target_sbrk): Update.
8990 * elfread.c (record_minimal_symbol, elf_symtab_read)
8991 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8992 (elf_gnu_ifunc_resolve_by_got): Update.
8993 * dwarf2/read.c (create_addrmap_from_index)
8994 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8995 (read_debug_names_from_section)
8996 (process_psymtab_comp_unit_reader, add_partial_symbol)
8997 (add_partial_subprogram, process_full_comp_unit)
8998 (read_file_scope, read_func_scope, read_lexical_block_scope)
8999 (read_call_site_scope, dwarf2_ranges_read)
9000 (dwarf2_record_block_ranges, dwarf2_add_field)
9001 (mark_common_block_symbol_computed, read_tag_pointer_type)
9002 (read_tag_string_type, dwarf2_init_float_type)
9003 (dwarf2_init_complex_target_type, read_base_type)
9004 (partial_die_info::read, partial_die_info::read)
9005 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9006 (dwarf2_fetch_die_loc_sect_off): Update.
9007 * dwarf2/loc.c (dwarf2_find_location_expression)
9008 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9009 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9010 (dwarf2_loc_desc_get_symbol_read_needs)
9011 (locexpr_describe_location_piece, locexpr_describe_location_1)
9012 (loclist_describe_location): Update.
9013 * dwarf2/index-write.c (write_debug_names): Update.
9014 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9015 * dtrace-probe.c (dtrace_process_dof): Update.
9016 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9017 (process_one_symbol): Update.
9018 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9019 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9020 (coff_read_enum_type): Update.
9021 * cli/cli-cmds.c (edit_command, list_command): Update.
9022 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9023 * breakpoint.c (create_overlay_event_breakpoint)
9024 (create_longjmp_master_breakpoint)
9025 (create_std_terminate_master_breakpoint)
9026 (create_exception_master_breakpoint, get_sal_arch): Update.
9027 * block.c (block_gdbarch): Update.
9028 * annotate.c (annotate_source_line): Update.
9029
0743fc83
TT
90302020-04-17 Tom Tromey <tromey@adacore.com>
9031
9032 * auto-load.c (show_auto_load_cmd): Remove.
9033 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9034 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9035 (maintenance_print_arc_command): Remove.
9036 * tui/tui-win.c (tui_command): Remove.
9037 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9038 * tui/tui-layout.c (tui_layout_command): Remove.
9039 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9040 * python/python.c (user_set_python, user_show_python): Remove.
9041 (_initialize_python): Use add_basic_prefix_cmd,
9042 add_show_prefix_cmd.
9043 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9044 (install_gdb_commands): Use add_basic_prefix_cmd,
9045 add_show_prefix_cmd.
9046 (info_guile_command): Remove.
9047 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9048 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9049 add_show_prefix_cmd.
9050 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9051 Remove do_set and do_show parameters.
9052 * cli/cli-style.c (set_style, show_style): Remove.
9053 (_initialize_cli_style): Use add_basic_prefix_cmd,
9054 add_show_prefix_cmd.
9055 (cli_style_option::add_setshow_commands): Remove do_set and
9056 do_show parameters.
9057 (cli_style_option::add_setshow_commands): Use
9058 add_basic_prefix_cmd, add_show_prefix_cmd.
9059 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9060 (set_style_name): Remove.
9061 * cli/cli-dump.c (dump_command, append_command): Remove.
9062 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9063 (tekhex_dump_command, binary_dump_command)
9064 (binary_append_command): Remove.
9065 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9066 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9067 (init_w32_command_list): Remove; move into ...
9068 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9069 * valprint.c (set_print, show_print, set_print_raw)
9070 (show_print_raw): Remove.
9071 (_initialize_valprint): Use add_basic_prefix_cmd,
9072 add_show_prefix_cmd.
9073 * typeprint.c (set_print_type, show_print_type): Remove.
9074 (_initialize_typeprint): Use add_basic_prefix_cmd,
9075 add_show_prefix_cmd.
9076 * record.c (set_record_command, show_record_command): Remove.
9077 (_initialize_record): Use add_basic_prefix_cmd,
9078 add_show_prefix_cmd.
9079 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9080 add_show_prefix_cmd.
9081 (info_command, show_command, set_debug, show_debug): Remove.
9082 * top.h (set_history, show_history): Don't declare.
9083 * top.c (set_history, show_history): Remove.
9084 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9085 (unset_tdesc_cmd): Remove.
9086 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9087 add_show_prefix_cmd.
9088 * symtab.c (info_module_command): Remove.
9089 (_initialize_symtab): Use add_basic_prefix_cmd.
9090 * symfile.c (overlay_command): Remove.
9091 (_initialize_symfile): Use add_basic_prefix_cmd.
9092 * sparc64-tdep.c (info_adi_command): Remove.
9093 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9094 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9095 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9096 add_show_prefix_cmd.
9097 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9098 (_initialize_serial): Use add_basic_prefix_cmd,
9099 add_show_prefix_cmd.
9100 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9101 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9102 add_show_prefix_cmd.
9103 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9104 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9105 add_show_prefix_cmd.
9106 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9107 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9108 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9109 add_show_prefix_cmd.
9110 * remote.c (remote_command, set_remote_cmd): Remove.
9111 (_initialize_remote): Use add_basic_prefix_cmd.
9112 * record-full.c (set_record_full_command)
9113 (show_record_full_command): Remove.
9114 (_initialize_record_full): Use add_basic_prefix_cmd,
9115 add_show_prefix_cmd.
9116 * record-btrace.c (cmd_set_record_btrace)
9117 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9118 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9119 (cmd_show_record_btrace_pt): Remove.
9120 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9121 add_show_prefix_cmd.
9122 * ravenscar-thread.c (set_ravenscar_command)
9123 (show_ravenscar_command): Remove.
9124 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9125 add_show_prefix_cmd.
9126 * mips-tdep.c (show_mips_command, set_mips_command)
9127 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9128 add_show_prefix_cmd.
9129 * maint.c (maintenance_command, maintenance_info_command)
9130 (maintenance_check_command, maintenance_print_command)
9131 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9132 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9133 add_show_prefix_cmd.
9134 (show_per_command_cmd): Remove.
9135 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9136 Remove.
9137 (maintenance_show_test_settings_cmd): Remove.
9138 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9139 add_show_prefix_cmd.
9140 * maint-test-options.c (maintenance_test_options_command):
9141 Remove.
9142 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9143 * macrocmd.c (macro_command): Remove
9144 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9145 * language.c (set_check, show_check): Remove.
9146 (_initialize_language): Use add_basic_prefix_cmd,
9147 add_show_prefix_cmd.
9148 * infcmd.c (unset_command): Remove.
9149 (_initialize_infcmd): Use add_basic_prefix_cmd.
9150 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9151 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9152 add_show_prefix_cmd.
9153 * go32-nat.c (go32_info_dos_command): Remove.
9154 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9155 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9156 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9157 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9158 (_initialize_frame): Use add_basic_prefix_cmd,
9159 add_show_prefix_cmd.
9160 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9161 (_initialize_dcache): Use add_basic_prefix_cmd,
9162 add_show_prefix_cmd.
9163 * cp-support.c (maint_cplus_command): Remove.
9164 (_initialize_cp_support): Use add_basic_prefix_cmd.
9165 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9166 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9167 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9168 add_basic_prefix_cmd, add_show_prefix_cmd.
9169 * breakpoint.c (save_command): Remove.
9170 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9171 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9172 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9173 add_show_prefix_cmd.
9174 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9175 (set_ada_command, show_ada_command): Remove.
9176 (_initialize_ada_language): Use add_basic_prefix_cmd,
9177 add_show_prefix_cmd.
9178 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9179
3557f442
KR
91802020-04-16 Kamil Rytarowski <n54@gmx.com>
9181
9182 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9183 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9184
16197208
SM
91852020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9186
9187 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9188 warning messages.
9189
00ac85d3
SM
91902020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9191
9192 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9193 import table is not at beginning of .idata section.
9194
381ce63f
PA
91952020-04-16 Pedro Alves <palves@redhat.com>
9196
9197 * inferior.c (delete_inferior): Use delete operator directly
9198 instead of delete_program_space.
9199 * progspace.c (add_program_space): New, factored out from
9200 program_space::program_space.
9201 (remove_program_space): New, factored out from
9202 delete_program_space.
9203 (program_space::program_space): Remove intro comment. Rewrite.
9204 (program_space::~program_space): Remove intro comment. Call
9205 remove_program_space.
9206 (delete_program_space): Delete.
9207 * progspace.h (program_space::program_space): Make explicit. Move
9208 intro comment here, adjusted.
9209 (program_space::~program_space): Move intro comment here,
9210 adjusted.
9211 (delete_program_space): Remove.
9212
a010605f
TT
92132020-04-16 Tom Tromey <tromey@adacore.com>
9214
9215 * windows-nat.c (windows_nat::handle_access_violation): New
9216 function.
9217 * nat/windows-nat.h (handle_access_violation): Declare.
9218 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9219 windows-nat.c. Call handle_access_violation.
9220
efba5c23
TV
92212020-04-16 Tom de Vries <tdevries@suse.de>
9222
9223 PR symtab/25791
9224 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9225 CUs without psymtab.
9226
97ed802d
KB
92272020-04-16 Kevin Buettner <kevinb@redhat.com>
9228
9229 * python/python.c (do_start_initialization): Don't call
9230 PyEval_InitThreads for Python 3.9 and beyond.
9231
c7d64809
KR
92322020-04-15 Kamil Rytarowski <n54@gmx.com>
9233
9234 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9235 thread functions.
9236 (obsd_nat_target::wait): Likewise.
9237
ce127a96
TT
92382020-04-15 Tom Tromey <tromey@adacore.com>
9239
9240 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9241 (DEBUG_EXCEPT): Use debug_printf.
9242
99f1bc6a
AB
92432020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9244
9245 * completer.c (class completion_tracker::completion_hash_entry)
9246 <hash_name>: New member function.
9247 (completion_tracker::discard_completions): New callback to hash a
9248 completion_hash_entry, pass this to htab_create_alloc.
9249
a0e9b532
JT
92502016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9251
9252 * windows-nat.c (windows_make_so): Warn rather than stopping with
9253 an error if realpath() fails.
9254
06ca5dd4
KR
92552020-04-14 Kamil Rytarowski <n54@gmx.com>
9256
9257 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9258 (nbsd_nat_target::info_proc): Add do_status.
9259
194d088f
TV
92602020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9261 Tom de Vries <tdevries@suse.de>
9262
9263 PR symtab/25718
9264 * psympriv.h (struct partial_symtab::read_symtab)
9265 (struct partial_symtab::expand_psymtab)
9266 (struct partial_symtab::read_dependencies): Update comments.
9267 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9268 read_symtab for includer.
9269 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9270 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9271 (struct dwarf2_include_psymtab::m_readin): Remove.
9272 (struct dwarf2_include_psymtab::includer): New member function.
9273 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9274
c1a66c06
TV
92752020-04-14 Tom de Vries <tdevries@suse.de>
9276
9277 PR symtab/25720
9278 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9279 with NULL symbol_matcher and lookup_name.
9280 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9281 and lookup_name.
9282 * dwarf2/read.c (dw2_expand_symtabs_matching)
9283 (dw2_debug_names_expand_symtabs_matching): Same.
9284 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9285 Make lookup_name a pointer. Update comment.
9286 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9287 lookup_name being a pointer.
9288 * symfile.c (expand_symtabs_matching): Same.
9289 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9290 * linespec.c (iterate_over_all_matching_symtabs): Same.
9291
400b5eca
TT
92922020-04-13 Tom Tromey <tom@tromey.com>
9293
9294 * run-on-main-thread.c: Update include.
9295 * unittests/main-thread-selftests.c: Update include.
9296 * tui/tui-win.c: Update include.
9297 * tui/tui-io.c: Update include.
9298 * tui/tui-interp.c: Update include.
9299 * tui/tui-hooks.c: Update include.
9300 * top.h: Update include.
9301 * top.c: Update include.
9302 * ser-base.c: Update include.
9303 * remote.c: Update include.
9304 * remote-notif.c: Update include.
9305 * remote-fileio.c: Update include.
9306 * record-full.c: Update include.
9307 * record-btrace.c: Update include.
9308 * python/python.c: Update include.
9309 * posix-hdep.c: Update include.
9310 * mingw-hdep.c: Update include.
9311 * mi/mi-main.c: Update include.
9312 * mi/mi-interp.c: Update include.
9313 * main.c: Update include.
9314 * linux-nat.c: Update include.
9315 * interps.c: Update include.
9316 * infrun.c: Update include.
9317 * inf-loop.c: Update include.
9318 * event-top.c: Update include.
9319 * event-loop.c: Move to ../gdbsupport/.
9320 * event-loop.h: Move to ../gdbsupport/.
9321 * async-event.h: Update include.
9322 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9323
93b54c8e
TT
93242020-04-13 Tom Tromey <tom@tromey.com>
9325
9326 * tui/tui-win.c: Include async-event.h.
9327 * remote.c: Include async-event.h.
9328 * remote-notif.c: Include async-event.h.
9329 * record-full.c: Include async-event.h.
9330 * record-btrace.c: Include async-event.h.
9331 * infrun.c: Include async-event.h.
9332 * event-top.c: Include async-event.h.
9333 * event-loop.h: Move some declarations to async-event.h.
9334 * event-loop.c: Don't include ser-event.h or top.h. Move some
9335 code to async-event.c.
9336 * async-event.h: New file.
9337 * async-event.c: New file.
9338 * Makefile.in (COMMON_SFILES): Add async-event.c.
9339 (HFILES_NO_SRCDIR): Add async-event.h.
9340
c1cd3163
TT
93412020-04-13 Tom Tromey <tom@tromey.com>
9342
9343 * utils.c (flush_streams): New function.
9344 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9345
29f2bf4f
TT
93462020-04-13 Tom Tromey <tom@tromey.com>
9347
9348 * event-loop.c (handle_file_event): Use warning, not
9349 printf_unfiltered.
9350
98029d02
TT
93512020-04-13 Tom Tromey <tom@tromey.com>
9352
9353 * event-loop.c: Include <chrono>.
9354
06cc9596
TT
93552020-04-13 Tom Tromey <tom@tromey.com>
9356
9357 * gdb_select.h: Move to ../gdbsupport/.
9358 * event-loop.c: Update include path.
9359 * top.c: Update include path.
9360 * ser-base.c: Update include path.
9361 * ui-file.c: Update include path.
9362 * ser-tcp.c: Update include path.
9363 * guile/scm-ports.c: Update include path.
9364 * posix-hdep.c: Update include path.
9365 * ser-unix.c: Update include path.
9366 * gdb_usleep.c: Update include path.
9367 * mingw-hdep.c: Update include path.
9368 * inflow.c: Update include path.
9369 * infrun.c: Update include path.
9370 * event-top.c: Update include path.
9371
8ae8e197
TT
93722020-04-13 Tom Tromey <tom@tromey.com>
9373
9374 * configure: Rebuild.
9375 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9376
58cf28e8
TT
93772020-04-13 Tom Tromey <tom@tromey.com>
9378
9379 * event-loop.h (start_event_loop): Don't declare.
9380 * event-loop.c (start_event_loop): Move...
9381 * main.c (start_event_loop): ...here. Now static.
9382
b7f999ae
SDJ
93832020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9384
9385 * MAINTAINERS: Update my email address.
9386
1085dfd4
KR
93872020-04-12 Kamil Rytarowski <n54@gmx.com>
9388
9389 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9390 IP_ALL.
9391
49d1d1f5
KR
93922020-04-12 Kamil Rytarowski <n54@gmx.com>
9393
9394 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9395 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9396
b4848d2a
KR
93972020-04-12 Kamil Rytarowski <n54@gmx.com>
9398
9399 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9400 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9401
51c133d5
KR
94022020-04-12 Kamil Rytarowski <n54@gmx.com>
9403
9404 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9405
54b8cbd0
KR
94062020-04-11 Kamil Rytarowski <n54@gmx.com>
9407
9408 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9409 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9410 (nbsd_nat_target::info_proc): New functions.
9411 * nbsd-nat.c (kinfo_get_vmmap): New function.
9412 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9413 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9414 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9415 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9416 functions.
9417 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9418 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9419 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9420 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9421 (KINFO_VME_FLAG_GROWS_DOWN): New.
9422
cf83625d
AS
94232020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9424
9425 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9426 bit shift.
9427
0c4311ab
TT
94282020-04-10 Tom Tromey <tromey@adacore.com>
9429
9430 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9431
3e65b3e9
TT
94322020-04-10 Tom Tromey <tromey@adacore.com>
9433
9434 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9435 separate debug files.
9436
13302e95
HD
94372020-04-10 Hannes Domani <ssbssa@yahoo.de>
9438
9439 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9440 Move to...
9441 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9442 ... here.
9443 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9444 Check for STATUS_WX86_BREAKPOINT.
9445 (windows_nat_target::wait): Same.
9446
bdfc1e8a
TV
94472020-04-10 Tom de Vries <tdevries@suse.de>
9448
9449 PR cli/25808
9450 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9451
f4460aec
SM
94522020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9453
9454 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9455 (Write After Approval): Remove Tom de Vries.
9456
a25198bb
BE
94572020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9458
9459 revert partially:
9460 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9461
aac66a4c
SM
9462 * buildsym.c (record_line): Fix undefined behavior and preserve
9463 lines at eof.
a25198bb 9464
206c98a6
KR
94652020-04-09 Kamil Rytarowski <n54@gmx.com>
9466
9467 * auxv.h (svr4_auxv_parse): New.
9468 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9469 and generic_auxv_parse.
9470 (svr4_auxv_parse): Add.
9471 * obsd-tdep.c: Include "auxv.h".
9472 (obsd_auxv_parse): Remove.
9473 (obsd_init_abi): Remove comment.
9474 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9475 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9476 * nbsd-tdep.c: Include "auxv.h".
9477 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9478
71fbdbaf
TT
94792020-04-08 Tom Tromey <tromey@adacore.com>
9480
9481 * nat/windows-nat.h (last_wait_event): Don't declare.
9482 (wait_for_debug_event): Update comment.
9483 * nat/windows-nat.c (last_wait_event): Now static.
9484
2c1d95e8
TT
94852020-04-08 Tom Tromey <tromey@adacore.com>
9486
9487 * windows-nat.c (wait_for_debug_event): Move to
9488 nat/windows-nat.c.
9489 * nat/windows-nat.h (wait_for_debug_event): Declare.
9490 * nat/windows-nat.c (wait_for_debug_event): Move from
9491 windows-nat.c. No longer static.
9492
d2977bc4
TT
94932020-04-08 Tom Tromey <tromey@adacore.com>
9494
9495 * windows-nat.c (get_windows_debug_event): Use
9496 fetch_pending_stop.
9497 * nat/windows-nat.h (fetch_pending_stop): Declare.
9498 * nat/windows-nat.c (fetch_pending_stop): New function.
9499
e758e19c
TT
95002020-04-08 Tom Tromey <tromey@adacore.com>
9501
9502 * windows-nat.c (windows_continue): Use matching_pending_stop and
9503 continue_last_debug_event.
9504 * nat/windows-nat.h (matching_pending_stop)
9505 (continue_last_debug_event): Declare.
9506 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9507 (matching_pending_stop, continue_last_debug_event): New
9508 functions.
9509
8d30e395
TT
95102020-04-08 Tom Tromey <tromey@adacore.com>
9511
9512 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9513 (handle_exception_result): Move to nat/windows-nat.h.
9514 (DEBUG_EXCEPTION_SIMPLE): Remove.
9515 (windows_nat::handle_ms_vc_exception): New function.
9516 (handle_exception): Move to nat/windows-nat.c.
9517 (get_windows_debug_event): Update.
9518 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9519 nat/windows-nat.c.
9520 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9521 (handle_exception_result): Move from windows-nat.c.
9522 (handle_exception): Declare.
9523 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9524 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9525 windows-nat.c.
9526
29de418d
TT
95272020-04-08 Tom Tromey <tromey@adacore.com>
9528
9529 * windows-nat.c (exception_count, event_count): Remove.
9530 (handle_exception, get_windows_debug_event)
9531 (do_initial_windows_stuff): Update.
9532
a816ba18
TT
95332020-04-08 Tom Tromey <tromey@adacore.com>
9534
9535 * windows-nat.c (windows_nat::handle_load_dll)
9536 (windows_nat::handle_unload_dll): Rename. No longer static.
9537 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9538 Declare.
9539
a00caa12
TT
95402020-04-08 Tom Tromey <tromey@adacore.com>
9541
9542 * complaints.h (stop_whining): Declare at top-level.
9543 (complaint): Don't declare stop_whining.
9544
d41b524f
TT
95452020-04-08 Tom Tromey <tromey@adacore.com>
9546
9547 * windows-nat.c (windows_nat::handle_output_debug_string):
9548 Rename. No longer static.
9549 * nat/windows-nat.h (handle_output_debug_string): Declare.
9550
3c76026d
TT
95512020-04-08 Tom Tromey <tromey@adacore.com>
9552
9553 * windows-nat.c (current_process_handle, current_process_id)
9554 (main_thread_id, last_sig, current_event, last_wait_event)
9555 (current_windows_thread, desired_stop_thread_id, pending_stops)
9556 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9557 (display_selectors, fake_create_process)
9558 (get_windows_debug_event): Update.
9559 * nat/windows-nat.h (current_process_handle, current_process_id)
9560 (main_thread_id, last_sig, current_event, last_wait_event)
9561 (current_windows_thread, desired_stop_thread_id, pending_stops)
9562 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9563 * nat/windows-nat.c (current_process_handle, current_process_id)
9564 (main_thread_id, last_sig, current_event, last_wait_event)
9565 (current_windows_thread, desired_stop_thread_id, pending_stops)
9566 (siginfo_er): New globals. Move from windows-nat.c.
9567
9d8679cc
TT
95682020-04-08 Tom Tromey <tromey@adacore.com>
9569
9570 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9571 (handle_load_dll): Update.
9572 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9573
28688adf
TT
95742020-04-08 Tom Tromey <tromey@adacore.com>
9575
9576 * windows-nat.c (enum thread_disposition_type): Move to
9577 nat/windows-nat.h.
9578 (windows_nat::thread_rec): Rename from thread_rec. No longer
9579 static.
9580 (windows_add_thread, windows_nat_target::fetch_registers)
9581 (windows_nat_target::store_registers, handle_exception)
9582 (windows_nat_target::resume, get_windows_debug_event)
9583 (windows_nat_target::get_tib_address)
9584 (windows_nat_target::thread_name)
9585 (windows_nat_target::thread_alive): Update.
9586 * nat/windows-nat.h (enum thread_disposition_type): Move from
9587 windows-nat.c.
9588 (thread_rec): Declare.
9589
4834dad0
TT
95902020-04-08 Tom Tromey <tromey@adacore.com>
9591
9592 * windows-nat.c: Add "using namespace".
9593 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9594 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9595
65bafd5b
TT
95962020-04-08 Tom Tromey <tromey@adacore.com>
9597
9598 * nat/windows-nat.h (struct windows_thread_info): Declare
9599 destructor.
9600 * nat/windows-nat.c (~windows_thread_info): New.
9601
0a4afda3
TT
96022020-04-08 Tom Tromey <tromey@adacore.com>
9603
9604 PR gdb/22992
9605 * windows-nat.c (current_event): Update comment.
9606 (last_wait_event, desired_stop_thread_id): New globals.
9607 (struct pending_stop): New.
9608 (pending_stops): New global.
9609 (windows_nat_target) <stopped_by_sw_breakpoint>
9610 <supports_stopped_by_sw_breakpoint>: New methods.
9611 (windows_fetch_one_register): Add assertions. Adjust PC.
9612 (windows_continue): Handle pending stops. Suspend other threads
9613 when stepping. Use last_wait_event
9614 (wait_for_debug_event): New function.
9615 (get_windows_debug_event): Use wait_for_debug_event. Handle
9616 pending stops. Queue spurious stops.
9617 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9618 (windows_nat_target::kill): Use wait_for_debug_event.
9619 * nat/windows-nat.h (struct windows_thread_info)
9620 <stopped_at_software_breakpoint>: New field.
9621 * nat/windows-nat.c (windows_thread_info::resume): Clear
9622 stopped_at_software_breakpoint.
9623
8e61ebec
TT
96242020-04-08 Tom Tromey <tromey@adacore.com>
9625
9626 * windows-nat.c (enum thread_disposition_type): New.
9627 (thread_rec): Replace "get_context" parameter with "disposition";
9628 change type.
9629 (windows_add_thread, windows_nat_target::fetch_registers)
9630 (windows_nat_target::store_registers, handle_exception)
9631 (windows_nat_target::resume, get_windows_debug_event)
9632 (windows_nat_target::get_tib_address)
9633 (windows_nat_target::thread_name)
9634 (windows_nat_target::thread_alive): Update.
9635
98a03287
TT
96362020-04-08 Tom Tromey <tromey@adacore.com>
9637
9638 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9639 (windows_continue): Use windows_continue::resume.
9640 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9641 resume>: Declare new methods.
9642 * nat/windows-nat.c: New file.
9643 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9644
7c7411bc
TT
96452020-04-08 Tom Tromey <tromey@adacore.com>
9646
9647 * windows-nat.c (windows_add_thread, windows_delete_thread)
9648 (windows_nat_target::fetch_registers)
9649 (windows_nat_target::store_registers, fake_create_process)
9650 (windows_nat_target::resume, windows_nat_target::resume)
9651 (get_windows_debug_event, windows_nat_target::wait)
9652 (windows_nat_target::pid_to_str)
9653 (windows_nat_target::get_tib_address)
9654 (windows_nat_target::get_ada_task_ptid)
9655 (windows_nat_target::thread_name)
9656 (windows_nat_target::thread_alive): Use lwp, not tid.
9657
2950fdf7
TT
96582020-04-08 Tom Tromey <tromey@adacore.com>
9659
9660 * windows-nat.c (handle_exception)
9661 (windows_nat_target::thread_name): Update.
9662 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9663 <name>: Now unique_xmalloc_ptr.
9664
62fe396b
TT
96652020-04-08 Tom Tromey <tromey@adacore.com>
9666
9667 * windows-nat.c (thread_rec)
9668 (windows_nat_target::fetch_registers): Update.
9669 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9670 Update comment.
9671 <debug_registers_changed, reload_context>: Now bool.
9672
e9534bd2
TT
96732020-04-08 Tom Tromey <tromey@adacore.com>
9674
9675 * windows-nat.c (windows_add_thread): Use new.
9676 (windows_init_thread_list, windows_delete_thread): Use delete.
9677 (get_windows_debug_event): Update.
9678 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9679 destructor, and initializers.
9680
ae1f8880
TT
96812020-04-08 Tom Tromey <tromey@adacore.com>
9682
9683 * windows-nat.c (struct windows_thread_info): Remove.
9684 * nat/windows-nat.h: New file.
9685
55a1e039
TT
96862020-04-08 Tom Tromey <tromey@adacore.com>
9687
9688 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9689 (thread_rec, windows_add_thread, windows_delete_thread)
9690 (windows_continue): Update.
9691
93366324
TT
96922020-04-08 Tom Tromey <tromey@adacore.com>
9693
9694 * windows-nat.c (struct windows_thread_info): Remove typedef.
9695 (thread_head): Remove.
9696 (thread_list): New global.
9697 (thread_rec, windows_add_thread, windows_init_thread_list)
9698 (windows_delete_thread, windows_continue): Update.
9699
0f2265e2
SM
97002020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9701
9702 * windows-tdep.h (windows_init_abi): Add comment.
9703 (cygwin_init_abi): New declaration.
9704 * windows-tdep.c: Split signal enumeration in two, one for
9705 Windows and one for Cygwin.
9706 (windows_gdb_signal_to_target): Only deal with signal of the
9707 Windows OS ABI.
9708 (cygwin_gdb_signal_to_target): New function.
9709 (windows_init_abi): Rename to windows_init_abi_common, don't set
9710 gdb_signal_to_target gdbarch method. Add new new function with
9711 this name.
9712 (cygwin_init_abi): New function.
9713 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9714 comment. Don't call windows_init_abi.
9715 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9716 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9717 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9718 i386_windows_init_abi_common, don't call windows_init_abi. Add
9719 a new function of this name.
9720 (i386_cygwin_init_abi): New function.
9721 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9722 OS ABI Cygwin.
9723
3810f182
SM
97242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9725
9726 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9727 parameter.c.
9728 (dwarf2_read_gdb_index): Update.
9729
063f8e80
KR
97302020-04-07 Kamil Rytarowski <n54@gmx.com>
9731
9732 * nbsd-tdep.c: Include "objfiles.h".
9733 (nbsd_skip_solib_resolver): New.
9734 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9735
85a9510c 97362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9737
9738 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9739 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9740 with DW_LLE_base_addressx are being emitted in DWARFv5.
9741 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9742 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9743 unsigned integer.
9744
9fc3eaae 97452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9746
9747 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9748 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9749 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9750 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9751 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9752 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9753 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9754
9755
41144253 97562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9757
9758 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9759 (read_loclist_index): New function definition.
9760 (lookup_loclist_base): New function definition.
9761 (read_loclist_header): New function definition.
9762 (dwarf2_cu): Add loclist_base and loclist_header field.
9763 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9764 (read_full_die_1): Read the value of DW_AT_loclists_base.
9765 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9766 (read_attribute_value): Handle DW_FORM_loclistx.
9767 (skip_one_die): Handle DW_FORM_loclistx.
9768 (loclist_header): New structure declaration.
9769 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9770
9f4e76a4
SM
97712020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9772
9773 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9774 constructor. Remove `addr` parameter from other constructor and
9775 add `per_cu` parameter.
9776 * dwarf2/read.c (create_partial_symtab): Update.
9777
25c11aca
TV
97782020-04-07 Tom de Vries <tdevries@suse.de>
9779
9780 PR symtab/25796
9781 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9782 (partial_die_info::fixup): Inherit has_const_value.
9783
5707e24b
TV
97842020-04-07 Tom de Vries <tdevries@suse.de>
9785
9786 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9787 symbols without address.
9788
05f00e22
KR
97892020-04-06 Kamil Rytarowski <n54@gmx.com>
9790
9791 * nbsd-nat.h (struct thread_info): Add forward declaration.
9792 (nbsd_nat_target::thread_alive): Add.
9793 (nbsd_nat_target::thread_name): Likewise.
9794 (nbsd_nat_target::update_thread_list): Likewise.
9795 (update_thread_list::post_attach): Likewise.
9796 (post_attach::pid_to_str): Likewise.
9797 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9798 (nbsd_thread_lister): Add.
9799 (nbsd_nat_target::thread_alive): Likewise.
9800 (nbsd_nat_target::thread_name): Likewise.
9801 (nbsd_add_threads): Likewise.
9802 (update_thread_list::post_attach): Likewise.
9803 (nbsd_nat_target::update_thread_list): Likewise.
9804 (post_attach::pid_to_str): Likewise.
9805
6ee448cc
TT
98062020-04-06 Tom Tromey <tromey@adacore.com>
9807
9808 * ada-valprint.c (print_variant_part): Extract the variant field.
9809 (print_field_values): Use the field as the outer value when
9810 recursing.
9811
dea34e8c
TT
98122020-04-06 Tom Tromey <tromey@adacore.com>
9813
9814 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9815 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9816 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9817 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9818 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9819
93689ce9
TT
98202020-04-06 Tom Tromey <tromey@adacore.com>
9821
9822 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9823 TYPE_CODE_ERROR.
9824
79743962
KR
98252020-04-06 Kamil Rytarowski <n54@gmx.com>
9826
9827 * nbsd-tdep.c: Include "gdbarch.h".
9828 Define enum with NetBSD signal numbers.
9829 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9830 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9831 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9832 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9833 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9834 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9835 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9836 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9837 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9838 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9839 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9840 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9841
9e7c9a03
HD
98422020-04-03 Hannes Domani <ssbssa@yahoo.de>
9843
9844 PR gdb/25325
9845 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9846
d9e49b61
TT
98472020-04-03 Tom Tromey <tromey@adacore.com>
9848
9849 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9850 Read constant block.
9851
e0fc5c3f
SM
98522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9853
9854 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9855 (gdb_bfd_get_full_section_contents): New declaration.
9856 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9857 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9858 gdb_bfd_get_full_section_contents.
9859
e2ff18a0
SM
98602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9861
9862 * exec.c (build_section_table): Replace internal_error with
9863 gdb_assert.
9864 (section_table_xfer_memory_partial): Likewise.
9865 * mdebugread.c (parse_partial_symbols): Likewise.
9866 * psymtab.c (lookup_partial_symbol): Likewise.
9867 * utils.c (wrap_here): Likewise.
9868
0830d301
TT
98692020-04-02 Tom Tromey <tromey@adacore.com>
9870
9871 * f-lang.c (build_fortran_types): Use arch_type to initialize
9872 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9873
e7da7f8f
TT
98742020-04-02 Tom Tromey <tromey@adacore.com>
9875
9876 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9877 of attributes.
9878
c90d28ac
AB
98792020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9880 Bernd Edlinger <bernd.edlinger@hotmail.de>
9881 Tom Tromey <tromey@adacore.com>
9882
9883 * buildsym.c (buildsym_compunit::record_line): Remove
9884 deduplication code.
9885
1aa98955
TV
98862020-04-02 Tom de Vries <tdevries@suse.de>
9887
9888 PR ada/24671
9889 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9890
d3214198
TV
98912020-04-02 Tom de Vries <tdevries@suse.de>
9892
9893 * dwarf2/read.c (dwarf2_gdb_index_functions,
9894 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9895 NULL.
9896 * psymtab.c (psym_lookup_global_symbol_language): New function.
9897 (psym_functions): Init psym_lookup_global_symbol_language with
9898 psym_lookup_global_symbol_language.
9899 * symfile-debug.c (debug_sym_quick_functions): Init
9900 lookup_global_symbol_language with NULL.
9901 * symfile.c (set_initial_language): Remove fixme comment.
9902 * symfile.h (struct quick_symbol_functions): Add
9903 lookup_global_symbol_language.
9904 * symtab.c (find_quick_global_symbol_language): New function.
9905 (find_main_name): Use find_quick_global_symbol_language.
9906
2836752f
SM
99072020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9908
9909 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9910
64dc2d4b
BE
99112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9912
9913 * buildsym.c (record_line): Fix undefined behavior and preserve
9914 lines at eof.
9915
bbe3dc41
BE
99162020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9917
9918 * buildsym.c (record_line): Fix the resizing condition.
9919
6b4a335b
TT
99202020-04-01 Tom Tromey <tom@tromey.com>
9921
9922 * value.h (value_literal_complex): Add comment.
9923 * valops.c (value_literal_complex): Refer to value.h.
9924
3638a098
TT
99252020-04-01 Tom Tromey <tom@tromey.com>
9926
9927 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9928 (scalar_type): New rule, from typebase.
9929 (typebase): Use scalar_type. Recognize complex types.
9930 (field_name): Handle FLOAT_KEYWORD.
9931 (ident_tokens): Add _Complex and __complex__.
9932
c34e8714
TT
99332020-04-01 Tom Tromey <tom@tromey.com>
9934
9935 PR exp/25299:
9936 * valarith.c (promotion_type, complex_binop): New functions.
9937 (scalar_binop): Handle complex numbers. Use promotion_type.
9938 (value_pos, value_neg, value_complement): Handle complex numbers.
9939
fa649bb7
TT
99402020-04-01 Tom Tromey <tom@tromey.com>
9941
9942 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9943 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9944 (parse_number): Handle complex numbers.
9945
981c08ce
TT
99462020-04-01 Tom Tromey <tom@tromey.com>
9947
9948 * c-valprint.c (c_decorations): Change complex suffix to "i".
9949
4c99290d
TT
99502020-04-01 Tom Tromey <tom@tromey.com>
9951
9952 * valprint.c (generic_value_print_complex): Use accessors.
9953 * value.h (value_real_part, value_imaginary_part): Declare.
9954 * valops.c (value_real_part, value_imaginary_part): New
9955 functions.
9956 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9957
5b930b45
TT
99582020-04-01 Tom Tromey <tom@tromey.com>
9959
9960 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9961 (read_range_type): Update.
9962 * mdebugread.c (basic_type): Update.
9963 * go-lang.c (build_go_types): Use init_complex_type.
9964 * gdbtypes.h (struct main_type) <complex_type>: New member.
9965 (init_complex_type): Update.
9966 (arch_complex_type): Don't declare.
9967 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9968 Make name if none given. Use alloc_type_copy. Look for cached
9969 complex type.
9970 (arch_complex_type): Remove.
9971 (gdbtypes_post_init): Use init_complex_type.
9972 * f-lang.c (build_fortran_types): Use init_complex_type.
9973 * dwarf2/read.c (read_base_type): Update.
9974 * d-lang.c (build_d_types): Use init_complex_type.
9975 * ctfread.c (read_base_type): Update.
9976
53cccef1
TBA
99772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9978
9979 * infrun.c (stop_all_threads): Update assertion, plus when
9980 stopping threads, take into account that we might be trying
9981 to stop an all-stop target.
9982 (stop_waiting): Call 'stop_all_threads' if there exists a
9983 non-stop target.
9984
a0714d30
TBA
99852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9986
9987 * target.h (exists_non_stop_target): New function declaration.
9988 * target.c (exists_non_stop_target): New function.
9989
60e22c1e
HD
99902020-04-01 Hannes Domani <ssbssa@yahoo.de>
9991
9992 PR gdb/24789
9993 * eval.c (is_integral_or_integral_reference): New function.
9994 (evaluate_subexp_standard): Allow integer references in
9995 pointer arithmetic.
9996
e139a727
TBA
99972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9998
9999 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10000 check for no ptid in the stop reply when the target is non-stop.
10001
e0802d59
TT
100022020-04-01 Tom Tromey <tromey@adacore.com>
10003
10004 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10005 "name" parameter to rvalue reference. Initialize m_name_holder.
10006 <lookup_name_info>: New overloads.
10007 <name>: Return gdb::string_view.
10008 <c_str>: New method.
10009 <make_ignore_params>: Update.
10010 <search_name_hash>: Update.
10011 <language_lookup_name>: Return const char *.
10012 <m_name>: Change type.
10013 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10014 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10015 (lookup_name_info::match_any): Update.
10016 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10017 Update.
10018 * minsyms.c (linkage_name_str): Update.
10019 * language.c (default_symbol_name_matcher): Update.
10020 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10021 Update.
10022 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10023 (ada_lookup_name_info::ada_lookup_name_info): Update.
10024 (literal_symbol_name_matcher): Update.
10025
8c072cb6
TT
100262020-04-01 Tom Tromey <tromey@adacore.com>
10027
10028 * psymtab.c (psymtab_search_name): Remove function.
10029 (psym_lookup_symbol): Create search name and lookup name here.
10030 (lookup_partial_symbol): Remove "name" parameter; add
10031 lookup_name.
10032 (psym_expand_symtabs_for_function): Update.
10033
6f29a534
TT
100342020-03-31 Joel Jones <joelkevinjones@gmail.com>
10035
10036 PR tui/25597:
10037 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10038
af62665e
TT
100392020-03-31 Tom Tromey <tromey@adacore.com>
10040
10041 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10042 memcpy.
10043
d1a89da5
NC
100442020-03-30 Nelson Chu <nelson.chu@sifive.com>
10045
10046 * features/riscv/32bit-csr.xml: Regenerated.
10047 * features/riscv/64bit-csr.xml: Regenerated.
10048
d8af9068
TT
100492020-03-30 Tom Tromey <tromey@adacore.com>
10050
10051 * ada-valprint.c (print_variant_part): Update.
10052 * ada-lang.h (ada_which_variant_applies): Update.
10053 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10054 outer_valaddr parameters; replace with "outer" value parameter.
10055 (to_fixed_variant_branch_type): Update.
10056
227c0bf4
PFC
100572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10058
10059 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10060 <list>. Remove inclusion of observable.h.
10061 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10062 (struct arch_lwp_info): New struct.
10063 (class ppc_linux_dreg_interface): New class.
10064 (struct ppc_linux_process_info): New struct.
10065 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10066 <low_new_clone, low_forget_process, low_prepare_to_resume>
10067 <copy_thread_dreg_state, mark_thread_stale>
10068 <mark_debug_registers_changed, register_hw_breakpoint>
10069 <clear_hw_breakpoint, register_wp, clear_wp>
10070 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10071 <num_memory_accesses, get_trigger_type>
10072 <create_watchpoint_request, hwdebug_point_cmp>
10073 <init_arch_lwp_info, get_arch_lwp_info>
10074 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10075 methods.
10076 <struct ptid_hash>: New inner struct.
10077 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10078 members.
10079 (saved_dabr_value, hwdebug_info, max_slots_number)
10080 (struct hw_break_tuple, struct thread_points, ppc_threads)
10081 (have_ptrace_hwdebug_interface)
10082 (hwdebug_find_thread_points_by_tid)
10083 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10084 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10085 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10086 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10087 use m_dreg_interface.
10088 (hwdebug_point_cmp): Change to...
10089 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10090 reference arguments instead of pointers.
10091 (ppc_linux_nat_target::ranged_break_num_registers): Use
10092 m_dreg_interface.
10093 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10094 m_dreg_interface. Call register_hw_breakpoint.
10095 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10096 m_dreg_interface. Call clear_hw_breakpoint.
10097 (get_trigger_type): Change to...
10098 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10099 comment.
10100 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10101 use m_dreg_interface. Call register_hw_breakpoint.
10102 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10103 use m_dreg_interface. Call clear_hw_breakpoint.
10104 (can_use_watchpoint_cond_accel): Change to...
10105 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10106 method. Update comment, use m_dreg_interface and
10107 m_process_info.
10108 (calculate_dvc): Change to...
10109 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10110 m_dreg_interface.
10111 (num_memory_accesses): Change to...
10112 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10113 (check_condition): Change to...
10114 (ppc_linux_nat_target::check_condition): ...this method.
10115 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10116 comment, use m_dreg_interface.
10117 (create_watchpoint_request): Change to...
10118 (ppc_linux_nat_target::create_watchpoint_request): ...this
10119 method. Use m_dreg_interface.
10120 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10121 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10122 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10123 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10124 (ppc_linux_nat_target::low_forget_process)
10125 (ppc_linux_nat_target::low_new_fork)
10126 (ppc_linux_nat_target::low_new_clone)
10127 (ppc_linux_nat_target::low_delete_thread)
10128 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10129 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10130 only call mark_thread_stale.
10131 (ppc_linux_thread_exit): Remove.
10132 (ppc_linux_nat_target::stopped_data_address): Change to...
10133 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10134 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10135 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10136 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10137 comment. Call low_stopped_data_address.
10138 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10139 m_dreg_interface.
10140 (ppc_linux_nat_target::masked_watch_num_registers): Use
10141 m_dreg_interface.
10142 (ppc_linux_nat_target::copy_thread_dreg_state)
10143 (ppc_linux_nat_target::mark_thread_stale)
10144 (ppc_linux_nat_target::mark_debug_registers_changed)
10145 (ppc_linux_nat_target::register_hw_breakpoint)
10146 (ppc_linux_nat_target::clear_hw_breakpoint)
10147 (ppc_linux_nat_target::register_wp)
10148 (ppc_linux_nat_target::clear_wp)
10149 (ppc_linux_nat_target::init_arch_lwp_info)
10150 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10151 (_initialize_ppc_linux_nat): Remove observer callback.
10152
4db10d8f
PFC
101532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10154
10155 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10156 (ppc_linux_nat_target::auxv_parse)
10157 (ppc_linux_nat_target::read_description)
10158 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10159 Move up.
10160
1310c1b0
PFC
101612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10162
10163 * linux-nat.h (low_new_clone): New method.
10164 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10165
69b037c3
SM
101662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10167
10168 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10169 (dbx_expand_psymtab): ... this.
10170 (start_psymtab): Update.
10171 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10172 (mdebug_expand_psymtab): ... this.
10173 (parse_partial_symbols): Update.
10174 (new_psymtab): Update.
10175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10176 (xcoff_expand_psymtab): ... this.
10177 (xcoff_start_psymtab): Update.
10178
48993951
SM
101792020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10180
10181 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10182 <expand_dependencies>: ... this.
10183 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10184 (partial_symtab::expand_dependencies): ... this.
10185 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10186 Update.
10187 (dwarf2_psymtab::expand_psymtab): Update.
10188 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10189 * mdebugread.c (psymtab_to_symtab_1): Update.
10190 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10191
3ad83046
SM
101922020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10193
10194 * psympriv.h (discard_psymtab): Remove.
10195 * dbxread.c (dbx_end_psymtab): Update.
10196 * xcoffread.c (xcoff_end_psymtab): Update.
10197
4d1b9ab6
TT
101982020-03-28 Tom Tromey <tom@tromey.com>
10199
10200 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10201 comment.
10202
f1749218
TT
102032020-03-28 Tom Tromey <tom@tromey.com>
10204
10205 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10206
ebea7626
HD
102072020-03-27 Hannes Domani <ssbssa@yahoo.de>
10208
10209 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10210
a879b4d5
JB
102112020-03-26 John Baldwin <jhb@FreeBSD.org>
10212
10213 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10214
0826b30a
TT
102152020-03-26 Tom Tromey <tom@tromey.com>
10216
10217 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10218 (mark_common_block_symbol_computed, read_tag_string_type)
10219 (attr_to_dynamic_prop, read_subrange_type): Update.
10220 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10221 to be methods on struct attribute.
10222 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10223 (read_call_site_scope, partial_die_info::read)
10224 (partial_die_info::read, lookup_die_type, follow_die_ref):
10225 Update.
10226 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10227 from dwarf2_get_ref_die_offset.
10228 (attribute::constant_value): New method, from
10229 dwarf2_get_attr_constant_value.
10230 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10231 Declare method.
10232 <constant_value>: New method.
10233
2b2558bf
TT
102342020-03-26 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10237 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10238 (dwarf_type_encoding_name): Move to stringify.c.
10239 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10240 * dwarf2/stringify.c: New file.
10241 * dwarf2/stringify.h: New file.
10242
eeb64781
TT
102432020-03-26 Tom Tromey <tom@tromey.com>
10244
10245 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10246 Rewrite.
10247
a39fdb41
TT
102482020-03-26 Tom Tromey <tom@tromey.com>
10249
10250 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10251 methods.
10252 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10253 (lookup_ranges_base): Likewise.
10254 (read_cutu_die_from_dwo, read_full_die_1): Update.
10255
436c571c
TT
102562020-03-26 Tom Tromey <tom@tromey.com>
10257
10258 * dwarf2/read.c (read_import_statement, read_file_scope)
10259 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10260 (read_lexical_block_scope, read_call_site_scope)
10261 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10262 (handle_struct_member_die, process_structure_scope)
10263 (update_enumeration_type_from_children)
10264 (process_enumeration_scope, read_array_type, read_common_block)
10265 (read_namespace, read_module, read_subroutine_type): Update.
10266 (sibling_die): Remove.
10267
052c8bb8
TT
102682020-03-26 Tom Tromey <tom@tromey.com>
10269
10270 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10271 (build_type_psymtabs_reader, read_structure_type)
10272 (read_enumeration_type, read_full_die_1): Update.
10273 (dwarf2_attr_no_follow): Move to die.h.
10274 * dwarf2/die.h (struct die_info) <attr>: New method.
10275
2b24b6e4
TT
102762020-03-26 Tom Tromey <tom@tromey.com>
10277
10278 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10279 <base_address>: Now an optional.
10280 (dwarf2_find_base_address, dwarf2_rnglists_process)
10281 (dwarf2_ranges_process, fill_in_loclist_baton)
10282 (dwarf2_symbol_mark_computed): Update.
10283
c2d50fd0
TT
102842020-03-26 Tom Tromey <tom@tromey.com>
10285
10286 * dwarf2/read.c (struct die_info): Move to die.h.
10287 * dwarf2/die.h: New file.
10288
0df7ad3a
TT
102892020-03-26 Tom Tromey <tom@tromey.com>
10290
10291 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10292 * dwarf2/read.c
10293 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10294 Move to line-header.c.
10295 (read_checked_initial_length_and_offset, read_formatted_entries):
10296 Likewise.
10297 (dwarf_decode_line_header): Split into two.
10298 * dwarf2/line-header.c
10299 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10300 Move from read.c.
10301 (read_checked_initial_length_and_offset, read_formatted_entries):
10302 Likewise.
10303 (dwarf_decode_line_header): New function, split from read.c.
10304
86c0bb4c
TT
103052020-03-26 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10308 Declare method.
10309 * dwarf2/read.c (read_attribute_value): Update.
10310 (dwarf2_per_objfile::read_line_string): Rename from
10311 read_indirect_line_string.
10312 (read_formatted_entries): Update.
10313
2ef46c2f
TT
103142020-03-26 Tom Tromey <tom@tromey.com>
10315
10316 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10317 variable.
10318
4f9c1eda
TT
103192020-03-26 Tom Tromey <tom@tromey.com>
10320
10321 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10322 const.
10323 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10324 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10325 parameter const.
10326
5a0e026f
TT
103272020-03-26 Tom Tromey <tom@tromey.com>
10328
10329 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10330 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10331 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10332 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10333
8844c11b
TT
103342020-03-26 Tom Tromey <tom@tromey.com>
10335
10336 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10337 file_names_size, file_full_name, file_file_name>: Use const.
10338 <file_name_at, file_names>: Add const overload.
10339 * dwarf2/line-header.c (line_header::file_file_name)
10340 (line_header::file_full_name): Update.
10341
c90ec28a
TT
103422020-03-26 Tom Tromey <tom@tromey.com>
10343
10344 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10345 (macro_start_file, consume_improper_spaces)
10346 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10347 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10348 (dwarf_decode_macros): Move to macro.c.
10349 * dwarf2/macro.c: New file.
10350 * dwarf2/macro.h: New file.
10351 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10352
4f44ae6c
TT
103532020-03-26 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10356 method.
10357 * dwarf2/section.c: New method. From
10358 read_indirect_string_at_offset_from.
10359 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10360 (read_indirect_string_at_offset_from): Move to section.c.
10361 (read_indirect_string_at_offset): Rewrite.
10362 (read_indirect_line_string_at_offset): Remove.
10363 (read_indirect_string, read_indirect_line_string)
10364 (dwarf_decode_macro_bytes): Update.
10365
a0194fa8
TT
103662020-03-26 Tom Tromey <tom@tromey.com>
10367
10368 * dwarf2/section.h (struct dwarf2_section_info)
10369 <overload_complaint>: Declare.
10370 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10371 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10372 Rename from dwarf2_section_buffer_overflow_complaint.
10373 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10374 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10375
3d27bbdb
TT
103762020-03-26 Tom Tromey <tom@tromey.com>
10377
10378 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10379 Declare.
10380 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10381 Move from read.c.
10382 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10383 to section.c.
10384
9eac9650
TT
103852020-03-26 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10388
bf80d710
TT
103892020-03-26 Tom Tromey <tom@tromey.com>
10390
10391 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10392 "builder".
10393 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10394 parameter.
10395 (dwarf_decode_macros): Update.
10396
0314b390
TT
103972020-03-26 Tom Tromey <tom@tromey.com>
10398
10399 * dwarf2/read.c (read_attribute_value): Update.
10400 (read_indirect_string_from_dwz): Move to dwz.c; change into
10401 method.
10402 (dwarf_decode_macro_bytes): Update.
10403 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10404 * dwarf2/dwz.c: New file.
10405 * Makefile.in (COMMON_SFILES): Add dwz.c.
10406
9fda78b6
TT
104072020-03-26 Tom Tromey <tom@tromey.com>
10408
10409 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10410 * dwarf2/read.c: Add include.
10411 * dwarf2/index-write.c: Add include.
10412 * dwarf2/index-cache.c: Add include.
10413 * dwarf2/dwz.h: New file.
10414
33aa3c10
TT
104152020-03-25 Tom Tromey <tom@tromey.com>
10416
10417 * compile/compile-object-load.c (get_out_value_type): Mention
10418 correct symbol name in error message.
10419
d503b685
HD
104202020-03-25 Hannes Domani <ssbssa@yahoo.de>
10421
10422 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10423
7b1eff95
TV
104242020-03-25 Tom de Vries <tdevries@suse.de>
10425
10426 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10427 * symmisc.c (dump_symtab_1): Print user and includes fields.
10428 (maintenance_info_symtabs): Same.
10429
dd895392
AB
104302020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10431
10432 PR gdb/25534
10433 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10434 (riscv_regcache_cooked_write): New function.
10435 (riscv_push_dummy_call): Use new function.
10436 (riscv_return_value): Likewise.
10437
5ab2fbf1
SM
104382020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10439
10440 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10441 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10442 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10443 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10444 * infrun.c (follow_fork): Likewise.
10445 (follow_fork_inferior): Likewise.
10446 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10447 * linux-nat.h (class linux_nat_target): Likewise.
10448 * remote.c (class remote_target) <follow_fork>: Likewise.
10449 (remote_target::follow_fork): Likewise.
10450 * target-delegates.c: Re-generate.
10451 * target.c (default_follow_fork): Likewise.
10452 (target_follow_fork): Likewise.
10453 * target.h (struct target_ops) <follow_fork>: Likewise.
10454 (target_follow_fork): Likewise.
10455
a64fafb5
TV
104562020-03-24 Tom de Vries <tdevries@suse.de>
10457
10458 * psymtab.c (maintenance_info_psymtabs): Print user field.
10459
fe26d3a3
TT
104602020-03-20 Tom Tromey <tromey@adacore.com>
10461
10462 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10463 const.
10464 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10465 const.
10466
c884cc46
SM
104672020-03-20 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * ptrace.m4: Don't check for ptrace declaration.
10470 * config.in: Re-generate.
10471 * configure: Re-generate.
10472 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10473 not defined.
10474
1ff700c2
KR
104752020-03-20 Kamil Rytarowski <n54@gmx.com>
10476
10477 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10478 `PTRACE_TYPE_RET'.
10479 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10480 * sparc-nat.c (gdb_ptrace): Likewise.
10481 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10482
f7d4f0b1
TT
104832020-03-20 Tom Tromey <tromey@adacore.com>
10484
10485 * c-exp.y (lex_one_token): Fix assert.
10486
f67210ff
TT
104872020-03-20 Tom Tromey <tromey@adacore.com>
10488
10489 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10490 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10491 strncpy call.
10492
1773be9e
TT
104932020-03-20 Tom Tromey <tromey@adacore.com>
10494
10495 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10496
70304be9
TT
104972020-03-20 Tom Tromey <tromey@adacore.com>
10498
10499 * ada-valprint.c (print_variant_part): Remove parameters; switch
10500 to value-based API.
10501 (print_field_values): Likewise.
10502 (ada_val_print_struct_union): Likewise.
10503 (ada_value_print_1): Update.
10504
9faa006d
KR
105052020-03-20 Kamil Rytarowski <n54@gmx.com>
10506
10507 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10508 nbsd_nat_target instead of inf_ptrace_target.
10509 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10510 nbsd_nat_target.
10511
4a90f062
KR
105122020-03-20 Kamil Rytarowski <n54@gmx.com>
10513
10514 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10515 it to the ptrace call.
10516 * (store_registers): Likewise.
10517
105182020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10519
10520 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10521 it to the ptrace call.
10522 * (store_registers): Likewise.
10523
2d07da27
LM
105242020-03-19 Luis Machado <luis.machado@linaro.org>
10525
10526 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10527 valid, fetch vg value from ptrace.
10528
f09db380
KR
105292020-03-19 Kamil Rytarowski <n54@gmx.com>
10530 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10531 * inf-ptrace.c: Likewise.
10532 * (gdb_ptrace): Add.
10533 * (inf_ptrace_target::resume): Update.
10534 * (inf_ptrace_target::xfer_partial): Likewise.
10535 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10536 * (inf_ptrace_peek_poke): Update.
10537
fcc7376e
KR
105382020-03-19 Kamil Rytarowski <n54@gmx.com>
10539
10540 * x86-bsd-nat.c (gdb_ptrace): New.
10541 * (x86bsd_dr_set): Add new argument `ptid'.
10542 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10543 x86bsd_dr_set_addr): Update.
10544
cada5fc9
AB
105452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10546
10547 * remote.c (remote_target::process_stop_reply): Handle events for
10548 all threads differently.
10549
19a2740f
AB
105502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10551
10552 * completer.c (completion_tracker::remove_completion): Define new
10553 function.
10554 * completer.h (completion_tracker::remove_completion): Declare new
10555 function.
10556 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10557 when adding a C++ function symbol.
10558
724fd9ba
AB
105592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10560
10561 * completer.c (completion_tracker::completion_hash_entry): Define
10562 new class.
10563 (advance_to_filename_complete_word_point): Call
10564 recompute_lowest_common_denominator.
10565 (completion_tracker::completion_tracker): Call discard_completions
10566 to setup the hash table.
10567 (completion_tracker::discard_completions): Allow for being called
10568 from the constructor, pass new equal function, and element deleter
10569 when constructing the hash table. Initialise new class member
10570 variables.
10571 (completion_tracker::maybe_add_completion): Remove use of
10572 m_entries_vec, and store more information into m_entries_hash.
10573 (completion_tracker::recompute_lcd_visitor): New function, most
10574 content taken from...
10575 (completion_tracker::recompute_lowest_common_denominator):
10576 ...here, this now just visits each item in the hash calling the
10577 above visitor.
10578 (completion_tracker::build_completion_result): Remove use of
10579 m_entries_vec, call recompute_lowest_common_denominator.
10580 * completer.h (completion_tracker::have_completions): Remove use
10581 of m_entries_vec.
10582 (completion_tracker::completion_hash_entry): Declare new class.
10583 (completion_tracker::recompute_lowest_common_denominator): Change
10584 function signature.
10585 (completion_tracker::recompute_lcd_visitor): Declare new function.
10586 (completion_tracker::m_entries_vec): Delete.
10587 (completion_tracker::m_entries_hash): Initialize to NULL.
10588 (completion_tracker::m_lowest_common_denominator_valid): New
10589 member variable.
10590 (completion_tracker::m_lowest_common_denominator_max_length): New
10591 member variable.
10592
5a82b8a1
KR
105932020-03-17 Kamil Rytarowski <n54@gmx.com>
10594
10595 * regformats/regdef.h: Put reg in gdb namespace.
10596
fb516a69
KR
105972020-03-17 Kamil Rytarowski <n54@gmx.com>
10598
10599 * i386-bsd-nat.c (gdb_ptrace): New.
10600 * (i386bsd_fetch_inferior_registers,
10601 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10602 * (i386bsd_fetch_inferior_registers,
10603 i386bsd_store_inferior_registers) Use gdb_ptrace.
10604
1c0aa1fb
KR
106052020-03-17 Kamil Rytarowski <n54@gmx.com>
10606
10607 * amd64-bsd-nat.c (gdb_ptrace): New.
10608 * (amd64bsd_fetch_inferior_registers,
10609 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10610 * (amd64bsd_fetch_inferior_registers,
10611 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10612
5ccd2fb7
KR
106132020-03-17 Kamil Rytarowski <n54@gmx.com>
10614
10615 * user-regs.c (user_reg::read): Rename to...
10616 (user_reg::xread): ...this.
10617 * (append_user_reg): Rename argument `read' to `xread'.
10618 * (user_reg_add_builtin): Likewise.
10619 * (user_reg_add): Likewise.
10620 * (value_of_user_reg): Likewise.
10621
2108a63a
KR
106222020-03-17 Kamil Rytarowski <n54@gmx.com>
10623
10624 * sparc-nat.c (gdb_ptrace): New.
10625 * sparc-nat.c (sparc_fetch_inferior_registers)
10626 (sparc_store_inferior_registers) Remove obsolete comment.
10627 * sparc-nat.c (sparc_fetch_inferior_registers)
10628 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10629 * sparc-nat.c (sparc_fetch_inferior_registers)
10630 (sparc_store_inferior_registers) Use gdb_ptrace.
10631
a225c9a8
KR
106322020-03-17 Kamil Rytarowski <n54@gmx.com>
10633
10634 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10635 it to the ptrace call.
10636 * sh-nbsd-nat.c (store_registers): Likewise.
10637
98097623
KR
106382020-03-17 Kamil Rytarowski <n54@gmx.com>
10639
10640 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10641 nbsd_nat_target instead of inf_ptrace_target.
10642 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10643 nbsd_nat_target.
10644
9e38d619
KR
106452020-03-17 Kamil Rytarowski <n54@gmx.com>
10646
10647 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10648
a2ecbe9f
KR
106492020-03-17 Kamil Rytarowski <n54@gmx.com>
10650
10651 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10652 <sys/sysctl.h>.
10653 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10654
58990295
TV
106552020-03-17 Tom de Vries <tdevries@suse.de>
10656
10657 PR gdb/23710
10658 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10659 fields.
10660 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10661 fields.
10662 (process_imported_unit_die): Skip import of c++ CUs.
10663
771dd3a8
TT
106642020-03-16 Tom Tromey <tom@tromey.com>
10665
10666 * p-valprint.c (pascal_object_print_value): Initialize
10667 base_value.
10668
817a7585
AK
106692020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10670 Shahab Vahedi <shahab@synopsys.com>
10671
10672 * Makefile.in: Add arch/arc.o
10673 * configure.tgt: Likewise.
10674 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10675 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10676 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10677 * arc-tdep.h (arc_read_description): Add proto type.
10678 * arch/arc.c: New file.
10679 * arch/arc.h: Likewise.
10680 * features/Makefile: Replace old target descriptions with new.
10681 * features/arc-arcompact.c: Remove.
10682 * features/arc-arcompact.xml: Likewise.
10683 * features/arc-v2.c: Likewise
10684 * features/arc-v2.xml: Likewise
10685 * features/arc/aux-arcompact.xml: New file.
10686 * features/arc/aux-v2.xml: Likewise.
10687 * features/arc/core-arcompact.xml: Likewise.
10688 * features/arc/core-v2.xml: Likewise.
10689 * features/arc/aux-arcompact.c: Generate.
10690 * features/arc/aux-v2.c: Likewise.
10691 * features/arc/core-arcompact.c: Likewise.
10692 * features/arc/core-v2.c: Likewise.
10693 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10694
67430cd0
TT
106952020-03-16 Tom Tromey <tromey@adacore.com>
10696
10697 PR gdb/25663:
10698 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10699 putting value into bcache.
10700
30efb6c7
SM
107012020-03-16 Simon Marchi <simon.marchi@efficios.com>
10702
10703 PR gdb/21500
10704 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10705 to...
10706 (amd64_windows_init_abi_common): ... this. Don't set size of
10707 long type.
10708 (amd64_windows_init_abi): New function.
10709 (amd64_cygwin_init_abi): New function.
10710 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10711 the Cygwin OS ABI.
10712 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10713 comment.
10714
8db52437
SM
107152020-03-16 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10718 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10719 (pe_import_directory_entry): New struct type.
10720 (is_linked_with_cygwin_dll): New function.
10721 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10722 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10723 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10724
5982a56a
SM
107252020-03-16 Simon Marchi <simon.marchi@efficios.com>
10726
10727 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10728 i386_cygwin_core_osabi_sniffer.
10729
7a1998df
SM
107302020-03-16 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * i386-cygwin-tdep.c: Rename to...
10733 * i386-windows-tdep.c: ... this.
10734 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10735 i386-windows-tdep.c.
10736 * configure.tgt: Likewise.
10737
053205cc
SM
107382020-03-16 Simon Marchi <simon.marchi@efficios.com>
10739
10740 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10741 * osabi.c (gdb_osabi_names): Add "Windows".
10742 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10743 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10744 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10745 i386_cygwin_osabi_sniffer.
10746 (_initialize_i386_cygwin_tdep): Register OS ABI
10747 GDB_OSABI_WINDOWS for i386.
10748 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10749 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10750 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10751 for x86-64.
10752 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10753 when the target matches '*-*-mingw*'.
10754
fe4b2ee6
SM
107552020-03-16 Simon Marchi <simon.marchi@efficios.com>
10756
10757 * defs.h (enum gdb_osabi): Move to...
10758 * osabi.h (enum gdb_osabi): ... here.
10759 * gdbarch.sh: Include osabi.h in gdbarch.h.
10760 * gdbarch.h: Re-generate.
10761
cb9b645d
SM
107622020-03-16 Simon Marchi <simon.marchi@efficios.com>
10763
10764 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10765 function.
10766 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10767
3293bbaf
TT
107682020-03-14 Tom Tromey <tom@tromey.com>
10769
10770 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10771 for C++.
10772 (c_type_print_modifier): Likewise. Add "language" parameter.
10773 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10774 (c_type_print_base_1): Update.
10775 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10776 constants.
10777 * type-stack.c (type_stack::insert): Handle tp_atomic and
10778 tp_restrict.
10779 (type_stack::follow_type_instance_flags): Likewise.
10780 (type_stack::follow_types): Likewise. Merge type-following code.
10781 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10782 (space_identifier, cv_with_space_id)
10783 (const_or_volatile_or_space_identifier_noopt)
10784 (const_or_volatile_or_space_identifier): Remove.
10785 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10786 rules.
10787 (ptr_operator, typebase): Update.
10788 (enum token_flag) <FLAG_C>: New constant.
10789 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10790 "_Atomic".
10791 (lex_one_token): Handle FLAG_C.
10792
154151a6
KR
107932020-03-14 Kamil Rytarowski <n54@gmx.com>
10794
10795 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10796 it to the ptrace call.
10797 * m68k-bsd-nat.c (store_registers): Likewise.
10798
bc107784
KR
107992020-03-14 Kamil Rytarowski <n54@gmx.com>
10800
10801 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10802 gdb_byte *.
10803 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10804 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10805 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10806
01a80117
KR
108072020-03-14 Kamil Rytarowski <n54@gmx.com>
10808
10809 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10810 nbsd_nat_target instead of inf_ptrace_target.
10811 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10812 nbsd_nat_target.
10813
f90280ca
KR
108142020-03-14 Kamil Rytarowski <n54@gmx.com>
10815
10816 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10817 register_t.
10818
6def66f1
KR
108192020-03-14 Kamil Rytarowski <n54@gmx.com>
10820
10821 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10822 it to the ptrace call.
10823 * alpha-bsd-nat.c (store_registers): Likewise.
10824
66eaca97
KR
108252020-03-14 Kamil Rytarowski <n54@gmx.com>
10826
10827 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10828 includes.
10829 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10830 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10831 fill_fpregset): Likewise.
10832
4fed520b
KR
108332020-03-14 Kamil Rytarowski <n54@gmx.com>
10834
10835 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10836 nbsd_nat_target instead of inf_ptrace_target.
10837 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10838 nbsd_nat_target.
10839
2190cf06
KR
108402020-03-14 Kamil Rytarowski <n54@gmx.com>
10841
10842 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10843 register_t.
10844
75c56d3d
KR
108452020-03-14 Kamil Rytarowski <n54@gmx.com>
10846
10847 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10848 it to the ptrace call.
10849 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10850 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10851 * arm-nbsd-nat.c (store_register): Likewise.
10852 * arm-nbsd-nat.c (store_regs): Likewise.
10853 * arm-nbsd-nat.c (store_fp_register): Likewise.
10854 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10855
6018d381
KR
108562020-03-14 Kamil Rytarowski <n54@gmx.com>
10857
10858 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10859 nbsd_nat_target instead of inf_ptrace_target.
10860 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10861 nbsd_nat_target.
10862
013f99f0
KR
108632020-03-14 Kamil Rytarowski <n54@gmx.com>
10864
10865 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10866 it to the ptrace call.
10867 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10868
12753073
KR
108692020-03-14 Kamil Rytarowski <n54@gmx.com>
10870
6227b330
KR
10871 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10872 it to the ptrace call.
10873 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10874
108752020-03-14 Kamil Rytarowski <n54@gmx.com>
10876
10877 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10878 gdb_byte *.
12753073
KR
10879 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10880
d5be5fa4
KR
108812020-03-14 Kamil Rytarowski <n54@gmx.com>
10882
10883 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10884 instead of inf_ptrace_target.
10885 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10886 nbsd_nat_target.
10887
8110f842
KR
108882020-03-14 Kamil Rytarowski <n54@gmx.com>
10889
10890 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10891 register_t.
10892
52feded7
KR
108932020-03-14 Kamil Rytarowski <n54@gmx.com>
10894
10895 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10896 register_t.
10897
25567eee
KR
108982020-03-14 Kamil Rytarowski <n54@gmx.com>
10899
10900 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10901 register_t.
10902
426a9c18
TT
109032020-03-13 Tom Tromey <tom@tromey.com>
10904
10905 * value.h (val_print): Don't declare.
10906 * valprint.h (val_print_array_elements)
10907 (val_print_scalar_formatted, generic_val_print): Don't declare.
10908 * valprint.c (generic_val_print_array): Take a struct value.
10909 (generic_val_print_ptr, generic_val_print_memberptr)
10910 (generic_val_print_bool, generic_val_print_int)
10911 (generic_val_print_char, generic_val_print_complex)
10912 (generic_val_print): Remove.
10913 (generic_value_print): Update.
10914 (do_val_print): Remove unused parameters. Don't call
10915 la_val_print.
10916 (val_print): Remove.
10917 (common_val_print): Update. Don't call value_check_printable.
10918 (val_print_scalar_formatted, val_print_array_elements): Remove.
10919 * rust-lang.c (rust_val_print): Remove.
10920 (rust_language_defn): Update.
10921 * p-valprint.c (pascal_val_print): Remove.
10922 (pascal_value_print_inner): Update.
10923 (pascal_object_print_val_fields, pascal_object_print_val):
10924 Remove.
10925 (pascal_object_print_static_field): Update.
10926 * p-lang.h (pascal_val_print): Don't declare.
10927 * p-lang.c (pascal_language_defn): Update.
10928 * opencl-lang.c (opencl_language_defn): Update.
10929 * objc-lang.c (objc_language_defn): Update.
10930 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10931 * m2-lang.h (m2_val_print): Don't declare.
10932 * m2-lang.c (m2_language_defn): Update.
10933 * language.h (struct language_defn) <la_val_print>: Remove.
10934 * language.c (unk_lang_value_print_inner): Rename. Change
10935 argument types.
10936 (unknown_language_defn, auto_language_defn): Update.
10937 * go-valprint.c (go_val_print): Remove.
10938 * go-lang.h (go_val_print): Don't declare.
10939 * go-lang.c (go_language_defn): Update.
10940 * f-valprint.c (f_val_print): Remove.
10941 * f-lang.h (f_value_print): Don't declare.
10942 * f-lang.c (f_language_defn): Update.
10943 * d-valprint.c (d_val_print): Remove.
10944 * d-lang.h (d_value_print): Don't declare.
10945 * d-lang.c (d_language_defn): Update.
10946 * cp-valprint.c (cp_print_value_fields)
10947 (cp_print_value_fields_rtti, cp_print_value): Remove.
10948 (cp_print_static_field): Update.
10949 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10950 (c_val_print_struct, c_val_print_union, c_val_print_int)
10951 (c_val_print_memberptr, c_val_print): Remove.
10952 * c-lang.h (c_val_print_array, cp_print_value_fields)
10953 (cp_print_value_fields_rtti): Don't declare.
10954 * c-lang.c (c_language_defn, cplus_language_defn)
10955 (asm_language_defn, minimal_language_defn): Update.
10956 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10957 (ada_val_print_enum): Take a struct value.
10958 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10959 (ada_val_print): Remove.
10960 (ada_value_print_1): Update.
10961 (printable_val_type): Remove.
10962 * ada-lang.h (ada_val_print): Don't declare.
10963 * ada-lang.c (ada_language_defn): Update.
10964
42331a1e
TT
109652020-03-13 Tom Tromey <tom@tromey.com>
10966
10967 * valprint.c (do_val_print): Update.
10968 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10969 a struct value.
10970 (value_to_value_object_no_release): Declare.
10971 * python/py-value.c (value_to_value_object_no_release): New
10972 function.
10973 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10974 struct value.
10975 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10976 function.
10977 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10978 a struct value.
10979 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10980 Declare.
10981 (gdbscm_apply_val_pretty_printer): Take a struct value.
10982 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10983 value.
10984 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10985 value.
10986 * extension-priv.h (struct extension_language_ops)
10987 <apply_val_pretty_printer>: Take a struct value.
10988 * cp-valprint.c (cp_print_value): Create a struct value.
10989 (cp_print_value): Update.
10990
3a916a97
TT
109912020-03-13 Tom Tromey <tom@tromey.com>
10992
10993 * ada-valprint.c (print_field_values): Call common_val_print.
10994
b59eac37
TT
109952020-03-13 Tom Tromey <tom@tromey.com>
10996
10997 * ada-valprint.c (val_print_packed_array_elements): Remove
10998 bitoffset and val parameters. Call common_val_print.
10999 (ada_val_print_string): Remove offset, address, and original_value
11000 parameters.
11001 (ada_val_print_array): Update.
11002 (ada_value_print_array): New function.
11003 (ada_value_print_1): Call it.
11004
03371129
TT
110052020-03-13 Tom Tromey <tom@tromey.com>
11006
11007 * ada-valprint.c (ada_value_print): Use common_val_print.
11008
2e088f8b
TT
110092020-03-13 Tom Tromey <tom@tromey.com>
11010
11011 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11012
39ef85a8
TT
110132020-03-13 Tom Tromey <tom@tromey.com>
11014
11015 * ada-valprint.c (ada_value_print_num): New function.
11016 (ada_value_print_1): Use it.
11017
b9fa6e07
TT
110182020-03-13 Tom Tromey <tom@tromey.com>
11019
11020 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11021
416595d6
TT
110222020-03-13 Tom Tromey <tom@tromey.com>
11023
11024 * ada-valprint.c (ada_value_print_ptr): New function.
11025 (ada_value_print_1): Use it.
11026
5b5e15ec
TT
110272020-03-13 Tom Tromey <tom@tromey.com>
11028
11029 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11030 call common_val_print.
11031 (ada_val_print_1): Update.
11032 (ada_value_print_1): New function.
11033 (ada_value_print_inner): Rewrite.
11034
fbf54e75
TT
110352020-03-13 Tom Tromey <tom@tromey.com>
11036
11037 * cp-valprint.c (cp_print_value_fields): Update.
11038 (cp_print_value): New function.
11039
64b653ca
TT
110402020-03-13 Tom Tromey <tom@tromey.com>
11041
11042 * m2-valprint.c (m2_value_print_inner): Use
11043 cp_print_value_fields.
11044 * cp-valprint.c (cp_print_value_fields): New function.
11045 * c-valprint.c (c_value_print_struct): New function.
11046 (c_value_print_inner): Use c_value_print_struct.
11047 * c-lang.h (cp_print_value_fields): Declare.
11048
6999f067
TT
110492020-03-13 Tom Tromey <tom@tromey.com>
11050
11051 * c-valprint.c (c_value_print_array): New function.
11052 (c_value_print_inner): Use it.
11053
ce80b8bd
TT
110542020-03-13 Tom Tromey <tom@tromey.com>
11055
11056 * c-valprint.c (c_value_print_memberptr): New function.
11057 (c_value_print_inner): Use it.
11058
2faac269
TT
110592020-03-13 Tom Tromey <tom@tromey.com>
11060
11061 * c-valprint.c (c_value_print_int): New function.
11062 (c_value_print_inner): Use it.
11063
da3e2c29
TT
110642020-03-13 Tom Tromey <tom@tromey.com>
11065
11066 * c-valprint.c (c_value_print_ptr): New function.
11067 (c_value_print_inner): Use it.
11068
50836231
TT
110692020-03-13 Tom Tromey <tom@tromey.com>
11070
11071 * c-valprint.c (c_value_print_inner): Rewrite.
11072
4f412b6e
TT
110732020-03-13 Tom Tromey <tom@tromey.com>
11074
11075 * valprint.c (generic_value_print_complex): New function.
11076 (generic_value_print): Use it.
11077
f5354008
TT
110782020-03-13 Tom Tromey <tom@tromey.com>
11079
11080 * valprint.c (generic_val_print_float): Don't call
11081 val_print_scalar_formatted.
11082 (generic_val_print, generic_value_print): Update.
11083
3eec3b05
TT
110842020-03-13 Tom Tromey <tom@tromey.com>
11085
11086 * valprint.c (generic_value_print_char): New function
11087 (generic_value_print): Use it.
11088
fdddfccb
TT
110892020-03-13 Tom Tromey <tom@tromey.com>
11090
11091 * valprint.c (generic_value_print_int): New function.
11092 (generic_value_print): Use it.
11093
6dde7521
TT
110942020-03-13 Tom Tromey <tom@tromey.com>
11095
11096 * valprint.c (generic_value_print_bool): New function.
11097 (generic_value_print): Use it.
11098
4112d2e6
TT
110992020-03-13 Tom Tromey <tom@tromey.com>
11100
11101 * valprint.c (generic_val_print_func): Simplify.
11102 (generic_val_print, generic_value_print): Update.
11103
65786af6
TT
111042020-03-13 Tom Tromey <tom@tromey.com>
11105
11106 * valprint.c (generic_val_print_flags): Remove.
11107 (generic_val_print, generic_value_print): Update.
11108 (val_print_type_code_flags): Add original_value parameter.
11109
40f3ce18
TT
111102020-03-13 Tom Tromey <tom@tromey.com>
11111
11112 * valprint.c (generic_val_print): Update.
11113 (generic_value_print): Update.
11114 * valprint.c (generic_val_print_enum): Don't call
11115 val_print_scalar_formatted.
11116
2a5b130b
TT
111172020-03-13 Tom Tromey <tom@tromey.com>
11118
11119 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11120 * valprint.c (generic_value_print_ptr): New function.
11121
abc66ce9
TT
111222020-03-13 Tom Tromey <tom@tromey.com>
11123
11124 * valprint.c (generic_value_print): Rewrite.
11125
07a32858
TT
111262020-03-13 Tom Tromey <tom@tromey.com>
11127
11128 * p-valprint.c (pascal_object_print_value_fields)
11129 (pascal_object_print_value): New functions.
11130
64d64d3a
TT
111312020-03-13 Tom Tromey <tom@tromey.com>
11132
11133 * p-valprint.c (pascal_value_print_inner): Rewrite.
11134
6a95a1f5
TT
111352020-03-13 Tom Tromey <tom@tromey.com>
11136
11137 * f-valprint.c (f_value_print_innner): Rewrite.
11138
59fcdac6
TT
111392020-03-13 Tom Tromey <tom@tromey.com>
11140
11141 * m2-valprint.c (m2_print_unbounded_array): New overload.
11142 (m2_print_unbounded_array): Update.
11143 (m2_print_array_contents): Take a struct value.
11144 (m2_value_print_inner): Rewrite.
11145
d133c3e1
TT
111462020-03-13 Tom Tromey <tom@tromey.com>
11147
11148 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11149 (d_value_print_inner): New function.
11150 * d-lang.h (d_value_print_inner): Declare.
11151 * d-lang.c (d_language_defn): Use d_value_print_inner.
11152
23b0f06b
TT
111532020-03-13 Tom Tromey <tom@tromey.com>
11154
11155 * go-valprint.c (go_value_print_inner): New function.
11156 * go-lang.h (go_value_print_inner): Declare.
11157 * go-lang.c (go_language_defn): Use go_value_print_inner.
11158
5f56f7cb
TT
111592020-03-13 Tom Tromey <tom@tromey.com>
11160
11161 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11162 API.
11163 (rust_val_print): Rewrite.
11164 (rust_value_print_inner): New function, from rust_val_print.
11165 (rust_language_defn): Use rust_value_print_inner.
11166
26792ee0
TT
111672020-03-13 Tom Tromey <tom@tromey.com>
11168
11169 * ada-valprint.c (ada_value_print_inner): New function.
11170 * ada-lang.h (ada_value_print_inner): Declare.
11171 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11172
24051bbe
TT
111732020-03-13 Tom Tromey <tom@tromey.com>
11174
11175 * f-valprint.c (f_value_print_innner): New function.
11176 * f-lang.h (f_value_print_innner): Declare.
11177 * f-lang.c (f_language_defn): Use f_value_print_innner.
11178
c0941be6
TT
111792020-03-13 Tom Tromey <tom@tromey.com>
11180
11181 * p-valprint.c (pascal_value_print_inner): New function.
11182 * p-lang.h (pascal_value_print_inner): Declare.
11183 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11184
62c4663d
TT
111852020-03-13 Tom Tromey <tom@tromey.com>
11186
11187 * m2-valprint.c (m2_value_print_inner): New function.
11188 * m2-lang.h (m2_value_print_inner): Declare.
11189 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11190
62182190
TT
111912020-03-13 Tom Tromey <tom@tromey.com>
11192
11193 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11194 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11195 * c-valprint.c (c_value_print_inner): New function.
11196 * c-lang.h (c_value_print_inner): Declare.
11197 * c-lang.c (c_language_defn, cplus_language_defn)
11198 (asm_language_defn, minimal_language_defn): Use
11199 c_value_print_inner.
11200
1e592a8a
TT
112012020-03-13 Tom Tromey <tom@tromey.com>
11202
11203 * p-valprint.c (pascal_object_print_value_fields): Now static.
11204 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11205
7fe471e9
TT
112062020-03-13 Tom Tromey <tom@tromey.com>
11207
11208 * c-valprint.c (c_val_print_array): Simplify.
11209
d121c6ce
TT
112102020-03-13 Tom Tromey <tom@tromey.com>
11211
11212 * valprint.c (value_print_array_elements): New function.
11213 * valprint.h (value_print_array_elements): Declare.
11214
4dba70ee
TT
112152020-03-13 Tom Tromey <tom@tromey.com>
11216
11217 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11218 * mips-tdep.c (mips_print_register): Use
11219 value_print_scalar_formatted.
11220
4f9ae810
TT
112212020-03-13 Tom Tromey <tom@tromey.com>
11222
11223 * valprint.h (value_print_scalar_formatted): Declare.
11224 * valprint.c (value_print_scalar_formatted): New function.
11225
156bfec9
TT
112262020-03-13 Tom Tromey <tom@tromey.com>
11227
11228 * valprint.h (generic_value_print): Declare.
11229 * valprint.c (generic_value_print): New function.
11230
2b4e573d
TT
112312020-03-13 Tom Tromey <tom@tromey.com>
11232
11233 * valprint.c (do_val_print): Call la_value_print_inner, if
11234 available.
11235 * rust-lang.c (rust_language_defn): Update.
11236 * p-lang.c (pascal_language_defn): Update.
11237 * opencl-lang.c (opencl_language_defn): Update.
11238 * objc-lang.c (objc_language_defn): Update.
11239 * m2-lang.c (m2_language_defn): Update.
11240 * language.h (struct language_defn) <la_value_print_inner>: New
11241 member.
11242 * language.c (unknown_language_defn, auto_language_defn): Update.
11243 * go-lang.c (go_language_defn): Update.
11244 * f-lang.c (f_language_defn): Update.
11245 * d-lang.c (d_language_defn): Update.
11246 * c-lang.c (c_language_defn, cplus_language_defn)
11247 (asm_language_defn, minimal_language_defn): Update.
11248 * ada-lang.c (ada_language_defn): Update.
11249
a1f6a07c
TT
112502020-03-13 Tom Tromey <tom@tromey.com>
11251
11252 * c-valprint.c (c_value_print): Use common_val_print.
11253
410cf315
TT
112542020-03-13 Tom Tromey <tom@tromey.com>
11255
11256 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11257
72a45c93
TT
112582020-03-13 Tom Tromey <tom@tromey.com>
11259
11260 * f-valprint.c (f77_print_array_1, f_val_print): Use
11261 common_val_print.
11262
040f66bd
TT
112632020-03-13 Tom Tromey <tom@tromey.com>
11264
11265 * riscv-tdep.c (riscv_print_one_register_info): Use
11266 common_val_print.
11267
a6e05a6c
TT
112682020-03-13 Tom Tromey <tom@tromey.com>
11269
11270 * mi/mi-main.c (output_register): Use common_val_print.
11271
3444c526
TT
112722020-03-13 Tom Tromey <tom@tromey.com>
11273
11274 * infcmd.c (default_print_one_register_info): Use
11275 common_val_print.
11276
c2a44efe
TT
112772020-03-13 Tom Tromey <tom@tromey.com>
11278
11279 * valprint.h (common_val_print_checked): Declare.
11280 * valprint.c (common_val_print_checked): New function.
11281 * stack.c (print_frame_arg): Use common_val_print_checked.
11282
b0c26e99
TT
112832020-03-13 Tom Tromey <tom@tromey.com>
11284
11285 * valprint.c (do_val_print): New function, from val_print.
11286 (val_print): Use do_val_print.
11287 (common_val_print): Use do_val_print.
11288
ce3acbe9
TT
112892020-03-13 Tom Tromey <tom@tromey.com>
11290
11291 * valprint.c (value_print): Use scoped_value_mark.
11292
96c7f873
TV
112932020-03-13 Tom de Vries <tdevries@suse.de>
11294
11295 PR symtab/25646
11296 * psymtab.c (partial_symtab::partial_symtab): Don't set
11297 globals_offset and statics_offset. Push element onto
11298 current_global_psymbols and current_static_psymbols stacks.
11299 (concat): New function.
11300 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11301 element from current_global_psymbols and current_static_psymbols
11302 stacks. Concat popped elements to global_psymbols and
11303 static_symbols.
11304 (add_psymbol_to_list): Use current_global_psymbols and
11305 current_static_psymbols stacks.
11306 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11307 current_static_psymbols fields.
11308
6ba0a321
CB
113092020-03-12 Christian Biesinger <cbiesinger@google.com>
11310
11311 * corelow.c (sniff_core_bfd): Remove.
11312 (class core_target) <m_core_vec>: Remove.
11313 (core_target::core_target): Update.
11314 (core_file_fns): Remove.
11315 (deprecated_add_core_fns): Remove.
11316 (default_core_sniffer): Remove.
11317 (sniff_core_bfd): Remove.
11318 (default_check_format): Remove.
11319 (gdb_check_format): Remove.
11320 (core_target_open): Update.
11321 (core_target::get_core_register_section): Update.
11322 (get_core_registers_cb): Update.
11323 (core_target::fetch_registers): Update.
11324 * gdbcore.h (struct core_fns): Remove.
11325 (deprecated_add_core_fns): Remove.
11326 (default_core_sniffer): Remove.
11327 (default_check_format): Remove.
11328
227031b2
TT
113292020-03-12 Tom Tromey <tom@tromey.com>
11330
11331 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11332 CORE_ADDR.
11333 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11334
53807e9f
TT
113352020-03-12 Tom Tromey <tom@tromey.com>
11336
11337 * remote.c (remote_target::download_tracepoint)
11338 (remote_target::enable_tracepoint)
11339 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11340 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11341 sprintf_vma.
11342
64f25102
TT
113432020-03-12 Tom Tromey <tom@tromey.com>
11344
11345 * symfile-mem.c: Update CORE_ADDR size assert.
11346
272cd5a3
SM
113472020-03-12 Simon Marchi <simon.marchi@efficios.com>
11348
11349 * selftest.m4: Move to gdbsupport/.
11350 * acinclude.m4: Update path to selftest.m4.
11351
74cd3f9d
SM
113522020-03-12 Simon Marchi <simon.marchi@efficios.com>
11353
11354 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11355 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11356 gdbarch-selfselftests.c and selftest-arch.c.
11357 (SUBDIR_UNITTESTS_OBS): Rename to...
11358 (SELFTESTS_OBS): ... this.
11359 (COMMON_SFILES): Remove disasm-selftests.c and
11360 gdbarch-selftests.c.
11361 * configure.ac: Don't add selftest-arch.{c,o} to
11362 CONFIG_{SRCS,OBS}.
11363 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11364 preprocessor conditions.
11365
db6878ac
SM
113662020-03-12 Simon Marchi <simon.marchi@efficios.com>
11367
11368 * configure.ac: Don't source bfd/development.sh.
11369 * selftest.m4: Modify comment.
11370 * configure: Re-generate.
11371
4d696a5c
SM
113722020-03-12 Simon Marchi <simon.marchi@efficios.com>
11373
11374 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11375 not "true" or "false".
11376 * configure: Re-generate.
11377
8dd8e1c7
CB
113782020-03-12 Christian Biesinger <cbiesinger@google.com>
11379
11380 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11381 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11382 renamed to arm_nbsd_supply_gregset.
11383 (fetch_register): Update to call arm_nbsd_supply_gregset.
11384 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11385 (arm_netbsd_nat_target::fetch_registers): Update.
11386 (fetch_elfcore_registers): Removed.
11387 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11388 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11389 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11390 not require NetBSD system headers.
11391 (arm_nbsd_regset): New struct.
11392 (arm_nbsd_iterate_over_regset_sections): New function.
11393 (arm_netbsd_init_abi_common): Updated to call
11394 set_gdbarch_iterate_over_regset_sections.
11395 * arm-nbsd-tdep.h: New file.
11396
dd69bf7a
KB
113972020-03-11 Kevin Buettner <kevinb@redhat.com>
11398
11399 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11400 recursion.
11401
a0761e34
SM
114022020-03-11 Simon Marchi <simon.marchi@efficios.com>
11403
11404 * configure: Re-generate.
11405
e7a82140
TT
114062020-03-11 Tom Tromey <tromey@adacore.com>
11407
11408 * ada-typeprint.c (print_choices): Fix comment.
11409
dcc050c8
AB
114102020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11411
11412 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11413 previous item in the list, when the list has no items.
11414
1c33af77
TV
114152020-03-11 Tom de Vries <tdevries@suse.de>
11416
11417 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11418 PROP_LOCLIST handling code.
11419
8c95582d
AB
114202020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11421
11422 * buildsym-legacy.c (record_line): Pass extra parameter to
11423 record_line.
11424 * buildsym.c (buildsym_compunit::record_line): Take an extra
11425 parameter, reduce duplication in the line table, and record the
11426 is_stmt flag in the line table.
11427 * buildsym.h (buildsym_compunit::record_line): Add extra
11428 parameter.
11429 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11430 non-statement lines.
11431 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11432 this to the symtab builder.
11433 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11434 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11435 through to dwarf_record_line_1.
11436 * infrun.c (process_event_stop_test): When stepping, don't stop at
11437 a non-statement instruction, and only refresh the step info when
11438 we land in the middle of a line's range. Also add an extra
11439 comment.
11440 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11441 field.
11442 * record-btrace.c (btrace_find_line_range): Only record lines
11443 marked as is-statement.
11444 * stack.c (frame_show_address): Show the frame address if we are
11445 in a non-statement sal.
11446 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11447 (maintenance_print_one_line_table): Print a header for the is_stmt
11448 column, and include is_stmt information in the output.
11449 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11450 preference to non-statements.
11451 (find_pcs_for_symtab_line): Prefer is-statement entries.
11452 (find_line_common): Likewise.
11453 * symtab.h (struct linetable_entry): Add is_stmt field.
11454 (struct symtab_and_line): Likewise.
11455 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11456 arranging the line table.
11457
e4003a34
TV
114582020-03-07 Tom de Vries <tdevries@suse.de>
11459
11460 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11461 DIE.
11462
e8932576
TT
114632020-03-07 Tom Tromey <tom@tromey.com>
11464
11465 * valops.c (value_literal_complex): Remove obsolete comment.
11466 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11467 comment.
11468
29734269
SM
114692020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11470
11471 * infrun.h: Forward-declare thread_info.
11472 (set_step_info): Add thread_info parameter, add doc.
11473 * infrun.c (set_step_info): Add thread_info parameter, move doc
11474 to header.
11475 * infrun.c (process_event_stop_test): Pass thread to
11476 set_step_info call.
11477 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11478 set_step_info.
11479 (prepare_one_step): Add thread_info parameter, pass it to
11480 set_step_frame and prepare_one_step (recursive) call.
11481 (step_1): Pass thread to prepare_one_step call.
11482 (step_command_fsm::should_stop): Pass thread to
11483 prepare_one_step.
11484 (until_next_fsm): Pass thread to set_step_frame call.
11485 (finish_command): Pass thread to set_step_info call.
11486
b7d64b29
HD
114872020-03-06 Hannes Domani <ssbssa@yahoo.de>
11488
11489 * windows-tdep.c (windows_solib_create_inferior_hook):
11490 Check if inferior is running.
11491
09f2921c
TV
114922020-03-06 Tom de Vries <tdevries@suse.de>
11493
11494 * NEWS: Fix "the the".
11495 * ctfread.c: Same.
11496
fd760e79
TV
114972020-03-06 Tom de Vries <tdevries@suse.de>
11498
11499 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11500
20ea4a60
AB
115012020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11502
11503 * .dir-locals.el: Add a comment referencing the other copies of
11504 this file.
11505
0afbabf0
JB
115062020-03-05 John Baldwin <jhb@FreeBSD.org>
11507
11508 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11509 psargs.
11510
842806cb
TBA
115112020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11512
11513 * .gitattributes: New file.
11514
be1e3d3e
TT
115152020-03-04 Tom Tromey <tom@tromey.com>
11516
11517 * symmisc.c (print_symbol_bcache_statistics)
11518 (print_objfile_statistics): Update.
11519 * symfile.c (allocate_symtab): Use intern.
11520 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11521 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11522 macro_cache>: Remove.
11523 <string_cache>: New member.
11524 (struct objfile) <intern>: New methods.
11525 * elfread.c (elf_symtab_read): Use intern.
11526 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11527 (dwarf2_compute_name, dwarf2_physname)
11528 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11529 names.
11530 (guess_partial_die_structure_name): Update.
11531 (partial_die_info::fixup): Intern name.
11532 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11533 name.
11534 (dwarf2_name): Intern name. Update.
11535 * buildsym.c (buildsym_compunit::get_macro_table): Use
11536 string_cache.
11537
4e7625fd
TT
115382020-03-04 Tom Tromey <tom@tromey.com>
11539
11540 * jit.c (bfd_open_from_target_memory): Make "target" const.
11541 * corefile.c (gnutarget): Now const.
11542 * gdbcore.h (gnutarget): Now const.
11543
46f9f931
HD
115442020-03-04 Hannes Domani <ssbssa@yahoo.de>
11545
11546 * NEWS: Mention support for WOW64 processes.
11547 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11548 (amd64_windows_segment_register_p): Remove static.
11549 (_initialize_amd64_windows_nat): Update.
11550 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11551 * i386-windows-nat.c (context_offset): Update.
11552 (i386_mappings): Rename and remove static.
11553 (i386_windows_segment_register_p): Remove static.
11554 (_initialize_i386_windows_nat): Update.
11555 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11556 (STATUS_WX86_SINGLE_STEP): New macro.
11557 (EnumProcessModulesEx): New macro.
11558 (Wow64SuspendThread): New macro.
11559 (Wow64GetThreadContext): New macro.
11560 (Wow64SetThreadContext): New macro.
11561 (Wow64GetThreadSelectorEntry): New macro.
11562 (windows_set_context_register_offsets): Add static.
11563 (windows_set_segment_register_p): Likewise.
11564 (windows_add_thread): Adapt for WOW64 processes.
11565 (windows_fetch_one_register): Likewise.
11566 (windows_nat_target::fetch_registers): Likewise.
11567 (windows_store_one_register): Likewise.
11568 (display_selector): Likewise.
11569 (display_selectors): Likewise.
11570 (handle_exception): Likewise.
11571 (windows_continue): Likewise.
11572 (windows_nat_target::resume): Likewise.
11573 (windows_add_all_dlls): Likewise.
11574 (do_initial_windows_stuff): Likewise.
11575 (windows_nat_target::attach): Likewise.
11576 (windows_get_exec_module_filename): Likewise.
11577 (windows_nat_target::create_inferior): Likewise.
11578 (windows_xfer_siginfo): Likewise.
11579 (_initialize_loadable): Initialize Wow64SuspendThread,
11580 Wow64GetThreadContext, Wow64SetThreadContext,
11581 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11582 * windows-nat.h (windows_set_context_register_offsets):
11583 Remove declaration.
11584 (windows_set_segment_register_p): Likewise.
11585 (i386_windows_segment_register_p): Add declaration.
11586 (amd64_windows_segment_register_p): Likewise.
11587
440cf44e
LM
115882020-03-04 Luis Machado <luis.machado@linaro.org>
11589
11590 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11591 in "info registers" for AArch64/ARM.
11592
11593 The change caused "info registers" to not print GPR's.
11594
11595 gdb/ChangeLog:
11596
11597 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11598
11599 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11600 when reg->group is empty and reggroup is not.
11601
1009d92f
TT
116022020-03-03 Tom Tromey <tromey@adacore.com>
11603
11604 * dwarf2/frame.c (struct dwarf2_frame_cache)
11605 <checked_tailcall_bottom, entry_cfa_sp_offset,
11606 entry_cfa_sp_offset_p>: Remove members.
11607 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11608 (dwarf2_frame_prev_register): Don't call
11609 dwarf2_tailcall_sniffer_first.
11610 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11611 * frame-unwind.c (add_unwinder): New fuction.
11612 (frame_unwind_init): Use it. Add tailcall unwinder.
11613
5e5d66b6
AB
116142020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11615 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11616
11617 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11618 value should be printed as true.
11619
584cf46d
HD
116202020-03-03 Hannes Domani <ssbssa@yahoo.de>
11621
11622 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11623 (windows_init_abi): Set and use windows_so_ops.
11624
7b973adc
SDJ
116252020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11626
11627 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11628 when verifying if dealing with a convenience variable.
11629
bb7b70ab
LM
116302020-03-03 Luis Machado <luis.machado@linaro.org>
11631
11632 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11633
9822cb57
SM
116342020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11635
11636 * infrun.c (gdbarch_supports_displaced_stepping): New.
11637 (use_displaced_stepping): Break up conditions in smaller pieces.
11638 Use gdbarch_supports_displaced_stepping.
11639 (displaced_step_prepare_throw): Use
11640 gdbarch_supports_displaced_stepping.
11641
63e163f2
AB
116422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * NEWS: Mention new behaviour of the history filename.
11645 * top.c (write_history_p): Add comment.
11646 (show_write_history_p): Add header comment, give a different
11647 message when history writing is on, but the history filename is
11648 empty.
11649 (history_filename): Add comment.
11650 (history_filename_empty): New function.
11651 (show_history_filename): Add header comment, give a different
11652 message when the filename is empty.
11653 (init_history): Compare history_filename against nullptr, and only
11654 read history if the filename is not empty.
11655 (set_history_filename): Add header comment, and only make
11656 non-empty filenames absolute.
11657 (init_main): Make the filename argument to 'set history filename'
11658 optional.
11659
81b86b97
CB
116602020-03-02 Christian Biesinger <cbiesinger@google.com>
11661
11662 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11663 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11664 (fetch_fp_register): Update.
11665 (fetch_fp_regs): Update.
11666 (store_fp_register): Update.
11667 (store_fp_regs): Update.
11668 (arm_netbsd_nat_target::read_description): New function.
11669 (fetch_elfcore_registers): Update.
11670
24ed6739
AB
116712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11672
11673 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11674 general_thread if the stop reply is missing a thread-id.
11675 (remote_target::process_stop_reply): Use the first non-exited
11676 thread if the target didn't pass a thread-id.
11677 * infrun.c (do_target_wait): Move call to
11678 switch_to_inferior_no_thread to ....
11679 (do_target_wait_1): ... here.
11680
a84bb2a0
JT
116812020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11682
11683 * debuginfod-support.c: Include defs.h first.
11684
658dadf0
TV
116852020-02-28 Tom de Vries <tdevries@suse.de>
11686
11687 * symfile.c (set_initial_language): Use default language for lookup.
11688
4ebe4877
SM
116892020-02-28 Simon Marchi <simon.marchi@efficios.com>
11690
11691 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11692 reader variable, pass `this` to read_cutu_die_from_dwo.
11693
e5da1139
AM
116942020-02-27 Aaron Merey <amerey@redhat.com>
11695
11696 * source.c (open_source_file): Check for nullptr when computing
11697 srcpath.
11698
317f7127
TT
116992020-02-27 Tom Tromey <tromey@adacore.com>
11700
11701 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11702 member.
11703 (dwarf2_add_field): Don't update nfields.
11704 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11705
3104d9ee
AB
117062020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11707
11708 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11709 abs.
11710
b83470bf
TT
117112020-02-26 Tom Tromey <tom@tromey.com>
11712
11713 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11714 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11715 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11716 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11717 per_cu_data.
11718
edfe0a0c
TT
117192020-02-26 Tom Tromey <tom@tromey.com>
11720
11721 * dwarf2/index-write.c (psym_index_map): Change type.
11722 (add_address_entry_worker, write_one_signatured_type)
11723 (recursively_count_psymbols, recursively_write_psymbols)
11724 (class debug_names, psyms_seen_size, write_gdbindex)
11725 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11726
0d79cdc4
AM
117272020-02-26 Aaron Merey <amerey@redhat.com>
11728
11729 * Makefile.in: Handle optional debuginfod support.
11730 * NEWS: Update.
11731 * README: Add --with-debuginfod summary.
11732 * config.in: Regenerate.
11733 * configure: Regenerate.
11734 * configure.ac: Handle optional debuginfod support.
11735 * debuginfod-support.c: debuginfod helper functions.
11736 * debuginfod-support.h: Ditto.
11737 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11738 summary.
11739 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11740 when a dwz file cannot be found.
11741 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11742 debuginfo file cannot be found.
11743 * source.c (open_source_file): Query debuginfod servers when a
11744 source file cannot be found.
11745 * top.c (print_gdb_configuration): Include
11746 --{with,without}-debuginfod in the output.
11747
b65ce565
JG
117482020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11749
11750 * thread.c (thr_try_catch_cmd): Print thread name.
11751
d4c9a4f8
SM
117522020-02-26 Simon Marchi <simon.marchi@efficios.com>
11753
11754 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11755 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11756 dwarf2_fetch_die_type_sect_off): Move to...
11757 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11758 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11759 dwarf2_fetch_die_type_sect_off): ... here.
11760 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11761 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11762 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11763
0dce4280
TV
117642020-02-26 Tom de Vries <tdevries@suse.de>
11765
11766 PR gdb/25603
11767 * symfile.c (set_initial_language): Exit-early if
11768 language_mode == language_mode_manual.
11769
450a1bfc
SM
117702020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11771
11772 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11773 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11774 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11775
9e80cfa1
AB
117762020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11777
11778 * gdbtypes.c (create_array_type_with_stride): Handle negative
11779 array strides.
11780 * valarith.c (value_subscripted_rvalue): Likewise.
11781
09624f1f
LM
117822020-02-25 Luis Machado <luis.machado@linaro.org>
11783
11784 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11785
8cb5117c
SM
117862020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11787
11788 * loc.h (dwarf2_get_die_type): Move to...
11789 * read.h (dwarf2_get_die_type): ... here.
11790 * read.c (dwarf2_get_die_type): Move doc to header.
11791
c325c44e
JB
117922020-02-25 Joel Brobecker <brobecker@adacore.com>
11793
11794 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11795 'gnulib/Makefile.in' to the list.
11796
4ac93832
TT
117972020-02-24 Tom Tromey <tom@tromey.com>
11798
11799 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11800 Remove.
11801 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11802 XOBNEWVEC.
11803
197400e8
TT
118042020-02-24 Tom Tromey <tom@tromey.com>
11805
11806 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11807 New method.
11808 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11809 (dw2_do_instantiate_symtab, dw2_get_file_names)
11810 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11811
76935768
TT
118122020-02-24 Tom Tromey <tom@tromey.com>
11813
11814 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11815 make_scoped_restore.
11816 (dwarf2_psymtab::read_symtab): Don't clear
11817 reading_partial_symbols.
11818
a88ef40d
TV
118192020-02-24 Tom de Vries <tdevries@suse.de>
11820
11821 PR gdb/25592
11822 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11823
c9af6521
TV
118242020-02-24 Tom de Vries <tdevries@suse.de>
11825
11826 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11827 commands layout next/prev/regs.
11828
5707a07a
TT
118292020-02-22 Tom Tromey <tom@tromey.com>
11830
11831 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11832 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11833
3b0fb49e
TT
118342020-02-22 Tom Tromey <tom@tromey.com>
11835
11836 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11837
283be8bf
TT
118382020-02-22 Tom Tromey <tom@tromey.com>
11839
11840 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11841 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11842 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11843 * tui/tui.c (_initialize_tui): Add usage text.
11844
ca793b96
TT
118452020-02-22 Tom Tromey <tom@tromey.com>
11846
11847 * tui/tui-win.c (tui_set_focus_command)
11848 (tui_set_win_height_command): Use error_no_arg.
11849 (_initialize_tui_win): Update help text.
11850 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11851
432b5c40
TT
118522020-02-22 Tom Tromey <tom@tromey.com>
11853
11854 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11855 * tui/tui-disasm.h (struct tui_disasm_window)
11856 <display_start_addr>: Declare.
11857 * tui/tui-source.h (struct tui_source_window)
11858 <display_start_addr>: Declare.
11859 * tui/tui-winsource.h (struct tui_source_window_base)
11860 <show_source_line, display_start_addr>: New methods.
11861 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11862 Rename and move to protected section.
11863 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11864 (tui_source_window_base::do_erase_source_content): Update.
11865 (tui_source_window_base::show_source_line): Now a method.
11866 (tui_source_window_base::show_source_content)
11867 (tui_source_window_base::tui_source_window_base)
11868 (tui_source_window_base::rerender)
11869 (tui_source_window_base::refill)
11870 (tui_source_window_base::do_scroll_horizontal)
11871 (tui_source_window_base::set_is_exec_point_at)
11872 (tui_source_window_base::update_breakpoint_info)
11873 (tui_source_window_base::update_exec_info): Update.
11874 * tui/tui-source.c (tui_source_window::set_contents)
11875 (tui_source_window::showing_source_p)
11876 (tui_source_window::do_scroll_vertical)
11877 (tui_source_window::location_matches_p)
11878 (tui_source_window::line_is_displayed): Update.
11879 (tui_source_window::display_start_addr): New method.
11880 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11881 (tui_disasm_window::do_scroll_vertical)
11882 (tui_disasm_window::location_matches_p): Update.
11883 (tui_disasm_window::display_start_addr): New method.
11884
01b1af32
TT
118852020-02-22 Tom Tromey <tom@tromey.com>
11886
11887 * NEWS: Add entry for gdb.register_window_type.
11888 * tui/tui-layout.h (window_factory): New typedef.
11889 (tui_register_window): Declare.
11890 * tui/tui-layout.c (saved_tui_windows): New global.
11891 (tui_apply_current_layout): Use it.
11892 (tui_register_window): New function.
11893 * python/python.c (do_start_initialization): Call
11894 gdbpy_initialize_tui.
11895 (python_GdbMethods): Add "register_window_type" function.
11896 * python/python-internal.h (gdbpy_register_tui_window)
11897 (gdbpy_initialize_tui): Declare.
11898 * python/py-tui.c: New file.
11899 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11900
fc96d20b
TT
119012020-02-22 Tom Tromey <tom@tromey.com>
11902
11903 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11904
935c78c0
TT
119052020-02-22 Tom Tromey <tom@tromey.com>
11906
11907 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11908 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11909 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11910 (tui_set_win_focus_to): Move from tui-win.c.
11911
0240c8f1
TT
119122020-02-22 Tom Tromey <tom@tromey.com>
11913
11914 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11915 functions.
11916 (known_window_types): New global.
11917 (tui_get_window_by_name): Reimplement.
11918 (initialize_known_windows): New function.
11919 (validate_window_name): Rewrite.
11920 (_initialize_tui_layout): Call initialize_known_windows.
11921
fdb01f0c
TT
119222020-02-22 Tom Tromey <tom@tromey.com>
11923
11924 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11925 Remove constants.
11926 * tui/tui-winsource.h (struct tui_source_window_base)
11927 <tui_source_window_base>: Remove parameter.
11928 * tui/tui-winsource.c
11929 (tui_source_window_base::tui_source_window_base): Remove
11930 parameter.
11931 (tui_source_window_base::refill): Update.
11932 * tui/tui-stack.h (struct tui_locator_window)
11933 <tui_locator_window>: Update.
11934 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11935 Default the constructor.
11936 * tui/tui-regs.h (struct tui_data_item_window)
11937 <tui_data_item_window>: Default the constructor.
11938 (struct tui_data_window) <tui_data_window>: Likewise.
11939 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11940 Default the constructor.
11941 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11942 Default the constructor.
11943 <type>: Remove.
11944 (struct tui_win_info) <tui_win_info>: Default the constructor.
11945 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11946 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11947 Default the constructor.
11948
865a5aec
TT
119492020-02-22 Tom Tromey <tom@tromey.com>
11950
11951 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11952 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11953 * tui/tui-win.c (tui_resize_all): Don't call
11954 tui_delete_invisible_windows.
11955 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11956 done.
11957 (tui_set_layout): Update.
11958 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11959 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11960 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11961
e098d18c
TT
119622020-02-22 Tom Tromey <tom@tromey.com>
11963
11964 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11965 correctly.
11966
eb9c8874
TT
119672020-02-22 Tom Tromey <tom@tromey.com>
11968
11969 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11970
7eed1a8e
TT
119712020-02-22 Tom Tromey <tom@tromey.com>
11972
11973 * tui/tui-winsource.h (struct tui_source_window_iterator)
11974 <inner_iterator>: New etytypedef.
11975 <tui_source_window_iterator>: Take "end" parameter.
11976 <tui_source_window_iterator>: Take iterator.
11977 <operator*, advance>: Update.
11978 <m_iter>: Change type.
11979 <m_end>: New field.
11980 (struct tui_source_windows) <begin, end>: Update.
11981 * tui/tui-layout.c (tui_windows): New global.
11982 (tui_apply_current_layout): Clear tui_windows.
11983 (tui_layout_window::apply): Update tui_windows.
11984 * tui/tui-data.h (tui_windows): Declare.
11985 (all_tui_windows): Now inline function.
11986 (class tui_window_iterator, struct all_tui_windows): Remove.
11987
7c043ba6
TT
119882020-02-22 Tom Tromey <tom@tromey.com>
11989
11990 PR tui/17850:
11991 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11992 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11993 "height" argument.
11994 (class tui_layout_window) <get_sizes>: Likewise.
11995 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11996 argument.
11997 <get_sizes>: Add "height" argument.
11998 <m_vertical>: New field.
11999 * tui/tui-layout.c (tui_layout_split::clone): Update.
12000 (tui_layout_split::get_sizes): Add "height" argument.
12001 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12002 (tui_new_layout_command): Parse "-horizontal".
12003 (_initialize_tui_layout): Update help string.
12004 (tui_layout_split::specification): Add "-horizontal" when needed.
12005 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12006 argument.
12007 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12008 New methods.
12009
6bc56648
TT
120102020-02-22 Tom Tromey <tom@tromey.com>
12011
12012 * tui/tui-layout.h (enum tui_adjust_result): New.
12013 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12014 (class tui_layout_window) <adjust_size>: Return
12015 tui_adjust_result. Rewrite.
12016 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12017 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12018
c22fef7e
TT
120192020-02-22 Tom Tromey <tom@tromey.com>
12020
12021 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12022 parameter and return types.
12023 (class tui_layout_base) <specification>: Add "depth".
12024 (class tui_layout_window) <specification>: Add "depth".
12025 (class tui_layout_split) <specification>: Add "depth".
12026 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12027 and return types.
12028 (tui_new_layout_command): Parse sub-layouts.
12029 (_initialize_tui_layout): Update help string.
12030 (tui_layout_window::specification): Add "depth".
12031 (add_layout_command): Update.
12032
ee325b61
TT
120332020-02-22 Tom Tromey <tom@tromey.com>
12034
12035 * NEWS: Add "tui new-layout" item.
12036 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12037 Add new-layout command to help text.
12038 (validate_window_name): New function.
12039 (tui_new_layout_command): New function.
12040 (_initialize_tui_layout): Register "new-layout".
12041 (tui_layout_window::specification): New method.
12042 (tui_layout_window::specification): New method.
12043 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12044 method.
12045 (class tui_layout_window) <specification>: New method.
12046 (class tui_layout_split) <specification>: New method.
12047
416eb92d
TT
120482020-02-22 Tom Tromey <tom@tromey.com>
12049
12050 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12051 * tui/tui-win.c (window_name_completer): Update comment.
12052 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12053 Declare method.
12054 (class tui_layout_window) <replace_window>: Likewise.
12055 (class tui_layout_split) <replace_window>: Likewise.
12056 (tui_set_layout): Don't declare.
12057 (tui_set_initial_layout): Declare function.
12058 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12059 (asm_regs_layout): New globals.
12060 (tui_current_layout, show_layout): Remove.
12061 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12062 (find_layout, tui_apply_layout): New function.
12063 (layout_completer): Remove.
12064 (tui_next_layout): Reimplement.
12065 (tui_next_layout_command): New function.
12066 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12067 (tui_regs_layout): Reimplement.
12068 (tui_regs_layout_command): New function.
12069 (extract_display_start_addr): Rewrite.
12070 (next_layout, prev_layout): Remove.
12071 (tui_layout_window::replace_window): New method.
12072 (tui_layout_split::replace_window): New method.
12073 (destroy_layout): New function.
12074 (layout_list): New global.
12075 (add_layout_command): New function.
12076 (initialize_layouts): Update.
12077 (tui_layout_command): New function.
12078 (_initialize_tui_layout): Install "layout" commands.
12079 * tui/tui-data.h (enum tui_layout_type): Remove.
12080 (tui_current_layout): Don't declare.
12081
0dbc2fc7
TT
120822020-02-22 Tom Tromey <tom@tromey.com>
12083
12084 * tui/tui-regs.c (tui_reg_layout): Remove.
12085 (tui_reg_command): Use tui_regs_layout.
12086 * tui/tui-layout.h (tui_reg_command): Declare.
12087 * tui/tui-layout.c (tui_reg_command): New function.
12088
5afe342e
TT
120892020-02-22 Tom Tromey <tom@tromey.com>
12090
12091 * tui/tui.c (tui_rl_delete_other_windows): Call
12092 tui_remove_some_windows.
12093 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12094 Declare method.
12095 (class tui_layout_window) <remove_windows>: New method.
12096 (class tui_layout_split) <remove_windows>: Declare.
12097 (tui_remove_some_windows): Declare.
12098 * tui/tui-layout.c (tui_remove_some_windows): New function.
12099 (tui_layout_split::remove_windows): New method.
12100
427326a8
TT
121012020-02-22 Tom Tromey <tom@tromey.com>
12102
12103 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12104 * tui/tui-layout.h (tui_next_layout): Declare.
12105 * tui/tui-layout.c (tui_next_layout): New function.
12106
3fe12b6d
TT
121072020-02-22 Tom Tromey <tom@tromey.com>
12108
12109 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12110 correct coordinates.
12111
59b8b5d2
TT
121122020-02-22 Tom Tromey <tom@tromey.com>
12113
12114 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12115 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12116 DATA_WIN case.
12117
2a3d458b
TT
121182020-02-22 Tom Tromey <tom@tromey.com>
12119
12120 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12121 TUI_DISASM_WIN, not tui_win_list.
12122
3f0cbb04
TT
121232020-02-22 Tom Tromey <tom@tromey.com>
12124
12125 * valprint.c (generic_val_print_enum_1)
12126 (val_print_type_code_flags): Style member names.
12127 * rust-lang.c (val_print_struct, rust_print_enum)
12128 (rust_print_struct_def, rust_internal_print_type): Style member
12129 names.
12130 * p-valprint.c (pascal_object_print_value_fields): Style member
12131 names. Only call fprintf_symbol_filtered for static members.
12132 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12133 * f-valprint.c (f_val_print): Style member names.
12134 * f-typeprint.c (f_type_print_base): Style member names.
12135 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12136 call fprintf_symbol_filtered for static members.
12137 (cp_print_class_member): Style member names.
12138 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12139 member names.
12140 * ada-valprint.c (ada_print_scalar): Style enum names.
12141 (ada_val_print_enum): Likewise.
12142 * ada-typeprint.c (print_enum_type): Style enum names.
12143
d4d947ae
TT
121442020-02-21 Tom Tromey <tom@tromey.com>
12145
12146 * psympriv.h (struct partial_symtab): Update comment.
12147
e94e944b
TT
121482020-02-21 Tom Tromey <tromey@adacore.com>
12149
12150 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12151 type is CORE_ADDR.
12152
1eb73179
TV
121532020-02-21 Tom de Vries <tdevries@suse.de>
12154
12155 PR gdb/25534
12156 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12157 if dependencies[i]->user != NULL.
12158
4f180d53
AT
121592020-02-21 Ali Tamur <tamur@google.com>
12160
12161 * dwarf2/read.c (dwarf2_name): Add null check.
12162
22b6cd70
TT
121632020-02-20 Tom Tromey <tom@tromey.com>
12164
12165 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12166 ">=", in binary search.
12167 (dwarf2_find_containing_comp_unit): New overload.
12168 (run_test): New self-test.
12169 (_initialize_dwarf2_read): Register new test.
12170
bd0cf5a6
NC
121712020-02-20 Nelson Chu <nelson.chu@sifive.com>
12172
12173 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12174 * riscv-tdep.h: Likewise.
12175 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12176 rv32-only CSR.
12177 * features/riscv/64bit-csr.xml: Regenerated.
12178
3f702acd
SDJ
121792020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12180 Tom Tromey <tom@tromey.com>
12181
12182 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12183 of 'fputc_unfiltered'.
12184 (putchar_unfiltered): Call 'fputc_unfiltered'.
12185 (fputc_unfiltered): Call 'fputs_unfiltered'.
12186
d13c7322
AB
121872020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12188
12189 * config.in: Regenerate.
12190 * configure: Regenerate.
12191 * configure.ac: Add --with-python-libdir option.
12192 * main.c: Use WITH_PYTHON_LIBDIR.
12193
869d8950
TT
121942020-02-19 Tom Tromey <tom@tromey.com>
12195
12196 * symtab.c (general_symbol_info::compute_and_set_names): Use
12197 obstack_strndup. Simplify call to symbol_set_demangled_name.
12198
298e9637
SM
121992020-02-19 Simon Marchi <simon.marchi@efficios.com>
12200
12201 * dwarf2/read.c (allocate_signatured_type_table,
12202 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12203 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12204 Remove objfile parameter, update all callers.
12205
08410482
DE
122062020-02-19 Doug Evans <dje@google.com>
12207
12208 PR rust/25535
12209 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12210 rust_enum_variant calculation.
12211
dfdeeca1
TT
122122020-02-19 Tom Tromey <tromey@adacore.com>
12213
12214 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12215
2ef5453b
TT
122162020-02-19 Tom Tromey <tromey@adacore.com>
12217
12218 * ada-lang.c (cache_symbol): Use obstack_strdup.
12219
9f1528a1
AB
122202020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12221
12222 * configure: Regenerate.
12223
d3c22fa8
TT
122242020-02-19 Tom Tromey <tromey@adacore.com>
12225
12226 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12227 NULL check.
12228
bf84f706
MR
122292020-02-19 Maciej W. Rozycki <macro@wdc.com>
12230
12231 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12232
d1c9b20f
AB
122332020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12234
12235 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12236 if GDBSERVER is not defined.
12237 (riscv_tdesc_cache): Likewise, also store const target_desc.
12238 (STATIC_IN_GDB): Define.
12239 (riscv_create_target_description): Update declaration with
12240 STATIC_IN_GDB.
12241 (riscv_lookup_target_description): New function, only define if
12242 GDBSERVER is not defined.
12243 * arch/riscv.h (riscv_create_target_description): Declare only
12244 when GDBSERVER is defined.
12245 (riscv_lookup_target_description): New declaration when GDBSERVER
12246 is not defined.
12247 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12248 (riscv_linux_read_features): ...this, and return
12249 riscv_gdbarch_features instead of target_desc.
12250 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12251 (riscv_linux_read_description): Rename to...
12252 (riscv_linux_read_features): ...this.
12253 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12254 Update to use riscv_gdbarch_features and
12255 riscv_lookup_target_description.
12256 * riscv-tdep.c (riscv_find_default_target_description): Use
12257 riscv_lookup_target_description instead of
12258 riscv_create_target_description.
12259
373d7ac0
SM
122602020-02-18 Simon Marchi <simon.marchi@efficios.com>
12261
12262 * valprint.c (generic_val_print_enum_1): When printing a flag
12263 enum with value 0 and there is no enumerator with value 0, print
12264 just "0" instead of "(unknown: 0x0)".
12265
b29a2df0
SM
122662020-02-18 Simon Marchi <simon.marchi@efficios.com>
12267
12268 * valprint.c (generic_val_print_enum_1): Print unknown part of
12269 flag enum in hex.
12270
6740f0cc
SM
122712020-02-18 Simon Marchi <simon.marchi@efficios.com>
12272
12273 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12274 flag enums to contain duplicate enumerators.
12275 * valprint.c (generic_val_print_enum_1): Update comment.
12276
edd45eb0
SM
122772020-02-18 Simon Marchi <simon.marchi@efficios.com>
12278
12279 * dwarf2/read.c: Include "count-one-bits.h".
12280 (update_enumeration_type_from_children): If an enumerator has
12281 multiple bits set, don't treat the enumeration as a "flag enum".
12282 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12283 of flag enums have 0 or 1 bit set.
12284
6d0cf446
BE
122852020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12286
12287 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12288 conversion.
12289 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12290 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12291 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12292 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12293 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12294
7001c1b7
SM
122952020-02-18 Simon Marchi <simon.marchi@efficios.com>
12296
12297 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12298
fdb61c6c
SM
122992020-02-14 Simon Marchi <simon.marchi@efficios.com>
12300
12301 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12302 displaced_step_closure_up.
12303 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12304 (struct displaced_step_closure_up):
12305 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12306 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12307 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12308 Likewise.
12309 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12310 * gdbarch.c, gdbarch.h: Re-generate.
12311 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12312 displaced_step_closure_up.
12313 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12314 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12315 * infrun.h (displaced_step_closure_up): New type alias.
12316 (struct displaced_step_inferior_state) <step_closure>: Change
12317 type to displaced_step_closure_up.
12318 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12319 displaced_step_closure_up.
12320 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12321
a4a38eb4
TT
123222020-02-14 Tom Tromey <tom@tromey.com>
12323
12324 * minidebug.c (gnu_debug_key): New global.
12325 (find_separate_debug_file_in_section): Use it.
12326
e8217e61
SM
123272020-02-14 Simon Marchi <simon.marchi@efficios.com>
12328
12329 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12330 std::unique_ptr.
12331 * gdbarch.c: Re-generate.
12332 * gdbarch.h: Re-generate.
12333 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12334 change.
12335 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12336 type to std::unique_ptr.
12337 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12338 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12339 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12340 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12341 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12342 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12343 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12344 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12345 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12346
d8d83535
SM
123472020-02-14 Simon Marchi <simon.marchi@efficios.com>
12348
12349 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12350 std::unique_ptr.
12351 (displaced_step_clear): Rename to...
12352 (displaced_step_reset): ... this. Just call displaced->reset ().
12353 (displaced_step_clear_cleanup): Rename to...
12354 (displaced_step_reset_cleanup): ... this.
12355 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12356 (displaced_step_fixup): Likewise.
12357 (resume_1): Likewise.
12358 (handle_inferior_event): Restore child's memory before calling
12359 displaced_step_fixup on the parent.
12360 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12361 to std::unique_ptr.
12362 <step_closure>: Change type to std::unique_ptr.
12363
5f661e03
SM
123642020-02-14 Simon Marchi <simon.marchi@efficios.com>
12365
12366 * arm-tdep.c: Include count-one-bits.h.
12367 (cleanup_block_store_pc): Use count_one_bits.
12368 (cleanup_block_load_pc): Use count_one_bits.
12369 (arm_copy_block_xfer): Use count_one_bits.
12370 (thumb2_copy_block_xfer): Use count_one_bits.
12371 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12372 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12373 (thumb_get_next_pcs_raw): Use count_one_bits.
12374 (arm_get_next_pcs_raw): Use count_one_bits_l.
12375 * arch/arm.c (bitcount): Remove.
12376 * arch/arm.h (bitcount): Remove.
12377
8084e579
TT
123782020-02-14 Tom Tromey <tromey@adacore.com>
12379
12380 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12381 Update.
12382 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12383 * dwarf2/loc.c (call_site_find_chain_1): Return
12384 unique_xmalloc_ptr.
12385 (call_site_find_chain): Likewise.
12386
258bf0ee
RB
123872020-02-14 Richard Biener <rguenther@suse.de>
12388
12389 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12390 on expression with division operators.
12391
f98a8458
AKS
123922020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12393
12394 * MAINTAINERS (Write After Approval): Adding myself.
12395
d1437c0e
TT
123962020-02-12 Tom Tromey <tom@tromey.com>
12397
12398 * event-loop.c (event_data, gdb_event, event_handler_func):
12399 Remove.
12400
3d4560f7
TT
124012020-02-12 Tom Tromey <tom@tromey.com>
12402
12403 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12404 (dwarf2_frame_objfile_data): Add comment.
12405 (find_comp_unit, set_comp_unit): New functions.
12406 (dwarf2_frame_find_fde): Use find_comp_unit.
12407 (dwarf2_build_frame_info): Use set_comp_unit.
12408
21982304
TT
124092020-02-12 Tom Tromey <tom@tromey.com>
12410
12411 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12412 (comp_unit): Don't initialize objfile.
12413 (execute_cfa_program): Add text_offset parameter.
12414 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12415 (dwarf2_frame_cache): Update.
12416 (dwarf2_build_frame_info): Don't set "objfile" member.
12417
4debb237
TT
124182020-02-12 Tom Tromey <tom@tromey.com>
12419
12420 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12421 (decode_frame_entry): Likewise.
12422 (dwarf2_build_frame_info): Update.
12423
0d404d44
TT
124242020-02-12 Tom Tromey <tom@tromey.com>
12425
12426 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12427 (decode_frame_entry_1): Use the comp_unit obstack.
12428
a7a3ae5c
TT
124292020-02-12 Tom Tromey <tom@tromey.com>
12430
12431 * dwarf2/frame.c (struct comp_unit): Add initializers and
12432 constructor.
12433 (dwarf2_frame_objfile_data): Store a comp_unit.
12434 (dwarf2_frame_find_fde): Update.
12435 (dwarf2_build_frame_info): Use "new".
12436
a9d65418
TT
124372020-02-12 Tom Tromey <tom@tromey.com>
12438
12439 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12440 (dwarf2_fde_table): Typedef for std::vector.
12441 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12442 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12443 (decode_frame_entry): Update.
12444 (dwarf2_build_frame_info): Use "new".
12445
7559c217
CB
124462020-02-12 Christian Biesinger <cbiesinger@google.com>
12447
12448 * arm-tdep.c (arm_gdbarch_init): Update.
12449 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12450 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12451 have_neon, is_m>: Change to bool.
12452
aeefc73c
CB
124532020-02-12 Christian Biesinger <cbiesinger@google.com>
12454
12455 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12456
d27b8e5f
TT
124572020-02-12 Tom Tromey <tom@tromey.com>
12458
12459 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12460
cd5900f3
HD
124612020-02-12 Hannes Domani <ssbssa@yahoo.de>
12462
12463 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12464 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12465
f056b22b
TT
124662020-02-11 Tom Tromey <tom@tromey.com>
12467
12468 * psymtab.h: Update comment.
12469
f92ff6b5
TT
124702020-02-11 Tom Tromey <tom@tromey.com>
12471
12472 * gdb_obstack.h (struct auto_obstack): Use
12473 DISABLE_COPY_AND_ASSIGN.
12474
3fd6912b
TT
124752020-02-11 Tom Tromey <tom@tromey.com>
12476
12477 * dwarf2/frame.h (struct objfile): Don't forward declare.
12478
69ed9b74
CB
124792020-02-11 Christian Biesinger <cbiesinger@google.com>
12480
12481 * cris-tdep.c (cris_supply_gregset): Change signature to match
12482 what struct regset expects.
12483 (cris_regset): New struct.
12484 (fetch_core_registers): Remove.
12485 (cris_iterate_over_regset_sections): New function.
12486 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12487 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12488
bda874f6
CB
124892020-02-11 Christian Biesinger <cbiesinger@google.com>
12490
12491 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12492 registers.
12493
754e1564
CB
124942020-02-11 Christian Biesinger <cbiesinger@google.com>
12495
12496 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12497
8ddd8e0e
SM
124982020-02-11 Simon Marchi <simon.marchi@efficios.com>
12499
12500 * configure: Re-generate.
12501
898e7f60
SM
125022020-02-11 Simon Marchi <simon.marchi@efficios.com>
12503
12504 * configure: Re-generate.
12505
58df732b
SM
125062020-02-11 Simon Marchi <simon.marchi@efficios.com>
12507
12508 * acinclude: Update warning.m4 path.
12509 * warning.m4: Move to gdbsupport.
12510
da5bd37e
TT
125112020-02-11 Tom Tromey <tromey@adacore.com>
12512
12513 * remote.c (remote_console_output): Update.
12514 * printcmd.c (printf_command): Update.
12515 * event-loop.c (gdb_wait_for_event): Update.
12516 * linux-nat.c (sigchld_handler): Update.
12517 * remote-sim.c (gdb_os_write_stdout): Update.
12518 (gdb_os_flush_stdout): Update.
12519 (gdb_os_flush_stderr): Update.
12520 (gdb_os_write_stderr): Update.
12521 * exceptions.c (print_exception): Update.
12522 * remote-fileio.c (remote_fileio_func_read): Update.
12523 (remote_fileio_func_write): Update.
12524 * tui/tui.c (tui_enable): Update.
12525 * tui/tui-interp.c (tui_interp::init): Update.
12526 * utils.c (init_page_info): Update.
12527 (putchar_unfiltered, fputc_unfiltered): Update.
12528 (gdb_flush): Update.
12529 (emit_style_escape): Update.
12530 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12531 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12532 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12533 (stderr_file::write): Update.
12534 (stderr_file::puts): Update.
12535 * ui-file.h (ui_file_isatty, ui_file_write)
12536 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12537 (ui_file_puts): Don't declare.
12538
85f0dd3c
TV
125392020-02-10 Tom de Vries <tdevries@suse.de>
12540
12541 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12542 sentinel to char *.
12543
2e927613
TV
125442020-02-09 Tom de Vries <tdevries@suse.de>
12545
12546 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12547 filename if it matches "<artificial>".
12548
6bafc845
HD
125492020-02-09 Hannes Domani <ssbssa@yahoo.de>
12550
12551 * windows-tdep.c (struct enum_value_name): New struct.
12552 (create_enum): New function.
12553 (windows_get_siginfo_type): Create and use enum types.
12554
7928d571
HD
125552020-02-09 Hannes Domani <ssbssa@yahoo.de>
12556
12557 * NEWS: Mention $_siginfo support for Windows.
12558 * windows-nat.c (handle_exception): Set siginfo_er.
12559 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12560 (windows_xfer_siginfo): New function.
12561 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12562 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12563 (init_windows_gdbarch_data): New function.
12564 (get_windows_gdbarch_data): New function.
12565 (windows_get_siginfo_type): New function.
12566 (windows_init_abi): Register windows_get_siginfo_type.
12567 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12568
6751ebae
TT
125692020-02-08 Tom Tromey <tom@tromey.com>
12570
12571 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12572 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12573 <keep>: Declare method.
12574 <m_keep>: Remove member.
12575 <~cutu_reader>: Remove.
12576 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12577 (cutu_reader::cutu_reader): Update.
12578 (cutu_reader::keep): Rename from ~cutu_reader.
12579 (process_psymtab_comp_unit, build_type_psymtabs_1)
12580 (process_skeletonless_type_unit, load_partial_comp_unit)
12581 (load_full_comp_unit, dwarf2_read_addr_index)
12582 (read_signatured_type): Update.
12583
135f5437
TT
125842020-02-08 Tom Tromey <tom@tromey.com>
12585
12586 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12587 "want_partial_unit" parameter.
12588 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12589 Inline check for DW_TAG_partial_unit.
12590 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12591
9f66ff1c
TT
125922020-02-08 Tom Tromey <tom@tromey.com>
12593
12594 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12595 read.c.
12596 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12597 read.c.
12598
c8a7a66f
TT
125992020-02-08 Tom Tromey <tom@tromey.com>
12600
12601 * dwarf2/read.c (read_address): Move to comp-unit.c.
12602 (dwarf2_rnglists_process, dwarf2_ranges_process)
12603 (read_attribute_value, dwarf_decode_lines_1)
12604 (var_decode_location, decode_locdesc): Update.
12605 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12606 read.c. Remove "cu" parameter.
12607 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12608 method.
12609
8266302d
TT
126102020-02-08 Tom Tromey <tom@tromey.com>
12611
12612 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12613 (read_indirect_line_string): Update.
12614 * dwarf2/comp-unit.c (read_offset): Remove.
12615 (read_comp_unit_head): Update.
12616 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12617 method.
12618 (read_offset): Don't declare.
12619
4057dfde
TT
126202020-02-08 Tom Tromey <tom@tromey.com>
12621
12622 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12623 * dwarf2/read.c (struct comp_unit_head): Move to
12624 dwarf2/comp-unit.h.
12625 (enum class rcuh_kind): Move to comp-unit.h.
12626 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12627 (read_comp_unit_head, error_check_comp_unit_head)
12628 (read_and_check_comp_unit_head): Move to comp-unit.c.
12629 (read_offset, dwarf_unit_type_name): Likewise.
12630 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12631 (cutu_reader::cutu_reader, read_call_site_scope)
12632 (find_partial_die, follow_die_offset): Update.
12633 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12634
24aa364d
TT
126352020-02-08 Tom Tromey <tom@tromey.com>
12636
12637 * dwarf2/read.c (read_offset_1): Move to leb.c.
12638 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12639 (dwarf_decode_macro_bytes): Update.
12640 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12641 * dwarf2/leb.h (read_offset): Declare.
12642
2c7d5afc
TT
126432020-02-08 Tom Tromey <tom@tromey.com>
12644
12645 * dwarf2/read.c (dwarf2_section_size): Remove.
12646 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12647 Update.
12648 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12649
4075cb26
TT
126502020-02-08 Tom Tromey <tom@tromey.com>
12651
12652 * dwarf2/read.c (read_initial_length): Move to leb.c.
12653 * dwarf2/leb.h (read_initial_length): Declare.
12654 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12655 handle_nonstd parameter.
12656 * dwarf2/frame.c (read_initial_length): Remove.
12657 (decode_frame_entry_1): Update.
12658
09ba997f
TT
126592020-02-08 Tom Tromey <tom@tromey.com>
12660
12661 * dwarf2/loc.c (dwarf2_find_location_expression)
12662 (dwarf_evaluate_loc_desc::get_tls_address)
12663 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12664 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12665 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12666 (dwarf2_compile_property_to_c)
12667 (dwarf2_loc_desc_get_symbol_read_needs)
12668 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12669 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12670 (loclist_describe_location, loclist_tracepoint_var_ref)
12671 (loclist_generate_c_location): Update.
12672 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12673 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12674 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12675 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12676 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12677 (dwarf2_per_cu_data::addr_size)
12678 (dwarf2_per_cu_data::ref_addr_size)
12679 (dwarf2_per_cu_data::text_offset)
12680 (dwarf2_per_cu_data::addr_type): Now methods.
12681 (per_cu_header_read_in): Make per_cu "const".
12682 (dwarf2_version): Remove.
12683 (dwarf2_per_cu_data::int_type): Now a method.
12684 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12685 (set_die_type, read_array_type, read_subrange_index_type)
12686 (read_tag_string_type, read_subrange_type): Update.
12687 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12688 offset_size, ref_addr_size, text_offset, addr_type, version,
12689 objfile, int_type, addr_sized_int_type>: Declare methods.
12690
96c738c0
TT
126912020-02-08 Tom Tromey <tom@tromey.com>
12692
12693 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12694 Move earlier.
12695
8fdd972c
TT
126962020-02-08 Tom Tromey <tom@tromey.com>
12697
12698 * dwarf2/read.h (dwarf_line_debug): Declare.
12699 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12700 * dwarf2/read.c: Move line_header code to new files.
12701 (dwarf_line_debug): No longer static.
12702 * dwarf2/line-header.c: New file.
12703 * dwarf2/line-header.h: New file.
12704
03075812
TT
127052020-02-08 Tom Tromey <tom@tromey.com>
12706
12707 * dwarf2/read.c (struct line_header) <file_full_name,
12708 file_file_name>: Return unique_xmalloc_ptr.
12709 (line_header::file_file_name): Update.
12710 (line_header::file_full_name): Update.
12711 (dw2_get_file_names_reader): Update.
12712 (macro_start_file): Update.
12713
bb822404
TT
127142020-02-08 Tom Tromey <tom@tromey.com>
12715
12716 * dwarf2/read.c (struct line_header) <file_full_name,
12717 file_file_name>: Declare methods.
12718 (dw2_get_file_names_reader): Update.
12719 (file_file_name): Now a method.
12720 (file_full_name): Likewise.
12721 (macro_start_file): Update.
12722
009b64fc
TT
127232020-02-08 Tom Tromey <tom@tromey.com>
12724
12725 * dwarf2/read.c (dwarf_always_disassemble)
12726 (show_dwarf_always_disassemble): Move to loc.c.
12727 (_initialize_dwarf2_read): Move "always-disassemble" registration
12728 to loc.c.
12729 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12730 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12731 static.
12732 (show_dwarf_always_disassemble): Move from read.c.
12733 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12734
5895093f
TT
127352020-02-08 Tom Tromey <tom@tromey.com>
12736
12737 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12738 (create_quick_file_names_table): Return htab_up.
12739 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12740 Update.
12741 * dwarf2/read.h (struct dwarf2_per_objfile)
12742 <quick_file_names_table>: Now htab_up.
12743
b3b32279
TT
127442020-02-08 Tom Tromey <tom@tromey.com>
12745
12746 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12747
1d33d811
TT
127482020-02-08 Tom Tromey <tom@tromey.com>
12749
12750 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12751 Rewrite.
12752 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12753 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12754 (abbrev_table::abbrev_table): No longer inline.
12755 (ABBREV_HASH_SIZE): Remove.
12756 (abbrev_table::m_abbrevs): Now an htab_up.
12757
86de1d91
TT
127582020-02-08 Tom Tromey <tom@tromey.com>
12759
12760 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12761 (cutu_reader): Update.
12762 (build_type_psymtabs_1): Update.
12763 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12764 (abbrev_table::alloc_abbrev): Update.
12765 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12766 (abbrev_table::read): New static method, renamed from
12767 abbrev_table_read_table.
12768 (abbrev_table::alloc_abbrev)
12769 (abbrev_table::add_abbrev): Now private.
12770 (abbrev_table::abbrev_table): Now private.
12771 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12772
0335378b
TT
127732020-02-08 Tom Tromey <tom@tromey.com>
12774
12775 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12776 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12777 htab_up.
12778
48b490f2
TT
127792020-02-08 Tom Tromey <tom@tromey.com>
12780
12781 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12782 htab_up.
12783 (lookup_dwo_unit_in_dwp): Update.
12784 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12785 on obstack.
12786
bc68fb19
TT
127872020-02-08 Tom Tromey <tom@tromey.com>
12788
12789 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12790 obstack.
12791
d15acc42
TT
127922020-02-08 Tom Tromey <tom@tromey.com>
12793
12794 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12795 line_header_hash.
12796 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12797 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12798 Change type to htab_up.
12799
eaa5fa8b
TT
128002020-02-08 Tom Tromey <tom@tromey.com>
12801
12802 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12803 htab_up. Don't allocate on obstack.
12804 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12805 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12806 Change type to htab_up.
12807
b0b6a987
TT
128082020-02-08 Tom Tromey <tom@tromey.com>
12809
12810 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12811 Change type to htab_up.
12812 * dwarf2/read.c (create_signatured_type_table_from_index)
12813 (create_signatured_type_table_from_debug_names)
12814 (create_all_type_units, add_type_unit)
12815 (lookup_dwo_signatured_type, lookup_signatured_type)
12816 (process_skeletonless_type_unit): Update.
12817 (create_debug_type_hash_table, create_debug_types_hash_table):
12818 Change type of types_htab.
12819 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12820 htab_up. Don't allocate on obstack.
12821 (create_cus_hash_table): Change type of cus_htab parameter.
12822 (struct dwo_file) <cus, tus>: Now htab_up.
12823 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12824 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12825 (queue_and_load_all_dwo_tus): Update.
12826 * dwarf2/index-write.c (write_gdbindex): Update.
12827 (write_debug_names): Update.
12828
39856def
TT
128292020-02-08 Tom Tromey <tom@tromey.com>
12830
12831 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12832 dwarf2/read.c. Remove "next" member. Add constructor ntad
12833 destructor.
12834 (struct dwarf2_per_objfile) <queue>: New member.
12835 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12836 dwarf2/read.h.
12837 (dwarf2_queue, dwarf2_queue_tail): Remove.
12838 (class dwarf2_queue_guard): Add parameter to constructor. Use
12839 DISABLE_COPY_AND_ASSIGN.
12840 <m_per_objfile>: New member.
12841 <~dwarf2_queue_guard>: Rewrite.
12842 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12843 Update.
12844 (~dwarf2_queue_item): New.
12845
3e225074
TT
128462020-02-08 Tom Tromey <tom@tromey.com>
12847
12848 * dwarf2/read.c (struct die_info) <has_children>: New member.
12849 (dw2_get_file_names_reader): Remove has_children.
12850 (dw2_get_file_names): Update.
12851 (read_cutu_die_from_dwo): Remove has_children.
12852 (cutu_reader::init_tu_and_read_dwo_dies)
12853 (cutu_reader::cutu_reader): Update.
12854 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12855 Remove has_children.
12856 (build_type_psymtabs_1, process_skeletonless_type_unit)
12857 (load_partial_comp_unit, load_full_comp_unit): Update.
12858 (create_dwo_cu_reader): Remove has_children.
12859 (create_cus_hash_table, read_die_and_children): Update.
12860 (read_full_die_1,read_full_die): Remove has_children.
12861 (read_signatured_type): Update.
12862 (class cutu_reader) <has_children>: Remove.
12863
82ca8957
TT
128642020-02-08 Tom Tromey <tom@tromey.com>
12865
12866 * dwarf2/expr.c: Rename from dwarf2expr.c.
12867 * dwarf2/expr.h: Rename from dwarf2expr.h.
12868 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12869 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12870 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12871 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12872 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12873 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12874 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12875 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12876 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12877 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12878 * dwarf2/loc.c: Rename from dwarf2loc.c.
12879 * dwarf2/loc.h: Rename from dwarf2loc.h.
12880 * dwarf2/read.c: Rename from dwarf2read.c.
12881 * dwarf2/read.h: Rename from dwarf2read.h.
12882 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12883 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12884 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12885 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12886 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12887 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12888 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12889 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12890 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12891 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12892 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12893 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12894 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12895 Update.
12896 * Makefile.in (COMMON_SFILES): Update.
12897 (HFILES_NO_SRCDIR): Update.
12898
9e35d499
TT
128992020-02-08 Tom Tromey <tom@tromey.com>
12900
12901 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12902 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12903
1eba2311
TT
129042020-02-08 Tom Tromey <tom@tromey.com>
12905
12906 * dwarf2read.h (struct die_info): Don't declare.
12907
e41c2da2
TT
129082020-02-08 Tom Tromey <tom@tromey.com>
12909
12910 * dwarf2read.h (die_info_ptr): Remove typedef.
12911
4fc6c0d5
TT
129122020-02-08 Tom Tromey <tom@tromey.com>
12913
12914 * dwarf2read.c (read_call_site_scope)
12915 (handle_data_member_location, dwarf2_add_member_fn)
12916 (mark_common_block_symbol_computed, read_common_block)
12917 (attr_to_dynamic_prop, partial_die_info::read)
12918 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12919 (dwarf2_symbol_mark_computed, set_die_type): Update.
12920 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12921 method.
12922 (attr_form_is_block): Don't declare.
12923 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12924
cd6c91b4
TT
129252020-02-08 Tom Tromey <tom@tromey.com>
12926
12927 * dwarf2read.c (dwarf2_find_base_address, )
12928 (read_call_site_scope, rust_containing_type)
12929 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12930 (handle_data_member_location, dwarf2_add_member_fn)
12931 (get_alignment, read_structure_type, process_structure_scope)
12932 (mark_common_block_symbol_computed, read_common_block)
12933 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12934 (partial_die_info::read, read_attribute_value, new_symbol)
12935 (lookup_die_type, dwarf2_get_ref_die_offset)
12936 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12937 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12938 (dwarf2_symbol_mark_computed): Update.
12939 * dwarf2/attribute.h (struct attribute) <value_as_address,
12940 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12941 methods.
12942 (value_as_address, attr_form_is_section_offset)
12943 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12944 * dwarf2/attribute.c (attribute::value_as_address)
12945 (attribute::form_is_section_offset, attribute::form_is_constant)
12946 (attribute::form_is_ref): Now methods.
12947
162dce55
TT
129482020-02-08 Tom Tromey <tom@tromey.com>
12949
12950 * dwarf2read.c (struct attribute, DW_STRING)
12951 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12952 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12953 (attr_form_is_block, attr_form_is_section_offset)
12954 (attr_form_is_constant, attr_form_is_ref): Move.
12955 * dwarf2/attribute.h: New file.
12956 * dwarf2/attribute.c: New file, from dwarf2read.c.
12957 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12958
3054dd54
TT
129592020-02-08 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12962 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12963 Move.
12964 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12965 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12966 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12967 abbrev.c.
12968 * dwarf2/abbrev.h: New file.
12969 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12970 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12971
96b79293
TT
129722020-02-08 Tom Tromey <tom@tromey.com>
12973
12974 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12975 (dwarf2_section_size, dwarf2_get_section_info)
12976 (create_signatured_type_table_from_debug_names)
12977 (create_addrmap_from_aranges, read_debug_names_from_section)
12978 (get_gdb_index_contents_from_section, read_comp_unit_head)
12979 (error_check_comp_unit_head, read_abbrev_offset)
12980 (create_debug_type_hash_table, init_cu_die_reader)
12981 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12982 (read_comp_units_from_section, create_cus_hash_table)
12983 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12984 (create_dwp_v2_section, dwarf2_rnglists_process)
12985 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12986 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12987 (read_indirect_string_from_dwz, read_addr_index_1)
12988 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12989 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12990 (fill_in_loclist_baton): Update.
12991 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12992 get_containing_section, get_bfd_owner, get_bfd_section,
12993 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12994 (dwarf2_read_section, get_section_name, get_section_file_name)
12995 (get_containing_section, get_section_bfd_owner)
12996 (get_section_bfd_section, get_section_name, get_section_file_name)
12997 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12998 declare.
12999 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13000 (dwarf2_section_info::get_bfd_owner)
13001 (dwarf2_section_info::get_bfd_section)
13002 (dwarf2_section_info::get_name)
13003 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13004 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13005 (dwarf2_section_info::read): Now methods.
13006 * dwarf-index-write.c (class debug_names): Update.
13007
2c86cff9
TT
130082020-02-08 Tom Tromey <tom@tromey.com>
13009
13010 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13011 Move to dwarf2/section.h.
13012 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13013 (get_section_bfd_section, get_section_name)
13014 (get_section_file_name, get_section_id, get_section_flags)
13015 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13016 dwarf2/section.c.
13017 * dwarf2/section.h: New file.
13018 * dwarf2/section.c: New file, from dwarf2read.c.
13019 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13020
f4382c45
TT
130212020-02-08 Tom Tromey <tom@tromey.com>
13022
13023 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13024 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13025 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13026 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13027 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13028 * dwarf2/leb.h: New file, from dwarf2read.c.
13029 * dwarf2/leb.c: New file, from dwarf2read.c.
13030 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13031 Remove.
13032 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13033 (COMMON_SFILES): Add dwarf2/leb.c.
13034
01840b7a
JB
130352020-02-08 Joel Brobecker <brobecker@adacore.com>
13036
13037 GDB 9.1 released.
13038
dfcb27e4
IB
130392020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13040
13041 PR gdb/25190:
aac66a4c
SM
13042 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13043 * gdb/remote.c (remote_console_output): Update.
13044 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13045 (ui_file_puts): ...this.
13046 * gdb/ui-file.h (ui_file_puts): Add declaration.
13047 * gdb/utils.c (emit_style_escape): Update.
13048 (flush_wrap_buffer): Update.
13049 (fputs_maybe_filtered): Update.
13050 (fputs_unfiltered): Add function.
dfcb27e4 13051
faa17681
IB
130522020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13053
aac66a4c
SM
13054 * gdb/event-loop.c (gdb_wait_for_event): Update.
13055 * gdb/printcmd.c (printf_command): Update.
13056 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13057 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13058 (gdb_os_flush_stderr): Update.
13059 * gdb/remote.c (remote_console_output): Update.
13060 * gdb/ui-file.c (gdb_flush): Rename to...
13061 (ui_file_flush): ...this.
13062 (stderr_file::write): Update.
13063 (stderr_file::puts): Update.
13064 * gdb/ui-file.h (gdb_flush): Rename to...
13065 (ui_file_flush): ...this.
13066 * gdb/utils.c (gdb_flush): Add function.
13067 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13068
5abbbe1d
TT
130692020-02-07 Tom Tromey <tromey@adacore.com>
13070
13071 PR breakpoints/24915:
13072 * source.c (find_and_open_source): Do not check basenames_may_differ.
13073
919adfe8
TT
130742020-02-07 Tom Tromey <tom@tromey.com>
13075
13076 * README: Update gdbserver documentation.
13077 * gdbserver: Move to top level.
13078 * configure.tgt (build_gdbserver): Remove.
13079 * configure.ac: Remove --enable-gdbserver.
13080 * configure: Rebuild.
13081 * Makefile.in (distclean): Don't mention gdbserver.
13082
1d5d29e7
SV
130832020-02-06 Shahab Vahedi <shahab@synopsys.com>
13084
13085 * source-cache.c (source_cache::ensure): Surround
13086 get_plain_source_lines with a try/catch.
13087 (source_cache::get_line_charpos): Get rid of try/catch
13088 and only check for the return value of "ensure".
13089 * tui/tui-source.c (tui_source_window::set_contents):
13090 Simplify "nlines" calculation.
13091
6eb1129c
SV
130922020-02-06 Shahab Vahedi <shahab@synopsys.com>
13093
13094 * MAINTAINERS (Write After Approval): Add myself.
13095
c6a42d11
CB
130962020-02-05 Christian Biesinger <cbiesinger@google.com>
13097
13098 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13099 function call.
13100
c8ecdda6
CB
131012020-02-05 Christian Biesinger <cbiesinger@google.com>
13102
13103 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13104
f6480e70
MR
131052020-02-05 Maciej W. Rozycki <macro@wdc.com>
13106
13107 * nat/riscv-linux-tdesc.h: New file.
13108 * nat/riscv-linux-tdesc.c: New file, taking code from...
13109 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13110 ... here.
13111 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13112 NATDEPFILES.
13113
dcc9fbc6
AB
131142020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13115
13116 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13117 we don't set the fake simulator ptid to the null_ptid.
13118
719546c4
SM
131192020-02-03 Simon Marchi <simon.marchi@efficios.com>
13120
13121 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13122 * gdbthread.h (class thread_info) <resumed>: Likewise.
13123 * infrun.c (resume_1): Likewise.
13124 (proceed): Likewise.
13125 (infrun_thread_stop_requested): Likewise.
13126 (stop_all_threads): Likewise.
13127 (handle_inferior_event): Likewise.
13128 (restart_threads): Likewise.
13129 (finish_step_over): Likewise.
13130 (keep_going_stepped_thread): Likewise.
13131 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13132 (linux_handle_extended_wait): Likewise.
13133 * record-btrace.c (get_thread_current_frame_id): Likewise.
13134 * record-full.c (record_full_wait_1): Likewise.
13135 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13136 * target.c (target_resume): Likewise.
13137 * thread.c (set_running_thread): Likewise.
13138
e409c542
AKS
131392020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13140
13141 * f-valprint.c (f77_print_array_1): Changed datatype of index
13142 variable to LONGEST from int to enable it to contain bound
13143 values correctly.
13144
ee98c0da
MR
131452020-02-03 Maciej W. Rozycki <macro@wdc.com>
13146
13147 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13148 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13149 offsets according to FLEN determined.
13150 (riscv_linux_nat_target::read_description): Determine FLEN
13151 dynamically.
13152 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13153 according to FLEN determined.
13154 (riscv_linux_nat_target::store_registers): Likewise.
13155
aa66aac4
SV
131562020-02-01 Shahab Vahedi <shahab@synopsys.com>
13157
13158 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13159 when reg->group is empty and reggroup is not.
13160
fd9faca8
TT
131612020-01-31 Tom Tromey <tromey@adacore.com>
13162
13163 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13164 Call beneath target's mourn_inferior after unpushing.
13165
42330a68
AB
131662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13167
13168 PR tui/9765
13169 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13170 have enough lines to fill the screen, still return the lowest
13171 address we found.
13172
7a27a45b
AB
131732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13174
13175 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13176 '-', '<', and '>' commands.
13177
c47f70e2
PA
131782020-01-29 Pedro Alves <palves@redhat.com>
13179 Sergio Durigan Junior <sergiodj@redhat.com>
13180
13181 * infcmd.c (construct_inferior_arguments): Assert that
13182 'argc' is greater than 0.
13183
5133a315
LM
131842020-01-29 Luis Machado <luis.machado@linaro.org>
13185
13186 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13187 (BRK_INSN_MASK): Define to 0xd4200000.
13188 (aarch64_program_breakpoint_here_p): New function.
13189 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13190 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13191 breakpoint.c.
13192 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13193 breakpoint.h
13194 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13195 call gdbarch_program_breakpoint_here_p.
13196 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13197 default_program_breakpoint_here_p, changed return type to bool and
13198 simplified.
13199 * breakpoint.h (program_breakpoint_here): Moved prototype to
13200 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13201 return type to bool.
13202 * gdbarch.c: Regenerate.
13203 * gdbarch.h: Regenerate.
13204 * gdbarch.sh (program_breakpoint_here_p): New method.
13205 * infrun.c (handle_signal_stop): Call
13206 gdbarch_program_breakpoint_here_p.
13207
168f8c6b
TT
132082020-01-26 Tom Tromey <tom@tromey.com>
13209
13210 * ctfread.c (struct ctf_fp_info): Reindent.
13211 (_initialize_ctfread): Remove.
13212
128a391f
TT
132132020-01-26 Tom Tromey <tom@tromey.com>
13214
13215 * psymtab.c (partial_map_expand_apply)
13216 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13217 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13218 (psym_print_stats, psym_expand_symtabs_for_function)
13219 (psym_map_symbol_filenames, psym_map_matching_symbols)
13220 (psym_expand_symtabs_matching)
13221 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13222 (maintenance_check_psymtabs): Use new methods.
13223 * psympriv.h (struct partial_symtab) <readin_p,
13224 get_compunit_symtab>: New methods.
13225 <readin, compunit_symtab>: Remove members.
13226 (struct standard_psymtab): New.
13227 (struct legacy_psymtab): Derive from standard_psymtab.
13228 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13229 standard_psymtab.
13230 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13231
0494dbec
TT
132322020-01-26 Tom Tromey <tom@tromey.com>
13233
13234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13235 read_dependencies. Add assert.
13236 * psymtab.c (partial_symtab::read_dependencies): New method.
13237 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13238 method.
13239 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13240 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13241 read_dependencies.
13242 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13243 Add assert.
13244
8566b89b
TT
132452020-01-26 Tom Tromey <tom@tromey.com>
13246
13247 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13248 Call expand_psymtab.
13249 (xcoff_read_symtab): Call expand_psymtab.
13250 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13251 legacy_expand_psymtab.
13252 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13253 method.
13254 (struct legacy_psymtab) <expand_psymtab>: Implement.
13255 <legacy_expand_psymtab>: New member.
13256 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13257 (parse_partial_symbols): Set legacy_expand_psymtab.
13258 (psymtab_to_symtab_1): Change argument order. Call
13259 expand_psymtab.
13260 (new_psymtab): Set legacy_expand_psymtab.
13261 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13262 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13263 expand_psymtab.
13264 (dwarf2_psymtab::expand_psymtab): Rename from
13265 psymtab_to_symtab_1. Call expand_psymtab.
13266 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13267 (dbx_end_psymtab): Likewise.
13268 (dbx_psymtab_to_symtab_1): Change argument order. Call
13269 expand_psymtab.
13270 (dbx_read_symtab): Call expand_psymtab.
13271 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13272 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13273 (ctf_psymtab::read_symtab): Call expand_psymtab.
13274
077cbab2
TT
132752020-01-26 Tom Tromey <tom@tromey.com>
13276
13277 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13278 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13279 messages.
13280 * mdebugread.c (mdebug_read_symtab): Remove prints.
13281 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13282 assert.
13283 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13284
891813be
TT
132852020-01-26 Tom Tromey <tom@tromey.com>
13286
13287 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13288 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13289 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13290 legacy_symtab.
13291 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13292 * psymtab.c (psymtab_to_symtab): Call method.
13293 (dump_psymtab): Update.
13294 * psympriv.h (struct partial_symtab): Add virtual destructor.
13295 <read_symtab>: New method.
13296 (struct legacy_symtab): New.
13297 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13298 (struct pst_map) <pst>: Now a legacy_psymtab.
13299 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13300 (new_psymtab): Use legacy_psymtab.
13301 * dwarf2read.h (struct dwarf2_psymtab): New.
13302 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13303 * dwarf2read.c (dwarf2_create_include_psymtab)
13304 (dwarf2_build_include_psymtabs, create_type_unit_group)
13305 (create_partial_symtab, process_psymtab_comp_unit_reader)
13306 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13307 (set_partial_user): Use dwarf2_psymtab.
13308 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13309 (psymtab_to_symtab_1, process_full_comp_unit)
13310 (process_full_type_unit, dwarf2_ranges_read)
13311 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13312 (dwarf_decode_lines): Use dwarf2_psymtab.
13313 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13314 (add_address_entry_worker, write_one_signatured_type)
13315 (recursively_count_psymbols, recursively_write_psymbols)
13316 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13317 (write_debug_names): Likewise.
13318 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13319 <pst>: Now a legacy_psymtab.
13320 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13321 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13322 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13323 * ctfread.c (struct ctf_psymtab): New.
13324 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13325 ctf_psymtab.
13326 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13327 (create_partial_symtab): Return a ctf_psymtab.
13328 (scan_partial_symbols): Update.
13329
c3693a1d
TT
133302020-01-26 Tom Tromey <tom@tromey.com>
13331
13332 * xcoffread.c (xcoff_start_psymtab): Use new.
13333 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13334 renamed from start_psymtab_common.
13335 * psympriv.h (struct partial_symtab): Add new constructor.
13336 (start_psymtab_common): Don't declare.
13337 * mdebugread.c (parse_partial_symbols): Use new.
13338 * dwarf2read.c (create_partial_symtab): Use new.
13339 * dbxread.c (start_psymtab): Use new.
13340 * ctfread.c (create_partial_symtab): Use new.
13341
32caafd0
TT
133422020-01-26 Tom Tromey <tom@tromey.com>
13343
13344 * xcoffread.c (xcoff_end_psymtab): Use new.
13345 * psymtab.c (start_psymtab_common): Use new.
13346 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13347 Update.
13348 * psympriv.h (struct partial_symtab): Add parameters to
13349 constructor. Don't inline.
13350 (allocate_psymtab): Don't declare.
13351 * mdebugread.c (new_psymtab): Use new.
13352 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13353 * dbxread.c (dbx_end_psymtab): Use new.
13354
abaa2f23
TT
133552020-01-26 Tom Tromey <tom@tromey.com>
13356
13357 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13358 allocate_psymtab. Update documentation.
13359 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13360 allocate_psymtab. Do not use new.
13361 (allocate_psymtab): Use new. Update.
13362
6d94535f
TT
133632020-01-26 Tom Tromey <tom@tromey.com>
13364
13365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13366 * psymtab.c (psym_print_stats): Update.
13367 * psympriv.h (struct partial_symtab) <readin,
13368 psymtabs_addrmap_supported, anonymous>: Now bool.
13369 * mdebugread.c (psymtab_to_symtab_1): Update.
13370 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13371 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13372 (process_full_comp_unit, process_full_type_unit): Update.
13373 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13374 * ctfread.c (psymtab_to_symtab): Update.
13375
6f17252b
TT
133762020-01-26 Tom Tromey <tom@tromey.com>
13377
13378 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13379 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13380 * psymtab.c (psymtab_storage): Delete psymtabs.
13381 (psymtab_storage::allocate_psymtab): Use new.
13382 (psymtab_storage::discard_psymtab): Use delete.
13383 * psympriv.h (struct partial_symtab): Add constructor and
13384 initializers.
13385
f6f1cebc
TT
133862020-01-26 Tom Tromey <tom@tromey.com>
13387
13388 * machoread.c: Do not include psympriv.h.
13389
e47e48f6
PW
133902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13391
13392 * NEWS: Mention the new option and the set/show commands.
13393
a2fedca9
PW
133942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13395
13396 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13397 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13398 (validate_exec_file): New variables, enums, functions.
13399 (exec_file_locate_attach, print_section_info): Style the filenames.
13400 (_initialize_exec): Install show_exec_file_mismatch_command and
13401 set_exec_file_mismatch_command.
13402 * gdbcore.h (validate_exec_file): Declare.
13403 * infcmd.c (attach_command): Call validate_exec_file.
13404 * remote.c ( remote_target::remote_add_inferior): Likewise.
13405
7ffa82e1
AB
134062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13407
13408 * frame.c (find_frame_sal): Move call to get_next_frame into more
13409 inner scope.
13410 * inline-frame.c (inilne_state) <inline_state>: Update argument
13411 types.
13412 (inilne_state) <skipped_symbol>: Rename to...
13413 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13414 (skip_inline_frames): Build vector of skipped symbols and use this
13415 to reate the inline_state.
13416 (inline_skipped_symbol): Add a comment and some assertions, fetch
13417 skipped symbol from the list.
13418
3d92a3e3
AB
134192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13420
13421 * buildsym.c (lte_is_less_than): Delete.
13422 (buildsym_compunit::end_symtab_with_blockvector): Create local
13423 lambda function to sort line table entries, and use
13424 std::stable_sort instead of std::sort.
13425 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13426 markers when looking for a previous line.
13427
94a72be7
AB
134282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13429
13430 * dwarf2read.c (lnp_state_machine::record_line): Include
13431 end_sequence parameter in debug print out. Record the line if we
13432 are at an end_sequence marker even if it's not the start of a
13433 statement.
13434 * symmisc.c (maintenance_print_one_line_table): Print end of
13435 sequence markers with 'END' not '0'.
13436
53af73bf
PA
134372020-01-24 Pedro Alves <palves@redhat.com>
13438
13439 PR gdb/25410
13440 * thread.c (scoped_restore_current_thread::restore): Use
13441 switch_to_inferior_no_thread.
13442 * exec.c: Include "progspace-and-thread.h".
13443 (add_target_sections, remove_target_sections):
13444 scoped_restore_current_pspace_and_thread instead of
13445 scoped_restore_current_thread.
13446 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13447 and aspace to the inferior before calling clone_program_space.
13448 Remove stale comment.
13449
3050c6f4
CB
134502020-01-24 Christian Biesinger <cbiesinger@google.com>
13451
13452 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13453 (arm_netbsd_nat_target::fetch_registers): ...this.
13454 (arm_nbsd_nat_target::store_registers): Rename to...
13455 (arm_netbsd_nat_target::store_registers): ...this.
13456
73685c7e
CB
134572020-01-24 Christian Biesinger <cbiesinger@google.com>
13458
13459 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13460 register_t.
13461
89203d40
CB
134622020-01-24 Christian Biesinger <cbiesinger@google.com>
13463
13464 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13465 Update comment.
13466 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13467 Likewise.
13468 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13469 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13470 the correct replacement (iterate_over_regset_sections).
13471 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13472 Update comment.
13473
1ba1ac88
AB
134742020-01-24 Graham Markall <graham.markall@embecosm.com>
13475
13476 PR gdb/23718
13477 * gdb/python/python.c (execute_gdb_command): Call
13478 async_enable_stdin in catch block.
13479
f3364a6d
AB
134802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13481
13482 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13483 SWITCH_THRU_ALL_UIS.
13484
733d0a67
AB
134852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13486
13487 PR tui/9765
13488 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13489 comment, add extra parameter, and update to store previous symbol
13490 when appropriate.
13491 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13492 add extra parameter.
13493 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13494 remove unneeded parameter, add try/catch around gdb_print_insn,
13495 rewrite to add items to asm_lines vector.
13496 (tui_find_backward_disassembly_start_address): New function.
13497 (tui_find_disassembly_address): Updated throughout.
13498 (tui_disasm_window::set_contents): Update for changes to
13499 tui_disassemble.
13500 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13501 number of lines to scroll.
13502
b3b3bada
SM
135032020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13504
13505 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13506 (SECT_OFF_DATA): Likewise.
13507 (SECT_OFF_RODATA): Likewise.
13508 (SECT_OFF_TEXT): Likewise.
13509 (SECT_OFF_BSS): Likewise.
13510 (struct objfile) <text_section_offset, data_section_offset>: New
13511 methods.
13512 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13513 objfile::text_section_offset.
13514 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13515 * coffread.c (coff_symtab_read): Likewise.
13516 (enter_linenos): Likewise.
13517 (process_coff_symbol): Likewise.
13518 * ctfread.c (get_objfile_text_range): Likewise.
13519 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13520 Use objfile::data_section_offset.
13521 * dwarf2-frame.c (execute_cfa_program): Use
13522 objfile::text_section_offset.
13523 (dwarf2_frame_find_fde): Likewise.
13524 * dwarf2read.c (create_addrmap_from_index): Likewise.
13525 (create_addrmap_from_aranges): Likewise.
13526 (dw2_find_pc_sect_compunit_symtab): Likewise.
13527 (process_psymtab_comp_unit_reader): Likewise.
13528 (add_partial_symbol): Likewise.
13529 (add_partial_subprogram): Likewise.
13530 (process_full_comp_unit): Likewise.
13531 (read_file_scope): Likewise.
13532 (read_func_scope): Likewise.
13533 (read_lexical_block_scope): Likewise.
13534 (read_call_site_scope): Likewise.
13535 (dwarf2_rnglists_process): Likewise.
13536 (dwarf2_ranges_process): Likewise.
13537 (dwarf2_ranges_read): Likewise.
13538 (dwarf_decode_lines_1): Likewise.
13539 (new_symbol): Likewise.
13540 (dwarf2_fetch_die_loc_sect_off): Likewise.
13541 (dwarf2_per_cu_text_offset): Likewise.
13542 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13543 * hppa-tdep.c (read_unwind_info): Likewise.
13544 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13545 * psympriv.h (struct partial_symtab): Likewise.
13546 * psymtab.c (find_pc_sect_psymtab): Likewise.
13547 * solib-svr4.c (enable_break): Likewise.
13548 * stap-probe.c (relocate_address): Use
13549 objfile::data_section_offset.
13550 * xcoffread.c (enter_line_range): Use
13551 objfile::text_section_offset.
13552 (read_xcoff_symtab): Likewise.
13553
ab53f382
SM
135542020-01-23 Simon Marchi <simon.marchi@efficios.com>
13555
13556 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13557 declaration to narrower scopes.
13558
e7eee665
SM
135592020-01-23 Simon Marchi <simon.marchi@efficios.com>
13560
13561 * darwin-nat.h (struct darwin_exception_msg, enum
13562 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13563 Move up.
13564 (class darwin_nat_target) <wait_1, check_new_threads,
13565 decode_exception_message, decode_message, stop_inferior,
13566 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13567 * darwin-nat.c (darwin_check_new_threads): Rename to...
13568 (darwin_nat_target::check_new_threads): ... this.
13569 (darwin_suspend_inferior_it): Remove.
13570 (darwin_decode_exception_message): Rename to...
13571 (darwin_nat_target::decode_exception_message): ... this.
13572 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13573 (darwin_decode_message): Rename to...
13574 (darwin_nat_target::decode_message): ... this.
13575 (cancel_breakpoint): Rename to...
13576 (darwin_nat_target::cancel_breakpoint): ... this.
13577 (darwin_wait): Rename to...
13578 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13579 instead of iterate_over_inferiors.
13580 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13581 (darwin_stop_inferior): Rename to...
13582 (darwin_nat_target::stop_inferior): ... this.
13583 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13584 (darwin_init_thread_list): Rename to...
13585 (darwin_nat_target::init_thread_list): ... this.
13586 (darwin_ptrace_him): Rename to...
13587 (darwin_nat_target::ptrace_him): ... this.
13588 (darwin_nat_target::create_inferior): Pass lambda function to
13589 fork_inferior.
13590 (darwin_nat_target::detach): Call stop_inferior instead of
13591 darwin_stop_inferior.
13592 * fork-inferior.h (fork_inferior): Change init_trace_fun
13593 parameter to gdb::function_view.
13594 * fork-inferior.c (fork_inferior): Likewise.
13595
c162ed3e
HD
135962020-01-23 Hannes Domani <ssbssa@yahoo.de>
13597
13598 * i386-cygwin-tdep.c (core_process_module_section): Update.
13599 * windows-nat.c (struct lm_info_windows): Add text_offset.
13600 (windows_xfer_shared_libraries): Update.
13601 * windows-tdep.c (windows_xfer_shared_library):
13602 Add text_offset_cached argument.
13603 * windows-tdep.h (windows_xfer_shared_library): Update.
13604
a1237872
SM
136052020-01-21 Simon Marchi <simon.marchi@efficios.com>
13606
13607 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13608
b3ee6dd9
SM
136092020-01-21 Simon Marchi <simon.marchi@efficios.com>
13610
13611 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13612 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13613 replace with range-based for.
13614 (gdbsim_interrupt_inferior): Remove.
13615 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13616 with a range-based for. Inline code from
13617 gdbsim_interrupt_inferior.
13618
f9fac3c8
SM
136192020-01-21 Simon Marchi <simon.marchi@efficios.com>
13620
13621 * infrun.c (proceed): Fix indentation.
13622
f6474de9
TT
136232020-01-21 Tom Tromey <tromey@adacore.com>
13624
13625 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13626 * python/python.c (python_extension_ops): Update.
13627 (gdbpy_colorize): New function.
13628 * python/lib/gdb/__init__.py (colorize): New function.
13629 * extension.h (ext_lang_colorize): Declare.
13630 * extension.c (ext_lang_colorize): New function.
13631 * extension-priv.h (struct extension_language_ops) <colorize>: New
13632 member.
13633 * cli/cli-style.c (_initialize_cli_style): Update help text.
13634
f0c702d4
LM
136352020-01-21 Luis Machado <luis.machado@linaro.org>
13636
13637 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13638 <cond>: Change type to bool.
13639 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13640 (aarch64_displaced_step_cb): Likewise.
13641 (aarch64_displaced_step_tb): Likewise.
13642
1ab139e5
LM
136432020-01-21 Luis Machado <luis.machado@linaro.org>
13644
13645 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13646 output.
13647
0c271889
LM
136482020-01-21 Luis Machado <luis.machado@linaro.org>
13649
13650 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13651 <pc_adjust>: Adjust the documentation.
13652 (aarch64_displaced_step_fixup): Check if PC really moved before
13653 adjusting it.
13654
4d89c1c7
TT
136552020-01-19 Tom Tromey <tom@tromey.com>
13656
13657 * disasm.c (~gdb_disassembler): New destructor.
13658 (gdb_buffered_insn_length): Call disassemble_free_target.
13659 * disasm.h (class gdb_disassembler): Declare destructor. Use
13660 DISABLE_COPY_AND_ASSIGN.
13661
c0ab21c2
TT
136622020-01-19 Tom Tromey <tom@tromey.com>
13663
13664 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13665 (die_reader_func_ftype): Remove.
13666 (cutu_reader): New class.
13667 (dw2_get_file_names_reader): Remove "data" parameter.
13668 (dw2_get_file_names): Use cutu_reader.
13669 (create_debug_type_hash_table): Update.
13670 (read_cutu_die_from_dwo): Update comment.
13671 (lookup_dwo_unit): Add dwo_name parameter.
13672 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13673 die_reader_func_ftype and data parameters.
13674 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13675 Remove die_reader_func_ftype and data parameters.
13676 (~cutu_reader): New; from init_cutu_and_read_dies.
13677 (cutu_reader::cutu_reader): Rename from
13678 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13679 and data parameters.
13680 (init_cutu_and_read_dies_simple): Remove.
13681 (struct process_psymtab_comp_unit_data): Remove.
13682 (process_psymtab_comp_unit_reader): Remove data parameter; add
13683 want_partial_unit and pretend_language parameters.
13684 (process_psymtab_comp_unit): Use cutu_reader.
13685 (build_type_psymtabs_reader): Remove data parameter.
13686 (build_type_psymtabs_1): Use cutu_reader.
13687 (process_skeletonless_type_unit): Likewise.
13688 (load_partial_comp_unit_reader): Remove.
13689 (load_partial_comp_unit): Use cutu_reader.
13690 (load_full_comp_unit_reader): Remove.
13691 (load_full_comp_unit): Use cutu_reader.
13692 (struct create_dwo_cu_data): Remove.
13693 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13694 dwo_unit parameters.
13695 (create_cus_hash_table): Use cutu_reader.
13696 (struct dwarf2_read_addr_index_data): Remove.
13697 (dwarf2_read_addr_index_reader): Remove.
13698 (dwarf2_read_addr_index): Use cutu_reader.
13699 (read_signatured_type_reader): Remove.
13700 (read_signatured_type): Use cutu_reader.
13701
45bbae5c
TT
137022020-01-19 Tom Tromey <tom@tromey.com>
13703
13704 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13705 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13706 (tui_wrefresh): Declare.
13707 * tui/tui-wingeneral.c (suppress_output): New global.
13708 (tui_suppress_output, ~tui_suppress_output): New constructor and
13709 destructor.
13710 (tui_wrefresh): New function.
13711 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13712 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13713 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13714 method.
13715 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13716 tui_wrefresh.
13717 (tui_data_window::no_refresh): New method.
13718 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13719 (tui_reg_command): Use tui_suppress_output
13720 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13721 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13722 method.
13723 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13724
4f13c1c0
TT
137252020-01-19 Tom Tromey <tom@tromey.com>
13726
13727 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13728 Handle case where symtab is null.
13729
fa47e446
SM
137302020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13731
13732 * linux-fork.c (one_fork_p): Simplify.
13733
26f42329
SM
137342020-01-17 Simon Marchi <simon.marchi@efficios.com>
13735
13736 * top.c (struct qt_args): Remove.
13737 (kill_or_detach): Change return type to void, replace `void *`
13738 parameter with a proper one.
13739 (print_inferior_quit_action): Likewise.
13740 (quit_confirm): Use range-based for loop to iterate over inferiors.
13741 (quit_force): Likewise.
13742
a9ac81b1
SM
137432020-01-17 Simon Marchi <simon.marchi@efficios.com>
13744
13745 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13746 `void *` parameter with proper parameters.
13747 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13748 (print_one_inferior): Change return type to void, replace `void *`
13749 parameter with proper parameters.
13750 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13751 inferiors.
13752 (get_other_inferior): Remove.
13753 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13754 inferiors.
13755
788eca49
SM
137562020-01-17 Simon Marchi <simon.marchi@efficios.com>
13757
13758 * mi/mi-interp.c (report_initial_inferior): Remove.
13759 (mi_interp::init): Use range-based for to iterate over inferiors.
13760
d9bc85b6
SM
137612020-01-17 Simon Marchi <simon.marchi@efficios.com>
13762
13763 * python/py-inferior.c (build_inferior_list): Remove.
13764 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13765
40c94099
CB
137662020-01-16 Christian Biesinger <cbiesinger@google.com>
13767
13768 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13769 (btrace_stitch_trace): Likewise.
13770 * charset.c (intermediate_encoding): Likewise (vaild).
13771 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13772 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13773 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13774
e0cdfe3c
HD
137752020-01-16 Hannes Domani <ssbssa@yahoo.de>
13776
13777 * windows-tdep.c (windows_get_tlb_type):
13778 Add rtl_user_process_parameters type.
13779
790f1718 137802020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13781 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13782
13783 PR build/24805
13784 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13785 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13786 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13787 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13788 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13789 (ps_plog): Redeclare exported functions with default visibility.
13790
3112ed97
NA
137912020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13792
13793 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13794 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13795
8dc3273e
SM
137962020-01-15 Simon Marchi <simon.marchi@efficios.com>
13797
13798 * infcmd.c (post_create_inferior): Use get_thread_regcache
13799 instead of get_current_regcache.
13800
ff47f4f0
TT
138012020-01-14 Tom Tromey <tom@tromey.com>
13802
13803 PR symtab/12535:
13804 * python/python.c (gdbpy_decode_line): Treat empty string the same
13805 as no argument.
13806
975f45b7
TT
138072020-01-14 Tom Tromey <tom@tromey.com>
13808
13809 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13810
25e57356
TT
138112020-01-14 Tom Tromey <tom@tromey.com>
13812
13813 * nat/linux-btrace.c: Don't include <config.h>.
13814 * nat/linux-ptrace.c: Don't include <config.h>.
13815 * nat/x86-linux-dregs.c: Don't include <config.h>.
13816
05ea2a05
TT
138172020-01-14 Tom Tromey <tom@tromey.com>
13818
13819 * configure: Rebuild.
13820 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13821
01027315
TT
138222020-01-14 Tom Tromey <tom@tromey.com>
13823
13824 * nat/x86-linux-dregs.c: Include configh.h.
13825 * nat/linux-ptrace.c: Include configh.h.
13826 * nat/linux-btrace.c: Include configh.h.
13827 * defs.h: Include config.h, bfd.h.
13828 * configure.ac: Don't source common.host.
13829 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13830 * configure: Rebuild.
13831 * acinclude.m4: Update path.
13832 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13833 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13834 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13835 (CLIBS): Add LIBSUPPORT.
13836 (CDEPS): Likewise.
13837 (COMMON_SFILES): Remove gdbsupport files.
13838 (HFILES_NO_SRCDIR): Likewise.
13839 (stamp-version): Update path to create-version.sh.
13840 (ALLDEPFILES): Remove gdbsupport files.
13841
b2ceabe8
TT
138422020-01-14 Tom Tromey <tom@tromey.com>
13843
13844 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13845 USE_WIN32API when needed.
13846 * configure.ac (USE_WIN32API): Don't define.
13847 (WIN32LIBS): Use WIN32APILIBS.
13848 * configure: Rebuild.
13849
25c51f71
TT
138502020-01-14 Tom Tromey <tom@tromey.com>
13851
13852 * configure: Rebuild.
13853 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13854
717c684d
BE
138552020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13856
13857 * skip.c (skip_function_command): Make skip w/o arguments use the
13858 name of the inlined function if pc is inside any inlined function.
13859
7da6a5b9
LM
138602020-01-14 Luis Machado <luis.machado@linaro.org>
13861
13862 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13863 * infrun.c (resume_1): Likewise.
13864 (handle_inferior_event): Remove stale comment.
13865 * linux-nat.c (linux_nat_target::resume): Update comments.
13866 (save_stop_reason): Likewise.
13867 (linux_nat_filter_event): Likewise.
13868 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13869
44e4c775
AB
138702020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13871
13872 * elfread.c (record_minimal_symbol): Set section index to 0 for
13873 non-allocatable sections.
13874
18a8505e
AT
13875
138762020-01-13 Ali Tamur <tamur@google.com>
13877
13878 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13879 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13880 to gdb::optional. Update comments.
13881 (dwo_file): Update comments.
13882 (read_attribute): Update API to take an additional out parameter,
13883 need_reprocess. This is used to mark attributes that need other
13884 attributes (e.g. str_offsets_base) for correct computation which may not
13885 have been read yet.
13886 (read_attribute_reprocess): New function declaration.
13887 (read_addr_index): Likewise.
13888 (read_dwo_str_index): Likewise.
13889 (read_stub_str_index): Likewise.
13890 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13891 (lookup_addr_base): New function definition.
13892 (lookup_ranges_base): Likewise.
13893 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13894 lookup_ranges_base.
13895 (init_cutu_and_read_dies): Update comments.
13896 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13897 unit. This is used to inherit parent's str_offsets_base and addr_base.
13898 Update comments.
13899 (init_cutu_and_read_dies_simple): Reflect API changes.
13900 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13901 (create_cus_hash_table): Change API to take parent compile unit.
13902 Reflect API changes.
13903 (open_and_init_dwo_file): Reflect API changes.
13904 (dwarf2_get_pc_bounds): Update comments.
13905 (dwarf2_record_block_ranges): Likewise.
13906 (read_full_die_1): Change implementation to reprocess attributes that
13907 need str_offsets_base and addr_base.
13908 (partial_die_info::read): Likewise.
13909 (read_attribute_reprocess): New function definition.
13910 (read_attribute_value): Change API to take an additional out parameter,
13911 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13912 when a non-dwo compile unit has index based attributes.
13913 (read_attribute): Reflect API changes.
13914 (read_addr_index_1): Reflect API changes. Update comments.
13915 (dwarf2_read_addr_index_data): Reflect API changes.
13916 (dwarf2_read_addr_index): Likewise.
13917 (read_str_index): Change API and implementation. This becomes a helper
13918 to be used by the new string index related methods. Update error
13919 message and comments.
13920 (read_dwo_str_index): New function definition.
13921 (read_stub_str_index): Likewise.
13922 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13923 * symfile.h (dwarf2_debug_sections): Likewise.
13924 * xcoffread.c (dwarf2_debug_sections): Likewise.
13925
0cac9354
SM
139262020-01-13 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13929 core_reg_sect type to gdb_byte *.
13930 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13931 * cris-tdep.c (fetch_core_registers): Likewise.
13932 * corelow.c (core_target::get_core_register_section): Change
13933 type of `contents` to gdb::byte_vector.
13934
9a6d629c
AB
139352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13936
13937 * tui/tui-wingeneral.c (box_win): Position the title in the center
13938 of the border.
13939
d8b2f9e3
SM
139402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13941
13942 * corelow.c (core_target::get_core_register_section): Use
13943 std::vector instead of alloca.
13944
bb564c58
SM
139452020-01-13 Simon Marchi <simon.marchi@efficios.com>
13946
13947 * warning.m4: Add -Wmissing-declarations to build_warnings.
13948 * configure: Re-generate.
13949
6b366111
SM
139502020-01-13 Simon Marchi <simon.marchi@efficios.com>
13951
13952 * python/python.c (init__gdb_module): Add declaration.
13953
6c265988
SM
139542020-01-13 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13957 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13958 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13959 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13960 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13961 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13962 * ada-exp.y (_initialize_ada_exp): Add declaration.
13963 * ada-lang.c (_initialize_ada_language): Add declaration.
13964 * ada-tasks.c (_initialize_tasks): Add declaration.
13965 * agent.c (_initialize_agent): Add declaration.
13966 * aix-thread.c (_initialize_aix_thread): Add declaration.
13967 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13968 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13969 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13970 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13971 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13972 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13973 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13974 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13975 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13976 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13977 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13978 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13979 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13980 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13981 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13982 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13983 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13984 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13985 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13986 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13987 * annotate.c (_initialize_annotate): Add declaration.
13988 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13989 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13990 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13991 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13992 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13993 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13994 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13995 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13996 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13997 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13998 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13999 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14000 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14001 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14002 * auto-load.c (_initialize_auto_load): Add declaration.
14003 * auxv.c (_initialize_auxv): Add declaration.
14004 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14005 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14006 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14007 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14008 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14009 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14010 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14011 * breakpoint.c (_initialize_breakpoint): Add declaration.
14012 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14013 * btrace.c (_initialize_btrace): Add declaration.
14014 * charset.c (_initialize_charset): Add declaration.
14015 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14016 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14017 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14018 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14019 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14020 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14021 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14022 * coffread.c (_initialize_coffread): Add declaration.
14023 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14024 * compile/compile.c (_initialize_compile): Add declaration.
14025 * complaints.c (_initialize_complaints): Add declaration.
14026 * completer.c (_initialize_completer): Add declaration.
14027 * copying.c (_initialize_copying): Add declaration.
14028 * corefile.c (_initialize_core): Add declaration.
14029 * corelow.c (_initialize_corelow): Add declaration.
14030 * cp-abi.c (_initialize_cp_abi): Add declaration.
14031 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14032 * cp-support.c (_initialize_cp_support): Add declaration.
14033 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14034 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14035 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14036 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14037 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14038 * ctfread.c (_initialize_ctfread): Add declaration.
14039 * d-lang.c (_initialize_d_language): Add declaration.
14040 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14041 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14042 * dbxread.c (_initialize_dbxread): Add declaration.
14043 * dcache.c (_initialize_dcache): Add declaration.
14044 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14045 * disasm.c (_initialize_disasm): Add declaration.
14046 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14047 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14048 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14049 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14050 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14051 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14052 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14053 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14054 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14055 * elfread.c (_initialize_elfread): Add declaration.
14056 * exec.c (_initialize_exec): Add declaration.
14057 * extension.c (_initialize_extension): Add declaration.
14058 * f-lang.c (_initialize_f_language): Add declaration.
14059 * f-valprint.c (_initialize_f_valprint): Add declaration.
14060 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14061 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14062 * filesystem.c (_initialize_filesystem): Add declaration.
14063 * findcmd.c (_initialize_mem_search): Add declaration.
14064 * findvar.c (_initialize_findvar): Add declaration.
14065 * fork-child.c (_initialize_fork_child): Add declaration.
14066 * frame-base.c (_initialize_frame_base): Add declaration.
14067 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14068 * frame.c (_initialize_frame): Add declaration.
14069 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14070 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14071 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14072 * gcore.c (_initialize_gcore): Add declaration.
14073 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14074 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14075 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14076 * gdbarch.c (_initialize_gdbarch): Add declaration.
14077 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14078 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14079 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14080 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14081 * go-lang.c (_initialize_go_language): Add declaration.
14082 * go32-nat.c (_initialize_go32_nat): Add declaration.
14083 * guile/guile.c (_initialize_guile): Add declaration.
14084 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14085 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14086 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14087 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14088 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14089 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14090 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14091 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14092 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14093 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14094 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14095 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14096 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14097 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14098 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14099 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14100 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14101 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14102 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14103 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14104 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14105 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14106 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14107 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14108 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14109 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14110 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14111 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14112 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14113 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14114 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14115 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14116 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14117 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14118 * infcall.c (_initialize_infcall): Add declaration.
14119 * infcmd.c (_initialize_infcmd): Add declaration.
14120 * inflow.c (_initialize_inflow): Add declaration.
14121 * infrun.c (_initialize_infrun): Add declaration.
14122 * interps.c (_initialize_interpreter): Add declaration.
14123 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14124 * jit.c (_initialize_jit): Add declaration.
14125 * language.c (_initialize_language): Add declaration.
14126 * linux-fork.c (_initialize_linux_fork): Add declaration.
14127 * linux-nat.c (_initialize_linux_nat): Add declaration.
14128 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14129 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14130 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14131 * m2-lang.c (_initialize_m2_language): Add declaration.
14132 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14133 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14134 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14135 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14136 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14137 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14138 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14139 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14140 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14141 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14142 * machoread.c (_initialize_machoread): Add declaration.
14143 * macrocmd.c (_initialize_macrocmd): Add declaration.
14144 * macroscope.c (_initialize_macroscope): Add declaration.
14145 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14146 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14147 * maint.c (_initialize_maint_cmds): Add declaration.
14148 * mdebugread.c (_initialize_mdebugread): Add declaration.
14149 * memattr.c (_initialize_mem): Add declaration.
14150 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14151 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14152 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14153 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14154 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14155 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14156 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14157 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14158 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14159 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14160 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14161 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14162 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14163 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14164 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14165 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14166 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14167 * mipsread.c (_initialize_mipsread): Add declaration.
14168 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14169 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14170 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14171 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14172 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14173 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14174 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14175 * nto-procfs.c (_initialize_procfs): Add declaration.
14176 * objc-lang.c (_initialize_objc_language): Add declaration.
14177 * observable.c (_initialize_observer): Add declaration.
14178 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14179 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14180 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14181 * osabi.c (_initialize_gdb_osabi): Add declaration.
14182 * osdata.c (_initialize_osdata): Add declaration.
14183 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14184 * parse.c (_initialize_parse): Add declaration.
14185 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14186 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14187 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14188 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14189 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14190 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14191 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14192 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14193 * printcmd.c (_initialize_printcmd): Add declaration.
14194 * probe.c (_initialize_probe): Add declaration.
14195 * proc-api.c (_initialize_proc_api): Add declaration.
14196 * proc-events.c (_initialize_proc_events): Add declaration.
14197 * proc-service.c (_initialize_proc_service): Add declaration.
14198 * procfs.c (_initialize_procfs): Add declaration.
14199 * producer.c (_initialize_producer): Add declaration.
14200 * psymtab.c (_initialize_psymtab): Add declaration.
14201 * python/python.c (_initialize_python): Add declaration.
14202 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14203 * record-btrace.c (_initialize_record_btrace): Add declaration.
14204 * record-full.c (_initialize_record_full): Add declaration.
14205 * record.c (_initialize_record): Add declaration.
14206 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14207 * regcache.c (_initialize_regcache): Add declaration.
14208 * reggroups.c (_initialize_reggroup): Add declaration.
14209 * remote-notif.c (_initialize_notif): Add declaration.
14210 * remote-sim.c (_initialize_remote_sim): Add declaration.
14211 * remote.c (_initialize_remote): Add declaration.
14212 * reverse.c (_initialize_reverse): Add declaration.
14213 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14214 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14215 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14216 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14217 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14218 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14219 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14220 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14221 Add declaration.
14222 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14223 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14224 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14225 * rust-exp.y (_initialize_rust_exp): Add declaration.
14226 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14227 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14228 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14229 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14230 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14231 * score-tdep.c (_initialize_score_tdep): Add declaration.
14232 * ser-go32.c (_initialize_ser_dos): Add declaration.
14233 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14234 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14235 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14236 * ser-uds.c (_initialize_ser_socket): Add declaration.
14237 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14238 * serial.c (_initialize_serial): Add declaration.
14239 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14240 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14241 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14242 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14243 * skip.c (_initialize_step_skip): Add declaration.
14244 * sol-thread.c (_initialize_sol_thread): Add declaration.
14245 * solib-aix.c (_initialize_solib_aix): Add declaration.
14246 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14247 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14248 * solib-frv.c (_initialize_frv_solib): Add declaration.
14249 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14250 * solib-target.c (_initialize_solib_target): Add declaration.
14251 * solib.c (_initialize_solib): Add declaration.
14252 * source-cache.c (_initialize_source_cache): Add declaration.
14253 * source.c (_initialize_source): Add declaration.
14254 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14255 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14256 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14257 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14258 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14259 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14260 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14261 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14262 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14263 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14264 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14265 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14266 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14267 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14268 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14269 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14270 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14271 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14272 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14273 * stabsread.c (_initialize_stabsread): Add declaration.
14274 * stack.c (_initialize_stack): Add declaration.
14275 * stap-probe.c (_initialize_stap_probe): Add declaration.
14276 * std-regs.c (_initialize_frame_reg): Add declaration.
14277 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14278 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14279 * symfile.c (_initialize_symfile): Add declaration.
14280 * symmisc.c (_initialize_symmisc): Add declaration.
14281 * symtab.c (_initialize_symtab): Add declaration.
14282 * target.c (_initialize_target): Add declaration.
14283 * target-connection.c (_initialize_target_connection): Add
14284 declaration.
14285 * target-dcache.c (_initialize_target_dcache): Add declaration.
14286 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14287 * thread.c (_initialize_thread): Add declaration.
14288 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14289 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14290 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14291 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14292 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14293 * tracectf.c (_initialize_ctf): Add declaration.
14294 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14295 * tracefile.c (_initialize_tracefile): Add declaration.
14296 * tracepoint.c (_initialize_tracepoint): Add declaration.
14297 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14298 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14299 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14300 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14301 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14302 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14303 * tui/tui.c (_initialize_tui): Add declaration.
14304 * typeprint.c (_initialize_typeprint): Add declaration.
14305 * ui-style.c (_initialize_ui_style): Add declaration.
14306 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14307 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14308 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14309 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14310 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14311 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14312 * unittests/filtered_iterator-selftests.c
14313 (_initialize_filtered_iterator_selftests): Add declaration.
14314 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14315 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14316 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14317 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14318 * unittests/main-thread-selftests.c
14319 (_initialize_main_thread_selftests): Add declaration.
14320 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14321 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14322 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14323 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14324 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14325 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14326 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14327 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14328 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14329 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14330 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14331 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14332 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14333 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14334 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14335 declaration.
14336 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14337 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14338 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14339 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14340 * user-regs.c (_initialize_user_regs): Add declaration.
14341 * utils.c (_initialize_utils): Add declaration.
14342 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14343 * valops.c (_initialize_valops): Add declaration.
14344 * valprint.c (_initialize_valprint): Add declaration.
14345 * value.c (_initialize_values): Add declaration.
14346 * varobj.c (_initialize_varobj): Add declaration.
14347 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14348 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14349 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14350 * windows-nat.c (_initialize_windows_nat): Add declaration.
14351 (_initialize_check_for_gdb_ini): Add declaration.
14352 (_initialize_loadable): Add declaration.
14353 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14354 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14355 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14356 * xcoffread.c (_initialize_xcoffread): Add declaration.
14357 * xml-support.c (_initialize_xml_support): Add declaration.
14358 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14359 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14360 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14361 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14362
e2de1eec
SM
143632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14364
14365 * regformats/regdat.sh: Generate declaration for init function.
14366
e0037b4c
SM
143672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14368
14369 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14370 up.
14371 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14372 close_one_inferior>: New methods.
14373 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14374 pass down target to find_inferior_pid.
14375 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14376 Pass down target to find_inferior_ptid.
14377 (gdbsim_target::create_inferior): Pass down target to
14378 add_thread_silent.
14379 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14380 target down to find_inferior_ptid and switch_to_thread.
14381 (gdbsim_target::close): Update to call close_one_inferior.
14382 (struct resume_data): Remove.
14383 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14384 directly, rather than through a void pointer.
14385 (gdbsim_target::resume): Update to call resume_one_inferior.
14386
58920b5b
SM
143872020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14388
14389 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14390
4ec89149
PA
143912020-01-12 Pedro Alves <palves@redhat.com>
14392
14393 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14394 directly for the current inferior instead of
14395 discard_all_inferiors.
14396 (discard_all_inferiors): Delete.
14397
7c392d1d
TT
143982020-01-11 Tom Tromey <tom@tromey.com>
14399
14400 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14401 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14402 deprecated_safe_get_selected_frame.
14403
d9ebdab7
TBA
144042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14405
14406 * inferior.c (print_inferior): Switch inferior before printing it.
14407
f3c469b9
PA
144082020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14409 Pedro Alves <palves@redhat.com>
14410
14411 * progspace-and-thread.c (switch_to_program_space_and_thread):
14412 Assert there's an inferior for PSPACE. Use
14413 switch_to_inferior_no_thread to switch the inferior too.
14414 * progspace.c (program_space::~program_space): Call
14415 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14416 (program_space::free_all_objfiles): Don't call clear_symtab_users
14417 here.
14418 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14419
65c574f6
PA
144202020-01-10 Pedro Alves <palves@redhat.com>
14421
14422 * NEWS: Mention multi-target debugging, "info connections", and
14423 "add-inferior -no-connection".
14424
2f4fcf00
PA
144252020-01-10 Pedro Alves <palves@redhat.com>
14426
14427 * infrun.c: Include "target-connection.h".
14428 (check_multi_target_resumption): New.
14429 (proceed): Call it.
14430 * target-connection.c (make_target_connection_string): Make
14431 extern.
14432 * target-connection.h (make_target_connection_string): Declare.
14433
121b3efd
PA
144342020-01-10 Pedro Alves <palves@redhat.com>
14435
14436 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14437 * inferior.c (uiout_field_connection): New function.
14438 (print_inferior): Add new "connection-id" column.
14439 (add_inferior_command): Show connection number/string of added
14440 inferior.
14441 * process-stratum-target.h
14442 (process_stratum_target::connection_string): New virtual method.
14443 (process_stratum_target::connection_number): New field.
14444 * remote.c (remote_target::connection_string): New override.
14445 * target-connection.c: New file.
14446 * target-connection.h: New file.
14447 * target.c (decref_target): Remove process_stratum targets from
14448 the connection list.
14449 (target_stack::push): Add process_stratum targets to the
14450 connection list.
14451
4f837581
PA
144522020-01-10 Pedro Alves <palves@redhat.com>
14453
14454 Revert:
14455 2016-04-12 Pedro Alves <palves@redhat.com>
14456 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14457 Remove references to name.
14458 * serial.h (struct serial) <name>: Delete.
14459
f4ec508e
PA
144602020-01-10 Pedro Alves <palves@redhat.com>
14461
14462 * gdbarch-selftests.c (register_to_value_test): Remove "target
14463 already pushed" check.
14464
5b6d1e4f
PA
144652020-01-10 Pedro Alves <palves@redhat.com>
14466 John Baldwin <jhb@FreeBSD.org>
14467
14468 * aarch64-linux-nat.c
14469 (aarch64_linux_nat_target::thread_architecture): Adjust.
14470 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14471 (task_command_1): Likewise.
14472 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14473 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14474 (aix_thread_target::store_registers)
14475 (aix_thread_target::thread_alive): Adjust.
14476 * amd64-fbsd-tdep.c: Include "inferior.h".
14477 (amd64fbsd_get_thread_local_address): Pass down target.
14478 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14479 thread's gdbarch instead of target_gdbarch.
14480 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14481 get_last_target_status.
14482 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14483 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14484 inferiors.
14485 (update_inserted_breakpoint_locations): Skip if inferiors with no
14486 execution.
14487 (update_global_location_list): When handling moribund locations,
14488 find representative inferior for location's pspace, and use thread
14489 count of its process_stratum target.
14490 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14491 * bsd-uthread.c (bsd_uthread_target::wait): Use
14492 as_process_stratum_target and adjust thread_change_ptid and
14493 add_thread calls.
14494 (bsd_uthread_target::update_thread_list): Use
14495 as_process_stratum_target and adjust find_thread_ptid,
14496 thread_change_ptid and add_thread calls.
14497 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14498 find_thread_ptid call.
14499 * corelow.c (add_to_thread_list): Adjust add_thread call.
14500 (core_target_open): Adjust add_thread_silent and thread_count
14501 calls.
14502 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14503 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14504 * event-top.c (async_disconnect): Pop targets from all inferiors.
14505 * exec.c (add_target_sections): Push exec target on all inferiors
14506 sharing the program space.
14507 (remove_target_sections): Remove the exec target from all
14508 inferiors sharing the program space.
14509 (exec_on_vfork): New.
14510 * exec.h (exec_on_vfork): Declare.
14511 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14512 Pass it down.
14513 (fbsd_nat_target::update_thread_list): Adjust.
14514 (fbsd_nat_target::resume): Adjust.
14515 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14516 down.
14517 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14518 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14519 get_thread_arch_regcache call.
14520 * fork-child.c (gdb_startup_inferior): Pass target down to
14521 startup_inferior and set_executing.
14522 * gdbthread.h (struct process_stratum_target): Forward declare.
14523 (add_thread, add_thread_silent, add_thread_with_info)
14524 (in_thread_list): Add process_stratum_target parameter.
14525 (find_thread_ptid(inferior*, ptid_t)): New overload.
14526 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14527 parameter.
14528 (all_threads()): Delete overload.
14529 (all_threads, all_non_exited_threads): Add process_stratum_target
14530 parameter.
14531 (all_threads_safe): Use brace initialization.
14532 (thread_count): Add process_stratum_target parameter.
14533 (set_resumed, set_running, set_stop_requested, set_executing)
14534 (threads_are_executing, finish_thread_state): Add
14535 process_stratum_target parameter.
14536 (switch_to_thread): Use is_current_thread.
14537 * i386-fbsd-tdep.c: Include "inferior.h".
14538 (i386fbsd_get_thread_local_address): Pass down target.
14539 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14540 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14541 have_inferiors check.
14542 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14543 (inf_ptrace_target::attach): Adjust.
14544 * infcall.c (run_inferior_call): Adjust.
14545 * infcmd.c (run_command_1): Pass target to
14546 scoped_finish_thread_state.
14547 (proceed_thread_callback): Skip inferiors with no execution.
14548 (continue_command): Rename 'all_threads' local to avoid hiding
14549 'all_threads' function. Adjust get_last_target_status call.
14550 (prepare_one_step): Adjust set_running call.
14551 (signal_command): Use user_visible_resume_target. Compare thread
14552 pointers instead of inferior_ptid.
14553 (info_program_command): Adjust to pass down target.
14554 (attach_command): Mark target's 'thread_executing' flag.
14555 (stop_current_target_threads_ns): New, factored out from ...
14556 (interrupt_target_1): ... this. Switch inferior before making
14557 target calls.
14558 * inferior-iter.h
14559 (struct all_inferiors_iterator, struct all_inferiors_range)
14560 (struct all_inferiors_safe_range)
14561 (struct all_non_exited_inferiors_range): Filter on
14562 process_stratum_target too. Remove explicit.
14563 * inferior.c (inferior::inferior): Push dummy target on target
14564 stack.
14565 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14566 Add process_stratum_target parameter, and pass it down.
14567 (have_live_inferiors): Adjust.
14568 (switch_to_inferior_and_push_target): New.
14569 (add_inferior_command, clone_inferior_command): Handle
14570 "-no-connection" parameter. Use
14571 switch_to_inferior_and_push_target.
14572 (_initialize_inferior): Mention "-no-connection" option in
14573 the help of "add-inferior" and "clone-inferior" commands.
14574 * inferior.h: Include "process-stratum-target.h".
14575 (interrupt_target_1): Use bool.
14576 (struct inferior) <push_target, unpush_target, target_is_pushed,
14577 find_target_beneath, top_target, process_target, target_at,
14578 m_stack>: New.
14579 (discard_all_inferiors): Delete.
14580 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14581 (all_inferiors, all_non_exited_inferiors): Add
14582 process_stratum_target parameter.
14583 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14584 (target_last_proc_target): New global.
14585 (follow_fork_inferior): Push target on new inferior. Pass target
14586 to add_thread_silent. Call exec_on_vfork. Handle target's
14587 reference count.
14588 (follow_fork): Adjust get_last_target_status call. Also consider
14589 target.
14590 (follow_exec): Push target on new inferior.
14591 (struct execution_control_state) <target>: New field.
14592 (user_visible_resume_target): New.
14593 (do_target_resume): Call target_async.
14594 (resume_1): Set target's threads_executing flag. Consider resume
14595 target.
14596 (commit_resume_all_targets): New.
14597 (proceed): Also consider resume target. Skip threads of inferiors
14598 with no execution. Commit resumtion in all targets.
14599 (start_remote): Pass current inferior to wait_for_inferior.
14600 (infrun_thread_stop_requested): Consider target as well. Pass
14601 thread_info pointer to clear_inline_frame_state instead of ptid.
14602 (infrun_thread_thread_exit): Consider target as well.
14603 (random_pending_event_thread): New inferior parameter. Use it.
14604 (do_target_wait): Rename to ...
14605 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14606 down.
14607 (threads_are_resumed_pending_p, do_target_wait): New.
14608 (prepare_for_detach): Adjust calls.
14609 (wait_for_inferior): New inferior parameter. Handle it. Use
14610 do_target_wait_1 instead of do_target_wait.
14611 (fetch_inferior_event): Adjust. Switch to representative
14612 inferior. Pass target down.
14613 (set_last_target_status): Add process_stratum_target parameter.
14614 Save target in global.
14615 (get_last_target_status): Add process_stratum_target parameter and
14616 handle it.
14617 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14618 (context_switch): Check inferior_ptid == null_ptid before calling
14619 inferior_thread().
14620 (get_inferior_stop_soon): Pass down target.
14621 (wait_one): Rename to ...
14622 (poll_one_curr_target): ... this.
14623 (struct wait_one_event): New.
14624 (wait_one): New.
14625 (stop_all_threads): Adjust.
14626 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14627 event's target.
14628 (switch_back_to_stepped_thread): Also consider target.
14629 (print_stop_event): Update.
14630 (normal_stop): Update. Also consider the resume target.
14631 * infrun.h (wait_for_inferior): Remove declaration.
14632 (user_visible_resume_target): New declaration.
14633 (get_last_target_status, set_last_target_status): New
14634 process_stratum_target parameter.
14635 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14636 process_stratum_target parameter, and use it.
14637 (clear_inline_frame_state (thread_info*)): New.
14638 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14639 process_stratum_target parameter.
14640 (clear_inline_frame_state (thread_info*)): Declare.
14641 * linux-fork.c (delete_checkpoint_command): Pass target down to
14642 find_thread_ptid.
14643 (checkpoint_command): Adjust.
14644 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14645 instead of just tweaking inferior_ptid.
14646 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14647 (exit_lwp): Pass target down to find_thread_ptid.
14648 (attach_proc_task_lwp_callback): Pass target down to
14649 add_thread/set_running/set_executing.
14650 (linux_nat_target::attach): Pass target down to
14651 thread_change_ptid.
14652 (get_detach_signal): Pass target down to find_thread_ptid.
14653 Consider last target status's target.
14654 (linux_resume_one_lwp_throw, resume_lwp)
14655 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14656 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14657 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14658 (linux_nat_target::async_wait_fd): New.
14659 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14660 target down.
14661 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14662 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14663 * linux-thread-db.c (struct thread_db_info::process_target): New
14664 field.
14665 (add_thread_db_info): Save target.
14666 (get_thread_db_info): New process_stratum_target parameter. Also
14667 match target.
14668 (delete_thread_db_info): New process_stratum_target parameter.
14669 Also match target.
14670 (thread_from_lwp): Adjust to pass down target.
14671 (thread_db_notice_clone): Pass down target.
14672 (check_thread_db_callback): Pass down target.
14673 (try_thread_db_load_1): Always push the thread_db target.
14674 (try_thread_db_load, record_thread): Pass target down.
14675 (thread_db_target::detach): Pass target down. Always unpush the
14676 thread_db target.
14677 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14678 target down. Always unpush the thread_db target.
14679 (find_new_threads_callback, thread_db_find_new_threads_2)
14680 (thread_db_target::update_thread_list): Pass target down.
14681 (thread_db_target::pid_to_str): Pass current inferior down.
14682 (thread_db_target::get_thread_local_address): Pass target down.
14683 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14684 target down.
14685 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14686 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14687 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14688 (procfs_init_inferior): Rename to ...
14689 (procfs_target::procfs_init_inferior): ... this and adjust.
14690 (procfs_target::create_inferior, procfs_notice_thread)
14691 (procfs_do_thread_registers): Adjust.
14692 * ppc-fbsd-tdep.c: Include "inferior.h".
14693 (ppcfbsd_get_thread_local_address): Pass down target.
14694 * proc-service.c (ps_xfer_memory): Switch current inferior and
14695 program space as well.
14696 (get_ps_regcache): Pass target down.
14697 * process-stratum-target.c
14698 (process_stratum_target::thread_address_space)
14699 (process_stratum_target::thread_architecture): Pass target down.
14700 * process-stratum-target.h
14701 (process_stratum_target::threads_executing): New field.
14702 (as_process_stratum_target): New.
14703 * ravenscar-thread.c
14704 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14705 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14706 down.
14707 * record-btrace.c (record_btrace_target::info_record): Adjust.
14708 (record_btrace_target::record_method)
14709 (record_btrace_target::record_is_replaying)
14710 (record_btrace_target::fetch_registers)
14711 (get_thread_current_frame_id, record_btrace_target::resume)
14712 (record_btrace_target::wait, record_btrace_target::stop): Pass
14713 target down.
14714 * record-full.c (record_full_wait_1): Switch to event thread.
14715 Pass target down.
14716 * regcache.c (regcache::regcache)
14717 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14718 process_stratum_target parameter and handle it.
14719 (current_thread_target): New global.
14720 (get_thread_regcache): Add process_stratum_target parameter and
14721 handle it. Switch inferior before calling target method.
14722 (get_thread_regcache): Pass target down.
14723 (get_thread_regcache_for_ptid): Pass target down.
14724 (registers_changed_ptid): Add process_stratum_target parameter and
14725 handle it.
14726 (registers_changed_thread, registers_changed): Pass target down.
14727 (test_get_thread_arch_aspace_regcache): New.
14728 (current_regcache_test): Define a couple local test_target_ops
14729 instances and use them for testing.
14730 (readwrite_regcache): Pass process_stratum_target parameter.
14731 (cooked_read_test, cooked_write_test): Pass mock_target down.
14732 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14733 (get_thread_arch_aspace_regcache): Add process_stratum_target
14734 parameter.
14735 (regcache::target): New method.
14736 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14737 (regcache::registers_changed_ptid): Add process_stratum_target
14738 parameter.
14739 (regcache::m_target): New field.
14740 (registers_changed_ptid): Add process_stratum_target parameter.
14741 * remote.c (remote_state::supports_vCont_probed): New field.
14742 (remote_target::async_wait_fd): New method.
14743 (remote_unpush_and_throw): Add remote_target parameter.
14744 (get_current_remote_target): Adjust.
14745 (remote_target::remote_add_inferior): Push target.
14746 (remote_target::remote_add_thread)
14747 (remote_target::remote_notice_new_inferior)
14748 (get_remote_thread_info): Pass target down.
14749 (remote_target::update_thread_list): Skip threads of inferiors
14750 bound to other targets. (remote_target::close): Don't discard
14751 inferiors. (remote_target::add_current_inferior_and_thread)
14752 (remote_target::process_initial_stop_replies)
14753 (remote_target::start_remote)
14754 (remote_target::remote_serial_quit_handler): Pass down target.
14755 (remote_target::remote_unpush_target): New remote_target
14756 parameter. Unpush the target from all inferiors.
14757 (remote_target::remote_unpush_and_throw): New remote_target
14758 parameter. Pass it down.
14759 (remote_target::open_1): Check whether the current inferior has
14760 execution instead of checking whether any inferior is live. Pass
14761 target down.
14762 (remote_target::remote_detach_1): Pass down target. Use
14763 remote_unpush_target.
14764 (extended_remote_target::attach): Pass down target.
14765 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14766 (remote_target::append_resumption): Pass down target.
14767 (remote_target::append_pending_thread_resumptions)
14768 (remote_target::remote_resume_with_hc, remote_target::resume)
14769 (remote_target::commit_resume): Pass down target.
14770 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14771 (remote_target::interrupt_query)
14772 (remote_target::remove_new_fork_children)
14773 (remote_target::check_pending_events_prevent_wildcard_vcont)
14774 (remote_target::remote_parse_stop_reply)
14775 (remote_target::process_stop_reply): Pass down target.
14776 (first_remote_resumed_thread): New remote_target parameter. Pass
14777 it down.
14778 (remote_target::wait_as): Pass down target.
14779 (unpush_and_perror): New remote_target parameter. Pass it down.
14780 (remote_target::readchar, remote_target::remote_serial_write)
14781 (remote_target::getpkt_or_notif_sane_1)
14782 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14783 down target.
14784 (remote_target::mourn_inferior): Pass down target. Use
14785 remote_unpush_target.
14786 (remote_target::core_of_thread)
14787 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14788 (remote_target::pid_to_exec_file)
14789 (remote_target::thread_handle_to_thread_info): Pass down target.
14790 (remote_target::async_wait_fd): New.
14791 * riscv-fbsd-tdep.c: Include "inferior.h".
14792 (riscv_fbsd_get_thread_local_address): Pass down target.
14793 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14794 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14795 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14796 Adjust.
14797 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14798 * solib-svr4.c (enable_break): Pass down target.
14799 * spu-multiarch.c (parse_spufs_run): Pass down target.
14800 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14801 * target-delegates.c: Regenerate.
14802 * target.c (g_target_stack): Delete.
14803 (current_top_target): Return the current inferior's top target.
14804 (target_has_execution_1): Refer to the passed-in inferior's top
14805 target.
14806 (target_supports_terminal_ours): Check whether the initial
14807 inferior was already created.
14808 (decref_target): New.
14809 (target_stack::push): Incref/decref the target.
14810 (push_target, push_target, unpush_target): Adjust.
14811 (target_stack::unpush): Defref target.
14812 (target_is_pushed): Return bool. Adjust to refer to the current
14813 inferior's target stack.
14814 (dispose_inferior): Delete, and inline parts ...
14815 (target_preopen): ... here. Only dispose of the current inferior.
14816 (target_detach): Hold strong target reference while detaching.
14817 Pass target down.
14818 (target_thread_name): Add assertion.
14819 (target_resume): Pass down target.
14820 (target_ops::beneath, find_target_at): Adjust to refer to the
14821 current inferior's target stack.
14822 (get_dummy_target): New.
14823 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14824 has a thread running.
14825 (initialize_targets): Rename to ...
14826 (_initialize_target): ... this.
14827 * target.h: Include "gdbsupport/refcounted-object.h".
14828 (struct target_ops): Inherit refcounted_object.
14829 (target_ops::shortname, target_ops::longname): Make const.
14830 (target_ops::async_wait_fd): New method.
14831 (decref_target): Declare.
14832 (struct target_ops_ref_policy): New.
14833 (target_ops_ref): New typedef.
14834 (get_dummy_target): Declare function.
14835 (target_is_pushed): Return bool.
14836 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14837 (all_matching_threads_iterator::all_matching_threads_iterator):
14838 Handle filter target.
14839 * thread-iter.h (struct all_matching_threads_iterator, struct
14840 all_matching_threads_range, class all_non_exited_threads_range):
14841 Filter by target too. Remove explicit.
14842 * thread.c (threads_executing): Delete.
14843 (inferior_thread): Pass down current inferior.
14844 (clear_thread_inferior_resources): Pass down thread pointer
14845 instead of ptid_t.
14846 (add_thread_silent, add_thread_with_info, add_thread): Add
14847 process_stratum_target parameter. Use it for thread and inferior
14848 searches.
14849 (is_current_thread): New.
14850 (thread_info::deletable): Use it.
14851 (find_thread_ptid, thread_count, in_thread_list)
14852 (thread_change_ptid, set_resumed, set_running): New
14853 process_stratum_target parameter. Pass it down.
14854 (set_executing): New process_stratum_target parameter. Pass it
14855 down. Adjust reference to 'threads_executing'.
14856 (threads_are_executing): New process_stratum_target parameter.
14857 Adjust reference to 'threads_executing'.
14858 (set_stop_requested, finish_thread_state): New
14859 process_stratum_target parameter. Pass it down.
14860 (switch_to_thread): Also match inferior.
14861 (switch_to_thread): New process_stratum_target parameter. Pass it
14862 down.
14863 (update_threads_executing): Reimplement.
14864 * top.c (quit_force): Pop targets from all inferior.
14865 (gdb_init): Don't call initialize_targets.
14866 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14867 Declare.
14868 (windows_add_thread, windows_delete_thread): Adjust.
14869 (get_windows_debug_event): Rename to ...
14870 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14871 * tracefile-tfile.c (tfile_target_open): Pass down target.
14872 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14873 Forward declare.
14874 (switch_to_thread): Add process_stratum_target parameter.
14875 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14876 parameter. Use it.
14877 (mi_on_resume): Pass target down.
14878 * nat/fork-inferior.c (startup_inferior): Add
14879 process_stratum_target parameter. Pass it down.
14880 * nat/fork-inferior.h (startup_inferior): Add
14881 process_stratum_target parameter.
14882 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14883
75c6c844
PA
148842020-01-10 Pedro Alves <palves@redhat.com>
14885
14886 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14887 directly. Instead find the first thread in the thread list and
14888 use switch_to_thread.
14889
78f2c40a
PA
148902020-01-10 Pedro Alves <palves@redhat.com>
14891
14892 * remote.c (remote_target::remote_add_inferior): Don't bind a
14893 process to the current inferior if the current inferior is already
14894 bound to a process.
14895
e7af6c70
TBA
148962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14897 Pedro Alves <palves@redhat.com>
14898
14899 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14900 If no process is specified, return null_ptid instead of
14901 inferior_ptid.
14902 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14903 TARGET_WAITKIND_SIGNALLED with no pid.
14904
31ba933e
PA
149052020-01-10 Pedro Alves <palves@redhat.com>
14906
14907 * remote.c (first_remote_resumed_thread): New.
14908 (remote_target::wait_as): Use it as default event_ptid instead of
14909 inferior_ptid.
14910
735fc2ca
PA
149112020-01-10 Pedro Alves <palves@redhat.com>
14912
14913 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14914
c17e02e1
PA
149152020-01-10 Pedro Alves <palves@redhat.com>
14916
14917 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14918 not -1.
14919
ab1ddbcf
PA
149202020-01-10 Pedro Alves <palves@redhat.com>
14921
14922 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14923 ptid to get_last_target_status.
14924 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14925 ptid to get_last_target_status.
14926 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14927 get_last_target_status.
14928 (info_program_command): Don't pass a target_waitstatus to
14929 get_last_target_status.
14930 * infrun.c (init_wait_for_inferior): Use
14931 nullify_last_target_wait_ptid.
14932 (get_last_target_status): Handle nullptr arguments.
14933 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14934 (print_stop_event): Don't pass a ptid to get_last_target_status.
14935 (normal_stop): Don't pass a ptid to get_last_target_status.
14936 * infrun.h (get_last_target_status, set_last_target_status): Move
14937 comments here and update.
14938 (nullify_last_target_wait_ptid): Declare.
14939 * linux-fork.c (fork_load_infrun_state): Remove local extern
14940 declaration of nullify_last_target_wait_ptid.
14941 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14942 to get_last_target_status.
14943
f3f8ece4
PA
149442020-01-10 Pedro Alves <palves@redhat.com>
14945
14946 * gdbthread.h (scoped_restore_current_thread)
14947 <dont_restore, restore, m_dont_restore>: Declare.
14948 * thread.c (thread_alive): Add assertion. Return bool.
14949 (switch_to_thread_if_alive): New.
14950 (prune_threads): Switch inferior/thread.
14951 (print_thread_info_1): Switch thread before calling target methods.
14952 (scoped_restore_current_thread::restore): New, factored out from
14953 ...
14954 (scoped_restore_current_thread::~scoped_restore_current_thread):
14955 ... this.
14956 (scoped_restore_current_thread::scoped_restore_current_thread):
14957 Add assertion.
14958 (thread_apply_all_command, thread_select): Use
14959 switch_to_thread_if_alive.
14960 * infrun.c (proceed, restart_threads, handle_signal_stop)
14961 (switch_back_to_stepped_thread): Switch current thread before
14962 calling target methods.
14963
db2d40f7
PA
149642020-01-10 Pedro Alves <palves@redhat.com>
14965
14966 * inferior.c (switch_to_inferior_no_thread): New function,
14967 factored out from ...
14968 (inferior_command): ... here.
14969 * inferior.h (switch_to_inferior_no_thread): Declare.
14970 * mi/mi-main.c (run_one_inferior): Use
14971 switch_to_inferior_no_thread.
14972
bd420a2d
PA
149732020-01-10 Pedro Alves <palves@redhat.com>
14974
14975 * infcmd.c (kill_command): Remove dead code.
14976
ddf5db90
PA
149772020-01-10 Pedro Alves <palves@redhat.com>
14978
14979 * remote.c (remote_target::mourn_inferior): No longer check
14980 whether the target is running.
14981
5018ce90
PA
149822020-01-10 Pedro Alves <palves@redhat.com>
14983
14984 * corelow.c (core_target::has_execution): Change parameter type to
14985 inferior pointer.
14986 * inferior.c (number_of_live_inferiors): Use
14987 inferior::has_execution instead of target_has_execution_1.
14988 * inferior.h (inferior::has_execution): New.
14989 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14990 inferior::has_execution instead of target_has_execution_1.
14991 * process-stratum-target.c
14992 (process_stratum_target::has_execution): Change parameter type to
14993 inferior pointer. Check the inferior's PID instead of
14994 inferior_ptid.
14995 * process-stratum-target.h
14996 (process_stratum_target::has_execution): Change parameter type to
14997 inferior pointer.
14998 * record-full.c (record_full_core_target::has_execution): Change
14999 parameter type to inferior pointer.
15000 * target.c (target_has_execution_1): Change parameter type to
15001 inferior pointer.
15002 (target_has_execution_current): Adjust.
15003 * target.h (target_ops::has_execution): Change parameter type to
15004 inferior pointer.
15005 (target_has_execution_1): Change parameter type to inferior
15006 pointer. Change return type to bool.
15007 * tracefile.h (tracefile_target::has_execution): Change parameter
15008 type to inferior pointer.
15009
74375d18
PA
150102020-01-10 Pedro Alves <palves@redhat.com>
15011
15012 * exceptions.c (print_flush): Remove current_top_target() check.
15013
acdf84a6
PA
150142020-01-10 Pedro Alves <palves@redhat.com>
15015
15016 * remote.c (show_remote_exec_file): Show the current inferior's
15017 exec-file instead of the command variable's value.
15018
ec506636
PA
150192020-01-10 Pedro Alves <palves@redhat.com>
15020
15021 * record-full.c (record_full_resume_ptid): New global.
15022 (record_full_target::resume): Set it.
15023 (record_full_wait_1): Use record_full_resume_ptid instead of
15024 inferior_ptid.
15025
873657b9
PA
150262020-01-10 Pedro Alves <palves@redhat.com>
15027
15028 * gdbthread.h (scoped_restore_current_thread)
15029 <dont_restore, restore, m_dont_restore>: Declare.
15030 * thread.c (thread_alive): Add assertion. Return bool.
15031 (switch_to_thread_if_alive): New.
15032 (prune_threads): Switch inferior/thread.
15033 (print_thread_info_1): Switch thread before calling target methods.
15034 (scoped_restore_current_thread::restore): New, factored out from
15035 ...
15036 (scoped_restore_current_thread::~scoped_restore_current_thread):
15037 ... this.
15038 (scoped_restore_current_thread::scoped_restore_current_thread):
15039 Add assertion.
15040 (thread_apply_all_command, thread_select): Use
15041 switch_to_thread_if_alive.
15042
7f0ae84c
GB
150432020-01-10 George Barrett <bob@bob131.so>
15044
15045 * stap-probe.c (stap_modify_semaphore): Don't check for null
15046 semaphores.
15047 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15048 for null semaphores.
15049
f5a7c406
AB
150502020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15051
15052 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15053 all source windows, and maintain horizontal scroll status while
15054 doing so.
15055
9ae6bf64
TT
150562020-01-09 Tom Tromey <tom@tromey.com>
15057
15058 PR tui/18932:
15059 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15060 update_source_window, not print_source_lines.
15061
b2efe70c
AB
150622020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15063
15064 * tui/tui.c (tui_enable): Register tui hooks after calling
15065 tui_display_main.
15066
5f23a082
CB
150672020-01-09 Christian Biesinger <cbiesinger@google.com>
15068
15069 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15070
3061113b
SM
150712020-01-08 Simon Marchi <simon.marchi@efficios.com>
15072
15073 * thread.c (print_thread_info_1): Fix indentation.
15074
57d75002
CB
150752020-01-09 Christian Biesinger <cbiesinger@google.com>
15076
15077 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15078 unique_xmalloc_ptr outside the if to always free the demangled name.
15079
6a053cb1
TT
150802020-01-08 Tom Tromey <tromey@adacore.com>
15081
15082 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15083 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15084 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15085 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15086 Remove.
15087 (section_offsets): New typedef.
15088 * symtab.c (fixup_section, get_msymbol_address): Update.
15089 * symmisc.c (dump_msymbols): Update.
15090 * symfile.h (relative_addr_info_to_section_offsets)
15091 (symfile_map_offsets_to_segments): Update.
15092 * symfile.c (build_section_addr_info_from_objfile)
15093 (init_objfile_sect_indices): Update.
15094 (struct place_section_arg): Change type of "offsets".
15095 (place_section): Update.
15096 (relative_addr_info_to_section_offsets): Change type of
15097 "section_offsets". Remove "num_sections" parameter.
15098 (default_symfile_offsets, syms_from_objfile_1)
15099 (set_objfile_default_section_offset): Update.
15100 (reread_symbols): No need to preserve section offsets by hand.
15101 (symfile_map_offsets_to_segments): Change type of "offsets".
15102 * stap-probe.c (relocate_address): Update.
15103 * stabsread.h (process_one_symbol): Update.
15104 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15105 (solib_target_relocate_section_addresses): Update.
15106 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15107 Update.
15108 * solib-frv.c (frv_relocate_main_executable): Update.
15109 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15110 * solib-aix.c (solib_aix_get_section_offsets): Change return
15111 type.
15112 (solib_aix_solib_create_inferior_hook): Update.
15113 * remote.c (remote_target::get_offsets): Update.
15114 * psymtab.c (find_pc_sect_psymtab): Update.
15115 * psympriv.h (struct partial_symbol) <address, text_low,
15116 text_high>: Update.
15117 * objfiles.h (obj_section_offset): Update.
15118 (struct objfile) <section_offsets>: Change type.
15119 <num_sections>: Remove.
15120 (objfile_relocate): Update.
15121 * objfiles.c (entry_point_address_query): Update
15122 (relocate_one_symbol): Change type of "section_offsets".
15123 (objfile_relocate1, objfile_relocate1): Change type of
15124 "new_offsets".
15125 (objfile_rebase1): Update.
15126 * mipsread.c (mipscoff_symfile_read): Update.
15127 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15128 parameter.
15129 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15130 (parse_external, psymtab_to_symtab_1): Update.
15131 * machoread.c (macho_symfile_offsets): Update.
15132 * ia64-tdep.c (ia64_find_unwind_table): Update.
15133 * hppa-tdep.c (read_unwind_info): Update.
15134 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15135 * dwarf2read.c (create_addrmap_from_index)
15136 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15137 (process_psymtab_comp_unit_reader, add_partial_symbol)
15138 (add_partial_subprogram, process_full_comp_unit)
15139 (read_file_scope, read_func_scope, read_lexical_block_scope)
15140 (read_call_site_scope, dwarf2_rnglists_process)
15141 (dwarf2_ranges_process, dwarf2_ranges_read)
15142 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15143 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15144 Update.
15145 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15146 Update.
15147 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15148 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15149 (process_one_symbol): Change type of "section_offsets".
15150 * ctfread.c (get_objfile_text_range): Update.
15151 * coffread.c (coff_symtab_read, enter_linenos)
15152 (process_coff_symbol): Update.
15153 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15154 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15155
456e800a
TT
151562020-01-08 Tom Tromey <tromey@adacore.com>
15157
15158 * dwarf2read.c (parse_macro_definition): Use std::string.
15159 (parse_macro_definition): Likewise.
15160
6dfa2fc2
TT
151612020-01-08 Tom Tromey <tromey@adacore.com>
15162
15163 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15164 (ATTR_ALLOC_CHUNK): Remove.
15165
421d1616
TT
151662020-01-08 Tom Tromey <tromey@adacore.com>
15167
15168 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15169
43816ebc
TT
151702020-01-08 Tom Tromey <tromey@adacore.com>
15171
15172 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15173 (dwarf2_compute_name, open_dwo_file): Likewise.
15174 (process_enumeration_scope): Use std::vector.
15175 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15176 (partial_die_info::fixup, dwarf2_start_subfile)
15177 (guess_full_die_structure_name, dwarf2_name): Likewise.
15178 (determine_prefix): Update.
15179 (guess_full_die_structure_name): Make return type const.
15180 (partial_die_full_name): Return unique_xmalloc_ptr.
15181 (DW_FIELD_ALLOC_CHUNK): Remove.
15182
4212d509
TT
151832020-01-07 Tom Tromey <tromey@adacore.com>
15184
15185 PR build/24937:
15186 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15187
06a6207a
JT
151882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15189
15190 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15191
153d79c4
AB
151922020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15193
15194 * stack.c (print_frame_info): Move disassemble_next_line code
15195 inside source_print block.
15196
66182876
EZ
151972020-01-06 Eli Zaretskii <eliz@gnu.org>
15198
15199 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15200 gdb/signals.h, as we are now using native signal symbols.
15201
cbfa8581
SV
152022020-01-06 Shahab Vahedi <shahab@synopsys.com>
15203
15204 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15205 overflow by an early check of content vs threshold.
aac66a4c 15206 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15207 Likewise.
15208
3f602821
EZ
152092020-01-06 Eli Zaretskii <eliz@gnu.org>
15210
15211 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15212
a08c904d
JT
152132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15214
15215 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15216 export table if no section contains it's RVA.
15217
89a65580
EZ
152182020-01-06 Eli Zaretskii <eliz@gnu.org>
15219
15220 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15221
8b7fcda2
HD
152222020-01-06 Hannes Domani <ssbssa@yahoo.de>
15223
15224 * source.c (print_source_lines_base): Set last_line_listed.
15225
a61b4f69
SV
152262020-01-06 Shahab Vahedi <shahab@synopsys.com>
15227
15228 * tui/tui-disasm.c: Remove trailing spaces.
15229
559e7e50
EZ
152302020-01-06 Eli Zaretskii <eliz@gnu.org>
15231 Pedro Alves <palves@redhat.com>
15232
15233 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15234 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15235 (windows_gdb_signal_to_target): New function, uses the above
15236 enumeration to convert GDB internal signal codes to equivalent
15237 Windows codes.
15238 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15239 * windows-nat.c: Include "gdb_wait.h".
15240 (get_windows_debug_event): Extract the fatal exception from the
15241 exit status and convert to the equivalent Posix signal number.
15242 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15243 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15244 * gdbsupport/gdb_wait.c: New file, implements
15245 windows_status_to_termsig.
15246 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15247 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15248
f2302a34
AB
152492020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15250
15251 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15252 show_layout.
15253
6a5206eb
LM
152542020-01-05 Luis Machado <luis.machado@linaro.org>
15255
15256 * aarch64-linux-nat.c
15257 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15258 and bfd_mach_aarch64.
15259
6ec1d75e
PW
152602020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15261
15262 * ui-file.c (stdio_file::can_emit_style_escape)
15263 (tee_file::can_emit_style_escape): Ensure style is used also on
15264 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15265 to gdb_stdout.
15266 * main.c (set_gdb_data_directory): Use file style to output the
15267 warning that the given pathname is not a directory.
15268 * top.c (show_history_filename, gdb_safe_append_history)
15269 (show_gdb_datadir): Use file style.
15270
44f81a76
HD
152712020-01-03 Hannes Domani <ssbssa@yahoo.de>
15272
15273 * solib-target.c (struct lm_info_target):
15274 Change offsets to be a unique_xmalloc_ptr.
15275 (solib_target_relocate_section_addresses): Update.
15276
25057eb0
HD
152772020-01-03 Hannes Domani <ssbssa@yahoo.de>
15278
15279 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15280
6e2118f5
BE
152812020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15282
15283 * MAINTAINERS (Write After Approval): Add myself.
15284
8133c7dc
LM
152852020-01-02 Luis Machado <luis.machado@linaro.org>
15286
15287 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15288 Cell BE architecture.
15289 * target.h (struct target_ops) <thread_architecture>: Likewise.
15290
48189bec
HD
152912020-01-01 Hannes Domani <ssbssa@yahoo.de>
15292
15293 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15294
ead1063b
HD
152952020-01-01 Hannes Domani <ssbssa@yahoo.de>
15296
15297 * MAINTAINERS (Write After Approval): Add myself.
15298
e5d78223
JB
152992020-01-01 Joel Brobecker <brobecker@adacore.com>
15300
15301 * gdbarch.sh: Update copyright year range of generated files.
15302
b811d2c2
JB
153032020-01-01 Joel Brobecker <brobecker@adacore.com>
15304
15305 Update copyright year range in all GDB files.
15306
5f4def5c
JB
153072020-01-01 Joel Brobecker <brobecker@adacore.com>
15308
15309 * copyright.py: Convert to Python 3.
15310
51fd4002
JB
153112020-01-01 Joel Brobecker <brobecker@adacore.com>
15312
15313 * copyright.py: Adapt after move of gnulib directory from gdb
15314 directory to toplevel directory.
15315
5fb651f2
JB
153162020-01-01 Joel Brobecker <brobecker@adacore.com>
15317
15318 * copyright.py (main): Exit if run from the wrong directory.
15319
5dd8bf88
JB
153202020-01-01 Joel Brobecker <brobecker@adacore.com>
15321
15322 * top.c (print_gdb_version): Change copyright year to 2020.
15323
9f71dacb 153242020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15325
9f71dacb 15326 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15327
9f71dacb 15328For older changes see ChangeLog-2019.
c906108c
SS
15329\f
15330Local Variables:
15331mode: change-log
15332left-margin: 8
15333fill-column: 74
15334version-control: never
57da7796 15335coding: utf-8
c906108c 15336End: