]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix undefined behavior in gdbserver
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e0c45ded
AS
12020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2
3 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
4
22cc388e
TT
52020-10-19 Tom Tromey <tromey@adacore.com>
6
7 PR tui/26719
8 * tui/tui-winsource.h (struct tui_source_window_base)
9 <refresh_window>: Rename from refresh_pad.
10 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
11 Rename from refresh_pad.
12 (tui_source_window_base::show_source_content)
13 (tui_source_window_base::do_scroll_horizontal): Update.
14
3c6eb4d4
TBA
152020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16
17 * thread.c (_initialize_thread): Fine-tune the help text of
18 'info threads'.
19
26703721
TBA
202020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
21
22 * frame.c: Remove the unused 'uinteger_option_def' type alias.
23
61c26be8
MS
242020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
25
26 * breakpoint.c (handle_jit_event): Add an argument, change how
27 `jit_event_handler` is called.
28
932539d7
TT
292020-10-17 Tom Tromey <tom@tromey.com>
30
31 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
32 (scan_xcoff_symtab): Update.
33 * psymtab.h (class psymtab_storage) <global_psymbols,
34 static_psymbols, current_global_psymbols,
35 current_static_psymbols>: Remove.
36 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
37 (match_partial_symbol, lookup_partial_symbol): Update.
38 (print_partial_symbols): Change parameters.
39 (dump_psymtab, recursively_search_psymtabs)
40 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
41 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
42 (concat): Remove.
43 (end_psymtab_common): Simplify.
44 (append_psymbol_to_list): Change parameters.
45 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
46 (init_psymbol_list): Simplify.
47 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
48 * psympriv.h (struct partial_symtab) <empty>: New method.
49 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
50 Remove.
51 <global_psymbols, static_psymbols>: New members.
52 <add_psymbol>: New methods.
53 (add_psymbol_to_list): Don't declare.
54 (psymbol_placement): Move earlier.
55 * mdebugread.c (parse_partial_symbols): Update.
56 (handle_psymbol_enumerators): Change parameters.
57 (mdebug_expand_psymtab): Update.
58 * dwarf2/read.c (process_psymtab_comp_unit_reader)
59 (add_partial_symbol): Update.
60 * dwarf2/index-write.c (write_psymbols): Change parameters.
61 (write_one_signatured_type): Update.
62 (recursively_count_psymbols): Update.
63 (recursively_write_psymbols): Update.
64 (class debug_names) <recursively_write_psymbols>: Update.
65 <write_psymbols>: Change parameters.
66 <write_one_signatured_type>: Update.
67 * dbxread.c (read_dbx_symtab): Update.
68 (dbx_end_psymtab): Use partial_symtab::empty.
69 * ctfread.c (struct ctf_context) <pst>: New member.
70 (create_partial_symtab): Set it.
71 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
72 (scan_partial_symbols): Use the psymtab's context. Update.
73
cfabbd35
TT
742020-10-17 Tom Tromey <tom@tromey.com>
75
76 * valprint.c (generic_value_print): Remove comment.
77 * m2-valprint.c (m2_value_print_inner): Remove comment.
78 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
79 type.
80
520596f2
TV
812020-10-17 Tom de Vries <tdevries@suse.de>
82
83 PR symtab/26317
84 * source.c (select_source_symtab): Handling sal.symtab == NULL for
85 symbol main.
86
76547ab3
TV
872020-10-14 Tom de Vries <tdevries@suse.de>
88
89 PR gdb/26733
90 * solib.c (solib_contains_address_p): Handle
91 'solib->sections == nullptr'.
92
d3a07122
SM
932020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
94
95 PR gdb/26642
96 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
97 target can't do async.
98 * target.c (target_wait): Assert that we don't pass
99 TARGET_WNOHANG to a target that can't async.
100
1b71cfcf
KR
1012020-10-13 Kamil Rytarowski <n54@gmx.com>
102
103 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
104 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
105 * alpha-bsd-nat.c: Adjust include.
106 * alpha-bsd-tdep.h: Adjust comment.
107 * alpha-nbsd-tdep.c: Rename to ...
108 * alpha-netbsd-tdep.c: ... this, adjust include.
109 * amd64-nbsd-nat.c: Rename to ...
110 * amd64-netbsd-nat.c: ... this, adjust include.
111 * amd64-nbsd-tdep.c: Rename to ...
112 * amd64-netbsd-tdep.c: ... this, adjust include.
113 * amd64-tdep.h: Adjust include.
114 * arm-nbsd-nat.c: Rename to ...
115 * arm-netbsd-nat.c: ... this, adjust include.
116 * arm-nbsd-tdep.c: Rename to ...
117 * arm-netbsd-tdep.c: ... this, adjust include.
118 * arm-nbsd-tdep.h: Rename to ...
119 * arm-netbsd-tdep.h: ... this, adjust include.
120 * configure.nat: Adjust file lists.
121 * configure.tgt: Likewise.
122 * hppa-nbsd-nat.c: Rename to ...
123 * hppa-netbsd-nat.c: ... this, adjust include.
124 * hppa-nbsd-tdep.c: Rename to ...
125 * hppa-netbsd-tdep.c: ... this, adjust include.
126 * i386-nbsd-nat.c: Rename to ...
127 * i386-netbsd-nat.c: ... this, adjust include.
128 * i386-nbsd-tdep.c: Rename to ...
129 * i386-netbsd-tdep.c: ... this, adjust include.
130 * m68k-bsd-nat.c: Adjust include.
131 * mips-nbsd-nat.c: Rename to ...
132 * mips-netbsd-nat.c: ... this, adjust include.
133 * mips-nbsd-tdep.c: Rename to ...
134 * mips-netbsd-tdep.c: ... this, adjust include.
135 * mips-nbsd-tdep.h: Rename to ...
136 * mips-netbsd-tdep.h: ... this.
137 * nbsd-nat.c: Rename to ...
138 * netbsd-nat.c: ... this, adjust include.
139 * nbsd-nat.h: Rename to ...
140 * netbsd-nat.h: ... this, adjust include.
141 * nbsd-tdep.c: Rename to ...
142 * netbsd-tdep.c: ... this, adjust include.
143 * nbsd-tdep.h: Rename to ...
144 * netbsd-tdep.h: ... this.
145 * ppc-nbsd-nat.c: Rename to ...
146 * ppc-netbsd-nat.c: ... this, adjust include.
147 * ppc-nbsd-tdep.c: Rename to ...
148 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
149 * ppc-nbsd-tdep.h: Rename to ...
150 * ppc-netbsd-tdep.h: ... this.
151 * sh-nbsd-nat.c: Rename to ...
152 * sh-netbsd-nat.c: ... this, adjust include.
153 * sh-nbsd-tdep.c: Rename to ...
154 * sh-netbsd-tdep.c: ... this, adjust include.
155 * sparc-nbsd-nat.c: Rename to ...
156 * sparc-netbsd-nat.c: ... this.
157 * sparc-nbsd-tdep.c: Rename to ...
158 * sparc-netbsd-tdep.c: ... this, adjust include.
159 * sparc64-nbsd-nat.c: Rename to ...
160 * sparc64-netbsd-nat.c: ... this.
161 * sparc64-nbsd-tdep.c: Rename to ...
162 * sparc64-netbsd-tdep.c: ... this, adjust include.
163 * sparc64-tdep.h: Adjust comment.
164 * vax-bsd-nat.c: Adjust include.
165 * vax-nbsd-tdep.c: Rename to ...
166 * vax-netbsd-tdep.c: ... this, adjust include.
167
d7a78e5c
TT
1682020-10-12 Tom Tromey <tom@tromey.com>
169
170 * target.h (struct target_ops) <get_section_table>: Update.
171 (target_get_section_table): Update.
172 * target.c (target_get_section_table, target_section_by_addr)
173 (memory_xfer_partial_1): Update.
174 * target-section.h (target_section_table): Now an alias.
175 * target-delegates.c: Rebuild.
176 * target-debug.h (target_debug_print_target_section_table_p):
177 Rename from target_debug_print_struct_target_section_table_p.
178 * symfile.c (build_section_addr_info_from_section_table): Update.
179 * solib.c (solib_map_sections, solib_contains_address_p): Update.
180 * solib-svr4.c (scan_dyntag): Update.
181 * solib-dsbt.c (scan_dyntag): Update.
182 * remote.c (remote_target::remote_xfer_live_readonly_partial):
183 Update.
184 * record-full.c (record_full_core_target::xfer_partial): Update.
185 * progspace.h (struct program_space) <target_sections>: Update.
186 * exec.h (print_section_info): Update.
187 * exec.c (exec_target::close, build_section_table)
188 (add_target_sections, add_target_sections_of_objfile)
189 (remove_target_sections, exec_on_vfork)
190 (section_table_available_memory)
191 (section_table_xfer_memory_partial)
192 (exec_target::get_section_table, exec_target::xfer_partial)
193 (print_section_info, set_section_command)
194 (exec_set_section_address, exec_target::has_memory): Update.
195 * corelow.c (core_target::build_file_mappings)
196 (core_target::xfer_partial, core_target::info_proc_mappings)
197 (core_target::info_proc_mappings): Update.
198 * bfd-target.c (class target_bfd): Update
199
eda214ce
TT
2002020-10-12 Tom Tromey <tom@tromey.com>
201
202 * progspace.c (program_space::~program_space): Don't call
203 clear_section_table.
204 * exec.h (clear_section_table): Don't declare.
205 * exec.c (exec_target::close): Update.
206 (clear_section_table): Remove.
207
91840ee3
TT
2082020-10-12 Tom Tromey <tom@tromey.com>
209
210 * exec.c (add_target_sections_of_objfile): Simplify.
211
2d128614
TT
2122020-10-12 Tom Tromey <tom@tromey.com>
213
214 * solib.c (solib_map_sections): Update.
215 * record-full.c (record_full_core_open_1): Update.
216 * exec.h (build_section_table): Return a target_section_table.
217 * exec.c (exec_file_attach): Update.
218 (build_section_table): Return a target_section_table.
219 * corelow.c (core_target::core_target): Update.
220 * bfd-target.c (target_bfd::target_bfd): Update.
221
bb2a6777
TT
2222020-10-12 Tom Tromey <tom@tromey.com>
223
224 * target.c (target_section_by_addr, memory_xfer_partial_1):
225 Update.
226 * target-section.h (struct target_section_table): Use
227 std::vector.
228 * symfile.h (build_section_addr_info_from_section_table): Take a
229 target_section_table.
230 * symfile.c (build_section_addr_info_from_section_table): Take a
231 target_section_table.
232 * solist.h (struct so_list) <sections>: Change type.
233 <sections_end>: Remove.
234 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
235 (solib_contains_address_p): Update.
236 * solib-svr4.c (scan_dyntag): Update.
237 * solib-dsbt.c (scan_dyntag): Update.
238 * remote.c (remote_target::remote_xfer_live_readonly_partial):
239 Update.
240 * record-full.c (record_full_core_start, record_full_core_end):
241 Remove.
242 (record_full_core_sections): New global.
243 (record_full_core_open_1, record_full_core_target::xfer_partial):
244 Update.
245 * exec.h (build_section_table, section_table_xfer_memory_partial)
246 (add_target_sections): Take a target_section_table.
247 * exec.c (exec_file_attach, clear_section_table): Update.
248 (resize_section_table): Remove.
249 (build_section_table, add_target_sections): Take a
250 target_section_table.
251 (add_target_sections_of_objfile, remove_target_sections)
252 (exec_on_vfork): Update.
253 (section_table_available_memory): Take a target_section_table.
254 (section_table_read_available_memory): Update.
255 (section_table_xfer_memory_partial): Take a target_section_table.
256 (print_section_info, set_section_command)
257 (exec_set_section_address, exec_target::has_memory): Update.
258 * corelow.c (class core_target) <m_core_section_table,
259 m_core_file_mappings>: Remove braces.
260 <~core_target>: Remove.
261 (core_target::core_target): Update.
262 (core_target::~core_target): Remove.
263 (core_target::build_file_mappings)
264 (core_target::xfer_memory_via_mappings)
265 (core_target::xfer_partial, core_target::info_proc_mappings):
266 Update.
267 * bfd-target.c (target_bfd::xfer_partial): Update.
268 (target_bfd::target_bfd): Update.
269 (target_bfd::~target_bfd): Remove.
270
7b466b10
TT
2712020-10-12 Tom Tromey <tom@tromey.com>
272
273 * target.h (struct target_section, struct target_section_table):
274 Move to target-section.h.
275 * target-section.h: New file.
276
87a37e5e
PA
2772020-10-12 Pedro Alves <pedro@palves.net>
278
279 PR exp/26602
280 * valops.c (struct struct_field_searcher): New.
281 (update_search_result): Rename to ...
282 (struct_field_searcher::update_result): ... this. Simplify
283 prototype. Record all found fields.
284 (do_search_struct_field): Rename to ...
285 (struct_field_searcher::search): ... this. Simplify prototype.
286 Maintain stack of visited baseclass path. Call update_result for
287 fields too. Keep searching fields in baseclasses instead of
288 stopping at the first found field.
289 (search_struct_field): Use struct_field_searcher. When looking
290 for fields, report ambiguous access attempts.
291
9370fd51
AB
2922020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * frame.c (inside_main_func): Check full symbols as well as
295 minimal symbols.
296
59c8a30b
JB
2972020-10-09 Joel Brobecker <brobecker@adacore.com>
298
299 * ada-lang.c (advance_wild_match): Rewrite the function's
300 description. Change the type of target0, t0 and t1 to char.
301
7c184d33
TT
3022020-10-09 Tom Tromey <tromey@adacore.com>
303
304 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
305
5c4258f4
TT
3062020-10-09 Tom Tromey <tromey@adacore.com>
307
308 * ada-lang.h (ada_encode): Return std::string.
309 * ada-lang.c (ada_encode_1): Return std::string.
310 (ada_encode): Likewise.
311 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
312 Update.
313 * ada-exp.y (block_lookup, write_var_or_type): Update.
314
3d87245c
HD
3152020-10-09 Hannes Domani <ssbssa@yahoo.de>
316
317 PR exp/26714
318 * printcmd.c (print_formatted): Handle void results as
319 unformatted prints.
320
bbb826f5
AB
3212020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * arch/aarch32.c (aarch32_create_target_description): Release the
324 target_desc_up as late as possible.
325 * arch/aarch64.c (aarch64_create_target_description): Likewise.
326 * arch/amd64.c (amd64_create_target_description): Likewise.
327 * arch/arc.c (arc_create_target_description): Return a
328 target_desc_up, don't release it.
329 * arch/arc.h (arc_create_target_description): Update declaration.
330 (arc_lookup_target_description): Move target_desc_up into the
331 cache, and return a borrowed pointer.
332 * arch/arm.c (arm_create_target_description): Release the
333 target_desc_up as late as possible.
334 * arch/i386.c (i386_create_target_description): Likewise.
335 * arch/riscv.h (riscv_create_target_description): Update
336 declaration to match definition.
337 * arch/tic6x.c (tic6x_create_target_description): Release the
338 target_desc_up as late as possible.
339
361cb219
AB
3402020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
343 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
344
f5c4b229
JV
3452020-10-09 Jan Vrany <jan.vrany@labware.com>
346
347 * source.c (directory_command): Notify observers that "directories"
348 parameter has changed.
349
b2701685
TT
3502020-10-08 Tom Tromey <tom@tromey.com>
351
352 * cli/cli-cmds.c (print_disassembly): Style function name and
353 addresses. Add _() wrappers.
354
ada508b6
SV
3552020-10-08 Shahab Vahedi <shahab@synopsys.com>
356
357 * NEWS: Mention ARC support in GDBserver.
358
51a948fd
AB
3592020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * arch/aarch32.c (aarch32_create_target_description): Release
362 unique_ptr returned from allocate_target_description.
363 * arch/aarch64.c (aarch64_create_target_description): Likewise.
364 * arch/amd64.c (amd64_create_target_description): Likewise.
365 * arch/arc.c (arc_create_target_description): Likewise.
366 * arch/arm.c (arm_create_target_description): Likewise.
367 * arch/i386.c (i386_create_target_description): Likewise.
368 * arch/riscv.c (riscv_create_target_description): Update return
369 type. Handle allocate_target_description returning a unique_ptr.
370 (riscv_lookup_target_description): Update to handle unique_ptr.
371 * arch/tic6x.c (tic6x_create_target_description): Release
372 unique_ptr returned from allocate_target_description.
373 * features/microblaze-with-stack-protect.c: Regenerate.
374 * features/microblaze.c: Regenerate.
375 * features/mips-dsp-linux.c: Regenerate.
376 * features/mips-linux.c: Regenerate.
377 * features/mips64-dsp-linux.c: Regenerate.
378 * features/mips64-linux.c: Regenerate.
379 * features/nds32.c: Regenerate.
380 * features/nios2.c: Regenerate.
381 * features/or1k.c: Regenerate.
382 * features/rs6000/powerpc-32.c: Regenerate.
383 * features/rs6000/powerpc-32l.c: Regenerate.
384 * features/rs6000/powerpc-403.c: Regenerate.
385 * features/rs6000/powerpc-403gc.c: Regenerate.
386 * features/rs6000/powerpc-405.c: Regenerate.
387 * features/rs6000/powerpc-505.c: Regenerate.
388 * features/rs6000/powerpc-601.c: Regenerate.
389 * features/rs6000/powerpc-602.c: Regenerate.
390 * features/rs6000/powerpc-603.c: Regenerate.
391 * features/rs6000/powerpc-604.c: Regenerate.
392 * features/rs6000/powerpc-64.c: Regenerate.
393 * features/rs6000/powerpc-64l.c: Regenerate.
394 * features/rs6000/powerpc-7400.c: Regenerate.
395 * features/rs6000/powerpc-750.c: Regenerate.
396 * features/rs6000/powerpc-860.c: Regenerate.
397 * features/rs6000/powerpc-altivec32.c: Regenerate.
398 * features/rs6000/powerpc-altivec32l.c: Regenerate.
399 * features/rs6000/powerpc-altivec64.c: Regenerate.
400 * features/rs6000/powerpc-altivec64l.c: Regenerate.
401 * features/rs6000/powerpc-e500.c: Regenerate.
402 * features/rs6000/powerpc-e500l.c: Regenerate.
403 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
404 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
405 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
406 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
407 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
408 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
409 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
410 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
411 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
412 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
413 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
414 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
415 * features/rs6000/powerpc-vsx32.c: Regenerate.
416 * features/rs6000/powerpc-vsx32l.c: Regenerate.
417 * features/rs6000/powerpc-vsx64.c: Regenerate.
418 * features/rs6000/powerpc-vsx64l.c: Regenerate.
419 * features/rs6000/rs6000.c: Regenerate.
420 * features/rx.c: Regenerate.
421 * features/s390-gs-linux64.c: Regenerate.
422 * features/s390-linux32.c: Regenerate.
423 * features/s390-linux32v1.c: Regenerate.
424 * features/s390-linux32v2.c: Regenerate.
425 * features/s390-linux64.c: Regenerate.
426 * features/s390-linux64v1.c: Regenerate.
427 * features/s390-linux64v2.c: Regenerate.
428 * features/s390-te-linux64.c: Regenerate.
429 * features/s390-tevx-linux64.c: Regenerate.
430 * features/s390-vx-linux64.c: Regenerate.
431 * features/s390x-gs-linux64.c: Regenerate.
432 * features/s390x-linux64.c: Regenerate.
433 * features/s390x-linux64v1.c: Regenerate.
434 * features/s390x-linux64v2.c: Regenerate.
435 * features/s390x-te-linux64.c: Regenerate.
436 * features/s390x-tevx-linux64.c: Regenerate.
437 * features/s390x-vx-linux64.c: Regenerate.
438 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
439 from allocate_target_description.
440 * target-descriptions.c (allocate_target_description): Update
441 return type.
442 (print_c_tdesc::visit_pre): Release unique_ptr returned from
443 allocate_target_description.
444
485c47e5
TT
4452020-10-07 Tom Tromey <tromey@adacore.com>
446
447 * unittests/search-memory-selftests.c: New file.
448 * Makefile.in (SELFTESTS_SRCS): Add
449 unittests/search-memory-selftests.c.
450
3a135a91
TT
4512020-10-07 Tom Tromey <tromey@adacore.com>
452
453 PR gdb/16930:
454 * findcmd.c (_initialize_mem_search): Mention that the range is
455 inclusive.
456
4a72de73
TT
4572020-10-07 Tom Tromey <tromey@adacore.com>
458
459 * target.h (simple_search_memory): Don't declare.
460 * target.c (simple_search_memory): Move to gdbsupport.
461 (default_search_memory): Update.
462 * remote.c (remote_target::search_memory): Update.
463
a038ffd8
SM
4642020-10-07 Simon Marchi <simon.marchi@efficios.com>
465
466 * Makefile.in (COMPILE): Add CXXFLAGS.
467 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
468 (check-headers): Add CXXFLAGS.
469
cc463201
AK
4702020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
471
472 * arc-linux-tdep.h: New file.
473 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
474 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
475 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
476 arc_linux_gregset, arc_linux_v2_regset,
477 arc_linux_iterate_over_regset_sections,
478 arc_linux_core_read_description): Implement.
479 (arc_linux_init_osabi): Set iterate_over_regset_sections.
480 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
481 (arc_gdbarch_features_create): Add.
482 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
483
e4bd363f
SV
4842020-10-07 Shahab Vahedi <shahab@synopsys.com>
485
486 * arch/arc.h: Rename "arc_gdbarch_features" to
487 "arc_arch_features".
488 * arc-tdep.h: Likewise.
489 * arc-tdep.c: Likewise.
490
b68bef99
TBA
4912020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
492
493 * infcmd.c (attach_command): Remove the redundant call to
494 `clear_proceed_status`.
495
4641551a
KR
4962020-10-07 Kamil Rytarowski <n54@gmx.com>
497
498 * nat/netbsd-nat.c (write_memory, read_memory): Update.
499
91e5e8db
KR
5002020-10-07 Kamil Rytarowski <n54@gmx.com>
501
502 * nat/netbsd-nat.c (write_memory, read_memory): Add.
503 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
504 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
505
64c03bdb
SM
5062020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
509 (_initialize_break_catch_sig): Don't allocate array.
510
31a8f60f
AB
5112020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * symtab.c (find_pc_line): Return unmapped addresses when the
514 requested address is also unmapped.
515
9e6dbd8b
SM
5162020-10-05 Simon Marchi <simon.marchi@efficios.com>
517
518 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
519 tui/tui-out.h.
520
a1d217e8
SM
5212020-10-05 Simon Marchi <simon.marchi@efficios.com>
522
523 * amd64-windows-tdep.c (amd64_windows_return_value): Use
524 type::is_vector instead of TYPE_VECTOR.
525
7d144117
SM
5262020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
527
528 * auto-load.c (auto_load_objfile_script_1): Don't use
529 debugfile_holder as temporary variable when stripping drive
530 letter.
531
cd096ec8
HD
5322020-10-05 Hannes Domani <ssbssa@yahoo.de>
533
534 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
535 Add TYPE_CODE_COMPLEX.
536 (amd64_windows_return_value): Fix types returned via XMM0.
537
b58e7f72
AH
5382020-10-05 Alan Hayward <alan.hayward@arm.com>
539
540 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
541 AArch64/ARM maintainers.
542
8d378f27
SM
5432020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * NEWS: Mention set/show debug event-loop.
546
d5519913
TT
5472020-10-02 Tom Tromey <tromey@adacore.com>
548
549 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
550 REG_EXTENDED.
551
18b67edc
SM
5522020-10-02 Simon Marchi <simon.marchi@efficios.com>
553
554 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
555 * procfs.c (procfs_inferior_created): Remove.
556 (_initialize_procfs): Don't register procfs_inferior_created.
557
6b01403b
SM
5582020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
559
560 * async-event.c (invoke_async_signal_handlers): Add debug
561 print.
562 (check_async_event_handlers): Likewise.
563 * event-top.c (show_debug_event_loop): New function.
564 (_initialize_event_top): Register "set debug event-loop"
565 setting.
566
ba988419
SM
5672020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
570 * debug.h: Remove.
571 * infrun.c: Include gdbsupport/common-debug.h.
572 * linux-nat.c: Likewise.
573
db20ebdf
SM
5742020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
575
576 * async-event.h (create_async_signal_handler): Add name
577 parameter.
578 (create_async_event_handler): Likewise.
579 * async-event.c (struct async_signal_handler) <name>: New field.
580 (struct async_event_handler) <name>: New field.
581 (create_async_signal_handler): Assign name.
582 (create_async_event_handler): Assign name.
583 * event-top.c (async_init_signals): Pass name when creating
584 handler.
585 * infrun.c (_initialize_infrun): Likewise.
586 * record-btrace.c (record_btrace_push_target): Likewise.
587 * record-full.c (record_full_open): Likewise.
588 * remote-notif.c (remote_notif_state_allocate): Likewise.
589 * remote.c (remote_target::open_1): Likewise.
590 * tui/tui-win.c (tui_initialize_win): Likewise.
591
2554f6f5
SM
5922020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * async-event.c (initialize_async_signal_handlers): Pass name to
595 add_file_handler
596 * event-top.c (ui_register_input_event_handler): Likewise.
597 * linux-nat.c (linux_nat_target::async): Likewise.
598 * run-on-main-thread.c (_initialize_run_on_main_thread):
599 Likewise
600 * ser-base.c (reschedule): Likewise.
601 (ser_base_async): Likewise.
602 * tui/tui-io.c: Likewise.
603 * top.h (struct ui) <num>: New field.
604 * top.c (highest_ui_num): New variable.
605 (ui::ui): Initialize num.
606
a7aba266
SM
6072020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * observable.h <inferior_created>: Remove parameters. Update all
610 listeners.
611 * inferior.h (post_create_inferior): Remove target parameter.
612 Update all callers.
613
048fde1e 6142020-10-02 Nitika Achra <Nitika.Achra@amd.com>
615
616 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
617 and DW_MACRO_undef_strx.
618 (dwarf_decode_macros): Likewise
619 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
620 which is the value of DW_AT_str_offsets_base.
621 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
622 str_offsets_base.
623
064280be
KR
6242020-10-01 Kamil Rytarowski <n54@gmx.com>
625
626 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
627
6ff33035
KR
6282020-10-01 Kamil Rytarowski <n54@gmx.com>
629
630 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
631 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
632
1eb6eb79
KR
6332020-10-01 Kamil Rytarowski <n54@gmx.com>
634
635 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
636
95eb9e54
TV
6372020-09-30 Tom de Vries <tdevries@suse.de>
638
639 PR symtab/26683
640 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
641
cae21f8e
TT
6422020-09-30 Tom Tromey <tromey@adacore.com>
643
644 * dwarf2/read.c (handle_variant): Use constant_value.
645
529908cb
TT
6462020-09-29 Tom Tromey <tom@tromey.com>
647
648 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
649 (read_file_scope, dwarf2_get_pc_bounds)
650 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
651 (read_structure_type, handle_struct_member_die)
652 (read_enumeration_type, read_array_type, read_set_type)
653 (read_tag_pointer_type, read_tag_reference_type)
654 (read_subroutine_type, read_base_type, read_subrange_type)
655 (read_full_die_1, partial_die_info::read)
656 (partial_die_info::read, by, new_symbol)
657 (dwarf2_const_value_data, dwarf2_const_value_attr)
658 (dump_die_shallow, dwarf2_fetch_constant_bytes)
659 (prepare_one_comp_unit): Update.
660 * dwarf2/attribute.h (DW_UNSND): Remove.
661
c45bc3f8
TT
6622020-09-29 Tom Tromey <tom@tromey.com>
663
664 * dwarf2/read.c (read_func_scope, prototyped_function_p)
665 (read_subroutine_type, partial_die_info::read)
666 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
667 (dwarf2_add_member_fn): Update.
668 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
669 * dwarf2/attribute.c (attribute::as_boolean): New method.
670
23dca5c3
TT
6712020-09-29 Tom Tromey <tom@tromey.com>
672
673 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
674 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
675 method.
676 * dwarf2/attribute.c (attribute::as_virtuality): New method.
677
52c14d11
TT
6782020-09-29 Tom Tromey <tom@tromey.com>
679
680 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
681 the attribute's form.
682
e8e5c158
TT
6832020-09-29 Tom Tromey <tom@tromey.com>
684
685 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
686 (dwarf2_add_member_fn): Update.
687 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
688 * dwarf2/attribute.c (attribute::defaulted): New method, from
689 is_valid_DW_AT_defaulted.
690
d4df075e
TT
6912020-09-29 Tom Tromey <tom@tromey.com>
692
693 * dwarf2/read.c (dw2_get_file_names_reader)
694 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
695 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
696 (dwarf2_symbol_mark_computed): Use as_unsigned.
697 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
698 method.
699 <form_is_section_offset>: Update comment.
700
bf23a268
TT
7012020-09-29 Tom Tromey <tom@tromey.com>
702
703 * dwarf2/read.c (dwarf2_access_attribute): Rename from
704 dwarf2_default_access_attribute. Look up attribute.
705 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
706 Update.
707
7a5f294d
TT
7082020-09-29 Tom Tromey <tom@tromey.com>
709
710 * dwarf2/read.c (skip_one_die): Update.
711 (read_full_die_1): Change how reprocessing is done.
712 (partial_die_info::read): Update.
713 (read_attribute_value): Remove need_reprocess parameter.
714 (read_attribute): Likewise.
715 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
716 New method.
717
36d378cf
TT
7182020-09-29 Tom Tromey <tom@tromey.com>
719
720 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
721 (dwarf2_const_value_attr, dump_die_shallow)
722 (dwarf2_fetch_constant_bytes): Update.
723 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
724 comment.
725 <set_address>: New method.
726 (DW_ADDR): Remove.
727 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
728 (attribute::as_string, attribute::as_address): Add assert.
729
fe56917a
TT
7302020-09-29 Tom Tromey <tom@tromey.com>
731
732 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
733 (read_attribute_reprocess, read_attribute_value): Update.
734 (read_attribute): Clear requires_reprocessing.
735 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
736 form_requires_reprocessing>: New methods.
737 <string_init>: Clear requires_reprocessing.
738 <set_unsigned_reprocess>: New method.
739 <name>: Shrink by one bit.
740 <requires_reprocessing>: New member.
741 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
742 method.
743
414ad644
TT
7442020-09-29 Tom Tromey <tom@tromey.com>
745
746 * dwarf2/read.c (read_attribute_value): Update.
747 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
748 set_unsigned>: New methods.
749 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
750
1bc397c5
TT
7512020-09-29 Tom Tromey <tom@tromey.com>
752
753 * dwarf2/read.c (get_alignment, read_array_order)
754 (read_attribute_value, dwarf2_const_value_attr)
755 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
756 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
757 New methods.
758 (DW_SND): Remove.
759
630ed6b9
TT
7602020-09-29 Tom Tromey <tom@tromey.com>
761
762 * dwarf2/read.c (read_attribute_value, lookup_die_type)
763 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
764 Update.
765 * dwarf2/attribute.h (struct attribute) <as_signature,
766 set_signature>: New methods.
767 (DW_SIGNATURE): Remove.
768
9d2246fc
TT
7692020-09-29 Tom Tromey <tom@tromey.com>
770
771 * dwarf2/read.c (read_call_site_scope)
772 (handle_data_member_location, dwarf2_add_member_fn)
773 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
774 (partial_die_info::read, read_attribute_value)
775 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
776 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
777 (dwarf2_symbol_mark_computed): Update.
778 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
779 methods.
780 (DW_BLOCK): Remove.
781 * dwarf2/attribute.c (attribute::form_is_block): Add
782 DW_FORM_data16.
783
c6481205
TT
7842020-09-29 Tom Tromey <tom@tromey.com>
785
786 * dwarf2/read.c (read_cutu_die_from_dwo)
787 (read_attribute_reprocess, read_attribute_value, read_attribute)
788 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
789 (dwarf2_fetch_constant_bytes): Update.
790 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
791 <set_string_noncanonical, set_string_canonical>: New methods.
792 <string_is_canonical>: Update comment.
793 <canonical_string_p>: Add assert.
794 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
795 * dwarf2/attribute.c (attribute::form_is_string): New method.
796 (attribute::string): Use it.
797
3b64bf15
TT
7982020-09-29 Tom Tromey <tom@tromey.com>
799
800 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
801 (dump_die_shallow): Use canonical_string_p.
802 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
803 method.
804
2c830f54
TT
8052020-09-29 Tom Tromey <tom@tromey.com>
806
807 * dwarf2/read.c (partial_die_info::read)
808 (dwarf2_const_value_attr, anonymous_struct_prefix, )
809 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
810 attribute::as_string.
811
6c412691
TT
8122020-09-29 Tom Tromey <tom@tromey.com>
813
814 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
815 DW_ADDR.
816 (attribute::string): Don't use DW_STRING.
817 (attribute::get_ref_die_offset): Don't use DW_UNSND.
818 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
819
95f982e5
TT
8202020-09-29 Tom Tromey <tom@tromey.com>
821
822 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
823 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
824 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
825 * dwarf2/attribute.h (struct attribute): Rename methods.
826 * dwarf2/attribute.c (attribute::as_address): Rename from
827 value_as_address.
828 (attribute::as_string): Rename from value_as_string.
829
f800b00e
TT
8302020-09-29 Tom Tromey <tom@tromey.com>
831
832 * dwarf2/read.c (partial_die_info::read) <case
833 DW_AT_linkage_name>: Use value_as_string.
834 (dwarf2_string_attr): Use value_as_string.
835 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
836 method.
837 * dwarf2/attribute.c (attribute::value_as_string): New method.
838
de38d64a
PA
8392020-09-29 Pedro Alves <pedro@palves.net>
840
841 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
842 defined before using '#pragma GCC diagnostic' instead of checking
843 __clang__.
844
9aed480c
TT
8452020-09-28 Tom Tromey <tom@tromey.com>
846
847 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
848 (handle_signal_stop): Update.
849 * procfs.c (procfs_target::insert_watchpoint): Update.
850 * target.h (target_have_steppable_watchpoint): Now a function.
851
8a3ecb79
TT
8522020-09-28 Tom Tromey <tom@tromey.com>
853
854 * infrun.c (set_schedlock_func): Update.
855 * target.h (target_can_lock_scheduler): Now a function.
856
55f6301a
TT
8572020-09-28 Tom Tromey <tom@tromey.com>
858
859 * inferior.h (class inferior) <has_execution>: Update.
860 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
861 * valops.c (find_function_in_inferior)
862 (value_allocate_space_in_inferior): Update.
863 * top.c (kill_or_detach): Update.
864 * target.c (target_preopen, set_target_permissions): Update.
865 (target_has_execution_current): Remove.
866 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
867 Update.
868 * solib.c (update_solib_list, reload_shared_libraries): Update.
869 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
870 * solib-dsbt.c (enable_break): Update.
871 * score-tdep.c (score7_fetch_inst): Update.
872 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
873 Update.
874 * remote.c (remote_target::start_remote)
875 (remote_target::remote_check_symbols, remote_target::open_1)
876 (remote_target::remote_detach_1, remote_target::verify_memory)
877 (remote_target::xfer_partial, remote_target::read_description)
878 (remote_target::get_min_fast_tracepoint_insn_len): Update.
879 * record-full.c (record_full_open_1): Update.
880 * record-btrace.c (record_btrace_target_open): Update.
881 * objc-lang.c (lookup_objc_class, lookup_child_selector)
882 (value_nsstring): Update.
883 * linux-thread-db.c (add_thread_db_info)
884 (thread_db_find_new_threads_silently, check_thread_db_callback)
885 (try_thread_db_load_1, record_thread): Update.
886 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
887 Update.
888 * linux-fork.c (checkpoint_command): Update.
889 * infrun.c (set_non_stop, set_observer_mode)
890 (check_multi_target_resumption, for_each_just_stopped_thread)
891 (maybe_remove_breakpoints, normal_stop)
892 (class infcall_suspend_state): Update.
893 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
894 (info_program_command, attach_command): Update.
895 * infcall.c (call_function_by_hand_dummy): Update.
896 * inf-loop.c (inferior_event_handler): Update.
897 * gcore.c (gcore_command, derive_heap_segment): Update.
898 * exec.c (exec_file_command): Update.
899 * eval.c (evaluate_subexp): Update.
900 * compile/compile.c (compile_to_object): Update.
901 * cli/cli-dump.c (restore_command): Update.
902 * breakpoint.c (update_watchpoint)
903 (update_inserted_breakpoint_locations)
904 (insert_breakpoint_locations, get_bpstat_thread): Update.
905 * target.h (target_has_execution): Remove macro.
906 (target_has_execution_current): Don't declare.
907 (target_has_execution): Rename from target_has_execution_1. Add
908 argument default.
909
05374cfd
TT
9102020-09-28 Tom Tromey <tom@tromey.com>
911
912 * mi/mi-main.c (exec_reverse_continue)
913 (mi_cmd_list_target_features): Update.
914 * infrun.c (set_exec_direction_func): Update.
915 * target.c (default_execution_direction): Update.
916 * reverse.c (exec_reverse_once): Update.
917 * target.h (target_can_execute_reverse): Now a function.
918
9dccd06e
TT
9192020-09-28 Tom Tromey <tom@tromey.com>
920
921 * tui/tui-regs.c (tui_get_register)
922 (tui_data_window::show_registers): Update.
923 * thread.c (scoped_restore_current_thread::restore)
924 (scoped_restore_current_thread::scoped_restore_current_thread):
925 Update.
926 * regcache-dump.c (regcache_print): Update.
927 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
928 Update.
929 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
930 * mep-tdep.c (current_me_module, current_options): Update.
931 * linux-thread-db.c (thread_db_load): Update.
932 * infcmd.c (registers_info, info_vector_command)
933 (info_float_command): Update.
934 * ia64-tdep.c (ia64_frame_prev_register)
935 (ia64_sigtramp_frame_prev_register): Update.
936 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
937 * gcore.c (derive_stack_segment): Update.
938 * frame.c (get_current_frame, has_stack_frames): Update.
939 * findvar.c (language_defn::read_var_value): Update.
940 * arm-tdep.c (arm_pc_is_thumb): Update.
941 * target.c (target_has_registers): Rename from
942 target_has_registers_1.
943 * target.h (target_has_registers): Remove macro.
944 (target_has_registers): Rename from target_has_registers_1.
945
841de120
TT
9462020-09-28 Tom Tromey <tom@tromey.com>
947
948 * windows-tdep.c (tlb_make_value): Update.
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 (thread_command): Update.
953 * stack.c (backtrace_command_1, frame_apply_level_command)
954 (frame_apply_all_command, frame_apply_command): Update.
955 * infrun.c (siginfo_make_value, restore_infcall_control_state):
956 Update.
957 * gcore.c (derive_stack_segment): Update.
958 * frame.c (get_current_frame, has_stack_frames): Update.
959 * auxv.c (info_auxv_command): Update.
960 * ada-tasks.c (ada_build_task_list): Update.
961 * target.c (target_has_stack): Rename from target_has_stack_1.
962 * target.h (target_has_stack): Remove macro.
963 (target_has_stack): Rename from target_has_stack_1.
964
a739972c
TT
9652020-09-28 Tom Tromey <tom@tromey.com>
966
967 * target.c (target_has_memory): Rename from target_has_memory_1.
968 * tui/tui-regs.c (tui_data_window::show_registers): Update.
969 * thread.c (scoped_restore_current_thread::restore)
970 (scoped_restore_current_thread::scoped_restore_current_thread):
971 Update.
972 * frame.c (get_current_frame, has_stack_frames): Update.
973 * target.h (target_has_memory): Remove macro.
974 (target_has_memory): Rename from target_has_memory_1.
975
5b8a4776
TT
9762020-09-28 Tom Tromey <tom@tromey.com>
977
978 * target.c (target_has_all_memory_1): Remove.
979 * target.h (target_has_all_memory): Remove define.
980 (target_has_all_memory_1): Don't declare.
981
bd356ec6
SM
9822020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
983
984 * ser-base.c: Adjust comments formatting.
985
2c72d5e5
TT
9862020-09-27 Tom Tromey <tom@tromey.com>
987
988 PR tui/25342:
989 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
990
35a98237
TT
9912020-09-27 Tom Tromey <tom@tromey.com>
992
993 PR tui/25342:
994 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
995
9e820dec
TT
9962020-09-27 Tom Tromey <tom@tromey.com>
997
998 * unittests/tui-selftests.c: Update.
999 * tui/tui-winsource.h (struct tui_source_window_base)
1000 <extra_margin, show_line_number, refresh_pad>: New methods.
1001 <m_max_length, m_pad>: New members.
1002 (tui_copy_source_line): Update.
1003 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1004 first_col, line_width, ndigits parameters. Add length.
1005 (tui_source_window_base::show_source_line): Write to pad. Line
1006 number now 0-based.
1007 (tui_source_window_base::refresh_pad): New method.
1008 (tui_source_window_base::show_source_content): Write to pad. Call
1009 refresh_pad.
1010 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1011 not refill.
1012 (tui_source_window_base::update_exec_info): Call
1013 show_line_number.
1014 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1015 method.
1016 <m_digits>: New member.
1017 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1018 and m_max_length.
1019 (tui_source_window::show_line_number): New method.
1020 * tui/tui-io.h (tui_puts): Fix comment.
1021 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1022 m_max_length.
1023
c15c15c8
TT
10242020-09-27 Tom Tromey <tom@tromey.com>
1025
1026 * tui/tui-winsource.c
1027 (tui_source_window_base::set_is_exec_point_at): Don't call
1028 show_source_line.
1029
149830c1
TT
10302020-09-27 Tom Tromey <tom@tromey.com>
1031
1032 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1033 method.
1034 <erase>: Update.
1035 <cursor_x, cursor_y>: Remove.
1036 <m_inner_window>: New member.
1037 (tui_py_window::rerender): Create inner window.
1038 (tui_py_window::output): Write to inner window.
1039
8f9929bb
GR
10402020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1041
1042 PR python/26586
1043 * cli/cli-script.c (execute_control_commands): don't set
1044 instream to nullptr here as this breaks the from_tty argument
1045 to gdb.execute in Python.
1046 (execute_user_command): set instream to nullptr here instead.
1047
956bdb59
SM
10482020-09-25 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * infrun.h (infrun_debug_printf): Fix formatting.
1051 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1052
3b93626b
SJ
10532020-09-25 Saagar Jha <saagar@saagarjha.com>
1054
1055 * compile/compile-object-load.h (struct munmap_list): Add
1056 explicitly-defined move constructor.
1057
b551a89f
TT
10582020-09-24 Tom Tromey <tromey@adacore.com>
1059
1060 PR tui/26638:
1061 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1062 method.
1063 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1064 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1065 (tui_prev_win): Rewrite.
1066
99bb393f
HD
10672020-09-23 Hannes Domani <ssbssa@yahoo.de>
1068
1069 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1070 in WOW64 processes as SIGINT.
1071 * nat/windows-nat.h: Make wow64_process a shared variable.
1072 * windows-nat.c: Remove static wow64_process variable.
1073
20a5fcbd
TT
10742020-09-23 Tom Tromey <tom@tromey.com>
1075
1076 PR symtab/25470:
1077 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1078 offset and bit size.
1079 * printcmd.c (print_scalar_formatted): Handle zero-length
1080 integer.
1081 (print_scalar_formatted): Use bit_size_differs_p.
1082 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1083 constant.
1084 (union type_specific): <int_stuff>: New member.
1085 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1086 methods.
1087 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1088 TYPE_SPECIFIC_FIELD.
1089 (recursive_dump_type, copy_type_recursive): Update.
1090 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1091 DW_AT_data_bit_offset.
1092
bac51ab7
TT
10932020-09-23 Tom Tromey <tom@tromey.com>
1094
1095 * utils.h (class gdb_argv): Add move operators.
1096 <append>: New methods.
1097 * compile/compile.c (build_argc_argv): Remove.
1098 (compile_args_argc): Remove.
1099 (compile_args_argv): Change type.
1100 (set_compile_args): Simplify.
1101 (append_args): Remove.
1102 (filter_args): Remove argcp parameter.
1103 (get_args): Return gdb_argv. Simplify.
1104 (compile_to_object): Update.
1105
92677124
TT
11062020-09-23 Tom Tromey <tom@tromey.com>
1107
1108 * compile/compile-object-run.c (do_module_cleanup)
1109 <~do_module_cleanup> :Remove.
1110 (do_module_cleanup): Update.
1111 * compile/compile-object-load.h (struct munmap_list): Add move
1112 assignment operator.
1113 <source_file>: Now a std::string.
1114 <munmap_list>: Rename. No longer a pointer.
1115 * compile/compile-object-load.c (struct setup_sections_data): Add
1116 constructor.
1117 <setup_one_section>: Declare.
1118 <munmap_list>: Move earlier.
1119 <m_bfd>: New member.
1120 <m_last_size, m_last_section_first, m_last_prot,
1121 m_last_max_alignment>: Rename, add initializers where needed.
1122 (setup_sections_data::setup_one_section): Rename from
1123 setup_sections. Update.
1124 (compile_object_load): Update. Don't use bfd_map_over_sections.
1125
e616f60a
TT
11262020-09-23 Tom Tromey <tom@tromey.com>
1127
1128 * compile/compile-object-run.c (struct do_module_cleanup): Add
1129 parameters to constructor. Update destructor.
1130 <source_file, scope, scope_data, out_value_type, out_value_addr,
1131 munmap_list_head, objfile_name_string>: Remove.
1132 <module>: New member.
1133 (do_module_cleanup): Update.
1134 (compile_object_run): Update.
1135
e947a848
TT
11362020-09-23 Tom Tromey <tom@tromey.com>
1137
1138 * compile/compile.c (eval_compile_command): Update.
1139 * compile/compile-object-run.h (compile_object_run): Take a
1140 compile_module_up.
1141 * compile/compile-object-run.c (compile_object_run): Take a
1142 compile_module_up.
1143 * compile/compile-object-load.h (struct compile_module): Add
1144 constructor, destructor.
1145 (compile_module_up): New typedef.
1146 (compile_object_load): Return compile_object_up.
1147 * compile/compile-object-load.c (compile_object_load): Return
1148 compile_module_up.
1149
0dbf6ee6
TT
11502020-09-23 Tom Tromey <tom@tromey.com>
1151
1152 * compile/compile-object-run.c (struct do_module_cleanup): Add
1153 constructor, destructor.
1154 <objfile_name_string>: Don't use struct hack.
1155 (do_module_cleanup): Use delete.
1156 (compile_object_run): Use new.
1157
ebe824f5
TT
11582020-09-23 Tom Tromey <tom@tromey.com>
1159
1160 * compile/compile-cplus-types.c
1161 (compile_cplus_convert_struct_or_union): Use std::vector.
1162 (compile_cplus_convert_func): Likewise.
1163 * compile/compile-c-types.c (convert_func): Use std::vector.
1164
5dd918d9
TT
11652020-09-21 Tom Tromey <tromey@adacore.com>
1166
1167 * sparc-tdep.c (sparc32_skip_prologue): Use
1168 skip_prologue_using_sal.
1169
5486c517
TT
11702020-09-19 Tom Tromey <tom@tromey.com>
1171
1172 * symfile.c (add_section_size_callback): Remove.
1173 (load_one_section): Rename from load_section_callback. Change
1174 parameters.
1175 (generic_load): Use foreach.
1176
8a6bb1d1
TT
11772020-09-19 Tom Tromey <tom@tromey.com>
1178
1179 * exec.c (add_to_section_table): Remove.
1180 (build_section_table): Use foreach.
1181
08f93a1a
TT
11822020-09-19 Tom Tromey <tom@tromey.com>
1183
1184 * elfread.c (elf_locate_sections): Change parameters.
1185 (elf_symfile_read): Use foreach.
1186
03cd72b8
TT
11872020-09-19 Tom Tromey <tom@tromey.com>
1188
1189 * cli/cli-dump.c (struct callback_data): Remove.
1190 (restore_one_section): Rename from restore_section_callback.
1191 Change parameters.
1192 (restore_binary_file): Change parameters.
1193 (restore_command): Use foreach.
1194
f4f2b85f
TT
11952020-09-19 Tom Tromey <tom@tromey.com>
1196
1197 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1198 (gcore_copy_callback): Likewise.
1199 (gcore_memory_sections): Use foreach.
1200
b35c1d1c
TT
12012020-09-19 Tom Tromey <tom@tromey.com>
1202
1203 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1204 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1205 parameters.
1206 (generic_elf_osabi_sniffer): Use foreach.
1207 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1208 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1209
5bb6e9dd
TT
12102020-09-19 Tom Tromey <tom@tromey.com>
1211
1212 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1213 (dwarf2_get_dwz_file): Use foreach.
1214 (dwarf2_locate_dwo_sections): Change parameters.
1215 (open_and_init_dwo_file): Use foreach.
1216 (dwarf2_locate_common_dwp_sections): Change parameters.
1217 (open_and_init_dwp_file): Use foreach.
1218
ad7277da
TT
12192020-09-19 Tom Tromey <tom@tromey.com>
1220
1221 * symfile.h: (find_lowest_section): Don't declare.
1222 * symfile.c (find_lowest_section): Now static. Change
1223 parameters.
1224 (struct place_section_arg): Remove.
1225 (place_section): Change parameters.
1226 (addr_info_make_relative): Use foreach.
1227 (symfile_dummy_outputs): Remove.
1228 (default_symfile_relocate): Use foreach.
1229
cb814f2e
TT
12302020-09-19 Tom Tromey <tom@tromey.com>
1231
1232 * objfiles.c (add_to_objfile_sections): Rename from
1233 add_to_objfile_sections_full.
1234 (add_to_objfile_sections): Remove.
1235 (build_objfile_section_table): Use foreach.
1236
3cabfd26
TT
12372020-09-19 Tom Tromey <tom@tromey.com>
1238
1239 * stap-probe.c (get_stap_base_address_1): Remove.
1240 (get_stap_base_address): Use foreach.
1241
1ce51eb5
TT
12422020-09-19 Tom Tromey <tom@tromey.com>
1243
1244 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1245 parameters.
1246 (gdb_bfd_close_or_warn): Use foreach.
1247
a190fabb
TT
12482020-09-19 Tom Tromey <tom@tromey.com>
1249
1250 * corelow.c (add_to_thread_list): Change parameters.
1251 (core_target_open): Use foreach.
1252
cafb0d81
TT
12532020-09-19 Tom Tromey <tom@tromey.com>
1254
1255 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1256 existing function.
1257
c8d5abea
AB
12582020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1261 for arrays.
1262
6d816919
AB
12632020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * eval.c: Remove 'f-lang.h' include.
1266 (value_f90_subarray): Moved to f-lang.c.
1267 (eval_call): Renamed to...
1268 (evaluate_subexp_do_call): ...this, is no longer static, header
1269 comment moved into header file.
1270 (evaluate_funcall): Update call to eval_call.
1271 (skip_undetermined_arglist): Moved to f-lang.c.
1272 (fortran_value_subarray): Likewise.
1273 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1274 moved to evaluate_subexp_f.
1275 (calc_f77_array_dims): Moved to f-lang.c
1276 * expprint.c (print_subexp_funcall): New function.
1277 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1278 moved to print_subexp_f, OP_FUNCALL uses new function.
1279 (dump_subexp_body_funcall): New function.
1280 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1281 moved to dump_subexp_f, OP_FUNCALL uses new function.
1282 * expression.h (evaluate_subexp_do_call): Declare.
1283 * f-lang.c (value_f90_subarray): Moved from eval.c.
1284 (skip_undetermined_arglist): Likewise.
1285 (calc_f77_array_dims): Likewise.
1286 (fortran_value_subarray): Likewise.
1287 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1288 (operator_length_f): Likewise.
1289 (print_subexp_f): Likewise.
1290 (dump_subexp_body_f): Likewise.
1291 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1292 declaration of this operation to here.
1293 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1294 support moved to operator_length_f.
1295 * parser-defs.h (dump_subexp_body_funcall): Declare.
1296 (print_subexp_funcall): Declare.
1297 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1298 fortran-operator.def.
1299
8c37706a
AB
13002020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * eval.c (fortran_value_subarray): New function, content is taken
1303 from...
1304 (evaluate_subexp_standard): ...here, in two places. Now arrays
1305 and strings both call the new function.
1306 (calc_f77_array_dims): Add header comment, handle strings.
1307
14f9473c
VC
13082020-09-18 Victor Collod <vcollod@nvidia.com>
1309
1310 PR gdb/26635
1311 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1312 (i386_analyze_prologue): Call i386_skip_endbr.
1313
b60cea74
TT
13142020-09-18 Tom Tromey <tromey@adacore.com>
1315
1316 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1317 (windows_nat_target::wait): Update.
1318 * target/wait.h (enum target_wait_flag): New. Use
1319 DEF_ENUM_FLAGS_TYPE.
1320 * target/target.h (target_wait): Change type of options.
1321 * target.h (target_options_to_string, default_target_wait):
1322 Update.
1323 (struct target_ops) <wait>: Change type of options.
1324 * target.c (target_wait, default_target_wait, do_option): Change
1325 type of "options".
1326 (target_options_to_string): Likewise.
1327 * target-delegates.c: Rebuild.
1328 * target-debug.h (target_debug_print_target_wait_flags): Rename
1329 from target_debug_print_options.
1330 * sol-thread.c (class sol_thread_target) <wait>: Update.
1331 (sol_thread_target::wait): Update.
1332 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1333 (rs6000_nat_target::wait): Update.
1334 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1335 Update.
1336 (remote_target::wait_ns, remote_target::wait_as): Change type of
1337 "options".
1338 (remote_target::wait): Update.
1339 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1340 (gdbsim_target::wait): Update.
1341 * record-full.c (class record_full_base_target) <wait>: Update.
1342 (record_full_wait_1): Change type of "options".
1343 (record_full_base_target::wait): Update.
1344 * record-btrace.c (class record_btrace_target) <wait>: Update.
1345 (record_btrace_target::wait): Update.
1346 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1347 Update.
1348 (ravenscar_thread_target::wait): Update.
1349 * procfs.c (class procfs_target) <wait>: Update.
1350 (procfs_target::wait): Update.
1351 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1352 * obsd-nat.c (obsd_nat_target::wait): Update.
1353 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1354 (nto_procfs_target::wait): Update.
1355 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1356 * nbsd-nat.c (nbsd_wait): Change type of "options".
1357 (nbsd_nat_target::wait): Update.
1358 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1359 (thread_db_target::wait): Update.
1360 * linux-nat.h (class linux_nat_target) <wait>: Update.
1361 * linux-nat.c (linux_nat_target::wait): Update.
1362 (linux_nat_wait_1): Update.
1363 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1364 "options".
1365 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1366 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1367 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1368 (go32_nat_target::wait): Update.
1369 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1370 * gnu-nat.c (gnu_nat_target::wait): Update.
1371 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1372 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1373 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1374 * darwin-nat.c (darwin_nat_target::wait): Update.
1375 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1376 (bsd_uthread_target::wait): Update.
1377 * aix-thread.c (class aix_thread_target) <wait>: Update.
1378 (aix_thread_target::wait): Update.
1379
0295dde6
AB
13802020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * compile/compile-object-run.c (create_copied_type_recursive): New
1383 function.
1384 (compile_object_run): Use new function.
1385
d3483b43
JT
13862020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1387
1388 * NEWS: Mention x86_64 Cygwin core file support.
1389
e7d612ad
JT
13902020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1391
1392 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1393 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1394
aff9d387
JT
13952020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1396
62a5151b
JT
1397 * windows-tdep.h: Add prototypes.
1398 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1399 (i386_windows_core_pid_to_str): Move and rename ...
1400 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1401 (windows_core_pid_to_str): ... and here.
1402 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1403
14042020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1405 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1406 (amd64_windows_init_abi_common): ... and register.
1407
7d155da3
JT
14082020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1409
1410 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1411 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1412
e8ef12b9
PA
14132020-09-18 Pedro Alves <pedro@palves.net>
1414
1415 PR gdb/26631
1416 * thread.c (thread_find_command): Switch inferior before calling
1417 target methods.
1418
c1e1314d
TT
14192020-09-17 Tom Tromey <tromey@adacore.com>
1420
1421 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1422 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1423 (tdesc_arch_data_up): New typedef.
1424 (tdesc_use_registers, tdesc_data_alloc): Update.
1425 (tdesc_data_cleanup): Don't declare.
1426 * target-descriptions.c (tdesc_data_alloc): Return a
1427 tdesc_arch_data_up.
1428 (tdesc_arch_data_deleter::operator()): Rename from
1429 tdesc_data_cleanup. Change argument type.
1430 (tdesc_use_registers): Change early_data to an rvalue reference.
1431 (tdesc_use_registers): Don't use delete.
1432 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1433 * s390-tdep.c (s390_gdbarch_init): Update.
1434 * rx-tdep.c (rx_gdbarch_init): Update.
1435 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1436 * riscv-tdep.c (riscv_gdbarch_init): Update.
1437 * or1k-tdep.c (or1k_gdbarch_init): Update.
1438 * nios2-tdep.c (nios2_gdbarch_init): Update.
1439 * nds32-tdep.c (nds32_gdbarch_init): Update.
1440 * mips-tdep.c (mips_gdbarch_init): Update.
1441 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1442 * m68k-tdep.c (m68k_gdbarch_init): Update.
1443 * i386-tdep.c (i386_gdbarch_init): Update.
1444 * arm-tdep.c (arm_gdbarch_init): Update.
1445 * arc-tdep.c (arc_tdesc_init): Update.
1446 (arc_gdbarch_init): Update.
1447 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1448
0363df3d
HD
14492020-09-17 Hannes Domani <ssbssa@yahoo.de>
1450
1451 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1452 for WOW64 processes.
1453
280a9412
TT
14542020-09-17 Tom Tromey <tom@tromey.com>
1455
1456 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1457
6108fd18
TT
14582020-09-17 Tom Tromey <tom@tromey.com>
1459
1460 * value.c (preserve_values): Update.
1461 * python/py-type.c (save_objfile_types): Update.
1462 * guile/scm-type.c (save_objfile_types): Update.
1463 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1464 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1465 * compile/compile-object-run.c (compile_object_run): Update.
1466
fa9b1164
TT
14672020-09-17 Tom Tromey <tom@tromey.com>
1468
1469 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1470 Remove.
1471 <m_table>: Now htab_up.
1472 * typeprint.c (typedef_hash_table::recursively_update)
1473 (typedef_hash_table::add_template_parameters)
1474 (typedef_hash_table::typedef_hash_table): Update.
1475 (typedef_hash_table::~typedef_hash_table): Remove.
1476 (typedef_hash_table::typedef_hash_table)
1477 (typedef_hash_table::find_global_typedef)
1478 (typedef_hash_table::find_typedef): Update.
1479
eb53f105
TT
14802020-09-17 Tom Tromey <tom@tromey.com>
1481
1482 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1483
7a8a5d47
TT
14842020-09-17 Tom Tromey <tom@tromey.com>
1485
1486 * linespec.c (class decode_compound_collector)
1487 <~decode_compound_collector>: Remove.
1488 <m_unique_syms>: Now htab_up.
1489 (decode_compound_collector::operator ()): Update.
1490 (class symtab_collector) <~symtab_collector>: Remove.
1491 <m_symtab_table>: Now htab_up.
1492 (symtab_collector::operator ()): Update.
1493
99032cfc
TT
14942020-09-17 Tom Tromey <tom@tromey.com>
1495
1496 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1497 (filename_seen_cache::clear): Update.
1498 (~filename_seen_cache): Remove.
1499 (filename_seen_cache::seen): Update.
1500 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1501 htab_up.
1502 <~filename_seen_cache>: Remove.
1503 <traverse>: Update.
1504
32580f6d
TT
15052020-09-17 Tom Tromey <tom@tromey.com>
1506
1507 * completer.c (completion_tracker::discard_completions)
1508 (completion_tracker::~completion_tracker)
1509 (completion_tracker::maybe_add_completion)
1510 (completion_tracker::remove_completion)
1511 (completion_tracker::recompute_lowest_common_denominator)
1512 (completion_tracker::build_completion_result): Update.
1513 * completer.h (class completion_tracker) <have_completions>:
1514 Update.
1515 <m_entries_hash>: Now htab_up.
1516
c1fb9836
TT
15172020-09-17 Tom Tromey <tom@tromey.com>
1518
1519 * breakpoint.c (ambiguous_names_p): Use htab_up.
1520
88f07206
TT
15212020-09-17 Tom Tromey <tom@tromey.com>
1522
1523 * auto-load.c (struct auto_load_pspace_info)
1524 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1525 <loaded_script_files, loaded_script_texts>: Change type to
1526 htab_up.
1527 (~auto_load_pspace_info) Remove.
1528 (init_loaded_scripts_info, maybe_add_script_file)
1529 (maybe_add_script_text, auto_load_info_scripts): Update.
1530
9519b2ee
TT
15312020-09-17 Tom Tromey <tromey@adacore.com>
1532
1533 * c-exp.y (name_obstack): Now static.
1534
d2cd4113
CC
15352020-09-17 Chungyi Chi <demonic@csie.io>
1536
1537 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1538
b650a282
SM
15392020-09-16 Simon Marchi <simon.marchi@efficios.com>
1540
1541 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1542 (add_solib_catchpoint): Likewise.
1543 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1544 to bool.
1545 (add_solib_catchpoint): Change int parameter/variable to bool.
1546 (catch_load_or_unload): Likewise.
1547 (init_catchpoint): Likewise.
1548 (create_fork_vfork_event_catchpoint): Likewise.
1549 (catch_fork_command_1): Likewise.
1550 (catch_exec_command_1): Likewise.
1551
4d0bcfcf
SM
15522020-09-16 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1555 Change instance_flags to m_instance_flags.
1556
fe830662
TT
15572020-09-16 Tom Tromey <tromey@adacore.com>
1558
1559 PR gdb/26598:
1560 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1561
fe5ddfc3
JB
15622020-09-16 John Baldwin <jhb@FreeBSD.org>
1563
1564 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1565 PL_FLAG_EXEC.
1566 (fbsd_nat_target::insert_exec_catchpoint)
1567 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1568 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1569 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1570
e911c666
JB
15712020-09-16 John Baldwin <jhb@FreeBSD.org>
1572
1573 * configure.ac: Remove check for kinfo_getvmmap().
1574 * configure, config.in: Regenerate.
1575 * fbsd-nat.c (fbsd_read_mapping): Remove
1576 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1577 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1578 kinfo_get_vmmap() are always present.
1579
1f17d372
JB
15802020-09-16 John Baldwin <jhb@FreeBSD.org>
1581
1582 * fbsd-nat.c: Always include support for
1583 TARGET_OBJECT_SIGNAL_INFO.
1584
bcb1da7f
JB
15852020-09-16 John Baldwin <jhb@FreeBSD.org>
1586
1587 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1588 sysctl and remove procfs fallback.
1589
5515f729
JB
15902020-09-16 John Baldwin <jhb@FreeBSD.org>
1591
1592 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1593 * fbsd-nat.h: Likewise.
1594
da1df1db
TBA
15952020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596
1597 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1598 argument.
1599
0e25e767
AB
16002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * ada-lang.c (ada_language_data): Delete.
1603 (ada_language): Remove references to ada_language_data.
1604 * c-lang.c (c_language_data): Delete.
1605 (c_language): Remove references to c_language_data.
1606 (cplus_language_data): Delete.
1607 (cplus_language): Remove references to cplus_language_data.
1608 (asm_language_data): Delete.
1609 (asm_language): Remove references to asm_language_data.
1610 (minimal_language_data): Delete.
1611 (minimal_language): Remove references to minimal_language_data.
1612 * d-lang.c (d_language_data): Delete.
1613 (d_language): Remove references to d_language_data.
1614 * f-lang.c (f_language_data): Delete.
1615 (f_language): Remove references to f_language_data.
1616 * go-lang.c (go_language_data): Delete.
1617 (go_language): Remove references to go_language_data.
1618 * language.c (unknown_language_data): Delete.
1619 (unknown_language): Remove references to unknown_language_data.
1620 (auto_language_data): Delete.
1621 (auto_language): Remove references to auto_language_data.
1622 * language.h (language_data): Delete struct.
1623 (language_defn): No longer inherit from language_data.
1624 * m2-lang.c (m2_language_data): Delete.
1625 (m2_language): Remove references to m2_language_data.
1626 * objc-lang.c (objc_language_data): Delete.
1627 (objc_language): Remove references to objc_language_data.
1628 * opencl-lang.c (opencl_language_data): Delete.
1629 (opencl_language): Remove references to opencl_language_data.
1630 * p-lang.c (pascal_language_data): Delete.
1631 (pascal_language): Remove references to pascal_language_data.
1632 * rust-lang.c (rust_language_data): Delete.
1633 (rust_language): Remove references to rust_language_data.
1634
b7c6e27d
AB
16352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1638 initializer.
1639 (ada_language::opcode_print_table): New member function.
1640 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1641 (c_language::opcode_print_table): New member function.
1642 (cplus_language_data): Remove la_op_print_tab initializer.
1643 (cplus_language::opcode_print_table): New member function.
1644 (asm_language_data): Remove la_op_print_tab initializer.
1645 (asm_language::opcode_print_table): New member function.
1646 (minimal_language_data): Remove la_op_print_tab initializer.
1647 (minimal_language::opcode_print_table): New member function.
1648 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1649 (d_language::opcode_print_table): New member function.
1650 * expprint.c (print_subexp_standard): Update call to
1651 opcode_print_table.
1652 (op_string): Likewise.
1653 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1654 (f_language::opcode_print_table): New member function.
1655 * go-lang.c (go_language_data): Remove la_op_print_tab
1656 initializer.
1657 (go_language::opcode_print_table): New member function.
1658 * language.c (unknown_language_data): Remove la_op_print_tab
1659 initializer.
1660 (unknown_language::opcode_print_table): New member function.
1661 (auto_language_data): Remove la_op_print_tab initializer.
1662 (auto_language::opcode_print_table): New member function.
1663 * language.h (language_data): Remove la_op_print_tab field.
1664 (language_defn::opcode_print_table): Declare new member function.
1665 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1666 initializer.
1667 (m2_language::opcode_print_table): New member function.
1668 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1669 initializer.
1670 (objc_language::opcode_print_table): New member function.
1671 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1672 initializer.
1673 (opencl_language::opcode_print_table): New member function.
1674 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1675 initializer.
1676 (pascal_language::opcode_print_table): New member function.
1677 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1678 initializer.
1679 (rust_language::opcode_print_table): New member function.
1680
5aba6ebe
AB
16812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1684 (ada_language::expression_ops): New member function.
1685 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1686 (c_language::expression_ops): New member function.
1687 (cplus_language_data): Remove la_exp_desc initializer.
1688 (cplus_language::expression_ops): New member function.
1689 (asm_language_data): Remove la_exp_desc initializer.
1690 (asm_language::expression_ops): New member function.
1691 (minimal_language_data): Remove la_exp_desc initializer.
1692 (minimal_language::expression_ops): New member function.
1693 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1694 (d_language::expression_ops): New member function.
1695 * eval.c (evaluate_subexp): Update call to expression_ops.
1696 * expprint.c (print_subexp): Likewise.
1697 (op_name): Likewise.
1698 (dump_subexp_body): Likewise.
1699 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1700 (f_language::expression_ops): New member function.
1701 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1702 (go_language::expression_ops): New member function.
1703 * language.c (language_defn::expression_ops): New function.
1704 (unknown_language_data): Remove la_exp_desc initializer.
1705 (auto_language_data): Likewise.
1706 * language.h (language_data): Remove la_exp_desc field.
1707 (language_defn::expression_ops): Declare new member function.
1708 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1709 (m2_language::expression_ops): New member function.
1710 * objc-lang.c (objc_language_data): Remove la_exp_desc
1711 initializer.
1712 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1713 initializer.
1714 (opencl_language::expression_ops): New member function.
1715 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1716 * parse.c (operator_length): Update call to expression_ops.
1717 (exp_iterate): Likewise.
1718 * rust-lang.c (rust_language_data): Remove la_exp_desc
1719 initializer.
1720 (ruse_language::expression_ops): New member function.
1721
b63a3f3f
AB
17222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1725 initializer.
1726 (ada_language::varobj_ops): New member function.
1727 * c-lang.c (c_language_data): Remove la_varobj_ops
1728 initializer.
1729 (cplus_language_data): Likewise.
1730 (cplus_language::varobj_ops): New member function.
1731 (asm_language_data): Remove la_varobj_ops initializer.
1732 (minimal_language_data): Likewise.
1733 * d-lang.c (d_language_data): Likewise.
1734 * f-lang.c (f_language_data): Likewise.
1735 * go-lang.c (go_language_data): Likewise.
1736 * language.c (language_defn::varobj_ops): New function.
1737 (unknown_language_data): Remove la_varobj_ops
1738 initializer.
1739 (auto_language_data): Likewise.
1740 * language.h (language_data): Remove la_varobj_ops field.
1741 (language_defn::varobj_ops): Declare new member function.
1742 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1743 * objc-lang.c (objc_language_data): Likewise.
1744 * opencl-lang.c (opencl_language_data): Likewise.
1745 * p-lang.c (pascal_language_data): Likewise.
1746 * rust-lang.c (rust_language_data): Likewise.
1747 * varobj.c (varobj_create): Update call to varobj_ops.
1748 * varobj.h (default_varobj_ops): Delete define.
1749
1ac14a04
AB
17502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1753 initializer.
1754 * c-lang.c (c_language_data): Likewise.
1755 (c_language::macro_expansion): New member function.
1756 (cplus_language_data): Likewise.
1757 (cplus_language::macro_expansion): New member function.
1758 (asm_language_data): Likewise.
1759 (asm_language::macro_expansion): New member function.
1760 (minimal_language_data): Likewise.
1761 (minimal_language::macro_expansion): New member function.
1762 * d-lang.c (d_language_data): Remove la_macro_expansion
1763 initializer.
1764 * f-lang.c (f_language_data): Likewise.
1765 * go-lang.c (go_language_data): Likewise.
1766 * language.c (unknown_language_data): Likewise.
1767 (auto_language_data): Likewise.
1768 * language.h (language_data): Remove la_macro_expansion field.
1769 (language_defn::macro_expansion): New member function.
1770 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1771 initializer.
1772 * objc-lang.c (objc_language_data): Likewise.
1773 (objc_language::macro_expansion): New member function.
1774 * opencl-lang.c (opencl_language_data): Likewise.
1775 (opencl_language::macro_expansion): New member function.
1776 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1777 initializer.
1778 * rust-lang.c (rust_language_data): Likewise.
1779 * symtab.c (default_collect_symbol_completion_matches_break_on):
1780 Update call to macro_expansion.
1781
3a3440fb
AB
17822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * ada-lang.c (ada_language_data): Remove la_array_ordering
1785 initializer.
1786 * c-lang.c (c_language_data): Likewise.
1787 (cplus_language_data): Likewise.
1788 (asm_language_data): Likewise.
1789 (minimal_language_data): Likewise.
1790 * d-lang.c (d_language_data): Likewise.
1791 * dwarf2/read.c (read_array_order): Update for call to
1792 array_ordering.
1793 * f-lang.c (f_language_data): Remove la_array_ordering
1794 initializer.
1795 (f_language::array_ordering): New member function.
1796 * go-lang.c (go_language_data): Remove la_array_ordering
1797 initializer.
1798 * language.c (unknown_language_data): Likewise.
1799 (auto_language_data): Likewise.
1800 * language.h (language_data): Delete la_array_ordering field.
1801 (language_defn::array_ordering): New member function.
1802 * m2-lang.c (m2_language_data): Remove la_array_ordering
1803 initializer.
1804 * objc-lang.c (objc_language_data): Likewise.
1805 * opencl-lang.c (opencl_language_data): Likewise.
1806 * p-lang.c (pascal_language_data): Likewise.
1807 * rust-lang.c (rust_language_data): Likewise.
1808
0d201fa4
AB
18092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1812 initializer.
1813 * c-lang.c (c_language_data): Likewise.
1814 (cplus_language_data): Likewise.
1815 (asm_language_data): Likewise.
1816 (minimal_language_data): Likewise.
1817 * d-lang.c (d_language_data): Likewise.
1818 * f-lang.c (f_language_data): Likewise.
1819 (f_language::case_sensitivity): New member function.
1820 * go-lang.c (go_language_data): Remove la_case_sensitivity
1821 initializer.
1822 * language.c (enum case_mode): Moved here from language.h.
1823 (case_mode): Make static.
1824 (show_case_command): Update for case_sensitivity being a method.
1825 (set_case_command): Likewise.
1826 (set_range_case): Likewise.
1827 (unknown_language_data): Remove la_case_sensitivity initializer.
1828 (auto_language_data): Likewise.
1829 * language.h (case_mode): Delete, move enum declaration to
1830 language.c.
1831 (language_data): Delete la_case_sensitivity field.
1832 (language_defn::case_sensitivity): New member function.
1833 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1834 initializer.
1835 * objc-lang.c (objc_language_data): Likewise.
1836 * opencl-lang.c (opencl_language_data): Likewise.
1837 * p-lang.c (pascal_language_data): Likewise.
1838 * rust-lang.c (rust_language_data): Likewise.
1839
efdf6a73
AB
18402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * ada-lang.c (ada_language_data): Remove la_range_check
1843 initializer.
1844 * c-lang.c (c_language_data): Likewise.
1845 (cplus_language_data): Likewise.
1846 (asm_language_data): Likewise.
1847 (minimal_language_data): Likewise.
1848 * d-lang.c (d_language_data): Likewise.
1849 * f-lang.c (f_language_data): Likewise.
1850 (f_language::range_checking_on_by_default): New member function.
1851 * go-lang.c (go_language_data): Remove la_range_check initializer.
1852 * language.c (enum range_mode): Moved here from language.h.
1853 (range_mode): Made static.
1854 (show_range_command): Update to use
1855 range_checking_on_by_default.
1856 (set_range_command): Likewise.
1857 (set_range_case): Likewise.
1858 (unknown_language_data): Remove la_range_check initializer.
1859 (auto_language_data): Likewise.
1860 * language.h (range_mode): Delete. Enum definition moved to
1861 language.c.
1862 (language_data): Remove la_range_check field.
1863 (language_defn::range_checking_on_by_default): New member
1864 function.
1865 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1866 (m2_language::range_checking_on_by_default): New member function.
1867 * objc-lang.c (objc_language_data): Remove la_range_check
1868 initializer.
1869 * opencl-lang.c (opencl_language_data): Likewise.
1870 * p-lang.c (pascal_language_data): Likewise.
1871 (pascal_language::range_checking_on_by_default): New member
1872 function.
1873 * rust-lang.c (rust_language_data): Remove la_range_check
1874 initializer.
1875 (rust_language::range_checking_on_by_default): New member
1876 function.
1877
bf92aec5
AB
18782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * dwarf2/read.c (dwarf2_physname): Remove special case for
1881 language_go.
1882 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1883 member function.
1884
d3355e4d
AB
18852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * ada-lang.c (ada_language_data): Remove
1888 la_store_sym_names_in_linkage_form_p initializer.
1889 (ada_language::store_sym_names_in_linkage_form_p): New member
1890 function.
1891 * c-lang.c (c_language_data): Remove
1892 la_store_sym_names_in_linkage_form_p initializer.
1893 (c_language::store_sym_names_in_linkage_form_p): New member
1894 function.
1895 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1896 initializer.
1897 (asm_language_data): Likewise.
1898 (asm_language::store_sym_names_in_linkage_form_p): New member
1899 function.
1900 (minimal_language_data): Remove
1901 la_store_sym_names_in_linkage_form_p initializer.
1902 (minimal_language::store_sym_names_in_linkage_form_p): New member
1903 function.
1904 * d-lang.c (d_language_data): Remove
1905 la_store_sym_names_in_linkage_form_p initializer.
1906 * dwarf2/read.c (dwarf2_physname): Update call to
1907 store_sym_names_in_linkage_form_p.
1908 * f-lang.c (f_language_data): Remove
1909 la_store_sym_names_in_linkage_form_p initializer.
1910 * go-lang.c (go_language_data): Remove
1911 la_store_sym_names_in_linkage_form_p initializer.
1912 * language.c (unknown_language_data): Remove
1913 la_store_sym_names_in_linkage_form_p initializer.
1914 (unknown_language::store_sym_names_in_linkage_form_p): New member
1915 function.
1916 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1917 initializer.
1918 (auto_language::store_sym_names_in_linkage_form_p): New member
1919 function.
1920 * language.h (language_data): Remove
1921 la_store_sym_names_in_linkage_form_p member variable.
1922 (language_defn::store_sym_names_in_linkage_form_p): New member
1923 function.
1924 * m2-lang.c (m2_language_data): Remove
1925 la_store_sym_names_in_linkage_form_p initializer.
1926 * objc-lang.c (objc_language_data): Likewise.
1927 * opencl-lang.c (opencl_language_data): Likewise.
1928 * p-lang.c (pascal_language_data): Likewise.
1929 * rust-lang.c (rust_language_data): Likewise.
1930
22c12a6c
AB
19312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * ada-lang.c (ada_language_data): Remove string_lower_bound
1934 initializer.
1935 * c-lang.c (c_language_data): Likewise.
1936 (cplus_language_data): Likewise.
1937 (asm_language_data): Likewise.
1938 (minimal_language_data): Likewise.
1939 * d-lang.c (d_language_data): Likewise.
1940 * f-lang.c (f_language_data): Likewise.
1941 * go-lang.c (go_language_data): Likewise.
1942 * language.c (unknown_language_data): Likewise.
1943 (auto_language_data): Likewise.
1944 * language.h (language_data): Remove string_lower_bound field.
1945 (language_defn::string_lower_bound): New member function.
1946 * m2-lang.c (m2_language_data): Remove string_lower_bound
1947 initializer.
1948 (m2_language::string_lower_bound): New member function.
1949 * objc-lang.c (objc_language_data): Remove string_lower_bound
1950 initializer.
1951 * opencl-lang.c (opencl_language_data): Likewise.
1952 * p-lang.c (pascal_language_data): Likewise.
1953 * rust-lang.c (rust_language_data): Likewise.
1954 * valops.c (value_cstring): Update call to string_lower_bound.
1955 (value_string): Likewise.
1956 * value.c (allocate_repeated_value): Likewise.
1957
1c236ddd
AB
19582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * valops.c (value_repeat): Fix incorrect argument name in comment.
1961
67bd3fd5
AB
19622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * ada-lang.c (ada_language_data): Remove c_style_arrays
1965 initializer.
1966 (ada_language::c_style_arrays_p): New member fuction.
1967 * c-lang.c (c_language_data): Remove c_style_arrays
1968 initializer.
1969 (cplus_language_data): Likewise.
1970 (asm_language_data): Likewise.
1971 (minimal_language_data): Likewise.
1972 * d-lang.c (d_language_data): Likewise.
1973 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1974 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1975 (f_language::c_style_arrays_p): New member function.
1976 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1977 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1978 * language.c (unknown_language_data): Remove c_style_arrays
1979 initializer.
1980 (auto_language_data): Likewise.
1981 * language.h (language_data): Remove c_style_arrays field.
1982 (language_defn::c_style_arrays_p): New member function.
1983 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1984 (m2_language::c_style_arrays_p): New member function.
1985 * objc-lang.c (objc_language_data): Remove c_style_arrays
1986 initializer.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_language_data): Likewise.
1989 * rust-lang.c (rust_language_data): Likewise.
1990 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1991 and update local variable to a bool.
1992 * valops.c (value_cast): Update call to c_style_arrays_p.
1993 (value_array): Likewise.
1994 * value.c (coerce_array): Likewise.
1995
85967615
AB
19962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * ada-lang.c (ada_language_data): Remove la_language initializer.
1999 * c-lang.c (c_language_data): Likewise.
2000 (cplus_language_data): Likewise.
2001 (asm_language_data): Likewise.
2002 (minimal_language_data): Likewise.
2003 * d-lang.c (d_language_data): Likewise.
2004 * f-lang.c (f_language_data): Likewise.
2005 * go-lang.c (go_language_data): Likewise.
2006 * language.c (unknown_language_data): Likewise.
2007 (auto_language_data): Likewise.
2008 * language.h (language_data): Remove la_language field.
2009 (language_defn::language_defn): Initialise la_language field.
2010 (language_defn::la_language): New member variable.
2011 * m2-lang.c (m2_language_data): Remove la_language field.
2012 * objc-lang.c (objc_language_data): Likewise.
2013 * opencl-lang.c (opencl_language_data): Likewise.
2014 * p-lang.c (pascal_language_data): Likewise.
2015 * rust-lang.c (rust_language_data): Likewise.
2016
e171d6f1
AB
20172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2018
2019 * ada-lang.c (ada_extensions): Delete, moved into
2020 ada_language::filename_extensions.
2021 (ada_language_data): Remove la_filename_extensions initializer.
2022 (ada_language::filename_extensions): New member function.
2023 * c-lang.c (c_extensions): Delete, moved into
2024 c_language::filename_extensions.
2025 (c_language_data): Remove la_filename_extensions initializer.
2026 (c_language::filename_extensions): New member function.
2027 (cplus_extensions): Delete, moved into
2028 cplus_language::filename_extensions.
2029 (cplus_language_data): Remove la_filename_extensions initializer.
2030 (cplus_language::filename_extensions): New member function.
2031 (asm_extensions): Delete, moved into
2032 asm_language::filename_extensions.
2033 (asm_language_data): Remove la_filename_extensions initializer.
2034 (asm_language::filename_extensions): New member function.
2035 (minimal_language_data): Remove la_filename_extensions
2036 initializer.
2037 * d-lang.c (d_extensions): Delete, moved into
2038 d_language::filename_extensions.
2039 (d_language_data): Remove la_filename_extensions initializer.
2040 (d_language::filename_extensions): New member function.
2041 * f-lang.c (f_extensions): Delete, moved into
2042 f_language::filename_extensions.
2043 (f_language_data): Remove la_filename_extensions initializer.
2044 (f_language::filename_extensions): New member function.
2045 * go-lang.c (go_language_data): Remove la_filename_extensions
2046 initializer.
2047 * language.c (add_set_language_command): Update now that
2048 filename_extensions returns a vector.
2049 (unknown_language_data): Remove la_filename_extensions
2050 initializer.
2051 (auto_language_data): Likewise.
2052 * language.h (language_data): Remove la_filename_extensions field.
2053 (language_defn::filename_extensions): New member function.
2054 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2055 initializer.
2056 * objc-lang.c (objc_extensions): Delete, moved into
2057 objc_language::filename_extensions.
2058 (objc_language_data): Remove la_filename_extensions initializer.
2059 (objc_language::filename_extensions): New member function.
2060 * opencl-lang.c (opencl_language_data): Remove
2061 la_filename_extensions initializer.
2062 * p-lang.c (pascal_extensions): Delete, moved into
2063 pascal_language::filename_extensions.
2064 (pascal_language_data): Remove la_filename_extensions initializer.
2065 (pascal_language::filename_extensions): New member function.
2066 * rust-lang.c (rust_extensions): Delete, moved into
2067 rust_language::filename_extensions.
2068 (rust_language_data): Remove la_filename_extensions initializer.
2069 (rust_language::filename_extensions): New member function.
2070 * symfile.c (add_filename_language): Add new assert.
2071
6f7664a9
AB
20722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * ada-lang.c (ada_language_data): Remove la_name and
2075 la_natural_name initializers.
2076 (ada_language::name): New member function.
2077 (ada_language::natural_name): New member function.
2078 * c-lang.c (c_language_data): Remove la_name and
2079 la_natural_name initializers.
2080 (c_language::name): New member function.
2081 (c_language::natural_name): New member function.
2082 (cplus_language_data): Remove la_name and
2083 la_natural_name initializers.
2084 (cplus_language::name): New member function.
2085 (cplus_language::natural_name): New member function.
2086 (asm_language_data): Remove la_name and
2087 la_natural_name initializers.
2088 (asm_language::name): New member function.
2089 (asm_language::natural_name): New member function.
2090 (minimal_language_data): Remove la_name and
2091 la_natural_name initializers.
2092 (minimal_language::name): New member function.
2093 (minimal_language::natural_name): New member function.
2094 * compile/compile.c (compile_to_object): Update call to
2095 lanugage_defn::name.
2096 * d-lang.c (d_language_data): Remove la_name and
2097 la_natural_name initializers.
2098 (d_language::name): New member function.
2099 (d_language::natural_name): New member function.
2100 * expprint.c (print_subexp_standard): Update call to
2101 language_defn::name.
2102 (dump_raw_expression): Likewise
2103 (dump_prefix_expression): Likewise.
2104 * f-lang.c (f_language_data): Remove la_name and
2105 la_natural_name initializers.
2106 (f_language::name): New member function.
2107 (f_language::natural_name): New member function.
2108 * go-lang.c (go_language_data): Remove la_name and
2109 la_natural_name initializers.
2110 (go_language::name): New member function.
2111 (go_language::natural_name): New member function.
2112 * language.c (show_language_command): Update call to
2113 language_defn::name.
2114 (set_language_command): Likewise.
2115 (language_enum): Likewise.
2116 (language_str): Likewise.
2117 (add_set_language_command): Likewise, use
2118 language_defn::natural_name in the doc string.
2119 (unknown_language_data): Remove la_name and
2120 la_natural_name initializers.
2121 (unknown_language::name): New member function.
2122 (unknown_language::natural_name): New member function.
2123 (auto_language_data): Remove la_name and
2124 la_natural_name initializers.
2125 (auto_language::name): New member function.
2126 (auto_language::natural_name): New member function.
2127 (language_lookup_primitive_type_as_symbol): Update call to
2128 language_defn::name.
2129 * language.h (language_data): Remove la_name and la_natural_name
2130 member variables.
2131 (language_defn::name): New member function.
2132 (language_defn::natural_name): New member function.
2133 * m2-lang.c (m2_language_data): Remove la_name and
2134 la_natural_name initializers.
2135 (m2_language::name): New member function.
2136 (m2_language::natural_name): New member function.
2137 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2138 language_defn::natural_name.
2139 * objc-lang.c (objc_language_data): Remove la_name and
2140 la_natural_name initializers.
2141 (objc_language::name): New member function.
2142 (objc_language::natural_name): New member function.
2143 * opencl-lang.c (opencl_language_data): Remove la_name and
2144 la_natural_name initializers.
2145 (opencl_language::name): New member function.
2146 (opencl_language::natural_name): New member function.
2147 * p-lang.c (pascal_language_data): Remove la_name and
2148 la_natural_name initializers.
2149 (pascal_language::name): New member function.
2150 (pascal_language::natural_name): New member function.
2151 * rust-lang.c (rust_language_data): Remove la_name and
2152 la_natural_name initializers.
2153 (rust_language::name): New member function.
2154 (rust_language::natural_name): New member function.
2155 * symtab.c (lookup_language_this): Update call to
2156 language_defn::name.
2157
5bae7c4e
AB
21582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * ada-lang.c (ada_language_data): Remove la_name_of_this
2161 initializer.
2162 * ax-gdb.c (gen_expr): Update call to name_of_this.
2163 * c-exp.y (classify_name): Likewise.
2164 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2165 (cplus_language_data): Likewise.
2166 (cplus_language::name_of_this): New member function.
2167 (asm_language_data): Remove la_name_of_this initializer.
2168 (minimal_language_data): Likewise.
2169 * d-lang.c (d_language_data): Likewise.
2170 (d_language::name_of_this): New member function.
2171 * expprint.c (print_subexp_standard): Update call to name_of_this.
2172 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2173 * go-lang.c (go_language_data): Likewise.
2174 * language.c (unknown_language_data): Likewise.
2175 (unknown_language::name_of_this): New member function.
2176 (auto_language_data): Remove la_name_of_this initializer.
2177 (auto_language::name_of_this): New member function.
2178 * language.h (language_data): Delete la_name_of_this member
2179 variable.
2180 (language_defn::name_of_this): New member function.
2181 * m2-lang.c (m2_language_data): Remove la_name_of_this
2182 initializer.
2183 * objc-lang.c (objc_language_data): Likewise.
2184 (objc_language::name_of_this): New member function.
2185 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2186 initializer.
2187 * p-lang.c (pascal_language_data): Likewise.
2188 (pascal_language::name_of_this): New member function.
2189 * rust-lang.c (rust_language_data): Remove la_name_of_this
2190 initializer.
2191 * symtab.c (lookup_language_this): Update call to name_of_this.
2192 (lookup_symbol_aux): Likewise.
2193 * valops.c (value_of_this): Likewise.
2194
22e3f3ed
AB
21952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * ada-lang.c (ada_language_data): Remove
2198 la_struct_too_deep_ellipsis initializer.
2199 (ada_language::struct_too_deep_ellipsis): New member function.
2200 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2201 initializer.
2202 (cplus_language_data): Likewise.
2203 (asm_language_data): Likewise.
2204 (minimal_language_data): Likewise.
2205 * cp-valprint.c (cp_print_value): Update call to
2206 struct_too_deep_ellipsis.
2207 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2208 initializer.
2209 * f-lang.c (f_language_data): Likewise.
2210 (f_language::struct_too_deep_ellipsis): New member function.
2211 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2212 initializer.
2213 * language.c (unknown_language_data): Likewise.
2214 (auto_language_data): Likewise.
2215 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2216 member variable.
2217 (language_defn::struct_too_deep_ellipsis): New member function.
2218 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2219 initializer.Q
2220 * objc-lang.c (objc_language_data): Likewise.
2221 * opencl-lang.c (opencl_language_data): Likewise.
2222 * p-lang.c (pascal_language_data): Likewise.
2223 * rust-lang.c (rust_language_data): Likewise.
2224 * valprint.c (val_print_check_max_depth): Update call to
2225 struct_too_deep_ellipsis.
2226
ed29e1c7
FW
22272020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2228
2229 * MAINTAINERS (Write After Approval): Add myself.
2230
12d8f940
TT
22312020-09-15 Tom Tromey <tom@tromey.com>
2232
2233 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2234 Remove.
2235
6b5a7bc7
TT
22362020-09-15 Tom Tromey <tom@tromey.com>
2237
2238 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2239 and TYPE_CODE_METHODPTR cases.
2240 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2241 (c_value_print_inner): Update.
2242 * valprint.c (generic_value_print_memberptr): New function, from
2243 c_value_print_memberptr.
2244 (generic_value_print): Use it. Call cplus_print_method_ptr.
2245
47f0e2ff
TT
22462020-09-15 Tom Tromey <tromey@adacore.com>
2247
2248 * python/python-internal.h (PyInt_FromLong): Remove define.
2249 * python/py-value.c (convert_value_from_python): Use
2250 gdb_py_object_from_longest.
2251 * python/py-type.c (typy_get_code): Use
2252 gdb_py_object_from_longest.
2253 * python/py-symtab.c (salpy_get_line): Use
2254 gdb_py_object_from_longest.
2255 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2256 gdb_py_object_from_longest.
2257 * python/py-record.c (recpy_gap_reason_code): Use
2258 gdb_py_object_from_longest.
2259 * python/py-record-btrace.c (recpy_bt_insn_size)
2260 (recpy_bt_func_level, btpy_list_count): Use
2261 gdb_py_object_from_longest.
2262 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2263 gdb_py_object_from_longest. Fix error handling.
2264 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2265 gdb_py_object_from_longest.
2266 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2267 gdb_py_object_from_longest.
2268 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2269 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2270 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2271
512116ce
TT
22722020-09-15 Tom Tromey <tromey@adacore.com>
2273
2274 * python/python.c (gdbpy_parameter_value): Use
2275 gdb_py_object_from_ulongest.
2276
4ab1029c
TT
22772020-09-15 Tom Tromey <tromey@adacore.com>
2278
2279 * python/py-infevents.c (create_register_changed_event_object):
2280 Use gdb_py_object_from_longest.
2281 * python/py-exitedevent.c (create_exited_event_object): Use
2282 gdb_py_object_from_longest.
2283
062534d4
TT
22842020-09-15 Tom Tromey <tromey@adacore.com>
2285
2286 * python/python.c (gdbpy_parameter_value): Use
2287 gdb_py_object_from_longest.
2288 * python/py-type.c (convert_field, typy_range): Use
2289 gdb_py_object_from_longest.
2290 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2291 gdb_py_object_from_longest.
2292 * python/py-lazy-string.c (stpy_get_length): Use
2293 gdb_py_object_from_longest.
2294 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2295 gdb_py_object_from_longest.
2296 * python/py-infevents.c (create_memory_changed_event_object): Use
2297 gdb_py_object_from_longest.
2298 * python/py-inferior.c (infpy_get_num): Use
2299 gdb_py_object_from_longest.
2300 (infpy_get_pid): Likewise.
2301
d1cab987
TT
23022020-09-15 Tom Tromey <tromey@adacore.com>
2303
2304 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2305 defines.
2306 * python/py-value.c (valpy_long): Use
2307 gdb_py_object_from_ulongest.
2308 * python/py-symtab.c (salpy_get_pc): Use
2309 gdb_py_object_from_ulongest.
2310 (salpy_get_last): Likewise.
2311 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2312 gdb_py_object_from_ulongest.
2313 * python/py-lazy-string.c (stpy_get_address): Use
2314 gdb_py_object_from_ulongest.
2315 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2316 * python/py-arch.c (archpy_disassemble): Use
2317 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2318 error handling.
2319
4bde49dc
TT
23202020-09-15 Tom Tromey <tromey@adacore.com>
2321
2322 * python/python-internal.h (gdb_py_long_from_longest): Remove
2323 defines.
2324 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2325 * python/py-type.c (convert_field, typy_get_sizeof): Use
2326 gdb_py_object_from_longest.
2327 * python/py-record-btrace.c (btpy_list_index): Use
2328 gdb_py_object_from_longest.
2329
37431074
TT
23302020-09-15 Tom Tromey <tromey@adacore.com>
2331
2332 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2333 * python/py-record.c (recpy_element_number): Use
2334 gdb_py_object_from_longest.
2335 (recpy_gap_number): Likewise.
2336
cbe25684
TT
23372020-09-15 Tom Tromey <tromey@adacore.com>
2338
2339 * top.c (ui::ui): Update.
2340 (highest_ui_num): Remove.
2341 * top.h (struct ui) <num>: Remove.
2342
db92ac45
TT
23432020-09-15 Tom Tromey <tromey@adacore.com>
2344
2345 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2346 * ui-style.c (ansi_regex_text): Now array.
2347 * rust-exp.y (number_regex_text): Now array.
2348 * linespec.c (linespec_quote_characters): Now array.
2349 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2350 Now arrays.
2351
d2b31b67
SM
23522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2353
2354 * debuginfod-support.c (debuginfod_client_deleter): New.
2355 (debuginfod_client_up): New.
2356 (debuginfod_init): Return debuginfod_client_up.
2357 (debuginfod_source_query): Adjust.
2358 (debuginfod_debuginfo_query): Adjust.
2359
3246bd8e
SM
23602020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 * debuginfod-support.c (debuginfod_source_query): Use
2363 make_unique_xstrdup.
2364
10242f36
SM
23652020-09-14 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2368 with `type::instance_flags`.
2369
e1044e6a
MM
23702020-09-14 Michael Mullin <masmullin@gmail.com>
2371
2372 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2373 Remove baton parameter.
2374
04902b09
PA
23752020-09-14 Pedro Alves <pedro@palves.net>
2376
2377 * Makefile.in (SELFTESTS_SRCS): Add
2378 unittests/enum-flags-selftests.c.
2379 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2380 btrace_function_flags instead of enum btrace_function_flag.
2381 * compile/compile-c-types.c (convert_qualified): Use
2382 enum_flags::raw.
2383 * compile/compile-cplus-symbols.c (convert_one_symbol)
2384 (convert_symbol_bmsym):
2385 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2386 (compile_cplus_convert_struct_or_union_methods)
2387 (compile_cplus_instance::convert_qualified_base):
2388 * go-exp.y (parse_string_or_char): Add cast to int.
2389 * unittests/enum-flags-selftests.c: New file.
2390 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2391 type to btrace_thread_flags from btrace_thread_flag.
2392 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2393 local's type to btrace_thread_flags from btrace_thread_flag. Add
2394 cast in DEBUG call.
2395
69896a2c
PA
23962020-09-14 Pedro Alves <pedro@palves.net>
2397
2398 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2399 * gdbtypes.c (address_space_name_to_int): Rename to ...
2400 (address_space_name_to_type_instance_flags): ... this.
2401 (address_space_int_to_name): Rename to ...
2402 (address_space_type_instance_flags_to_name): ... this.
2403 * gdbtypes.h (address_space_name_to_int): Rename to ...
2404 (address_space_name_to_type_instance_flags): ... this.
2405 (address_space_int_to_name): Rename to ...
2406 (address_space_type_instance_flags_to_name): ... this.
2407 * type-stack.c (type_stack::insert): Adjust to rename.
2408 * type-stack.h (type_stack::insert): Likewise.
2409
314ad88d
PA
24102020-09-14 Pedro Alves <pedro@palves.net>
2411 Andrew Burgess <andrew.burgess@embecosm.com>
2412
2413 * avr-tdep.c (avr_address_class_type_flags): Return
2414 type_instance_flags.
2415 (avr_address_class_type_flags_to_name): Take a
2416 type_instance_flags.
2417 (avr_address_class_name_to_type_flags): Return bool and take a
2418 type_instance_flags.
2419 * d-lang.c (build_d_types): Use type::set_instance_flags.
2420 * ft32-tdep.c (ft32_address_class_type_flags): Return
2421 type_instance_flags.
2422 (ft32_address_class_type_flags_to_name): Take a
2423 type_instance_flags.
2424 (ft32_address_class_name_to_type_flags): Return bool and take a
2425 type_instance_flags.
2426 (ft32_gdbarch_init): Use type::set_instance_flags.
2427 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2428 * gdbarch.h, gdbarch.c: Regenerate.
2429 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2430 (address_class_name_to_type_flags): Use type_instance_flags and
2431 bool.
2432 * gdbtypes.c (address_space_name_to_int)
2433 (address_space_int_to_name, make_qualified_type): Use
2434 type_instance_flags.
2435 (make_qualified_type): Use type_instance_flags and
2436 type::set_instance_flags.
2437 (make_type_with_address_space, make_cv_type, make_vector_type)
2438 (check_typedef): Use type_instance_flags.
2439 (recursive_dump_type): Cast type_instance_flags to unsigned for
2440 printing.
2441 (copy_type_recursive): Use type::set_instance_flags.
2442 (gdbtypes_post_init): Use type::set_instance_flags.
2443 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2444 <m_instance_flags>: ... this.
2445 <instance_flags, set_instance_flags>: New methods.
2446 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2447 (SET_TYPE_INSTANCE_FLAGS): New.
2448 (address_space_name_to_int, address_space_int_to_name)
2449 (make_type_with_address_space): Pass flags using
2450 type_instance_flags instead of int.
2451 * stabsread.c (cleanup_undefined_types_noname): Use
2452 type::set_instance_flags.
2453 * s390-tdep.c (s390_address_class_type_flags): Return
2454 type_instance_flags.
2455 (s390_address_class_type_flags_to_name): Take a
2456 type_instance_flags.
2457 (s390_address_class_name_to_type_flags): Return bool and take a
2458 type_instance_flags.
2459 * type-stack.c (type_stack::follow_types): Use
2460 type_instance_flags.
2461 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2462
27087b7f
TT
24632020-09-14 Tom Tromey <tromey@adacore.com>
2464
2465 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2466 * x86-tdep.c (x86_is_thunk_register_name)
2467 (x86_in_indirect_branch_thunk): Update.
2468 * sparc64-tdep.c (sparc64_fpu_register_names)
2469 (sparc64_cp0_register_names, sparc64_register_names)
2470 (sparc64_pseudo_register_names): Now const.
2471 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2472 cp0_registers_num>: Now const.
2473 * sparc-tdep.c (sparc_core_register_names)
2474 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2475 (sparc32_pseudo_register_names): Now const.
2476 (validate_tdesc_registers): Update.
2477 * rust-lang.c (rust_extensions): Now const.
2478 * p-lang.c (p_extensions): Now const.
2479 * objc-lang.c (objc_extensions): Now const.
2480 * nto-tdep.c (nto_thread_state_str): Now const.
2481 * moxie-tdep.c (moxie_register_names): Now const.
2482 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2483 Now const.
2484 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2485 (mips_linux_reg_names): Now const.
2486 (mips_gdbarch_init): Update.
2487 * microblaze-tdep.c (microblaze_register_names): Now const.
2488 * m68k-tdep.c (m68k_register_names): Now const.
2489 * m32r-tdep.c (m32r_register_names): Now const.
2490 * ia64-tdep.c (ia64_register_names): Now const.
2491 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2492 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2493 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2494 ymm_avx512_register_names, pkeys_register_names>: Now const.
2495 * i386-tdep.c (i386_register_names, i386_zmm_names)
2496 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2497 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2498 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2499 * f-lang.c (f_extensions): Now const.
2500 * d-lang.c (d_extensions): Now const.
2501 * csky-tdep.c (csky_register_names): Now const.
2502 * charset.c (default_charset_names, charset_enum): Now const.
2503 (_initialize_charset): Update.
2504 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2505 const.
2506 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2507 (bsd_uthread_solib_loaded): Update.
2508 (bsd_uthread_state): Now const.
2509 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2510 (amd64_ymm_avx512_names, amd64_ymmh_names)
2511 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2512 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2513 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2514 (amd64_dword_names): Now const.
2515 * agent.c (can_use_agent_enum): Now const.
2516 * ada-tasks.c (task_states, long_task_states): Now const.
2517 * ada-lang.c (known_runtime_file_name_patterns)
2518 (known_auxiliary_function_name_patterns, attribute_names)
2519 (standard_exc, ada_extensions): Now const.
2520
89806626
SM
25212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * bcache.h (struct bcache) <bcache>: Remove constructor.
2524 <m_hash_function, m_compare_function>: Remove.
2525 <~bcache>: Make virtual.
2526 <compare>: Remove static method, introduce virtual method.
2527 <default_hash>: Remove.
2528 <hash>: New virtual method.
2529 * bcache.c (bcache::expand_hash_table): Update.
2530 (bcache::insert): Update.
2531 (bcache::hash): New.
2532 (bcache::compare): Update comment and parameter names.
2533 * gdbtypes.c (types_deeply_equal): Update.
2534 * psymtab.h (struct psymbol_bcache): New struct.
2535 (class psymtab_storage) <psymtab_storage>: Make default.
2536 <psymbol_cache>: Change type to psymbol_bcache.
2537 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2538 (psymbol_hash): Change to...
2539 (psymbol_bcache::hash): ... this.
2540 (psymbol_compare): Change to...
2541 (psymbol_bcache::compare): ... this.
2542
677c92fe
SM
25432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2546 checking for initial lwp.
2547
3eba3a01
TT
25482020-09-14 Tom Tromey <tromey@adacore.com>
2549
2550 * m68k-tdep.c (m68k_extract_return_value): Use
2551 pointer_result_regnum.
2552 (m68k_store_return_value): Likewise.
2553 (m68k_reg_struct_return_p): Handle vectors and arrays.
2554 (m68k_return_value): Handle arrays.
2555 (m68k_svr4_return_value): Fix single-element aggregate handling.
2556 Handle long double. Adjust for embedded ABI.
2557 (m68k_svr4_init_abi): Set pointer_result_regnum.
2558 (m68k_embedded_init_abi): New function.
2559 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2560 (m68k_osabi_sniffer): New function.
2561 (_initialize_m68k_tdep): Register osabi sniffer.
2562 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2563 member.
2564
33f4dd48
SM
25652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2566
2567 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2568 with gdb::unique_xmalloc_ptr<char>.
2569
8400a90d
SM
25702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2571
2572 * xml-support.h (xml_fetch_another): Change type to be a
2573 function_view.
2574 (xml_process_xincludes): Remove baton parameter.
2575 (xml_fetch_content_from_file): Change baton parameter to
2576 dirname.
2577 * xml-support.c (struct xinclude_parsing_data)
2578 <xinclude_parsing_data>: Remove baton parameter.
2579 <fetcher_baton>: Remove.
2580 (xinclude_start_include): Adjust.
2581 (xml_process_xincludes): Adjust.
2582 (xml_fetch_content_from_file): Replace baton parameter with
2583 dirname.
2584 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2585 (xml_init_syscalls_info): Use a lambda.
2586 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2587 (file_read_description_xml): Use a lambda.
2588 (fetch_available_features_from_target): Change baton parameter
2589 to target_ops.
2590 (target_read_description_xml): Use a lambda.
2591 (target_fetch_description_xml): Use a lambda.
2592 (string_read_description_xml): Update.
2593
04f5bab2
SM
25942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2597 uses with type::endianity_is_not_default.
2598
db558e34
SM
25992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2600
2601 * gdbtypes.h (struct type) <endianity_is_not_default,
2602 set_endianity_is_not_default>: New methods.
2603 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2604 type::endianity_is_not_default, change all write call sites to
2605 use type::set_endianity_is_not_default.
2606
22c4c60c
SM
26072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2608
2609 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2610 uses with type::is_fixed_instance.
2611
9cdd0d12
SM
26122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2613
2614 * gdbtypes.h (struct type) <is_fixed_instance,
2615 set_is_fixed_instance>: New methods.
2616 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2617 write call sites to use type::set_is_fixed_instance.
2618
0becda7a
SM
26192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2620
2621 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2622 uses with type::is_gnu_ifunc.
2623
03cc7249
SM
26242020-09-14 Simon Marchi <simon.marchi@efficios.com>
2625
2626 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2627 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2628 use type::set_is_gnu_ifunc.
2629
3f46044c
SM
26302020-09-14 Simon Marchi <simon.marchi@efficios.com>
2631
2632 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2633 uses with type::stub_is_supported.
2634
9baccff6
SM
26352020-09-14 Simon Marchi <simon.marchi@efficios.com>
2636
2637 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2638 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2639 use type::set_stub_is_supported.
2640
bd63c870
SM
26412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2644 uses with type::is_vector.
2645
2062087b
SM
26462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2649 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2650 use type::set_is_vector.
2651
a409645d
SM
26522020-09-14 Simon Marchi <simon.marchi@efficios.com>
2653
2654 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2655 uses with type::has_varargs.
2656
1d6286ed
SM
26572020-09-14 Simon Marchi <simon.marchi@efficios.com>
2658
2659 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2660 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2661 use type::set_has_varargs.
2662
7f9f399b
SM
26632020-09-14 Simon Marchi <simon.marchi@efficios.com>
2664
2665 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2666 uses with type::is_prototyped.
2667
27e69b7a
SM
26682020-09-14 Simon Marchi <simon.marchi@efficios.com>
2669
2670 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2671 New methods.
2672 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2673 call sites to use type::set_is_prototyped.
2674
d2183968
SM
26752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2676
2677 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2678 uses with type::target_is_stub.
2679
8f53807e
SM
26802020-09-14 Simon Marchi <simon.marchi@efficios.com>
2681
2682 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2683 New methods.
2684 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2685 sites to use type::set_target_is_stub.
2686
e46d3488
SM
26872020-09-14 Simon Marchi <simon.marchi@efficios.com>
2688
2689 * gdbtypes.h (TYPE_STUB): Remove, replace all
2690 uses with type::is_stub.
2691
b4b73759
SM
26922020-09-14 Simon Marchi <simon.marchi@efficios.com>
2693
2694 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2695 (TYPE_STUB): Use type::is_stub, change all write call sites to
2696 use type::set_is_stub.
2697
20ce4123
SM
26982020-09-14 Simon Marchi <simon.marchi@efficios.com>
2699
2700 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2701 type::has_no_signedness.
2702
15152a54
SM
27032020-09-14 Simon Marchi <simon.marchi@efficios.com>
2704
2705 * gdbtypes.h (struct type) <has_no_signedness,
2706 set_has_no_signedness>: New methods.
2707 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2708 call sites to use type::set_has_no_signedness.
2709
c6d940a9
SM
27102020-09-14 Simon Marchi <simon.marchi@efficios.com>
2711
2712 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2713 type::is_unsigned.
2714
653223d3
SM
27152020-09-14 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2718 methods.
2719 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2720 sites to use type::set_is_unsigned.
2721
55ea94da 27222020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2723 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2724
e851246a
SM
2725 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2726 pointer and stack frame offset when unwinding.
55ea94da 2727
6791b117
PA
27282020-09-13 Pedro Alves <pedro@palves.net>
2729
2730 * NEWS: Document "-break-insert --qualified".
2731 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2732
77f2120b
PA
27332020-09-13 Pedro Alves <pedro@palves.net>
2734
2735 * linespec.c (classify_mtype, compare_msyms): Delete.
2736 (search_minsyms_for_name): Remove classification logic. Instead
2737 filter out trampoline symbols if we also found an external
2738 function of the same name.
2739
ed6a896c
JB
27402020-09-13 Joel Brobecker <brobecker@adacore.com>
2741
2742 * NEWS: Create a new section for the next release branch.
2743 Rename the section of the current branch, now that it has
2744 been cut.
2745
32aea73e
JB
27462020-09-13 Joel Brobecker <brobecker@adacore.com>
2747
2748 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2749 * version.in: Bump version to 11.0.50.DATE-git.
2750
8087c3fa
JB
27512020-09-12 Joel Brobecker <brobecker@adacore.com>
2752
2753 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2754
2a67f09d
FW
27552020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2756 Felix Willgerodt <Felix.Willgerodt@intel.com>
2757
2758 * gdbarch.sh: Added bfloat16 type.
2759 * gdbarch.c: Regenerated.
2760 * gdbarch.h: Regenerated.
2761 * gdbtypes.c (floatformats_bfloat16): New struct.
2762 (gdbtypes_post_init): Add builtin_bfloat16.
2763 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2764 (floatformats_bfloat16): New struct.
2765 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2766 (i386_ymm_type): Add field "v16_bfloat16"
2767 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2768 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2769 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2770 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2771 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2772 * features/i386/64bit-avx512.c: Regenerated.
2773 * features/i386/64bit-sse.xml: Add bfloat16 type.
2774 * features/i386/64bit-sse.c: Regenerated.
2775
1347d111
FW
27762020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2777
2778 * i386-tdep.c (i386_zmm_type): Fix field names.
2779 (i386_ymm_type): Fix field names.
2780
7a4e8e7d
TBA
27812020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2782
2783 * breakpoint.c: Fix typo in the help message of the
2784 "set breakpoint condition-evaluation" command.
2785
cf4ac4be
KR
27862020-09-10 Kamil Rytarowski <n54@gmx.com>
2787
2788 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2789 * (nbsd_nat_target::pid_to_exec_file)
2790 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2791 (nbsd_nat_target::post_startup_inferior)
2792 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2793 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2794 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2795 * (nbsd_thread_lister): Remove.
2796
f404573e
KR
27972020-09-10 Kamil Rytarowski <n54@gmx.com>
2798
2799 * fork-inferior.c (startup_inferior): Avoid double free.
2800
1ccb2c17
KR
28012020-09-10 Kamil Rytarowski <n54@gmx.com>
2802
2803 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2804 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2805
feedfcc7
KR
28062020-09-10 Kamil Rytarowski <n54@gmx.com>
2807
2808 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2809 * netbsd-nat.c: Include <sys/ptrace.h>.
2810 * (netbsd_nat::enable_proc_events): Add.
2811
c489f8c6
KR
28122020-09-10 Kamil Rytarowski <n54@gmx.com>
2813
2814 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2815 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2816 (netbsd_nat::for_each_thread): Add.
2817 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2818 "gdbsupport/common-debug.h".
2819 * (netbsd_nat::netbsd_thread_lister)
2820 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2821 (netbsd_nat::for_each_thread): Add.
2822
330662f6
KR
28232020-09-10 Kamil Rytarowski <n54@gmx.com>
2824
2825 * netbsd-nat.h: Include <unistd.h>.
2826 * (netbsd_nat::pid_to_exec_file): Add.
2827 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2828 * (netbsd_nat::pid_to_exec_file) Add.
2829
70b67307
KR
28302020-09-10 Kamil Rytarowski <n54@gmx.com>
2831
2832 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2833
99cf6da6
KR
28342020-09-10 Kamil Rytarowski <n54@gmx.com>
2835
2836 * netbsd-nat.h: New file.
2837 * netbsd-nat.c: Likewise.
2838
1b788fb6
TT
28392020-09-09 Tom Tromey <tromey@adacore.com>
2840
2841 * ada-lang.c (remove_extra_symbols): Do not increment when
2842 removing an element
2843
03b0a45f
TT
28442020-09-08 Tom Tromey <tromey@adacore.com>
2845
2846 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2847
3cae4447
TT
28482020-09-08 Tom Tromey <tromey@adacore.com>
2849
2850 PR win32/25302:
2851 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2852 (gdb_bfd_init_data): New function.
2853 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2854
7f08fd51
TBA
28552020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2856
2857 * infrun.c (fetch_inferior_event): Use
2858 `switch_to_target_no_thread` to switch the target.
2859
3e6ff933
TT
28602020-09-06 Tom Tromey <tom@tromey.com>
2861
2862 * symfile.h (dwarf2_free_objfile): Don't declare.
2863
e56798df
AKS
28642020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2865
2866 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2867 to match 16 byte real/complex type generated by Flang compiler.
2868
8f5c6526
TV
28692020-09-03 Tom de Vries <tdevries@suse.de>
2870
2871 PR breakpoint/26546
2872 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2873 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2874
c5065df0
SM
28752020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2876
2877 * maint.c (index_digits): New function.
2878 (struct maint_print_section_data): Remove.
2879 (print_bfd_section_info): Remove print_data parameter, add arg
2880 and index_digits.
2881 (print_objfile_section_info): Likewise.
2882 (print_bfd_section_info_maybe_relocated): Likewise (plus
2883 objfile).
2884 (maintenance_info_sections): Adjust calls.
2885
02c6f3f1
TT
28862020-09-02 Tom Tromey <tromey@adacore.com>
2887
2888 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2889 for null pointers.
2890 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2891
ef5e5b0b
SM
28922020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2893
2894 * bcache.h (struct bcache) <insert>: Change type of `added` to
2895 pointer to bool.
2896 * bcache.c (bcache::insert): Likewise.
2897 * gdbtypes.c (check_types_worklist): Adjust.
2898 * psymtab.c (add_psymbol_to_bcache): Adjust.
2899
973695d6
KB
29002020-08-31 Kevin Buettner <kevinb@redhat.com>
2901
2902 * corelow.c (unordered_set): Include.
2903 (class core_target): Add field 'm_core_unavailable_mappings'.
2904 (core_target::build_file_mappings): Print only one warning
2905 per inaccessible file. Add unavailable/broken mappings
2906 to m_core_unavailable_mappings.
2907 (core_target::xfer_partial): Call...
2908 (core_target::xfer_memory_via_mappings): New method.
2909
264fc0e2
SM
29102020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2911
2912 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2913 type to bool.
2914
2de01bdb
SM
29152020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * dwarf2/read.c (struct field_info): Fix indentation.
2918
f3bd50f1
SM
29192020-08-31 Simon Marchi <simon.marchi@efficios.com>
2920
2921 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2922 ordering in comment.
2923 * frame.c (frame_id_eq): Fix indentation.
2924
22b9b4b0
SL
29252020-08-31 Scott Linder <scott@scottlinder.com>
2926 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2929 inline frame ids in outer frame.
2930
84154d16
SM
29312020-08-31 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2934 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2935 (outer_frame_id): Use FID_STACK_OUTER instead of
2936 FID_STACK_INVALID.
2937 (frame_id_p): Don't check for outer_frame_id.
2938
8efaf6b3
SM
29392020-08-31 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2942 regnum/frame in value. Call allocate_value_lazy.
2943 * frame.c (frame_unwind_register_value): Use
2944 val_print_not_saved.
2945
fe1fe7ea
SM
29462020-08-31 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2949
f7c7700d
PA
29502020-08-29 Pedro Alves <pedro@palves.net>
2951
2952 * progspace.c (print_program_space): Use all_inferiors. Switch to
2953 the inferior before calling target_pid_to_str.
2954
e0814aae
TT
29552020-08-28 Tom Tromey <tom@tromey.com>
2956
2957 * xcoffread.c (xcoff_end_psymtab): Update comment.
2958 * dbxread.c (dbx_end_psymtab): Update comment.
2959
626d2320
TV
29602020-08-28 Tom de Vries <tdevries@suse.de>
2961
2962 PR breakpoint/26544
2963 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2964 event_location.
2965 (create_breakpoint): Same.
2966 (base_breakpoint_decode_location): Same.
2967 (bkpt_create_sals_from_location): Same.
2968 (bkpt_decode_location): Same.
2969 (bkpt_probe_create_sals_from_location): Same.
2970 (bkpt_probe_decode_location): Same.
2971 (tracepoint_create_sals_from_location): Same.
2972 (tracepoint_decode_location): Same.
2973 (tracepoint_probe_decode_location): Same.
2974 (strace_marker_create_sals_from_location): Same.
2975 (strace_marker_decode_location): Same.
2976 (create_sals_from_location_default): Same.
2977 (decode_location_default): Same.
2978 * breakpoint.h (struct breakpoint_ops): Same.
2979 (create_breakpoint): Same.
2980 * linespec.h (decode_line_full): Same.
2981 * linespec.c (decode_line_full): Same. Throw error if
2982 result.size () == 0.
2983
df631783
PA
29842020-08-27 Pedro Alves <pedro@palves.net>
2985
2986 PR gdb/26524
2987 * breakpoint.c (until_break_fsm) <location_breakpoint,
2988 caller_breakpoint>: Delete fields.
2989 <breakpoints>: New field.
2990 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2991 two individual breakpoints.
2992 (until_break_fsm::should_stop): Loop over breakpoints in the
2993 breakpoint vector.
2994 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2995 vector.
2996 (until_break_command): Handle location expanding into multiple
2997 sals.
2998
b2b38aa4
PA
29992020-08-27 Pedro Alves <pedro@palves.net>
3000
3001 PR gdb/26523
3002 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3003 bp_until breakpoints user-specified locations. Update intro
3004 comment.
3005
b886559f
SM
30062020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3007
3008 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3009 gdb_bfd_sections): New.
3010 * maint.c (print_bfd_section_info): Change param type to
3011 maint_print_section_data.
3012 (print_objfile_section_info): Likewise.
3013 (print_bfd_section_info_maybe_relocated): Likewise.
3014 (maintenance_info_sections): Use gdb_bfd_sections.
3015
4c6e63bf
SV
30162020-08-25 Shahab Vahedi <shahab@synopsys.com>
3017
3018 * MAINTAINERS: Add ARC target and maintainer.
3019
8d7f0635
AK
30202020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3021
3022 * configure.tgt: ARC support for GNU/Linux.
3023 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3024 * arc-linux-tdep.c: New file.
3025 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3026 * arc-tdep.c (arc_write_pc): Use it.
3027
fdd8731b
SV
30282020-08-25 Shahab Vahedi <shahab@synopsys.com>
3029
3030 * arc-tdep.c (arc_check_for_hardware_loop): New.
3031 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3032
22459524
SV
30332020-08-25 Shahab Vahedi <shahab@synopsys.com>
3034
3035 * arc-tdep.h: Include "gdbarch.h".
3036
995d3a19
SV
30372020-08-25 Shahab Vahedi <shahab@synopsys.com>
3038
3039 * arch/arc.h
3040 (arc_gdbarch_features): New class to stir the selection of target XML.
3041 (arc_create_target_description): Use FEATURES to choose XML target.
3042 (arc_lookup_target_description): Use arc_create_target_description
3043 to create _new_ target descriptions or return the already created
3044 ones if the FEATURES is the same.
3045 * arch/arc.c: Implementation of prototypes described above.
3046 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3047 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3048 * arc-tdep.c (*_feature_name): Make feature names consistent.
3049 (arc_register_feature): A new struct to hold information about
3050 registers of a particular target/feature.
3051 (arc_check_tdesc_feature): Check if XML provides registers in
3052 compliance with ARC_REGISTER_FEATURE structs.
3053 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3054 (determine_*_reg_feature_set): Which feature name to look for.
3055 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3056 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3057 to expected ISA enums to be used in arc_gdbarch_features structs.
3058 * features/Makefile (FEATURE_XMLFILES): Add new files.
3059 * gdb/features/arc/v1-aux.c: New file.
3060 * gdb/features/arc/v1-aux.xml: Likewise.
3061 * gdb/features/arc/v1-core.c: Likewise.
3062 * gdb/features/arc/v1-core.xml: Likewise.
3063 * gdb/features/arc/v2-aux.c: Likewise.
3064 * gdb/features/arc/v2-aux.xml: Likewise.
3065 * gdb/features/arc/v2-core.c: Likewise.
3066 * gdb/features/arc/v2-core.xml: Likewise.
3067 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3068
3945d2d7
GM
30692020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3070 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 PR m2/26372
fc5d6901 3073 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3074 an assert. Remove single element array indexing pattern as the
3075 MULTI_SUBSCRIPT support will handle this case too.
3076
2677f2d3
SM
30772020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3078
3079 * value.h (valprint_check_validity): Move declaration from
3080 here...
3081 * valprint.h (valprint_check_validity): ... to here.
3082
c426fddb
SM
30832020-08-24 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * debug.h: New file.
3086 * debug.c (debug_prefixed_vprintf): New function.
3087 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3088 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3089
1eb8556f
SM
30902020-08-24 Simon Marchi <simon.marchi@efficios.com>
3091
3092 * infrun.h (infrun_debug_printf_1): New function declaration.
3093 (infrun_debug_printf): New macro.
3094 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3095 throughout.
3096 (infrun_debug_printf): New function.
3097 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3098 (handle_jit_event): Likewise.
3099
b8fff44e
MW
31002020-08-21 Mark Wielaard <mark@klomp.org>
3101
3102 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3103
d19c3068
SM
31042020-08-22 Simon Marchi <simon.marchi@efficios.com>
3105
3106 * frame.c (enum class frame_id_status): New.
3107 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3108 (fprintf_frame): Update.
3109 (compute_frame_id): Set frame id status to "computing" on entry.
3110 Set it back to "not_computed" on failure and to "computed" on
3111 success.
3112 (get_frame_id): Assert the frame id is not being computed.
3113 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3114 (create_new_frame): Likewise.
3115 (frame_cleanup_after_sniffer): Update assert.
3116
b70e516e
SM
31172020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3118
3119 * regcache.c (pid_ptid_regcache_map): New type.
3120 (target_ptid_regcache_map): Remove.
3121 (target_pid_ptid_regcache_map): New type.
3122 (regcaches): Change type to target_pid_ptid_regcache_map.
3123 (get_thread_arch_aspace_regcache): Update.
3124 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3125 case.
3126 (regcaches_size): Update.
3127 (regcache_count): Update.
3128 (registers_changed_ptid_target_pid_test): New.
3129 (_initialize_regcache): Register new test.
3130
cdd9148a
SM
31312020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3132
3133 * regcache.c (regcache_count): New.
3134 (struct regcache_test_data): New.
3135 (regcache_test_data_up): New.
3136 (populate_regcaches_for_test): New.
3137 (regcaches_test): Remove.
3138 (get_thread_arch_aspace_regcache_test): New.
3139 (registers_changed_ptid_all_test): New.
3140 (registers_changed_ptid_target_test): New.
3141 (registers_changed_ptid_target_ptid_test): New.
3142 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3143 (_initialize_regcache): Register new tests.
3144
dd125343
SM
31452020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3146
3147 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3148 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3149 gdbarch and aspace parameter. Use current inferior's aspace.
3150 Validate regcache's arch value.
3151 (regcaches_test): Update.
3152
3ee93972
SM
31532020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * regcache.c (regcaches_test): Call registers_changed.
3156
33bf4c5c
TBA
31572020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3158
3159 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3160
c2fd7fae
AKS
31612020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3162
3163 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3164 to find the end of prologue for flang compiled binaries.
3165 * arm-tdep.c (arm_skip_prologue): Likewise.
3166 * i386-tdep.c (i386_skip_prologue): Likewise.
3167 * producer.c (producer_is_llvm): New function.
3168 (producer_parsing_tests): Added new tests for clang/flang.
3169 * producer.h (producer_is_llvm): New declaration.
3170
9327494e
SM
31712020-08-18 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * linux-nat.c (linux_nat_debug_printf): New function.
3174 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3175
d138725a
AM
31762020-08-18 Aaron Merey <amerey@redhat.com>
3177
3178 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3179 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3180 (CLIBS): Add DEBUGINFOD_LIBS.
3181
f9b11e6b
ST
31822020-08-17 Sergei Trofimovich <siarheit@google.com>
3183
3184 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3185 'gdbarch_num_regs'.
3186
3ae7ab99
TT
31872020-08-17 Tom Tromey <tromey@adacore.com>
3188
3189 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3190 ada_get_decoded_value returns NULL.
3191
b017825f
TT
31922020-08-17 Tom Tromey <tromey@adacore.com>
3193
3194 * python/py-inferior.c (infpy_search_memory): Use
3195 gdb_py_object_from_ulongest.
3196 * python/py-infevents.c (create_inferior_call_event_object)
3197 (create_memory_changed_event_object): Use
3198 gdb_py_object_from_ulongest.
3199 * python/py-linetable.c (ltpy_entry_get_pc): Use
3200 gdb_py_object_from_ulongest.
3201
7635cf79
SM
32022020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * loc.c (class symbol_needs_eval_context): Fix indentation.
3205
f54be24b
SM
32062020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3207
3208 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3209 bool.
3210
53d5a2a5
TV
32112020-08-17 Tom de Vries <tdevries@suse.de>
3212
3213 PR gdb/26393
3214 * gdbtypes.c (dump_dynamic_prop): New function.
3215 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3216
547ce8f0
TV
32172020-08-15 Tom de Vries <tdevries@suse.de>
3218
3219 PR backtrace/26390
3220 * stack.c (print_frame_args): Temporarily set the selected
3221 frame to FRAME while printing the frame's arguments.
3222
6ea815e7
PFC
32232020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3224
3225 PR breakpoints/26385
3226 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3227 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3228
6e562fa3
PFC
32292020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3230
3231 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3232 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3233 and >= to check return value instead of == -1 and != -1.
3234
d369b608
SM
32352020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3236
3237 * utils.h (class gdb_argv) <as_array_view>: New method.
3238 * utils.c (gdb_argv_as_array_view_test): New.
3239 (_initialize_utils): Register selftest.
3240 * maint.c (maintenance_selftest): Use the new method.
3241
b31488a3
KR
32422020-08-13 Kamil Rytarowski <n54@gmx.com>
3243
3244 * target.h (supports_dumpcore, dumpcore): New
3245 function declarations.
3246 * target.c (supports_dumpcore, dumpcore): New
3247 functions.
3248 * target-delegates.c: Rebuild.
3249 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3250 and target_dumpcore ().
3251
002a3166
AM
32522020-08-13 Aaron Merey <amerey@redhat.com>
3253
3254 * debuginfod-support.c: Replace global variables with user_data.
3255
ece5bc8a
SM
32562020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * maint.c (maintenance_selftest): Split args and pass array_view
3259 to run_tests.
3260
6d8a0a5e
LM
32612020-08-12 Luis Machado <luis.machado@linaro.org>
3262
3263 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3264 type's length.
3265 Use %s and pulongest to print the length.
3266
7cf663a9
PA
32672020-08-12 Pedro Alves <palves@redhat.com>
3268
3269 * NEWS: Move "Multi-target debugging support" item to the
3270 "Changes since GDB 9" section.
3271
27c7b875
PA
32722020-08-12 Pedro Alves <palves@redhat.com>
3273
3274 PR gdb/26336
3275 * progspace.c (program_space::remove_objfile): Invalidate the
3276 frame cache.
3277
1796a2a1
TV
32782020-08-11 Tom de Vries <tdevries@suse.de>
3279
3280 * MAINTAINERS: Mark ms1 as deleted.
3281
f8e3fe0d
LM
32822020-08-10 Luis Machado <luis.machado@linaro.org>
3283
3284 PR gdb/26310
3285
3286 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3287 act accordingly.
3288 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3289 movz/str/stur/stp skipping behavior.
3290
cc308722
LM
32912020-08-10 Luis Machado <luis.machado@linaro.org>
3292
3293 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3294 struct user_sve_header instead of struct sve_context.
3295
041d9819
SM
32962020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * read.h (dwarf2_fetch_die_loc_sect_off,
3299 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3300 `void *` parameter with function_view.
3301 * read.c (dwarf2_fetch_die_loc_sect_off,
3302 dwarf2_fetch_die_loc_cu_off): Likewise.
3303 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3304 (per_cu_dwarf_call): Adjust.
3305 (get_frame_address_in_block_wrapper): Remove.
3306 (indirect_synthetic_pointer): Adjust.
3307 (get_ax_pc): Remove.
3308 (dwarf2_compile_expr_to_ax): Adjust.
3309
38f8aa06
TV
33102020-08-08 Tom de Vries <tdevries@suse.de>
3311
3312 PR build/26344
3313 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3314 constructor.
3315 * regcache.c (get_thread_arch_aspace_regcache): Same.
3316
a52b3ae2
TT
33172020-08-07 Tom Tromey <tromey@adacore.com>
3318
3319 * ravenscar-thread.c
3320 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3321 New method.
3322 (ravenscar_thread_target::wait): Check
3323 runtime_initialized.
3324 (ravenscar_thread_target::prepare_to_store)
3325 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3326 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3327 (ravenscar_thread_target::stopped_by_watchpoint)
3328 (ravenscar_thread_target::stopped_data_address)
3329 (ravenscar_thread_target::core_of_thread): Use
3330 scoped_restore_current_thread and
3331 set_base_thread_from_ravenscar_task.
3332
0e29517d
TT
33332020-08-07 Tom Tromey <tromey@adacore.com>
3334
3335 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3336
592f9bd7
TT
33372020-08-07 Tom Tromey <tromey@adacore.com>
3338
3339 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3340 update_inferior_ptid before update_thread_list.
3341 (temporarily_change_regcache_ptid): New class.
3342 (ravenscar_thread_target::fetch_registers)
3343 (ravenscar_thread_target::store_registers)
3344 (ravenscar_thread_target::prepare_to_store): Use base thread when
3345 forwarding operation.
3346
39e2018a
TT
33472020-08-07 Tom Tromey <tromey@adacore.com>
3348
3349 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3350 "is_pid" case.
3351
2080266b
TT
33522020-08-07 Tom Tromey <tromey@adacore.com>
3353
3354 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3355 New methods.
3356 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3357 first.
3358 (ravenscar_thread_target::add_thread): Rename from
3359 ravenscar_add_thread.
3360 (ravenscar_thread_target::update_thread_list): Use a lambda.
3361 (ravenscar_thread_target::xfer_partial): New method.
3362
78c02f21
TT
33632020-08-07 Tom Tromey <tromey@adacore.com>
3364
3365 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3366 gdb::function_view.
3367 (iterate_over_live_ada_tasks): Change type of argument.
3368 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3369 of argument.
3370
d5d833af
TT
33712020-08-07 Tom Tromey <tromey@adacore.com>
3372
3373 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3374 Remove.
3375 (ravenscar_thread_target::extra_thread_info): Remove.
3376 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3377 defer to target beneath for non-Ravenscar threads.
3378
a8ac85bb
TT
33792020-08-07 Tom Tromey <tromey@adacore.com>
3380
3381 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3382 get_base_thread_from_ravenscar_task>: Now methods.
3383 <m_cpu_map>: New member.
3384 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3385 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3386 (ravenscar_thread_target::task_is_currently_active): Update.
3387 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3388 Now a method.
3389 (ravenscar_thread_target::add_active_thread): Put initial thread
3390 into the m_cpu_map.
3391
550ab58d
TT
33922020-08-07 Tom Tromey <tromey@adacore.com>
3393
3394 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3395 event_ptid.
3396
e9546579
TT
33972020-08-07 Tom Tromey <tromey@adacore.com>
3398
3399 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3400 runtime_initialized.
3401
3d4470e5
TT
34022020-08-07 Tom Tromey <tromey@adacore.com>
3403
3404 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3405 add_active_thread.
3406 (ravenscar_thread_target::add_active_thread): Now public.
3407 (ravenscar_inferior_created): Call add_active_thread after pushing
3408 the target.
3409
888bdb2b
SM
34102020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3411
3412 * regcache.c (ptid_regcache_map): New type.
3413 (target_ptid_regcache_map): New type.
3414 (regcaches): Change type to target_ptid_regcache_map.
3415 (get_thread_arch_aspace_regcache): Update to regcaches' new
3416 type.
3417 (regcache_thread_ptid_changed): Likewise.
3418 (registers_changed_ptid): Likewise.
3419 (regcaches_size): Likewise.
3420 (regcaches_test): Update.
3421 (regcache_thread_ptid_changed): Update.
3422 * regcache.h (regcache_up): New type.
3423 * gdbsupport/ptid.h (hash_ptid): New struct.
3424
b161a60d
SM
34252020-08-07 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * observable.h (thread_ptid_changed): Add parameter
3428 `process_stratum_target *`.
3429 * infrun.c (infrun_thread_ptid_changed): Add parameter
3430 `process_stratum_target *` and use it.
3431 (selftests): New namespace.
3432 (infrun_thread_ptid_changed): New function.
3433 (_initialize_infrun): Register selftest.
3434 * regcache.c (regcache_thread_ptid_changed): Add parameter
3435 `process_stratum_target *` and use it.
3436 (regcache_thread_ptid_changed): New function.
3437 (_initialize_regcache): Register selftest.
3438 * thread.c (thread_change_ptid): Pass target to
3439 thread_ptid_changed observable.
3440
d2854d8d
CT
34412020-08-06 Caroline Tice <cmtice@google.com>
3442
fe4c3d43
SM
3443 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3444 (struct dwp_sections): Update field comments. Add loclists and
3445 rnglists fields.
3446 (struct virtual_v2_dwo_sections): Rename struct to
3447 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3448 size & offset fields for loclists and rnglists.
3449 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3450 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3451 skipping dummy type units.
3452 (create_dwp_hash_table): Update the large comment above the function to
3453 discuss Version 5 DWP files as well, with references. Update all the
3454 version checks in the function to check for version 5 as well. Add new
3455 section at the end to create dwp hash table for version 5.
3456 (create_dwp_v2_section): Rename function to
3457 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3458 Add V5 to error message text.
3459 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3460 into calls to create_dwp_v2_or_v5_section.
3461 (create_dwo_unit_in_dwp_v5): New function.
3462 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3463 check for version2; add else clause to handle version 5.
3464 (open_and_init_dwo_file): Add code to check dwarf version & only call
3465 create_debug_types_hash_table (with sections.types) if version is not 5;
3466 else call create_debug_type_hash_table, with sections.info.
3467 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3468 version 5.
3469 (dwarf2_locate_v5_dwp_sections): New function.
3470 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3471 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3472
159ed7d9
SM
34732020-08-06 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * regcache.h (class regcache): Remove friend
3476 registers_changed_ptid.
3477 <regcache_thread_ptid_changed>: Remove.
3478 <regcaches>: Remove.
3479 * regcache.c (regcache::regcaches): Rename to...
3480 (regcaches): ... this. Make static.
3481 (get_thread_arch_aspace_regcache): Update.
3482 (regcache::regcache_thread_ptid_changed): Rename to...
3483 (regcache_thread_ptid_changed): ... this. Update.
3484 (class regcache_access): Remove.
3485 (regcaches_test): Update.
3486 (_initialize_regcache): Update.
3487 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3488 <forward_list>.
3489
174981ae
SM
34902020-08-06 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * regcache.h (class regcache) <current_regcache>: Rename to...
3493 <regcaches>: ... this. Move doc here.
3494 * regcache.c (regcache::current_regcache) Rename to...
3495 (regcache::regcaches): ... this. Move doc to header.
3496 (get_thread_arch_aspace_regcache): Update.
3497 (regcache::regcache_thread_ptid_changed): Update.
3498 (registers_changed_ptid): Update.
3499 (class regcache_access) <current_regcache_size>: Rename to...
3500 <regcaches_size>: ... this.
3501 (current_regcache_test): Rename to...
3502 (regcaches_test): ... this.
3503 (_initialize_regcache): Update.
3504
ed908db6
VC
35052020-08-06 Victor Collod <vcollod@nvidia.com>
3506
3507 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3508
b5582ab7
KB
35092020-08-05 Kevin Buettner <kevinb@redhat.com>
3510
3511 * corelow.c (core_target::build_file_mappings): Don't output
3512 null pathname in warning.
3513
ea946b86
SM
35142020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3515
3516 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3517 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3518 gdb.dwarf2/dw2-single-line-discriminators.exp,
3519 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3520
57d02173
TT
35212020-08-05 Tom Tromey <tromey@adacore.com>
3522
3523 PR rust/26197:
3524 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3525 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3526 Fix off-by-one and type size errors in ordinary case.
3527
5555c86d
TV
35282020-08-05 Tom de Vries <tdevries@suse.de>
3529
3530 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3531 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3532
97916bfe
SM
35332020-08-04 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * frame.h (frame_id_p): Return bool.
3536 (frame_id_artificial_p): Return bool.
3537 (frame_id_eq): Return bool.
3538 (has_stack_frames): Return bool.
3539 (get_selected_frame): Fix typo in comment.
3540 (get_frame_pc_if_available): Return bool.
3541 (get_frame_address_in_block_if_available): Return bool.
3542 (get_frame_func_if_available): Return bool.
3543 (read_frame_register_unsigned): Return bool.
3544 (get_frame_register_bytes): Return bool.
3545 (safe_frame_unwind_memory): Return bool.
3546 (deprecated_frame_register_read): Return bool.
3547 (frame_unwinder_is): Return bool.
3548 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3549 bool.
3550 <this_id::p>: Likewise.
3551 <prev_p>: Likewise.
3552 (frame_stash_add): Return bool.
3553 (get_frame_id): Use bool.
3554 (frame_id_build_special) Use bool.
3555 (frame_id_build_unavailable_stack): Use bool.
3556 (frame_id_build): Use bool.
3557 (frame_id_p): Return bool, use true/false instead of 1/0.
3558 (frame_id_artificial_p): Likewise.
3559 (frame_id_eq): Likewise.
3560 (frame_id_inner): Likewise.
3561 (get_frame_func_if_available): Likewise.
3562 (read_frame_register_unsigned): Likewise.
3563 (deprecated_frame_register_read): Likewise.
3564 (get_frame_register_bytes): Likewise.
3565 (has_stack_frames): Likewise.
3566 (inside_main_func): Likewise.
3567 (inside_entry_func): Likewise.
3568 (get_frame_pc_if_available): Likewise.
3569 (get_frame_address_in_block_if_available): Likewise.
3570 (frame_unwinder_is): Likewise.
3571 (safe_frame_unwind_memory): Likewise.
3572 (frame_unwind_arch): Likewise.
3573
fedfee88
SM
35742020-08-04 Simon Marchi <simon.marchi@efficios.com>
3575
3576 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3577 type to cached_copy_status.
3578 (fprintf_frame): Adjust.
3579 (get_frame_func_if_available): Adjust.
3580 (frame_cleanup_after_sniffer): Adjust.
3581
6cfa9b59
MW
35822020-08-04 Mark Wielaard <mark@klomp.org>
3583
3584 * MAINTAINERS (Write After Approval): Update email address.
3585
66d6346b
SM
35862020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3587
3588 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3589 dynamic_prop::const_val.
3590
8a6d5e35
SM
35912020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3592
3593 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3594 dynamic_prop::kind.
3595
51d6067d
SM
35962020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3597
3598 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3599
b26e2ae7
JM
36002020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3601
3602 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3603
39791af2
JM
36042020-08-04 Weimin Pan <weimin.pan@oracle.com>
3605 Jose E. Marchesi <jose.marchesi@oracle.com>
3606
3607 * configure.tgt: Add entry for bpf-*-*.
3608 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3609 (ALLDEPFILES): Add bpf-tdep.c.
3610 * bpf-tdep.c: New file.
3611 * MAINTAINERS: Add bpf target and maintainer.
3612 * NEWS: Mention the support for the new target.
3613
521894aa
TV
36142020-08-04 Tom de Vries <tdevries@suse.de>
3615
3616 PR symtab/23270
3617 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3618 Error.
3619
5d6356e9
JB
36202020-08-03 John Baldwin <jhb@FreeBSD.org>
3621
3622 * syscalls/freebsd.xml: Regenerate.
3623
0cf82b81
JB
36242020-08-03 John Baldwin <jhb@FreeBSD.org>
3625
3626 * syscalls/update-freebsd.sh: Fix usage and year range.
3627
8f34b746
TV
36282020-08-03 Tom de Vries <tdevries@suse.de>
3629
3630 PR symtab/26333
3631 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3632 DW_LNE_lo_user/DW_LNE_hi_user range.
3633
5e500d33
SM
36342020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3635
3636 PR ada/26318
3637 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3638 kind.
3639
78319c15
TBA
36402020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3641
3642 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3643
4c55e970
TBA
36442020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3645
3646 * breakpoint.c (set_breakpoint_condition): Update the condition
3647 expressions after checking that the input condition string parses
3648 successfully and does not contain junk at the end.
3649
1e620590
TBA
36502020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3651
3652 * breakpoint.c (set_breakpoint_condition): Update the
3653 condition string after parsing the new condition successfully.
3654
c8693053
RO
36552020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3656
3657 * proc-api.c (_STRUCTURED_PROC): Don't define.
3658 * proc-events.c: Likewise.
3659 * proc-flags.c: Likewise.
3660 * proc-why.c: Likewise.
3661 * procfs.c: Likewise.
3662
3663 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3664 * configure, config.in: Regenerate.
3665
5a99adb8
TV
36662020-07-30 Tom de Vries <tdevries@suse.de>
3667
3668 PR build/26320
3669 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3670 m_red/m_green/m_blue in a union.
3671
8ba83e91
TV
36722020-07-29 Tom de Vries <tdevries@suse.de>
3673
3674 PR tdep/26280
3675 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3676
f75a0693
AB
36772020-07-28 Tom Tromey <tromey@adacore.com>
3678
3679 PR symtab/26270:
3680 * symtab.h (find_pc_partial_function_sym): Declare.
3681 * cli/cli-cmds.c (disassemble_command): Use
3682 find_pc_partial_function_sym. Check asm_demangle.
3683 * blockframe.c (cache_pc_function_sym): New global.
3684 (cache_pc_function_name): Remove.
3685 (clear_pc_function_cache): Update.
3686 (find_pc_partial_function_sym): New function, from
3687 find_pc_partial_function.
3688 (find_pc_partial_function): Rewrite using
3689 find_pc_partial_function_sym.
3690
16f3242c
TT
36912020-07-28 Tom Tromey <tromey@adacore.com>
3692
3693 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3694 help. Add usage.
3695
4888741a
TT
36962020-07-28 Tom Tromey <tromey@adacore.com>
3697
3698 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3699 <DW_OP_GNU_variable_value>: Cast to address type.
3700
4d46f402
KR
37012020-07-28 Kamil Rytarowski <n54@gmx.com>
3702
3703 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3704 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3705 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3706 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3707 (nbsd_get_siginfo_type): New.
3708 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3709 (_initialize_nbsd_tdep): New.
3710
d70f978b
L
37112020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3712
3713 PR binutils/26301
3714 * configure: Regenerated.
3715
377170fa
L
37162020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3717
3718 PR binutils/26301
3719 * configure: Regenerated.
3720
43d5901d
AB
37212020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * python/py-frame.c: Remove 'user-regs.h' include.
3724 (frapy_read_register): Rewrite to make use of
3725 gdbpy_parse_register_id.
3726 * python/py-registers.c (gdbpy_parse_register_id): New function,
3727 moved here from python/py-unwind.c. Updated the return type, and
3728 also accepts register descriptor objects.
3729 * python/py-unwind.c: Remove 'user-regs.h' include.
3730 (pyuw_parse_register_id): Moved to python/py-registers.c.
3731 (unwind_infopy_add_saved_register): Update to use
3732 gdbpy_parse_register_id.
3733 (pending_framepy_read_register): Likewise.
3734 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3735
14fa8fb3
AB
37362020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * python/py-registers.c: Add 'user-regs.h' include.
3739 (register_descriptor_iter_find): New function.
3740 (register_descriptor_iterator_object_methods): New static global
3741 methods array.
3742 (register_descriptor_iterator_object_type): Add pointer to methods
3743 array.
3744
ddce1758
JB
37452020-07-27 John Baldwin <jhb@FreeBSD.org>
3746
3747 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3748 for all architectures on FreeBSD 11.3 and later.
3749
a4089f52
TT
37502020-07-27 Tom Tromey <tromey@adacore.com>
3751
3752 * gcore.h (load_corefile): Don't declare.
3753
95420d30
TV
37542020-07-27 Tom de Vries <tdevries@suse.de>
3755
3756 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3757 * config.in: Regenerate.
3758 * configure: Regenerate.
3759
05a6b8c2
EZ
37602020-07-26 Eli Zaretskii <eliz@gnu.org>
3761
3762 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3763 ws2tcpip.h. When checking whether socklen_t type is defined, use
3764 ws2tcpip.h if it is available and sys/socket.h isn't.
3765 * configure: Regenerate.
3766 * config.in: Regenerate.
3767
e79eb02f
AB
37682020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 PR fortran/23051
3771 PR fortran/26139
3772 * valops.c (value_ind): Pass address to
3773 readjust_indirect_value_type.
3774 * value.c (readjust_indirect_value_type): Make parameter
3775 non-const, and add extra address parameter. Resolve original type
3776 before using it.
3777 * value.h (readjust_indirect_value_type): Update function
3778 signature and comment.
3779
876518dd
TV
37802020-07-25 Tom de Vries <tdevries@suse.de>
3781
3782 PR symtab/26243
3783 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3784 entries.
3785
f6720b1c
AM
37862020-07-24 Aaron Merey <amerey@redhat.com>
3787
3788 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3789 * configure: Rebuild.
3790
513487e1
KB
37912020-07-23 Kevin Buettner <kevinb@redhat.com>
3792
3793 PR corefiles/26294
3794 * corelow.c (_initialize_corelow): Add period to help text
3795 for "maintenance print core-file-backed-mappings".
3796
e7bc9db8
PA
37972020-07-23 Pedro Alves <pedro@palves.net>
3798
3799 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3800 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3801 meanwhile.
3802 * frame.c (frame_cache_generation, get_frame_cache_generation):
3803 New.
3804 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3805 (get_prev_frame_if_no_cycle): On exception, don't touch
3806 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3807 * frame.h (get_frame_cache_generation): Declare.
3808
90fcc466
TV
38092020-07-23 Tom de Vries <tdevries@suse.de>
3810
3811 PR tui/26282
3812 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3813 New default constructor.
3814
78344df7
AB
38152020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3816
3817 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3818 exclude non-statement entries.
3819
b089853a
KB
38202020-07-22 Kevin Buettner <kevinb@redhat.com>
3821
3822 * NEWS (New commands): Mention new command
3823 "maintenance print core-file-backed-mappings".
3824
09c2f5d4
KB
38252020-07-22 Kevin Buettner <kevinb@redhat.com>
3826
3827 * corelow.c (gdbcmd.h): Include.
3828 (core_target::info_proc_mappings): New method.
3829 (get_current_core_target): New function.
3830 (maintenance_print_core_file_backed_mappings): New function.
3831 (_initialize_corelow): Add core-file-backed-mappings to
3832 "maint print" commands.
3833
9c5ec5c2 38342020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3835
9c5ec5c2
KB
3836 * linux-tdep.c (dump_note_entry_p): New function.
3837 (linux_dump_mapping_p_ftype): New typedef.
3838 (linux_find_memory_regions_full): Add new parameter,
3839 should_dump_mapping_p.
3840 (linux_find_memory_regions): Adjust call to
3841 linux_find_memory_regions_full.
3842 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3843 call to linux_find_memory_regions_full.
3844
db082f59
KB
38452020-07-22 Kevin Buettner <kevinb@redhat.com>
3846
3847 * corelow.c (solist.h, unordered_map): Include.
3848 (class core_target): Add field m_core_file_mappings and
3849 method build_file_mappings.
3850 (core_target::core_target): Call build_file_mappings.
3851 (core_target::~core_target): Free memory associated with
3852 m_core_file_mappings.
3853 (core_target::build_file_mappings): New method.
3854 (core_target::xfer_partial): Use m_core_file_mappings
3855 for memory transfers.
3856 * linux-tdep.c (linux_read_core_file_mappings): New
3857 function.
3858 (linux_core_info_proc_mappings): Rewrite to use
3859 linux_read_core_file_mappings.
3860 (linux_init_abi): Register linux_read_core_file_mappings.
3861
7e183d27
KB
38622020-07-22 Kevin Buettner <kevinb@redhat.com>
3863
3864 * arch-utils.c (default_read_core_file_mappings): New function.
3865 * arch-utils.c (default_read_core_file_mappings): Declare.
3866 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3867 * gdbarch.h, gdbarch.c: Regenerate.
3868
2735d421
KB
38692020-07-22 Kevin Buettner <kevinb@redhat.com>
3870
3871 PR corefiles/25631
3872 * corelow.c (core_target:xfer_partial): Revise
3873 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3874 case after first checking the stratum beneath the core
3875 target.
3876 (has_all_memory): Return true.
3877 * target.c (raw_memory_xfer_partial): Revise comment
3878 regarding use of has_all_memory.
3879
e56cb451
KB
38802020-07-22 Kevin Buettner <kevinb@redhat.com>
3881
3882 * exec.h (section_table_xfer_memory): Revise declaration,
3883 replacing section name parameter with an optional callback
3884 predicate.
3885 * exec.c (section_table_xfer_memory): Likewise.
3886 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3887 of section_table_xfer_memory.
3888
32fa152e
TT
38892020-07-22 Tom Tromey <tromey@adacore.com>
3890
3891 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3892 lookup_symbol_search_name.
3893
a67a1c41
AB
38942020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3895
3896 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3897 redundant local variable.
3898 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3899 reference, not pointer, update code accordingly.
3900
a7b4ff4f
SM
39012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3902 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903
3904 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3905 * jit.c (jit_breakpoint_re_set_internal): Use the
3906 `skip_jit_symbol_lookup` field.
3907
2340e834
SM
39082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3909 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3910
3911 * jit.c (jit_read_descriptor): Define the descriptor address once,
3912 use twice.
3913 (jit_breakpoint_deleted): Move the declaration of the loop variable
3914 `iter` into the loop header.
3915 (jit_breakpoint_re_set_internal): Move the declaration of the local
3916 variable `objf_data` to the first point of definition.
3917 (jit_event_handler): Move the declaration of local variables
3918 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3919 Rename `objf` to `jited`.
3920
c1072906
SM
39212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3922
3923 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3924 Remove.
3925 * jit.c (get_jiter_objfile_data): Update.
3926
c8474dc3
TBA
39272020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3928 Simon Marchi <simon.marchi@polymtl.ca>
3929
3930 * jit.c (struct jit_program_space_data): Remove.
3931 (jit_program_space_key): Remove.
3932 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3933 stuff.
3934 (get_jit_program_space_data): Remove.
3935 (jit_breakpoint_deleted): Iterate on all of the program space's
3936 objfiles.
3937 (jit_inferior_init): Likewise.
3938 (jit_breakpoint_re_set_internal): Likewise. Also change return
3939 type to void.
3940 (jit_breakpoint_re_set): Pass current_program_space to
3941 jit_breakpoint_re_set_internal.
3942
77208eb7
SM
39432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3944
3945 * jit.h (struct jiter_objfile_data) <cached_code_address,
3946 jit_breakpoint>: Move to here from ...
3947 * jit.c (jit_program_space_data): ... here.
3948 (jiter_objfile_data::~jiter_objfile_data): Update.
3949 (jit_breakpoint_deleted): Update.
3950 (jit_breakpoint_re_set_internal): Update.
3951
8c1c720f
SM
39522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3953
3954 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3955 checks.
3956 (jit_read_descriptor): Remove NULL check.
3957 (jit_event_handler): Add an assertion.
3958
0e74a041
SM
39592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3960
3961 * jit.h (struct jit_objfile_data): Split into...
3962 (struct jiter_objfile_data): ... this ...
3963 (struct jited_objfile_data): ... and this.
3964 * objfiles.h (struct objfile) <jit_data>: Remove.
3965 <jiter_data, jited_data>: New fields.
3966 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3967 (jiter_objfile_data::~jiter_objfile_data): ... this.
3968 (get_jit_objfile_data): Rename to ...
3969 (get_jiter_objfile_data): ... this.
3970 (add_objfile_entry): Update.
3971 (jit_read_descriptor): Use get_jiter_objfile_data.
3972 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3973 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3974 (jit_inferior_exit_hook): Use objfile's jited_data field.
3975
238b5c9f
SM
39762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * jit.h: Forward-declare `struct minimal_symbol`.
3979 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3980 constructor, destructor, and an objfile* field.
3981 * jit.c (jit_objfile_data): Remove.
3982 (struct jit_objfile_data): Migrate from here to jit.h.
3983 (jit_objfile_data::~jit_objfile_data): New destructor
3984 implementation with code moved from free_objfile_data.
3985 (free_objfile_data): Delete.
3986 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3987 (jit_find_objf_with_entry_addr): Ditto.
3988 (jit_inferior_exit_hook): Ditto.
3989 (_initialize_jit): Remove the call to
3990 register_objfile_data_with_cleanup.
3991 * objfiles.h (struct objfile) <jit_data>: New field.
3992
fe053b9e
TBA
39932020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3994
3995 * jit.h: Forward-declare `struct objfile`.
3996 (jit_event_handler): Add a second parameter, the JITer objfile.
3997 * jit.c (jit_read_descriptor): Change the signature to take the
3998 JITer objfile as an argument instead of the jit_program_space_data.
3999 (jit_inferior_init): Update the call to jit_read_descriptor.
4000 (jit_event_handler): Use the new JITer objfile argument when calling
4001 jit_read_descriptor.
4002 * breakpoint.c (handle_jit_event): Update the call to
4003 jit_event_handler to pass the JITer objfile.
4004
4cec0c66
JB
40052020-07-21 John Baldwin <jhb@FreeBSD.org>
4006
4007 * gdbarch.c: Regenerate.
4008 * gdbarch.h: Regenerate.
4009 * gdbarch.sh (handle_segmentation_fault): Remove method.
4010 * infrun.c (handle_segmentation_fault): Remove.
4011 (print_signal_received_reason): Remove call to
4012 handle_segmentation_fault.
4013
0e42f66a
JB
40142020-07-21 John Baldwin <jhb@FreeBSD.org>
4015
4016 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4017 Rename to sparc64_linux_report_signal_info and add siggnal
4018 argument.
4019 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4020 instead of sparc64_linux_handle_segmentation_fault.
4021
77bdfeb2
JB
40222020-07-21 John Baldwin <jhb@FreeBSD.org>
4023
4024 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4025 i386_linux_report_signal_info instead of
4026 i386_linux_handle_segmentation_fault.
4027 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4028 to i386_linux_report_signal_info and add siggnal argument.
4029 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4030 of i386_linux_handle_segmentation_fault.
4031 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4032 to i386_linux_report_signal_info and add siggnal argument.
4033
ad97bfc5
JB
40342020-07-21 John Baldwin <jhb@FreeBSD.org>
4035
4036 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4037 hook if present.
4038
272bb05c
JB
40392020-07-21 John Baldwin <jhb@FreeBSD.org>
4040
4041 * gdbarch.c: Regenerate.
4042 * gdbarch.h: Regenerate.
4043 * gdbarch.sh (report_signal_info): New method.
4044 * infrun.c (print_signal_received_reason): Invoke gdbarch
4045 report_signal_info hook if present.
4046
baf8791e
AB
40472020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * python/py-registers.c : Add 'unordered_map' include.
4050 (gdbpy_new_reggroup): Renamed to...
4051 (gdbpy_get_reggroup): ...this. Update to only create register
4052 group descriptors when needed.
4053 (gdbpy_reggroup_iter_next): Update.
4054
f7306dac
AB
40552020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * python/py-registers.c (gdbpy_register_object_data): New static
4058 global.
4059 (gdbpy_register_object_data_init): New function.
4060 (gdbpy_new_register_descriptor): Renamed to...
4061 (gdbpy_get_register_descriptor): ...this, and update to reuse
4062 existing register descriptors where possible.
4063 (gdbpy_register_descriptor_iter_next): Update.
4064 (gdbpy_initialize_registers): Register new gdbarch data.
4065
05c309a8
SM
40662020-07-21 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * linux-nat.c (stopped_pids): Make static.
4069
d1fd641e
SM
40702020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4071
4072 PR ada/26235
4073 * gdbtypes.c (ada_discrete_type_low_bound,
4074 ada_discrete_type_high_bound): Handle undefined bounds.
4075
1de14d77
KR
40762020-07-21 Kamil Rytarowski <n54@gmx.com>
4077
4078 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4079 declaration.
4080 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4081 function.
4082
ed810cc7
JB
40832020-07-20 John Baldwin <jhb@FreeBSD.org>
4084
4085 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4086 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4087 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4088 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4089 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4090 method.
4091
ae5369e7
LC
40922020-07-20 Ludovic Courtès <ludo@gnu.org>
4093
4094 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4095 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4096 which are deprecated in Guile 3.0.
4097 * configure.ac (try_guile_versions): Add "guile-3.0".
4098 * configure (try_guile_versions): Regenerate.
4099 * NEWS: Update entry.
4100
68cf161c
LC
41012020-07-20 Ludovic Courtès <ludo@gnu.org>
4102 Doug Evans <dje@google.com>
4103
4104 PR gdb/21104
4105 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4106 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4107 USING_GUILE_BEFORE_2_2.
4108 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4109 Change type to 'scm_t_port_type *'.
4110 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4111 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4112 parameter and honor it. Update callers.
4113 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4114 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4115 functions.
4116 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4117 USING_GUILE_BEFORE_2_2.
4118 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4119 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4120 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4121 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4122 and 'SCM_PORT_TYPE'.
4123 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4124 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4125 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4126 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4127 [!USING_GUILE_BEFORE_2_2]: New functions.
4128 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4129 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4130 'gdbscm_memory_port_read'.
4131 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4132 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4133 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4134 function.
4135 (ioscm_init_memory_port): Remove.
4136 (ioscm_init_memory_port_stream): New function
4137 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4138 function.
4139 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4140 Return scm_from_uint (0).
4141 (gdbscm_set_memory_port_read_buffer_size_x)
4142 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4143 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4144 Return scm_from_uint (0).
4145 (gdbscm_set_memory_port_write_buffer_size_x)
4146 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4147 * configure.ac (try_guile_versions): Add "guile-2.2".
4148 * configure: Regenerate.
4149 * NEWS: Add entry.
4150
aee91db3
TT
41512020-07-18 Tom Tromey <tom@tromey.com>
4152
4153 * linux-nat.c (linux_multi_process): Remove.
4154 (linux_nat_target::supports_multi_process): Return true.
4155
0e267416
AB
41562020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4157
4158 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4159 (riscv_lookup_target_description): Return pointer out of
4160 unique_ptr.
4161 * target-descriptions.c (allocate_target_description): Add
4162 comment.
4163 (target_desc_deleter::operator()): Likewise.
4164 * target-descriptions.h (struct target_desc_deleter): Moved to
4165 gdbsupport/tdesc.h.
4166 (target_desc_up): Likewise.
4167
f80c8ec4
TT
41682020-07-17 Tom Tromey <tromey@adacore.com>
4169
4170 * linux-nat.c (linux_nat_target::supports_non_stop)
4171 (linux_nat_target::always_non_stop_p): Use "true".
4172 (linux_nat_target::supports_disable_randomization): Use "true" and
4173 "false".
4174
d0ce17d8
CT
41752020-07-16 Caroline Tice <cmtice@google.com>
4176
4177 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4178 (RNGLIST_HEADER_SIZE64): New constant definition.
4179 (struct dwop_section_names): Add rnglists_dwo.
4180 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4181 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4182 (struct dwo_sections): Add rnglists field.
4183 (read_attribut_reprocess): Add tag parameter.
4184 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4185 (cu_debug_rnglists_section): New function (decl & definition).
4186 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4187 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4188 die whose range is being checked; get rnglist section from
4189 cu_debug_rnglists_section, to get from either objfile or dwo file as
4190 appropriate. Add cases for DW_RLE_base_addressx,
4191 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4192 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4193 test inside if-condition and updating complaint message.
4194 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4195 dwarf2_rnglists_process.
4196 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4197 dwarf2_ranges_process.
4198 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4199 need_ranges_base and update comment appropriately. Also pass die tag
4200 to dwarf2_ranges_read.
4201 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4202 need_ranges_base and update comment appropriately. Also pass die tag
4203 to dwarf2_ranges_process.
4204 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4205 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4206 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4207 need_ranges_base and update comment appropriately. Also pass die tag
4208 to read_attribute_reprocess and dwarf2_ranges_read.
4209 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4210 and update function comment appropriately.
4211 (read_loclist_index): Call read_loclists_rnglists_header instead of
4212 read_loclist_header.
4213 (read_rnglist_index): New function.
4214 (read_attribute_reprocess): Add tag parameter. Add code for
4215 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4216 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4217
3dcc261c
AB
42182020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4219
4220 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4221 being resolved.
4222
ccb9eba6
AB
42232020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * arch-utils.c (show_architecture): Update formatting of messages.
4226
cf88be68
SM
42272020-07-12 Simon Marchi <simon.marchi@efficios.com>
4228
4229 * gdbtypes.h (struct type) <bounds>: Handle array and string
4230 types.
4231 * ada-lang.c (assign_aggregate): Use type::bounds on
4232 array/string type.
4233 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4234 * c-varobj.c (c_number_of_children): Likewise.
4235 (c_describe_child): Likewise.
4236 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4237 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4238 (f_type_print_base): Likewise.
4239 * f-valprint.c (f77_array_offset_tbl): Likewise.
4240 (f77_get_upperbound): Likewise.
4241 (f77_print_array_1): Likewise.
4242 * guile/scm-type.c (gdbscm_type_range): Likewise.
4243 * m2-typeprint.c (m2_array): Likewise.
4244 (m2_is_long_set_of_type): Likewise.
4245 * m2-valprint.c (get_long_set_bounds): Likewise.
4246 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4247 * python/py-type.c (typy_range): Likewise.
4248 * rust-lang.c (rust_internal_print_type): Likewise.
4249 * type-stack.c (type_stack::follow_types): Likewise.
4250 * valarith.c (value_subscripted_rvalue): Likewise.
4251 * valops.c (value_cast): Likewise.
4252
509971ae
SM
42532020-07-12 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4256 callers to use the equivalent accessor methods.
4257
107406b7
SM
42582020-07-12 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4261 (struct type) <bit_stride>: New method.
4262 (TYPE_BIT_STRIDE): Remove.
4263 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4264
bb789949
SM
42652020-07-12 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4268 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4269 callers to use the equivalent accessor methods instead.
4270
39498edb
SM
42712020-07-12 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4274 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4275 callers to use the equivalent accessor methods instead.
4276
3b606f38
SM
42772020-07-12 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4280 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4281 to use dynamic_prop::kind.
4282
064d9cb9
SM
42832020-07-12 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4286 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4287 to get the bound property's kind and check against
4288 PROP_UNDEFINED.
4289
5537ddd0
SM
42902020-07-12 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4293 all callers to use type::range_bounds followed by
4294 dynamic_prop::{low,high}.
4295
8c2e4e06
SM
42962020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4297
4298 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4299 const_val, set_const_val, baton, set_locexpr, set_loclist,
4300 set_addr_offset, variant_parts, set_variant_parts,
4301 original_type, set_original_type>: New methods.
4302 <kind>: Rename to...
4303 <m_kind>: ... this. Update all users to use the new methods
4304 instead.
4305 <data>: Rename to...
4306 <m_data>: ... this. Update all users to use the new methods
4307 instead.
4308
7c6f2712
SM
43092020-07-12 Simon Marchi <simon.marchi@efficios.com>
4310
4311 * gdbtypes.c (get_discrete_bounds): Return failure if
4312 the range type's bounds are not both defined and constant
4313 values.
4314 (get_array_bounds): Update comment. Remove undefined bound check.
4315
599088e3
SM
43162020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4317
4318 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4319 the type::bounds method directly.
4320
c4dfcb36
SM
43212020-07-12 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4324 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4325 are used to set the range type's bounds to use set_bounds.
4326
0a278aa7
PW
43272020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4328
4329 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4330
cce20f10
PA
43312020-07-10 Pedro Alves <pedro@palves.net>
4332
4333 * gdbthread.h (inferior_ref): Define.
4334 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4335 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4336 * thread.c
4337 (scoped_restore_current_thread::restore):
4338 Adjust to gdb::ref_ptr.
4339 (scoped_restore_current_thread::~scoped_restore_current_thread):
4340 Remove manual decref handling.
4341 (scoped_restore_current_thread::scoped_restore_current_thread):
4342 Adjust to use
4343 inferior_ref::new_reference/thread_info_ref::new_reference.
4344 Incref the thread before calling get_frame_id instead of after.
4345 Let TARGET_CLOSE_ERROR propagate.
4346
6d7aa592
PA
43472020-07-10 Pedro Alves <pedro@palves.net>
4348
4349 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4350 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4351 NOT_AVAILABLE_ERROR.
4352 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4353 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4354
b3e3a4c1
SM
43552020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4356 Pedro Alves <pedro@palves.net>
4357
4358 PR gdb/26199
4359 * infrun.c (threads_are_resumed_pending_p): Delete.
4360 (do_target_wait): Remove threads_are_executing and
4361 threads_are_resumed_pending_p checks from the inferior_matches
4362 lambda. Update comments.
4363
d6cc5d98
PA
43642020-07-10 Pedro Alves <pedro@palves.net>
4365
4366 PR gdb/26199
4367 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4368 executing threads.
4369
7d3badc6
PA
43702020-07-10 Pedro Alves <pedro@palves.net>
4371
4372 PR gdb/26199
4373 * infrun.c (handle_no_resumed): Handle multiple targets.
4374
42bd97a6
PA
43752020-07-10 Pedro Alves <pedro@palves.net>
4376
4377 PR gdb/26199
4378 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4379 target_is_async_p.
4380
43667cc6
PA
43812020-07-10 Pedro Alves <pedro@palves.net>
4382
4383 PR gdb/26199
4384 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4385 threads, not all threads.
4386
96118d11
PA
43872020-07-10 Pedro Alves <pedro@palves.net>
4388
4389 PR gdb/26199
4390 * remote.c (remote_target::open_1): Pass remote target pointer as
4391 data to create_async_event_handler.
4392 (remote_async_inferior_event_handler): Mark async event handler
4393 before returning if the remote target still has either pending
4394 events or unacknowledged notifications.
4395
54904d81
JB
43962020-07-10 John Baldwin <jhb@FreeBSD.org>
4397
4398 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4399 declaration.
4400 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4401 function.
4402
f37e5866
JB
44032020-07-09 John Baldwin <jhb@FreeBSD.org>
4404
4405 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4406 inferior_ptid.
4407
fc238d4a
JB
44082020-07-09 John Baldwin <jhb@FreeBSD.org>
4409
4410 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4411 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4412 AT_FREEBSD_PS_STRINGS.
4413
6e2469ff
HD
44142020-07-08 Hannes Domani <ssbssa@yahoo.de>
4415
4416 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4417 of debugfile path on Windows.
4418
d1076c41
JB
44192020-07-08 John Baldwin <jhb@FreeBSD.org>
4420
4421 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4422 argument to 'data'.
4423
15f3b077
TT
44242020-07-08 Tom Tromey <tromey@adacore.com>
4425
4426 * ada-lang.c (ada_exception_message_1): Use read_memory.
4427
9fc501fd
AB
44282020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4429
4430 PR python/22748
4431 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4432 special handling for inline frames.
4433 * findvar.c (value_of_register_lazy): Skip inline frames when
4434 creating lazy register values.
4435 * frame.c (frame_id_computed_p): Delete definition.
4436 * frame.h (frame_id_computed_p): Delete declaration.
4437
64cb3757
AB
44382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * NEWS: Mention additions to Python API.
4441 * python/py-arch.c (archpy_register_groups): New function.
4442 (arch_object_methods): Add 'register_groups' method.
4443 * python/py-registers.c (reggroup_iterator_object): New struct.
4444 (reggroup_object): New struct.
4445 (gdbpy_new_reggroup): New function.
4446 (gdbpy_reggroup_to_string): New function.
4447 (gdbpy_reggroup_name): New function.
4448 (gdbpy_reggroup_iter): New function.
4449 (gdbpy_reggroup_iter_next): New function.
4450 (gdbpy_new_reggroup_iterator): New function
4451 (gdbpy_initialize_registers): Register new types.
4452 (reggroup_iterator_object_type): Define new Python type.
4453 (gdbpy_reggroup_getset): New static global.
4454 (reggroup_object_type): Define new Python type.
4455 * python/python-internal.h
4456
0f767f94
AB
44572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4460 * python/py-arch.c (archpy_registers): New function.
4461 (arch_object_methods): Add 'registers' method.
4462 * python/py-registers.c: New file.
4463 * python/python-internal.h
4464 (gdbpy_new_register_descriptor_iterator): Declare.
4465 (gdbpy_initialize_registers): Declare.
4466 * python/python.c (do_start_initialization): Call
4467 gdbpy_initialize_registers.
4468 * NEWS: Mention additions to the Python API.
4469
87dbc774
AB
44702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * NEWS: Mention new Python API method.
4473 * python/py-unwind.c (pending_framepy_architecture): New function.
4474 (pending_frame_object_methods): Add architecture method.
4475
3bc98c0c
AB
44762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4477
4478 * gdbarch.c: Regenerate.
4479 * gdbarch.h: Regenerate.
4480 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4481 (gdbarch_data): Use internal_error for the case where
4482 deprecated_set_gdbarch_data was originally needed.
4483 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4484 and use passed in obstack.
4485 (libunwind_frame_set_descr): Should no longer get back NULL from
4486 gdbarch_data.
4487 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4488 type.
4489 * user-regs.c (user_regs_init): Update parameters, and use passed
4490 in obstack.
4491 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4492 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4493
d8cc8af6
TV
44942020-07-06 Tom de Vries <tdevries@suse.de>
4495
4496 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4497 End-Of-Sequence in lte_is_less_than.
4498 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4499 "gdb: Don't reorder line table entries too much when sorting".
4500
947f7597
TV
45012020-07-06 Tom de Vries <tdevries@suse.de>
4502
4503 PR tui/26205
4504 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4505
1e7c1b22
TV
45062020-07-05 Tom de Vries <tdevries@suse.de>
4507
4508 PR build/26187
4509 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4510 std::uncaught_exceptions instead of deprecated
4511 std::uncaught_exception.
4512
a36158ec
SM
45132020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4514
4515 * macroexp.h (macro_stringify): Return
4516 gdb::unique_xmalloc_ptr<char>.
4517 * macroexp.c (macro_stringify): Likewise.
4518 * macrotab.c (fixup_definition): Update.
4519
14d960c8
SM
45202020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4521
4522 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4523 (lex_one_token): Update.
4524 * macroexp.c (struct macro_buffer) <release>: Return
4525 gdb::unique_xmalloc_ptr<char>.
4526 (macro_stringify): Update.
4527 (macro_expand): Update.
4528 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4529 * macroexp.h (macro_expand_next): Likewise.
4530
211d5b1c
SM
45312020-07-02 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * macroexp.h (macro_lookup_ftype): Remove.
4534 (macro_expand, macro_expand_once, macro_expand_next): Remove
4535 lookup function parameters, add scope parameter.
4536 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4537 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4538 * macroscope.h (standard_macro_lookup): Change parameter type
4539 to macro_scope.
4540 * macroscope.c (standard_macro_lookup): Likewise.
4541 * c-exp.y (lex_one_token): Update.
4542 * macrocmd.c (macro_expand_command): Likewise.
4543 (macro_expand_once_command): Likewise.
4544
b1a35af2
SM
45452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4546
4547 * inf-loop.c (inferior_event_handler): Remove client_data param.
4548 * inf-loop.h (inferior_event_handler): Likewise.
4549 * infcmd.c (step_1): Adjust.
4550 * infrun.c (proceed): Adjust.
4551 (fetch_inferior_event): Remove client_data param.
4552 (infrun_async_inferior_event_handler): Adjust.
4553 * infrun.h (fetch_inferior_event): Remove `void *` param.
4554 * linux-nat.c (handle_target_event): Adjust.
4555 * record-btrace.c (record_btrace_handle_async_inferior_event):
4556 Adjust.
4557 * record-full.c (record_full_async_inferior_event_handler):
4558 Adjust.
4559 * remote.c (remote_async_inferior_event_handler): Adjust.
4560
1cdf9e33
TT
45612020-07-01 Tom Tromey <tom@tromey.com>
4562
4563 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4564 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4565
32c1e210
TT
45662020-07-01 Tom Tromey <tom@tromey.com>
4567
4568 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4569 tui_gen_win_info.
4570 (tui_win_info::make_window): Merge with
4571 tui_gen_win_info::make_window.
4572 (tui_win_info::make_visible): Move from tui_gen_win_info.
4573 * tui/tui-win.c (tui_win_info::max_width): Move from
4574 tui_gen_win_info.
4575 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4576 type.
4577 <window_factory>: Likewise.
4578 * tui/tui-layout.c (tui_win_info::resize): Move from
4579 tui_gen_win_info.
4580 (make_standard_window): Change return type.
4581 (get_locator_window, tui_get_window_by_name): Likewise.
4582 (tui_layout_window::apply): Remove a cast.
4583 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4584 (struct tui_win_info): Merge with tui_gen_win_info.
4585 (struct tui_gen_win_info): Remove.
4586
a30cb6da
TT
45872020-07-01 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-stack.h (struct tui_locator_window): Derive from
4590 tui_win_info.
4591 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4592 <can_box>: New method.
4593
1eb2161f
TT
45942020-07-01 Tom Tromey <tom@tromey.com>
4595
4596 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4597
7134f2eb
TT
45982020-07-01 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-regs.c (tui_data_window::display_registers_from)
4601 (tui_data_window::display_registers_from)
4602 (tui_data_window::first_data_item_displayed)
4603 (tui_data_window::delete_data_content_windows): Update.
4604 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4605 Remove.
4606 (tui_data_window::check_register_values): Update.
4607 (tui_data_item_window::rerender): Add parameters. Update.
4608 (tui_data_item_window::refresh_window): Remove.
4609 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4610 virtual.
4611 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4612 tui_gen_win_info.
4613 <refresh_window, max_height, min_height>: Remove.
4614 <rerender>: Add parameters.
4615 <x, y, visible>: New members.
4616 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4617 <m_item_width>: New member.
4618
22b7b041
TT
46192020-07-01 Tom Tromey <tom@tromey.com>
4620
4621 * tui/tui-regs.c (tui_data_window::show_register_group)
4622 (tui_data_window::check_register_values): Update.
4623 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4624 from item_no.
4625
c9753adb
TT
46262020-07-01 Tom Tromey <tom@tromey.com>
4627
4628 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4629 useless "if".
4630
9ab26b4a
TT
46312020-07-01 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4634 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4635
e555083f
TT
46362020-07-01 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4639 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4640 (struct tui_line_or_address): Move from tui-data.h.
4641 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4642 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4643 (tui_cmd_window, tui_source_window_base, tui_source_window)
4644 (tui_disasm_window): Don't declare.
4645 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4646 to tui-winsource.h.
4647 (SINGLE_KEY): Move to tui-stack.c.
4648
7a02bab7
TT
46492020-07-01 Tom Tromey <tom@tromey.com>
4650
4651 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4652 std::string.
4653 * tui/tui-regs.c (class tab_expansion_file): New.
4654 (tab_expansion_file::write): New method.
4655 (tui_register_format): Change return type. Use
4656 tab_expansion_file.
4657 (tui_get_register, tui_data_window::display_registers_from)
4658 (tui_data_item_window::rerender): Update.
4659 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4660 * tui/tui-io.c (tui_expand_tabs): Remove.
4661
ea68593b
TT
46622020-07-01 Tom Tromey <tom@tromey.com>
4663
4664 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4665
a8caed5d
FS
46662020-07-01 Fangrui Song <maskray@google.com>
4667
4668 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4669
9cdf9820
AKS
46702020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4671
4672 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4673 forms for DW_AT_associated and DW_AT_allocated attributes,
4674 which is already checked in function attr_to_dynamic_prop.
4675
a1520ad8
TT
46762020-06-30 Tom Tromey <tromey@adacore.com>
4677
4678 * dwarf2/read.c (quirk_rust_enum): Correctly call
4679 alloc_rust_variant for default-less enum.
4680
5ac58899
TT
46812020-06-30 Tom Tromey <tromey@adacore.com>
4682
4683 PR build/26183:
4684 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4685 gdb::to_string.
4686
19b187a9
SM
46872020-06-29 Simon Marchi <simon.marchi@efficios.com>
4688
4689 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4690 * gdbarch.h: Re-generate.
4691
cd4c4c07
TT
46922020-06-28 Tom Tromey <tom@tromey.com>
4693
4694 * command.h (cmd_types): Remove.
4695 (cmd_type): Don't declare.
4696 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4697 typedef.
4698 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4699 * cli/cli-decode.c (cmd_type): Remove.
4700
05779d57
PA
47012020-06-27 Pedro Alves <palves@redhat.com>
4702
4703 * fork-child.c (prefork_hook): Adjust.
4704 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4705 Delete.
4706 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4707 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4708 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4709 Remove declarations.
4710 (struct inferior) <set_tty, tty>: New methods.
4711 (struct inferior) <terminal>: Rename to ...
4712 (struct inferior) <m_terminal>: ... this and make private.
4713 * main.c (captured_main_1): Adjust.
4714 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4715 (mi_cmd_inferior_tty_show): Adjust.
4716 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4717 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4718
1776e3e5
NA
47192020-06-26 Nick Alcock <nick.alcock@oracle.com>
4720
4721 * configure.ac: Add --enable-libctf: handle --disable-static
4722 properly.
4723 * acinclude.m4: sinclude ../config/enable.m4.
4724 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4725 (LIBCTF): Substitute in.
4726 (CTF_DEPS): New, likewise.
4727 (CLIBS): libctf needs symbols from libbfd: move earlier.
4728 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4729 flags.
4730 * ctfread.c: Surround in ENABLE_LIBCTF.
4731 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4732 * configure: Regenerate.
4733 * config.in: Likewise.
4734
58373b80
SM
47352020-06-25 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4738
277474ee
SM
47392020-06-25 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * inferior.h (struct inferior) <terminal>: Change type to
4742 gdb::unique_xmalloc_ptr<char>.
4743 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4744 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4745 field, adjust to unique pointer.
4746 (get_inferior_io_terminal): Adjust to unique pointer.
4747
6d74da72
AB
47482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4751 registers, not just the known core set of registers.
4752
2e52d038
AB
47532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4754
4755 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4756 fflags, frm, and fcsr registers.
4757 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4758 restore groups.
4759 (riscv_tdesc_unknown_reg): New function.
4760 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4761 tdesc_use_registers.
4762 * riscv-tdep.h (struct gdbarch_tdep): Add
4763 unknown_csrs_first_regnum, unknown_csrs_count,
4764 duplicate_fflags_regnum, duplicate_frm_regnum, and
4765 duplicate_fcsr_regnum fields.
4766
be64fd07
AB
47672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4768
4769 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4770 callback, use the callback (when not null) to help number unknown
4771 registers.
4772 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4773 (tdesc_use_registers): Add extra parameter to declaration.
4774
3b9fce96
AB
47752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4776
4777 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4778 in the file.
4779 (class riscv_pending_register_alias): Likewise.
4780 (riscv_register_feature::register_info): Change 'required_p' field
4781 to 'required', and change its type. Add 'check' member function.
4782 (riscv_register_feature::register_info::check): Define new member
4783 function.
4784 (riscv_xreg_feature): Change initialisation of 'required' field.
4785 (riscv_freg_feature): Likewise.
4786 (riscv_virtual_feature): Likewise.
4787 (riscv_csr_feature): Likewise.
4788 (riscv_check_tdesc_feature): Take extra parameter, the csr
4789 tdesc_feature, rewrite the function to use the new
4790 riscv_register_feature::register_info::check function.
4791 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4792
865bad26
AB
47932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4794
4795 * features/Makefile: Remove all references to the deleted files
4796 below.
4797 * features/riscv/32bit-csr.c: Deleted.
4798 * features/riscv/32bit-csr.xml: Deleted.
4799 * features/riscv/64bit-csr.c: Deleted.
4800 * features/riscv/64bit-csr.xml: Deleted.
4801 * features/riscv/rebuild-csr-xml.sh: Deleted.
4802
ed69cbc8
AB
48032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4806 whitespace error for declaration of names member variable.
4807 (struct riscv_register_feature): Add new prefer_first_name member
4808 variable, and fix whitespace error in declaration of registers.
4809 (riscv_xreg_feature): Initialize prefer_first_name field.
4810 (riscv_freg_feature): Likewise.
4811 (riscv_virtual_feature): Likewise.
4812 (riscv_csr_feature): Likewise.
4813 (riscv_register_name): Expand on comments. Remove register name
4814 modifications for CSR and virtual registers.
4815
4445e8f5
AB
48162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4817
4818 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4819 errors.
4820
767a879e
AB
48212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4822
4823 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4824 riscv-opc.h.
4825 (class riscv_pending_register_alias): New class.
4826 (riscv_check_tdesc_feature): Take vector of pending aliases and
4827 populate it as appropriate.
4828 (riscv_setup_register_aliases): Delete.
4829 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4830 to riscv_check_tdesc_feature in all cases. Use the vector to
4831 create the register aliases.
4832
bb6e55f3
RO
48332020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4834
4835 * sol2-tdep.c (sol2_static_transform_name): Remove.
4836 (sol2_init_abi): Don't register it.
4837 * gdbarch.sh (static_transform_name): Remove.
4838 * gdbarch.c, gdbarch.h: Regenerate.
4839
4840 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4841 gdbarch_static_transform_name.
4842 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4843 * stabsread.c (define_symbol) <'X'>: Remove.
4844 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4845 handling.
4846 <'V'>: Likewise.
4847 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4848 <'S'>: Remove call to gdbarch_static_transform_name.
4849
c6d36836
RO
48502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4851
4852 * procfs.c (procfs_pre_trace): New function.
4853 (procfs_target::create_inferior): Pass it to fork_inferior.
4854
a7e6196b
RO
48552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4856
4857 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4858 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4859 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4860 sol2-tdep.o, sparc-sol2-tdep.o.
4861 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4862 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4863 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4864 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4865
d412e696
RO
48662020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4867
4868 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4869 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4870 Call sol2_init_abi.
4871 Remove calls to set_gdbarch_skip_solib_resolver,
4872 set_gdbarch_core_pid_to_str.
4873 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4874 (i386_sol2_static_transform_name): Remove.
4875 (i386_sol2_init_abi): Call sol2_init_abi.
4876 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4877 set_gdbarch_static_transform_name,
4878 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4879 Use sol2_sigtramp_p.
4880 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4881 (sol2_sigtramp_p): New function.
4882 (sol2_static_transform_name): New function.
4883 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4884 (sol2_init_abi): New function.
4885 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4886 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4887 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4888 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4889 (sparc_sol2_static_transform_name): Remove.
4890 (sparc32_sol2_init_abi): Call sol2_init_abi.
4891 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4892 set_gdbarch_static_transform_name,
4893 set_gdbarch_skip_solib_resolver,
4894 set_gdbarch_core_pid_to_str.
4895 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4896 (sparc_sol2_static_transform_name): Remove
4897 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4898 call sol2_sigtramp_p.
4899 (sparc64_sol2_init_abi): Call sol2_init_abi.
4900 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4901 set_gdbarch_static_transform_name,
4902 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4903
a8654e7d
PW
49042020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4905
4906 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4907 * exec.c (validate_exec_file): If from_tty, set both
4908 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4909 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4910 and from_tty, unconditionally ask a confirmation.
4911
caa7fd04
AB
49122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4913
4914 * target-descriptions.c (tdesc_architecture_name): Protect against
4915 NULL pointer dereference.
4916 (maint_print_xml_tdesc_cmd): New function.
4917 (_initialize_target_descriptions): Register new 'maint print
4918 xml-tdesc' command and give it the filename completer.
4919 * NEWS: Mention new 'maint print xml-tdesc' command.
4920
fbf42f4e
AB
49212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * target-descriptions.c (class tdesc_compatible_info): New class.
4924 (struct target_desc): Change type of compatible vector.
4925 (tdesc_compatible_p): Update for change in type of
4926 target_desc::compatible.
4927 (tdesc_compatible_info_list): New function.
4928 (tdesc_compatible_info_arch_name): New function.
4929 (tdesc_add_compatible): Update for change in type of
4930 target_desc::compatible.
4931 (print_c_tdesc::visit_pre): Likewise.
4932
20821f4e
AB
49332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4936 whitespace to underscore.
4937 (maint_print_c_tdesc_cmd): Use fake filename for target
4938 descriptions that came from the target.
4939 (_initialize_target_descriptions): Add filename command completion
4940 for 'maint print c-tdesc'.
4941
1fb5ee62
SM
49422020-06-23 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4945 lines.
4946
fc3ecb3e
SM
49472020-06-23 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4950 lines.
4951 (dwarf2_find_location_expression): Likewise.
4952 (call_site_parameter_matches): Likewise.
4953 (dwarf2_compile_expr_to_ax): Likewise.
4954 (disassemble_dwarf_expression): Likewise.
4955 (loclist_describe_location): Likewise.
4956
236ef034
PA
49572020-06-23 Pedro Alves <palves@redhat.com>
4958
4959 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4960 progspace-and-thread.h. Include scoped-mock-context.h instead.
4961 (register_to_value_test): Use scoped_mock_context.
4962 * regcache.c: Include "scoped-mock-context.h".
4963 (cooked_read_test): Don't error out if a target is already pushed.
4964 Use scoped_mock_context. Adjust.
4965 * scoped-mock-context.h: New file.
4966
39e7ecca
AB
49672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4970 initializer.
4971 (ada_language::is_string_type_p): New member function.
4972 * c-lang.c (c_language_data): Delete la_is_string_type_p
4973 initializer.
4974 (cplus_language_data): Likewise.
4975 (asm_language_data): Likewise.
4976 (minimal_language_data): Likewise.
4977 * d-lang.c (d_language_data): Likewise.
4978 * f-lang.c (f_is_string_type_p): Delete function, implementation
4979 moved to f_language::is_string_type_p.
4980 (f_language_data): Delete la_is_string_type_p initializer.
4981 (f_language::is_string_type_p): New member function,
4982 implementation from f_is_string_type_p.
4983 * go-lang.c (go_is_string_type_p): Delete function, implementation
4984 moved to go_language::is_string_type_p.
4985 (go_language_data): Delete la_is_string_type_p initializer.
4986 (go_language::is_string_type_p): New member function,
4987 implementation from go_is_string_type_p.
4988 * language.c (language_defn::is_string_type_p): Define new member
4989 function.
4990 (default_is_string_type_p): Make static, add comment copied from
4991 header file.
4992 (unknown_language_data): Delete la_is_string_type_p initializer.
4993 (unknown_language::is_string_type_p): New member function.
4994 (auto_language_data): Delete la_is_string_type_p initializer.
4995 (auto_language::is_string_type_p): New member function.
4996 * language.h (language_data): Delete la_is_string_type_p field.
4997 (language_defn::is_string_type_p): Declare new function.
4998 (default_is_string_type_p): Delete desclaration, move comment to
4999 definition.
5000 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5001 moved to m2_language::is_string_type_p.
5002 (m2_language_data): Delete la_is_string_type_p initializer.
5003 (m2_language::is_string_type_p): New member function,
5004 implementation from m2_is_string_type_p.
5005 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5006 initializer.
5007 * opencl-lang.c (opencl_language_data): Likewise.
5008 * p-lang.c (pascal_is_string_type_p): Delete function,
5009 implementation moved to pascal_language::is_string_type_p.
5010 (pascal_language_data): Delete la_is_string_type_p initializer.
5011 (pascal_language::is_string_type_p): New member function,
5012 implementation from pascal_is_string_type_p.
5013 * rust-lang.c (rust_is_string_type_p): Delete function,
5014 implementation moved to rust_language::is_string_type_p.
5015 (rust_language_data): Delete la_is_string_type_p initializer.
5016 (rust_language::is_string_type_p): New member function,
5017 implementation from rust_is_string_type_p.
5018 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5019 is_string_type_p.
5020
4ffc13fb
AB
50212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * ada-lang.c (ada_language_data): Delete la_print_typedef
5024 initializer.
5025 (ada_language::print_typedef): New member function.
5026 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5027 (cplus_language_data): Likewise.
5028 (asm_language_data): Likewise.
5029 (minimal_language_data): Likewise.
5030 * d-lang.c (d_language_data): Likewise.
5031 * f-lang.c (f_language_data): Likewise.
5032 (f_language::print_typedef): New member function.
5033 * go-lang.c (go_language_data): Delete la_print_typedef
5034 initializer.
5035 * language.c (language_defn::print_typedef): Define member
5036 function.
5037 (unknown_language_data): Delete la_print_typedef initializer.
5038 (unknown_language::print_typedef): New member function.
5039 (auto_language_data): Delete la_print_typedef initializer.
5040 (auto_language::print_typedef): New member function.
5041 * language.h (language_data): Delete la_print_typedef field.
5042 (language_defn::print_typedef): Declare new member function.
5043 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5044 (default_print_typedef): Delete declaration.
5045 * m2-lang.c (m2_language_data): Delete la_print_typedef
5046 initializer.
5047 (m2_language::print_typedef): New member function.
5048 * objc-lang.c (objc_language_data): Delete la_print_typedef
5049 initializer.
5050 * opencl-lang.c (opencl_language_data): Likewise.
5051 * p-lang.c (pascal_language_data): Likewise.
5052 (pascal_language::print_typedef): New member function.
5053 * rust-lang.c (rust_print_typedef): Delete function,
5054 implementation moved to rust_language::print_typedef.
5055 (rust_language): Delete la_print_typedef initializer.
5056 (rust_language::print_typedef): New member function,
5057 implementation from rust_print_typedef.
5058 * typeprint.c (default_print_typedef): Delete.
5059
d711ee67
AB
50602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5063 (ada_language::printstr): New member function.
5064 * c-lang.c (c_language_data): Delete la_printstr initializer.
5065 (cplus_language_data): Likewise.
5066 (asm_language_data): Likewise.
5067 (minimal_language_data): Likewise.
5068 * d-lang.c (d_language_data): Likewise.
5069 * f-lang.c (f_printstr): Rename to f_language::printstr.
5070 (f_language_data): Delete la_printstr initializer.
5071 (f_language::printstr): New member function, implementation from
5072 f_printstr.
5073 * go-lang.c (go_language_data): Delete la_printstr initializer.
5074 * language.c (language_defn::printstr): Define new member
5075 function.
5076 (unk_lang_printstr): Delete.
5077 (unknown_language_data): Delete la_printstr initializer.
5078 (unknown_language::printstr): New member function.
5079 (auto_language_data): Delete la_printstr initializer.
5080 (auto_language::printstr): New member function.
5081 * language.h (language_data): Delete la_printstr field.
5082 (language_defn::printstr): Declare new member function.
5083 (LA_PRINT_STRING): Update call to printstr.
5084 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5085 (m2_language_data): Delete la_printstr initializer.
5086 (m2_language::printstr): New member function, implementation from
5087 m2_printstr.
5088 * objc-lang.c (objc_language_data): Delete la_printstr
5089 initializer.
5090 * opencl-lang.c (opencl_language_data): Likewise.
5091 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5092 (pascal_language_data): Delete la_printstr initializer.
5093 (pascal_language::printstr): New member function, implementation
5094 from pascal_printstr.
5095 * p-lang.h (pascal_printstr): Delete declaration.
5096 * rust-lang.c (rust_printstr): Update header comment.
5097 (rust_language_data): Delete la_printstr initializer.
5098 (rust_language::printstr): New member function.
5099
52b50f2c
AB
51002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5103 (ada_language::printchar): New member function.
5104 * c-lang.c (c_language_data): Delete la_printchar initializer.
5105 (cplus_language_data): Likewise.
5106 (asm_language_data): Likewise.
5107 (minimal_language_data): Likewise.
5108 * d-lang.c (d_language_data): Likewise.
5109 * f-lang.c (f_printchar): Rename to f_language::printchar.
5110 (f_language_data): Delete la_printchar initializer.
5111 (f_language::printchar): New member function, implementation from
5112 f_printchar.
5113 * go-lang.c (go_language_data): Delete la_printchar initializer.
5114 * language.c (unk_lang_printchar): Delete.
5115 (language_defn::printchar): Define new member function.
5116 (unknown_language_data): Delete la_printchar initializer.
5117 (unknown_language::printchar): New member function.
5118 (auto_language_data): Delete la_printchar initializer.
5119 (auto_language::printchar): New member function.
5120 * language.h (language_data): Delete la_printchar field.
5121 (language_defn::printchar): Declare new member function.
5122 (LA_PRINT_CHAR): Update call to printchar.
5123 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5124 (m2_language::printchar): New member function.
5125 * objc-lang.c (objc_language_data): Delete la_printchar
5126 initializer.
5127 * opencl-lang.c (opencl_language_data): Likewise.
5128 * p-lang.c (pascal_language_data): Delete la_printchar
5129 initializer.
5130 (pascal_language::printchar): New member function.
5131 * rust-lang.c (rust_printchar): Rename to
5132 rust_language::printchar.
5133 (rust_language_data): Delete la_printchar initializer.
5134 (rust_language::printchar): New member function, implementation
5135 from rust_printchar.
5136
ec8cec5b
AB
51372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5140 (ada_language_data): Delete la_emitchar initializer.
5141 (ada_language::emitchar): New member function, implementation from
5142 emit_char.
5143 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5144 (cplus_language_data): Likewise.
5145 (asm_language_data): Likewise.
5146 (minimal_language_data): Likewise.
5147 * d-lang.c (d_language_data): Likewise.
5148 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5149 (f_language_data): Delete la_emitchar initializer.
5150 (f_language::emitchar): New member function, implementation from
5151 f_emit_char.
5152 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5153 * language.c (unk_lang_emit_char): Delete.
5154 (language_defn::emitchar): New member function definition.
5155 (unknown_language_data): Delete la_emitchar initializer.
5156 (unknown_language::emitchar): New member function.
5157 (auto_language_data): Delete la_emitchar initializer.
5158 (auto_language::emitchar): New member function.
5159 * language.h (language_data): Delete la_emitchar field.
5160 (language_defn::emitchar): New member field declaration.
5161 (LA_EMIT_CHAR): Update call to emitchar.
5162 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5163 (m2_language_data): Delete la_emitchar initializer.
5164 (m2_language::emitchar): New member function, implementation from
5165 m2_emit_char.
5166 * objc-lang.c (objc_language_data): Delete la_emitchar
5167 initializer.
5168 * opencl-lang.c (opencl_language_data): Likewise.
5169 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5170 (pascal_language_data): Delete la_emitchar initializer.
5171 (pascal_language::emitchar): New member function, implementation
5172 from pascal_emit_char.
5173 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5174 (rust_language_data): Delete la_emitchar initializer.
5175 (rust_language::emitchar): New member function, implementation
5176 from rust_emitchar.
5177
1bf9c363
AB
51782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5181 (ada_language_data): Delete la_post_parser initializer.
5182 (ada_language::post_parser): New member function.
5183 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5184 (cplus_language_data): Likewise.
5185 (asm_language_data): Likewise.
5186 (minimal_language_data): Likewise.
5187 * d-lang.c (d_language_data): Likewise.
5188 * f-lang.c (f_language_data): Likewise.
5189 * go-lang.c (go_language_data): Likewise.
5190 * language.c (unknown_language_data): Likewise.
5191 (auto_language_data): Likewise.
5192 * language.h (language_data): Delete la_post_parser field.
5193 (language_defn::post_parser): New member function.
5194 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5195 * objc-lang.c (objc_language_data): Likewise.
5196 * opencl-lang.c (opencl_language_data): Likewise.
5197 * p-lang.c (pascal_language_data): Likewise.
5198 * parse.c (parse_exp_in_context): Update call to post_parser.
5199 (null_post_parser): Delete definition.
5200 * parser-defs.h (null_post_parser): Delete declaration.
5201 * rust-lang.c (rust_language_data): Delete la_post_parser
5202 initializer.
5203
87afa652
AB
52042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5205
5206 * ada-lang.c (parse): Rename to ada_language::parser.
5207 (ada_language_data): Delete la_parser initializer.
5208 (ada_language::parser): New member function, implementation from
5209 parse.
5210 * c-lang.c (c_language_data): Delete la_parser initializer.
5211 (cplus_language_data): Likewise.
5212 (asm_language_data): Likewise.
5213 (minimal_language_data): Likewise.
5214 * d-lang.c (d_language_data): Likewise.
5215 (d_language::parser): New member function.
5216 * f-lang.c (f_language_data): Delete la_parser initializer.
5217 (f_language::parser): New member function.
5218 * go-lang.c (go_language_data): Delete la_parser initializer.
5219 (go_language::parser): New member function.
5220 * language.c (unk_lang_parser): Delete.
5221 (language_defn::parser): Define new member function.
5222 (unknown_language_data): Delete la_parser initializer.
5223 (unknown_language::parser): New member function.
5224 (auto_language_data): Delete la_parser initializer.
5225 (auto_language::parser): New member function.
5226 * language.h (language_data): Delete la_parser field.
5227 (language_defn::parser): Declare new member function.
5228 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5229 (m2_language::parser): New member function.
5230 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5231 * opencl-lang.c (opencl_language_data): Likewise.
5232 * p-lang.c (pascal_language_data): Likewise.
5233 (pascal_language::parser): New member function.
5234 * parse.c (parse_exp_in_context): Update call to parser.
5235 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5236 (rust_language::parser): New member function.
5237
37825800
AB
52382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5239
5240 * top.c (print_gdb_configuration): Print --with-python-libdir
5241 configuration value.
5242
5b860c93
PW
52432020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * NEWS: Mention change to the alias command.
5246
cf00cd6f
PW
52472020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5248
5249 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5250 (alias_command_completer)
5251 (make_alias_options_def_group): New functions.
5252 (alias_opts, alias_option_defs): New struct and array.
5253 (alias_usage_error): Update usage.
5254 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5255 Use option framework.
5256 (_initialize_cli_cmds): Update alias command help.
5257 Update aliases command help.
5258 (show_user):
5259 Add NULL for new default_args lookup_cmd argument.
5260 (valid_command_p): Rename to validate_aliased_command.
5261 Add NULL for new default_args lookup_cmd argument. Verify that the
5262 aliased_command has no default args.
5263 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5264 (lookup_cmd_1, lookup_cmd): New argument default_args.
5265 (add_alias_cmd):
5266 Add NULL for new default_args lookup_cmd argument.
5267 (print_help_for_command): Show default args under the layout
5268 alias some_alias = some_aliased_cmd some_alias_default_arg.
5269 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5270 xfree default_args in destructor.
5271 * cli/cli-script.c (process_next_line, do_define_command):
5272 Add NULL for new default_args lookup_cmd argument.
5273 * command.h: Declare new default_args argument in lookup_cmd
5274 and lookup_cmd_1.
5275 * completer.c (complete_line_internal_1):
5276 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5277 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5278 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5279 Likewise.
5280 * infcmd.c (_initialize_infcmd): Likewise.
5281 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5282 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5283 * python/py-param.c (add_setshow_generic): Likewise.
5284 * remote.c (_initialize_remote): Likewise.
5285 * top.c (execute_command): Prepend default_args if command has some.
5286 (set_verbose):
5287 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5288 * tracepoint.c (validate_actionline, encode_actions_1):
5289 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5290
bd920864
TBA
52912020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5292
5293 * jit.c (jit_read_descriptor): Use bool as the return type.
5294 (jit_breakpoint_re_set_internal): Use bool as the return type.
5295 Invert the return value logic; return true if the jit breakpoint
5296 has been successfully initialized.
5297 (jit_inferior_init): Update the call to
5298 jit_breakpoint_re_set_internal.
5299
f8098322
PA
53002020-06-22 Pedro Alves <palves@redhat.com>
5301
5302 PR gdb/25939
5303 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5304 Use the current inferior instead. Don't return
5305 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5306 wait again.
5307 * sol-thread.c (sol_thread_target::wait): Don't reference
5308 inferior_ptid.
5309 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5310 (sol_update_thread_list_callback): Use the current inferior's pid
5311 instead of inferior_ptid.
5312
196535a6
RO
53132020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5314
5315 * procfs.c: Cleanup many comments.
5316
5317 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5318 (AFTER_WATCHFLAG): Replace by value.
5319
5320 (MAIN_PROC_NAME_FORMAT): Inline ...
5321 (create_procinfo): ... here.
5322
5323 (procfs_debug_inferior): Remove SYS_exec handling.
5324 (syscall_is_exec): Likewise.
5325 (procfs_set_exec_trap): Likewise.
5326
5327 (syscall_is_lwp_exit): Inline in callers.
5328 (syscall_is_exit): Likewise.
5329 (syscall_is_exec): Likewise.
5330 (syscall_is_lwp_create): Likewise.
5331
5332 (invalidate_cache): Remove #if 0 code.
5333
5334 (make_signal_thread_runnable): Remove.
5335 (procfs_target::resume): Remove #if 0 code.
5336
cf6f3e86
RO
53372020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5338
5339 PR gdb/25939
5340 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5341 call ...
5342 (procfs_target::create_inferior): ... here.
5343
48e9cc84
PW
53442020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5345
5346 * exec.c (validate_exec_file): Ensure the build-id is up to
5347 date by calling reopen_exec_file (that checks file timestamp
5348 to decide to re-read the file).
5349
3922b302
PA
53502020-06-18 Pedro Alves <palves@redhat.com>
5351
5352 PR gdb/25412
5353 * gdbthread.h (delete_thread, delete_thread_silent)
5354 (find_thread_ptid): Update comments.
5355 * thread.c (current_thread_): New global.
5356 (is_current_thread): Move higher, and reimplement.
5357 (inferior_thread): Reimplement.
5358 (set_thread_exited): Use bool. Add assertions.
5359 (add_thread_silent): Simplify thread-reuse handling by always
5360 calling delete_thread.
5361 (delete_thread): Remove intro comment.
5362 (find_thread_ptid): Skip exited threads.
5363 (switch_to_thread_no_regs): Write to current_thread_.
5364 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5365 INFERIOR_PTID. Clear current_thread_.
5366
6dbdab44
PA
53672020-06-18 Pedro Alves <palves@redhat.com>
5368
5369 * aix-thread.c (pd_update): Use switch_to_thread.
5370
2da4b788
PA
53712020-06-18 Pedro Alves <palves@redhat.com>
5372
5373 * ravenscar-thread.c (ravenscar_thread_target): Update.
5374 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5375 (ravenscar_thread_target::add_active_thread): ... this. Don't
5376 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5377 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5378
50838d1b
PA
53792020-06-18 Pedro Alves <palves@redhat.com>
5380
5381 * nat/windows-nat.c (current_windows_thread): Remove.
5382 * nat/windows-nat.h (current_windows_thread): Remove.
5383 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5384 Adjust.
5385 (display_selectors): Adjust to fetch the current
5386 windows_thread_info based on inferior_ptid.
5387 (fake_create_process): No longer write to current_windows_thread.
5388 (windows_nat_target::get_windows_debug_event):
5389 Don't set inferior_ptid or current_windows_thread.
5390 (windows_nat_target::wait): Adjust to not rely on
5391 current_windows_thread.
5392 (do_initial_windows_stuff): Now a method of windows_nat_target.
5393 Switch to the last_ptid thread.
5394 (windows_nat_target::attach): Adjust.
5395 (windows_nat_target::detach): Use switch_to_no_thread instead of
5396 writing to inferior_ptid directly.
5397 (windows_nat_target::create_inferior): Adjust.
5398
31ce04e9
PA
53992020-06-18 Pedro Alves <palves@redhat.com>
5400
5401 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5402
1ee1a363
PA
54032020-06-18 Pedro Alves <palves@redhat.com>
5404
5405 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5406 after creating it, instead of writing to inferior_ptid. Don't
5407 write to inferior_ptid.
5408
6d350754
PA
54092020-06-18 Pedro Alves <palves@redhat.com>
5410
5411 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5412
5d971d48
PA
54132020-06-18 Pedro Alves <palves@redhat.com>
5414
5415 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5416 it, instead of writing to inferior_ptid.
5417
86e57d1b
PA
54182020-06-18 Pedro Alves <palves@redhat.com>
5419
5420 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5421 to inferior_ptid.
5422
f2e1c129
PA
54232020-06-18 Pedro Alves <palves@redhat.com>
5424
5425 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5426 instead of writing to inferior_ptid directly.
5427
60db1b85
PA
54282020-06-18 Pedro Alves <palves@redhat.com>
5429
5430 * corelow.c (core_target::close): Use switch_to_no_thread instead
5431 of writing to inferior_ptid directly.
5432 (add_to_thread_list, core_target_open): Use switch_to_thread
5433 instead of writing to inferior_ptid directly.
5434
fe7d6a8d
PA
54352020-06-18 Pedro Alves <palves@redhat.com>
5436
5437 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5438 inferior_ptid.
5439 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5440 inferior_ptid.
5441 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5442 inferior_ptid directly.
5443 (darwin_nat_target::init_thread_list): Switch to thread, instead
5444 of writing to inferior_ptid.
5445 (darwin_nat_target::attach): Don't write to inferior_ptid.
5446 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5447
975f8708
PA
54482020-06-18 Pedro Alves <palves@redhat.com>
5449
5450 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5451 thread.
5452 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5453 Instead use switch_to_thread.
5454 (gnu_nat_target::detach): Use switch_to_no_thread
5455 instead of writing to inferior_ptid directly. Used passed-in
5456 inferior instead of looking up the inferior by pid.
5457
1a204730
PA
54582020-06-18 Pedro Alves <palves@redhat.com>
5459
5460 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5461 inferior_ptid.
5462
ebe84f23
PA
54632020-06-18 Pedro Alves <palves@redhat.com>
5464
5465 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5466 inferior_ptid.
5467 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5468 thread.
5469 (nto_procfs_target::detach): Avoid referencing
5470 inferior_ptid. Use switch_to_no_thread instead of writing to
5471 inferior_ptid directly.
5472 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5473 instead of writing to inferior_ptid directly.
5474 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5475 to thread.
5476
191f02e5
PA
54772020-06-18 Pedro Alves <palves@redhat.com>
5478
5479 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5480 after creating it, instead of writing to inferior_ptid.
5481 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5482 to inferior_ptid directly.
5483 (gdbsim_target::wait): Don't write to inferior_ptid.
5484
0ac55310
PA
54852020-06-18 Pedro Alves <palves@redhat.com>
5486
5487 * remote.c (remote_target::remote_notice_new_inferior): Use
5488 switch_to_thread instead of writing to inferior_ptid directly.
5489 (remote_target::add_current_inferior_and_thread): Use
5490 switch_to_no_thread instead of writing to inferior_ptid directly.
5491 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5492 and switch_to_thread instead of using set_current_inferior or
5493 writing to inferior_ptid directly.
5494
5233f39b
PA
54952020-06-18 Pedro Alves <palves@redhat.com>
5496
5497 * tracectf.c (ctf_target_open): Switch to added thread instead of
5498 writing to inferior_ptid directly.
5499 (ctf_target::close): Use switch_to_no_thread instead of writing to
5500 inferior_ptid directly.
5501
087e161b
PA
55022020-06-18 Pedro Alves <palves@redhat.com>
5503
5504 * tracefile-tfile.c (tfile_target_open): Don't write to
5505 inferior_ptid directly, instead switch to added thread.
5506 (tfile_target::close): Use switch_to_no_thread instead of writing
5507 to inferior_ptid directly.
5508
7fb43e53
PA
55092020-06-18 Pedro Alves <palves@redhat.com>
5510
5511 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5512 (procfs_target::detach): Use switch_to_no_thread
5513 instead of writing to inferior_ptid directly.
5514 (do_attach): Change return type to void. Switch to the added
5515 thread.
5516 (procfs_target::create_inferior): Switch to the added thread.
5517 (procfs_do_thread_registers): Don't write to inferior_ptid.
5518
18493a00
PA
55192020-06-18 Pedro Alves <palves@redhat.com>
5520
5521 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5522 of writing to inferior_ptid.
5523 (scoped_restore_exited_inferior): Delete.
5524 (handle_vfork_child_exec_or_exit): Simplify using
5525 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5526 instead of writing to inferior_ptid.
5527 (THREAD_STOPPED_BY): Delete.
5528 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5529 (thread_stopped_by_hw_breakpoint): Delete.
5530 (save_waitstatus): Use
5531 scoped_restore_current_thread+switch_to_thread, and call
5532 target_stopped_by_watchpoint instead of
5533 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5534 instead of thread_stopped_by_sw_breakpoint, and
5535 target_stopped_by_hw_breakpoint instead of
5536 thread_stopped_by_hw_breakpoint.
5537 (handle_inferior_event)
5538 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5539 inferior_ptid directly, nor
5540 set_current_inferior/set_current_program_space. Use
5541 switch_to_thread / switch_to_inferior_no_thread instead.
5542
a0776b13
PA
55432020-06-18 Pedro Alves <palves@redhat.com>
5544
5545 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5546 instead of writing to inferior_ptid.
5547
6155c136
PA
55482020-06-18 Pedro Alves <palves@redhat.com>
5549
5550 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5551 added thread.
5552 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5553 to the added thread.
5554 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5555 instead of writing to inferior_ptid.
5556
c5316fc6
PA
55572020-06-18 Pedro Alves <palves@redhat.com>
5558
5559 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5560 (register_to_value_test): Mock a program_space too. Heap-allocate
5561 the address space. Don't write to inferior_ptid. Use
5562 switch_to_thread instead.
5563
8df01799
PA
55642020-06-18 Pedro Alves <palves@redhat.com>
5565
5566 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5567 Delete.
5568 (find_signalled_thread()): New, factored out from
5569 linux_make_corefile_notes and adjusted to handle exited threads.
5570 (linux_make_corefile_notes): Adjust to use the new
5571 find_signalled_thread.
5572
41792d68
PA
55732020-06-18 Pedro Alves <palves@redhat.com>
5574
5575 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5576 of saving/restoring inferior_ptid.
5577
612f258a
TT
55782020-06-17 Tom Tromey <tom@tromey.com>
5579
5580 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5581 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5582 declare.
5583 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5584
efb763a5
SM
55852020-06-15 Simon Marchi <simon.marchi@efficios.com>
5586
5587 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5588 of partial symtabs.
5589
2951f6c0
SM
55902020-06-17 Simon Marchi <simon.marchi@efficios.com>
5591
5592 * regformats/reg-arm.dat: Remove.
5593 * regformats/reg-bfin.dat: Remove.
5594 * regformats/reg-cris.dat: Remove.
5595 * regformats/reg-crisv32.dat: Remove.
5596 * regformats/reg-m32r.dat: Remove.
5597 * regformats/reg-tilegx.dat: Remove.
5598 * regformats/reg-tilegx32.dat: Remove.
5599
7d458ea5
SM
56002020-06-17 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * features/Makefile (WHICH): Remove arm files.
5603 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5604 * regformats/arm/arm-with-neon.dat: Remove.
5605 * regformats/arm/arm-with-vfpv2.dat: Remove.
5606 * regformats/arm/arm-with-vfpv3.dat: Remove.
5607
3af96c0d
SM
56082020-06-17 Simon Marchi <simon.marchi@efficios.com>
5609
5610 * features/Makefile (XMLTOC): Remove rx.xml.
5611
b25e22fd
PA
56122020-06-17 Pedro Alves <palves@redhat.com>
5613
5614 * gdbthread.h (thread_control_state) <trap_expected> Update
5615 comments.
5616
a78a19b1
AB
56172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5618
5619 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5620 ada_language::lookup_symbol_nonlocal.
5621 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5622 (ada_language::lookup_symbol_nonlocal): New member function,
5623 implementation from ada_lookup_symbol_nonlocal.
5624 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5625 initializer.
5626 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5627 initializer.
5628 (cplus_language::lookup_symbol_nonlocal): New member function.
5629 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5630 (minimal_language_data) Likewise.
5631 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5632 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5633 initializer.
5634 (d_language::lookup_symbol_nonlocal): New member function.
5635 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5636 initializer.
5637 (f_language::lookup_symbol_nonlocal): New member function.
5638 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5639 initializer.
5640 * language.c (unknown_language_data): Likewise.
5641 (auto_language_data): Likewise.
5642 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5643 field.
5644 (language_defn::lookup_symbol_nonlocal): New member function.
5645 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5646 initializer.
5647 * objc-lang.c (objc_language_data): Likewise.
5648 * opencl-lang.c (opencl_language_data): Likewise.
5649 * p-lang.c (pascal_language_data): Likewise.
5650 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5651 rust_language::lookup_symbol_nonlocal.
5652 (rust_language_data): Delete la_lookup_symbol_nonlocal
5653 initializer.
5654 (rust_language::lookup_symbol_nonlocal): New member function,
5655 implementation from rust_lookup_symbol_nonlocal.
5656 * symtab.c (lookup_symbol_aux): Update call to
5657 lookup_symbol_nonlocal.
5658 (basic_lookup_symbol_nonlocal): Rename to...
5659 (language_defn::lookup_symbol_nonlocal): ...this, and update
5660 header comment. Remove language_defn parameter, and replace with
5661 uses of `this'.
5662 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5663
ebe2334e
AB
56642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5665
5666 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5667 initializer.
5668 (ada_language::value_print_inner): New member function.
5669 * c-lang.c (c_language_data): Delete la_value_print_inner
5670 initializer.
5671 (cplus_language_data): Likewise.
5672 (asm_language_data): Likewise.
5673 (minimal_language_data): Likewise.
5674 * d-lang.c (d_language_data): Likewise.
5675 (d_language::value_print_inner): New member function.
5676 * f-lang.c (f_language_data): Delete la_value_print_inner
5677 initializer.
5678 (f_language::value_print_inner): New member function.
5679 * f-lang.h (f_value_print_innner): Rename to...
5680 (f_value_print_inner): ...this (note spelling of 'inner').
5681 * f-valprint.c (f_value_print_innner): Rename to...
5682 (f_value_print_inner): ...this (note spelling of 'inner').
5683 * go-lang.c (go_language_data): Delete la_value_print_inner
5684 initializer.
5685 (go_language::value_print_inner): New member function.
5686 * language.c (language_defn::value_print_inner): Define new member
5687 function.
5688 (unk_lang_value_print_inner): Delete.
5689 (unknown_language_data): Delete la_value_print_inner initializer.
5690 (unknown_language::value_print_inner): New member function.
5691 (auto_language_data): Delete la_value_print_inner initializer.
5692 (auto_language::value_print_inner): New member function.
5693 * language.h (language_data): Delete la_value_print_inner field.
5694 (language_defn::value_print_inner): Delcare new member function.
5695 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5696 initializer.
5697 (m2_language::value_print_inner): New member function.
5698 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5699 initializer.
5700 * opencl-lang.c (opencl_language_data): Likewise.
5701 * p-lang.c (pascal_language_data): Likewise.
5702 (pascal_language::value_print_inner): New member function.
5703 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5704 initializer.
5705 (rust_language::value_print_inner): New member function.
5706 * valprint.c (do_val_print): Update call to value_print_inner.
5707
a1d1fa3e
AB
57082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 * ada-lang.c (ada_language_data): Delete la_value_print
5711 initializer.
5712 (ada_language::value_print): New member function.
5713 * c-lang.c (c_language_data): Delete la_value_print initializer.
5714 (cplus_language_data): Likewise.
5715 (asm_language_data): Likewise.
5716 (minimal_language_data): Likewise.
5717 * d-lang.c (d_language_data): Likewise.
5718 * f-lang.c (f_language_data): Likewise.
5719 * go-lang.c (go_language_data): Likewise.
5720 * language.c (unk_lang_value_print): Delete.
5721 (language_defn::value_print): Define new member function.
5722 (unknown_language_data): Delete la_value_print initializer.
5723 (unknown_language::value_print): New member function.
5724 (auto_language_data): Delete la_value_print initializer.
5725 (auto_language::value_print): New member function.
5726 * language.h (language_data): Delete la_value_print field.
5727 (language_defn::value_print): Declare new member function.
5728 (LA_VALUE_PRINT): Update call to value_print.
5729 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5730 * objc-lang.c (objc_language_data): Likewise.
5731 * opencl-lang.c (opencl_language_data): Likewise.
5732 * p-lang.c (pascal_language_data): Likewise.
5733 (pascal_language::value_print): New member function.
5734 * rust-lang.c (rust_language_data): Delete la_value_print
5735 initializer.
5736
f16a9f57
AB
57372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5738
5739 * ada-lang.c (ada_watch_location_expression): Rename to
5740 ada_language::watch_location_expression.
5741 (ada_language_data): Delete la_watch_location_expression
5742 initializer.
5743 (ada_language::watch_location_expression): New member function,
5744 implementation from ada_watch_location_expression.
5745 * breakpoint.c (watch_command_1): Update call to
5746 watch_location_expression.
5747 * c-lang.c (c_watch_location_expression): Rename to
5748 language_defn::watch_location_expression.
5749 (c_language_data): Delete la_watch_location_expression
5750 initializer.
5751 (cplus_language_data): Likewise.
5752 (asm_language_data): Likewise.
5753 (minimal_language_data): Likewise.
5754 * c-lang.h (c_watch_location_expression): Delete declaration.
5755 * d-lang.c (d_language_data): Delete la_watch_location_expression
5756 initializer.
5757 * f-lang.c (f_language_data): Likewise.
5758 * go-lang.c (go_language_data): Likewise.
5759 * language.c (language_defn::watch_location_expression): Member
5760 function implementation from c_watch_location_expression.
5761 (unknown_language_data): Delete la_watch_location_expression
5762 initializer.
5763 (auto_language_data): Likewise.
5764 * language.h (language_data): Delete la_watch_location_expression
5765 field.
5766 (language_defn::watch_location_expression): Declare new member
5767 function.
5768 * m2-lang.c (m2_language_data): Delete
5769 la_watch_location_expression initializer.
5770 * objc-lang.c (objc_language_data): Likewise.
5771 * opencl-lang.c (opencl_language_data): Likewise.
5772 * p-lang.c (pascal_language_data): Likewise.
5773 * rust-lang.c (rust_watch_location_expression): Rename to
5774 rust_language::watch_location_expression.
5775 (rust_language_data): Delete la_watch_location_expression
5776 initializer.
5777 (rust_language::watch_location_expression): New member function,
5778 implementation from rust_watch_location_expression.
5779
7e56227d
AB
57802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5781
5782 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5783 ada_language::collect_symbol_completion_matches.
5784 (ada_language_data): Delete la_collect_symbol_completion_matches
5785 initializer.
5786 (ada_language::collect_symbol_completion_matches): New member
5787 function, implementation from
5788 ada_collect_symbol_completion_matches.
5789 * c-lang.c (c_language_data): Delete
5790 la_collect_symbol_completion_matches initializer.
5791 (cplus_language_data): Likewise.
5792 (asm_language_data): Likewise.
5793 (minimal_language_data): Likewise.
5794 * d-lang.c (d_language_data): Likewise.
5795 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5796 f_language::collect_symbol_completion_matches.
5797 (f_language_data): Delete la_collect_symbol_completion_matches
5798 initializer.
5799 (f_language::collect_symbol_completion_matches) New member
5800 function, implementation from f_collect_symbol_completion_matches.
5801 * go-lang.c (go_language_data): Delete
5802 la_collect_symbol_completion_matches initializer.
5803 * language.c (unknown_language_data): Likewise.
5804 (auto_language_data): Likewise.
5805 * language.h (language_data): Delete
5806 la_collect_symbol_completion_matches field.
5807 (language_defn::collect_symbol_completion_matches): New member
5808 function.
5809 * m2-lang.c (m2_language_data): Delete
5810 la_collect_symbol_completion_matches initializer.
5811 * objc-lang.c (objc_language_data): Likewise.
5812 * opencl-lang.c (opencl_language_data): Likewise.
5813 * p-lang.c (pascal_language_data): Likewise.
5814 * rust-lang.c (rust_language_data): Likewise.
5815 * symtab.c (default_collect_symbol_completion_matches): Delete.
5816 (collect_symbol_completion_matches): Update call to
5817 collect_symbol_completion_matches.
5818 (collect_symbol_completion_matches_type): Likewise.
5819 * symtab.h (default_collect_symbol_completion_matches): Delete
5820 declaration.
5821
53fc67f8
AB
58222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5823
5824 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5825 (ada_language_data): Delete la_word_break_characters initializer.
5826 (ada_language::word_break_characters): New member function.
5827 * c-lang.c (c_language_data): Delete la_word_break_characters
5828 initializer.
5829 (cplus_language_data): Likewise.
5830 (asm_language_data): Likewise.
5831 (minimal_language_data): Likewise.
5832 * completer.c: Update global comment.
5833 (advance_to_expression_complete_word_point): Update call to
5834 word_break_characters.
5835 (complete_files_symbols): Likewise.
5836 (complete_line_internal_1): Likewise.
5837 (default_completer_handle_brkchars): Likewise.
5838 (skip_quoted_chars): Likewise.
5839 * d-lang.c (d_language_data): Delete la_word_break_characters
5840 initializer.
5841 * f-lang.c (f_word_break_characters): Delete.
5842 (f_language_data): Delete la_word_break_characters initializer.
5843 (f_language::word_break_characters): New member function.
5844 * go-lang.c (go_language_data): Delete la_word_break_characters
5845 initializer.
5846 * language.c (unknown_language_data): Likewise.
5847 (auto_language_data): Likewise.
5848 * language.h (default_word_break_characters): Move declaration to
5849 earlier in the file.
5850 (language_data): Delete la_word_break_characters field.
5851 (language_defn::word_break_characters): New member function.
5852 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5853 initializer.
5854 * objc-lang.c (objc_language_data): Likewise.
5855 * opencl-lang.c (opencl_language_data): Likewise.
5856 * p-lang.c (pascal_language_data): Likewise.
5857 * rust-lang.c (rust_language_data): Likewise.
5858
c9debfb9
AB
58592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5862 (ada_language_data): Delete la_get_symbol_name_matcher
5863 initializer.
5864 (language_defn::get_symbol_name_matcher_inner): New member
5865 function.
5866 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5867 initializer.
5868 (cplus_language_data): Likewise.
5869 (cplus_language::get_symbol_name_matcher_inner): New member
5870 function.
5871 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5872 (minimal_language_data): Likewise.
5873 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5874 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5875 initializer.
5876 * dictionary.c (iter_match_first_hashed): Update call to
5877 get_symbol_name_matcher.
5878 (iter_match_next_hashed): Likewise.
5879 (iter_match_next_linear): Likewise.
5880 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5881 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5882 initializer.
5883 (f_language::get_symbol_name_matcher_inner): New member function.
5884 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5885 initializer.
5886 * language.c (default_symbol_name_matcher): Update header comment,
5887 make static.
5888 (language_defn::get_symbol_name_matcher): New definition.
5889 (language_defn::get_symbol_name_matcher_inner): Likewise.
5890 (get_symbol_name_matcher): Delete.
5891 (unknown_language_data): Delete la_get_symbol_name_matcher
5892 initializer.
5893 (auto_language_data): Likewise.
5894 * language.h (language_data): Delete la_get_symbol_name_matcher
5895 field.
5896 (language_defn::get_symbol_name_matcher): New member function.
5897 (language_defn::get_symbol_name_matcher_inner): Likewise.
5898 (default_symbol_name_matcher): Delete declaration.
5899 * linespec.c (find_methods): Update call to
5900 get_symbol_name_matcher.
5901 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5902 initializer.
5903 * minsyms.c (lookup_minimal_symbol): Update call to
5904 get_symbol_name_matcher.
5905 (iterate_over_minimal_symbols): Likewise.
5906 * objc-lang.c (objc_language_data): Delete
5907 la_get_symbol_name_matcher initializer.
5908 * opencl-lang.c (opencl_language_data): Likewise.
5909 * p-lang.c (pascal_language_data): Likewise.
5910 * psymtab.c (psymbol_name_matches): Update call to
5911 get_symbol_name_matcher.
5912 * rust-lang.c (rust_language_data): Delete
5913 la_get_symbol_name_matcher initializer.
5914 * symtab.c (symbol_matches_search_name): Update call to
5915 get_symbol_name_matcher.
5916 (compare_symbol_name): Likewise.
5917
9a49ad8c
AB
59182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * ada-lang.c (ada_language_data): Delete la_compute_program
5921 initializer.
5922 * c-lang.c (c_language_data): Likewise.
5923 (c_language::compute_program): New member function.
5924 (cplus_language_data): Delete la_compute_program initializer.
5925 (cplus_language::compute_program): New member function.
5926 (asm_language_data): Delete la_compute_program initializer.
5927 (minimal_language_data): Likewise.
5928 * c-lang.h (c_compute_program): Update comment.
5929 (cplus_compute_program): Likewise.
5930 * compile/compile-c-support.c (c_compute_program): Likewise.
5931 (cplus_compute_program): Likewise.
5932 * compile/compile.c (compile_to_object): Update call to
5933 la_compute_program.
5934 * d-lang.c (d_language_data): Delete la_compute_program
5935 initializer.
5936 * f-lang.c (f_language_data): Likewise.
5937 * go-lang.c (go_language_data): Likewise.
5938 * language.c (unknown_language_data): Likewise.
5939 (auto_language_data): Likewise.
5940 * language.h (language_data): Delete la_compute_program field.
5941 (language_defn::compute_program): New member function.
5942 * m2-lang.c (m2_language_data): Delete la_compute_program
5943 initializer.
5944 * objc-lang.c (objc_language_data): Likewise.
5945 * opencl-lang.c (opencl_language_data): Likewise.
5946 * p-lang.c (pascal_language_data): Likewise.
5947 * rust-lang.c (rust_language_data): Likewise.
5948
eff93b4d
AB
59492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5950
5951 * ada-lang.c (ada_language_data) Delete
5952 la_class_name_from_physname initializer.
5953 * c-lang.c (c_language_data): Likewise.
5954 (cplus_language_data): Likewise.
5955 (cplus_language::class_name_from_physname): New member function.
5956 (asm_language_data): Delete la_class_name_from_physname
5957 initializer.
5958 (minimal_language_data): Likewise.
5959 * d-lang.c (d_language_data): Likewise.
5960 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5961 method on language_defn class.
5962 (guess_full_die_structure_name): Likewise.
5963 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5964 initializer.
5965 * go-lang.c (go_language_data): Likewise.
5966 * language.c (language_class_name_from_physname): Delete.
5967 (unk_lang_class_name): Delete.
5968 (unknown_language_data): Delete la_class_name_from_physname
5969 initializer.
5970 (auto_language_data): Likewise.
5971 * language.h (language_data): Delete la_class_name_from_physname
5972 field.
5973 (language_defn::class_name_from_physname): New function.
5974 (language_class_name_from_physname): Delete declaration.
5975 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5976 initializer.
5977 * objc-lang.c (objc_language_data): Likewise.
5978 * opencl-lang.c (opencl_language_data): Likewise.
5979 * p-lang.c (pascal_language_data): Likewise.
5980 * rust-lang.c (rust_language_data): Likewise.
5981
de543742
TT
59822020-06-16 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-data.h (STATUS_NAME): New macro.
5985 * tui/tui-layout.c (tui_remove_some_windows)
5986 (initialize_known_windows, tui_register_window)
5987 (tui_layout_split::remove_windows, initialize_layouts)
5988 (tui_new_layout_command): Don't use hard-coded window names.
5989
a350efd4
TT
59902020-06-16 Tom Tromey <tom@tromey.com>
5991
5992 PR tui/25348:
5993 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5994 tui_initialize_readline. Only run once. Call rl_initialize.
5995 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5996 tui_initialize_readline.
5997 * tui/tui-io.c (tui_setup_io): Call
5998 tui_ensure_readline_initialized.
5999 * tui/tui-interp.c (tui_interp::init): Update.
6000
39ec0490
TT
60012020-06-16 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6004 Also preserve the status window.
6005
d2d1ea20
TT
60062020-06-16 Tom Tromey <tom@tromey.com>
6007
6008 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6009 where m_window==nullptr.
6010
66920317
TT
60112020-06-15 Tom Tromey <tromey@adacore.com>
6012
6013 * windows-nat.c (windows_nat::handle_output_debug_string):
6014 Update.
6015 (windows_nat::handle_ms_vc_exception): Update.
6016 * target.h (target_read_string): Change API.
6017 * target.c (target_read_string): Change API.
6018 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6019 Update.
6020 * solib-frv.c (frv_current_sos): Update.
6021 * solib-dsbt.c (dsbt_current_sos): Update.
6022 * solib-darwin.c (darwin_current_sos): Update.
6023 * linux-thread-db.c (inferior_has_bug): Update.
6024 * expprint.c (print_subexp_standard): Update.
6025 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6026 (ada_exception_message_1): Update.
6027
a5d871dd
TT
60282020-06-15 Tom Tromey <tromey@adacore.com>
6029
6030 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6031
670e35fa
TT
60322020-06-15 Tom Tromey <tromey@adacore.com>
6033
6034 * valprint.c (read_string): Update comment.
6035 * target.c (MIN): Remove.
6036 (target_read_string): Rewrite.
6037
f5272a3b
TT
60382020-06-15 Tom Tromey <tromey@adacore.com>
6039
6040 * corefile.c (read_memory_string): Remove.
6041 * ada-valprint.c (ada_value_print_ptr): Update.
6042 * ada-lang.h (ada_tag_name): Change return type.
6043 * ada-lang.c (type_from_tag): Update.
6044 (ada_tag_name_from_tsd): Change return type. Use
6045 target_read_string.
6046 (ada_tag_name): Likewise.
6047 * gdbcore.h (read_memory_string): Don't declare.
6048
2c074f49
HD
60492020-06-14 Hannes Domani <ssbssa@yahoo.de>
6050
6051 * symtab.c (rbreak_command): Ignore Windows drive colon.
6052
6a17d503
SM
60532020-06-12 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * NEWS: Mention removed GDBserver host support.
6056
453c733f
NC
60572020-06-12 Nelson Chu <nelson.chu@sifive.com>
6058
6059 * features/riscv/rebuild-csr-xml.sh: Updated.
6060
2b4e6a3f
TT
60612020-06-11 Tom Tromey <tom@tromey.com>
6062
6063 PR gdb/18318:
6064 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6065
4412332f
JG
60662020-06-09 Jonny Grant <jg@jguk.org>
60672020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * main.c (captured_main_1): Don't print new line after help.
6070 (print_gdb_help): add mailing list and IRC channel information
6071 to --help. Add new lines between items in the footer. Remove
6072 quotes around bug url.
6073
2f33032a
KS
60742020-06-11 Keith Seitz <keiths@redhat.com>
6075
6076 PR gdb/21356
6077 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6078 Resolve typedefs for type length calculations.
6079
7ab96794
TV
60802020-06-10 Tom de Vries <tdevries@suse.de>
6081
6082 PR ada/24713
6083 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6084 (write_psymbols): Enable .gdb_index for ada.
6085 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6086 ada.
6087
e5f3ece2
TV
60882020-06-10 Tom de Vries <tdevries@suse.de>
6089
6090 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6091 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6092 namei" instead of "const char *name" argument.
6093 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6094 dw2_symtab_iter_init.
6095
940da03e
SM
60962020-06-08 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6099 to use type::field and field::type instead.
6100
b6cdac4b
SM
61012020-06-08 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6104 to use field::type instead.
6105
5d14b6e5
SM
61062020-06-08 Simon Marchi <simon.marchi@efficios.com>
6107
6108 * gdbtypes.h (struct field) <type, set_type>: New methods.
6109 Rename `type` field to...
6110 <m_type>: ... this. Change references throughout to use type or
6111 set_type methods.
6112 (FIELD_TYPE): Use field::type. Change call sites that modify
6113 the field's type to use field::set_type instead.
6114
3d967001
SM
61152020-06-08 Simon Marchi <simon.marchi@efficios.com>
6116
6117 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6118 to use type::index_type instead.
6119
262abc0d
SM
61202020-06-08 Simon Marchi <simon.marchi@efficios.com>
6121
6122 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6123 methods.
6124 (TYPE_INDEX_TYPE): Use type::index_type.
6125 * gdbtypes.c (create_array_type_with_stride): Likewise.
6126
82836c92
TT
61272020-06-07 Tom Tromey <tom@tromey.com>
6128
6129 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6130 parameter.
6131 (generic_value_print): Update.
6132
940dace9
AB
61332020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6134
6135 Revert commit 982a38f60b0.
6136 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6137
982a38f6
AB
61382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6139
6140 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6141 avoid use after free.
6142
82f06518
TV
61432020-06-05 Tom de Vries <tdevries@suse.de>
6144
6145 * NEWS: Fix typos.
6146
f8c41851
SM
61472020-06-04 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6150 the per_bfd object.
6151 (dwarf2_read_debug_names): Likewise.
6152 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6153 object when re-using a per_bfd object with an index.
6154
f9b5d5ea
TV
61552020-06-03 Tom de Vries <tdevries@suse.de>
6156
6157 PR symtab/26046
6158 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6159 children for C++.
6160 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6161 DW_TAG_subprogram.
6162
f6eee2d0
AB
61632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6164
6165 * ada-lang.c (ada_language_data): Delete skip_trampoline
6166 initializer.
6167 * c-lang.c (c_language_data): Likewise.
6168 (cplus_language_data): Likewise.
6169 (cplus_language::skip_trampoline): New member function.
6170 (asm_language_data): Delete skip_trampoline initializer.
6171 (minimal_language_data): Likewise.
6172 * d-lang.c (d_language_data): Likewise.
6173 * f-lang.c (f_language_data): Likewise.
6174 * go-lang.c (go_language_data): Likewise.
6175 * language.c (unk_lang_trampoline): Delete function.
6176 (skip_language_trampoline): Update.
6177 (unknown_language_data): Delete skip_trampoline initializer.
6178 (auto_language_data): Likewise.
6179 * language.h (language_data): Delete skip_trampoline field.
6180 (language_defn::skip_trampoline): New function.
6181 * m2-lang.c (m2_language_data): Delete skip_trampoline
6182 initializer.
6183 * objc-lang.c (objc_skip_trampoline): Delete function, move
6184 implementation to objc_language::skip_trampoline.
6185 (objc_language_data): Delete skip_trampoline initializer.
6186 (objc_language::skip_trampoline): New member function with
6187 implementation from objc_skip_trampoline.
6188 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6189 initializer.
6190 * p-lang.c (pascal_language_data): Likewise.
6191 * rust-lang.c (rust_language_data): Likewise.
6192
0a50df5d
AB
61932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6194
6195 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6196 (ada_language::demangle): New member function.
6197 * c-lang.c (c_language_data): Delete la_demangle initializer.
6198 (cplus_language_data): Delete la_demangle initializer.
6199 (cplus_language::demangle): New member function.
6200 (asm_language_data): Delete la_demangle initializer.
6201 (minimal_language_data): Delete la_demangle initializer.
6202 * d-lang.c (d_language_data): Delete la_demangle initializer.
6203 (d_language::demangle): New member function.
6204 * f-lang.c (f_language_data): Delete la_demangle initializer.
6205 (f_language::demangle): New member function.
6206 * go-lang.c (go_language_data): Delete la_demangle initializer.
6207 (go_language::demangle): New member function.
6208 * language.c (language_demangle): Update.
6209 (unk_lang_demangle): Delete.
6210 (unknown_language_data): Delete la_demangle initializer.
6211 (unknown_language::demangle): New member function.
6212 (auto_language_data): Delete la_demangle initializer.
6213 (auto_language::demangle): New member function.
6214 * language.h (language_data): Delete la_demangle field.
6215 (language_defn::demangle): New function.
6216 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6217 * objc-lang.c (objc_language_data): Delete la_demangle
6218 initializer.
6219 (objc_language::demangle): New member function.
6220 * opencl-lang.c (opencl_language_data): Delete la_demangle
6221 initializer.
6222 * p-lang.c (pascal_language_data): Likewise.
6223 * rust-lang.c (rust_language_data): Likewise.
6224 (rust_language::demangle): New member function.
6225
fbfb0a46
AB
62262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * ada-lang.c (ada_language_data): Delete la_print_type
6229 initializer.
6230 (ada_language::print_type): New member function.
6231 * c-lang.c (c_language_data): Delete la_print_type initializer.
6232 (c_language::print_type): New member function.
6233 (cplus_language_data): Delete la_print_type initializer.
6234 (cplus_language::print_type): New member function.
6235 (asm_language_data): Delete la_print_type initializer.
6236 (asm_language::print_type): New member function.
6237 (minimal_language_data): Delete la_print_type initializer.
6238 (minimal_language::print_type): New member function.
6239 * d-lang.c (d_language_data): Delete la_print_type initializer.
6240 (d_language::print_type): New member function.
6241 * f-lang.c (f_language_data): Delete la_print_type initializer.
6242 (f_language::print_type): New member function.
6243 * go-lang.c (go_language_data): Delete la_print_type initializer.
6244 (go_language::print_type): New member function.
6245 * language.c (unk_lang_print_type): Delete.
6246 (unknown_language_data): Delete la_print_type initializer.
6247 (unknown_language::print_type): New member function.
6248 (auto_language_data): Delete la_print_type initializer.
6249 (auto_language::print_type): New member function.
6250 * language.h (language_data): Delete la_print_type field.
6251 (language_defn::print_type): New function.
6252 (LA_PRINT_TYPE): Update.
6253 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6254 (m2_language::print_type): New member function.
6255 * objc-lang.c (objc_language_data): Delete la_print_type
6256 initializer.
6257 (objc_language::print_type): New member function.
6258 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6259 to opencl_language::print_type.
6260 (opencl_language_data): Delete la_print_type initializer.
6261 (opencl_language::print_type): New member function, implementation
6262 from opencl_print_type.
6263 * p-lang.c (pascal_language_data): Delete la_print_type
6264 initializer.
6265 (pascal_language::print_type): New member function.
6266 * rust-lang.c (rust_print_type): Delete, implementation moved to
6267 rust_language::print_type.
6268 (rust_language_data): Delete la_print_type initializer.
6269 (rust_language::print_type): New member function, implementation
6270 from rust_print_type.
6271
6f827019
AB
62722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6273
6274 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6275 implementation moves to...
6276 (ada_language::sniff_from_mangled_name): ...here. Update return
6277 type.
6278 (ada_language_data): Delete la_sniff_from_mangled_name
6279 initializer.
6280 * c-lang.c (c_language_data): Likewise.
6281 (cplus_language_data): Likewise.
6282 (cplus_language::sniff_from_mangled_name): New member function,
6283 implementation taken from gdb_sniff_from_mangled_name.
6284 (asm_language_data): Delete la_sniff_from_mangled_name
6285 initializer.
6286 (minimal_language_data): Likewise.
6287 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6288 implementation moves to cplus_language::sniff_from_mangled_name.
6289 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6290 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6291 moves to...
6292 (d_language::sniff_from_mangled_name): ...here.
6293 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6294 * f-lang.c (f_language_data): Likewise.
6295 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6296 moves to...
6297 (go_language::sniff_from_mangled_name): ...here.
6298 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6299 * language.c (language_sniff_from_mangled_name): Delete.
6300 (unknown_language_data): Delete la_sniff_from_mangled_name
6301 initializer.
6302 (auto_language_data): Likewise.
6303 * language.h (language_data): Delete la_sniff_from_mangled_name
6304 field.
6305 (language_defn::sniff_from_mangled_name): New function.
6306 (language_sniff_from_mangled_name): Delete declaration.
6307 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6308 field.
6309 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6310 implementation moves to...
6311 (objc_language::sniff_from_mangled_name): ...here.
6312 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6313 * opencl-lang.c (opencl_language_data): Likewise.
6314 * p-lang.c (pascal_language_data): Likewise.
6315 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6316 implementation moves to...
6317 (rust_language::sniff_from_mangled_name): ...here.
6318 (rust_language_data): Delete la_sniff_from_mangled_name
6319 initializer.
6320 * symtab.c (symbol_find_demangled_name): Call
6321 sniff_from_mangled_name member function.
6322
fb8006fd
AB
63232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6326 initializer.
6327 * c-lang.c (c_language_data): Likewise.
6328 (cplus_language_data): Likewise.
6329 (cplus_language::search_name_hash): New member function.
6330 (asm_language_data): Delete la_search_name_hash initializer.
6331 (minimal_language_data): Likewise.
6332 * d-lang.c (d_language_data): Likewise.
6333 * dictionary.c (default_search_name_hash): Rename to...
6334 (language_defn::search_name_hash): ...this.
6335 * f-lang.c (f_language_data): Likewise.
6336 (f_language::search_name_hash): New member function.
6337 * go-lang.c (go_language_data): Delete la_search_name_hash
6338 initializer.
6339 * language.c (unknown_language_data): Likewise.
6340 (auto_language_data): Likewise.
6341 * language.h (struct language_data): Delete la_search_name_hash
6342 field.
6343 (language_defn::search_name_hash): Declare new member function.
6344 (default_search_name_hash): Delete declaration.
6345 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6346 initializer.
6347 * objc-lang.c (objc_language_data): Likewise.
6348 * opencl-lang.c (opencl_language_data): Likewise.
6349 * p-lang.c (pascal_language_data): Likewise.
6350 * rust-lang.c (rust_language_data): Likewise.
6351 * symtab.c (search_name_hash): Update call.
6352
8e25bafe
AB
63532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6354
6355 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6356 initializer.
6357 * c-lang.c (class compile_instance): Declare.
6358 (c_language_data): Delete la_get_compile_instance initializer.
6359 (c_language::get_compile_instance): New member function.
6360 (cplus_language_data): Delete la_get_compile_instance initializer.
6361 (cplus_language::get_compile_instance): New member function.
6362 (asm_language_data): Delete la_get_compile_instance initializer.
6363 (minimal_language_data): Likewise.
6364 * c-lang.h (c_get_compile_context): Update comment.
6365 (cplus_get_compile_context): Update comment.
6366 * compile/compile.c (compile_to_object): Update calls, don't rely
6367 on function pointer being NULL.
6368 * d-lang.c (d_language_data): Delete la_get_compile_instance
6369 initializer.
6370 * f-lang.c (f_language_data): Likewise.
6371 * go-lang.c (go_language_data): Likewise.
6372 * language.c (unknown_language_data): Likewise.
6373 (auto_language_data): Likewise.
6374 * language.h (language_data): Delete la_get_compile_instance field.
6375 (language_defn::get_compile_instance): New member function.
6376 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6377 initializer.
6378 * objc-lang.c (objc_language_data): Likewise.
6379 * opencl-lang.c (opencl_language_data): Likewise.
6380 * p-lang.c (pascal_language_data): Likewise.
6381 * rust-lang.c (rust_language_data): Likewise.
6382
4009ee92
AB
63832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6384
6385 * ada-lang.c (ada_add_all_symbols): Update comment.
6386 (ada_iterate_over_symbols): Delete, move implementation to...
6387 (ada_language::iterate_over_symbols): ...here, a new member
6388 function, rewrite to use range based for loop.
6389 (ada_language_data): Delete la_iterate_over_symbols initializer.
6390 * c-lang.c (c_language_data): Likewise.
6391 (cplus_language_data): Likewise.
6392 (asm_language_data): Likewise.
6393 (minimal_language_data): Likewise.
6394 * d-lang.c (d_language_data): Likewise.
6395 * f-lang.c (f_language_data): Likewise.
6396 * go-lang.c (go_language_data): Likewise.
6397 * language.c (unknown_language_data): Likewise.
6398 (auto_language_data): Likewise.
6399 * language.h (language_data): Delete la_iterate_over_symbols field.
6400 (language_defn::iterate_over_symbols): New member function.
6401 (LA_ITERATE_OVER_SYMBOLS): Update.
6402 * linespec.c (iterate_over_all_matching_symtabs): Update.
6403 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6404 initializer.
6405 * objc-lang.c (objc_language_data): Likewise.
6406 * opencl-lang.c (opencl_language_data): Likewise.
6407 * p-lang.c (pascal_language_data): Likewise.
6408 * rust-lang.c (rust_language_data): Likewise.
6409
54f4ca46
AB
64102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6411
6412 * ada-lang.c (ada_language_data): Delete
6413 la_lookup_transparent_type initializer.
6414 * c-lang.c (c_language_data): Likewise.
6415 (cplus_language_data): Likewise.
6416 (cplus_language::lookup_transparent_type): New member function.
6417 (asm_language_data): Delete la_lookup_transparent_type
6418 initializer.
6419 (minimal_language_data): Likewise.
6420 * d-lang.c (d_language_data): Likewise.
6421 * f-lang.c (f_language_data): Likewise.
6422 * go-lang.c (go_language_data): Likewise.
6423 * language.c (unknown_language_data): Likewise.
6424 (auto_language_data): Likewise.
6425 * language.h (struct language_data): Delete
6426 la_lookup_transparent_type field.
6427 (language_defn::lookup_transparent_type): New member function.
6428 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6429 initializer.
6430 * objc-lang.c (objc_language_data): Likewise.
6431 * opencl-lang.c (opencl_language_data): Likewise.
6432 * p-lang.c (pascal_language_data): Likewise.
6433 * rust-lang.c (rust_language_data): Likewise.
6434 * symtab.c (symbol_matches_domain): Update call.
6435
1fb314aa
AB
64362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * ada-lang.c (ada_language_arch_info): Delete function, move
6439 implementation to...
6440 (ada_language::language_arch_info): ...here, a new member
6441 function.
6442 (ada_language_data): Delete la_language_arch_info.
6443 * c-lang.c (c_language_data): Likewise.
6444 (c_language::language_arch_info): New member function.
6445 (cplus_language_arch_info): Delete function, move
6446 implementation to...
6447 (cplus_language::language_arch_info): ...here, a new member
6448 function.
6449 (cplus_language_data): Delete la_language_arch_info.
6450 (asm_language_data): Likewise.
6451 (asm_language::language_arch_info): New member function.
6452 (minimal_language_data): Delete la_language_arch_info.
6453 (minimal_language::language_arch_info): New member function.
6454 * d-lang.c (d_language_arch_info): Delete function, move
6455 implementation to...
6456 (d_language::language_arch_info): ...here, a new member
6457 function.
6458 (d_language_data): Delete la_language_arch_info.
6459 * f-lang.c (f_language_arch_info): Delete function, move
6460 implementation to...
6461 (f_language::language_arch_info): ...here, a new member
6462 function.
6463 (f_language_data): Delete la_language_arch_info.
6464 * go-lang.c (go_language_arch_info): Delete function, move
6465 implementation to...
6466 (go_language::language_arch_info): ...here, a new member
6467 function.
6468 (go_language_data): Delete la_language_arch_info.
6469 * language.c (unknown_language_data): Likewise.
6470 (unknown_language::language_arch_info): New member function.
6471 (auto_language_data): Delete la_language_arch_info.
6472 (auto_language::language_arch_info): New member function.
6473 (language_gdbarch_post_init): Update call to
6474 la_language_arch_info.
6475 * language.h (language_data): Delete la_language_arch_info
6476 function pointer.
6477 (language_defn::language_arch_info): New function.
6478 * m2-lang.c (m2_language_arch_info): Delete function, move
6479 implementation to...
6480 (m2_language::language_arch_info): ...here, a new member
6481 function.
6482 (m2_language_data): Delete la_language_arch_info.
6483 * objc-lang.c (objc_language_arch_info): Delete function, move
6484 implementation to...
6485 (objc_language::language_arch_info): ...here, a new member
6486 function.
6487 (objc_language_data): Delete la_language_arch_info.
6488 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6489 implementation to...
6490 (opencl_language::language_arch_info): ...here, a new member
6491 function.
6492 (opencl_language_data): Delete la_language_arch_info.
6493 * p-lang.c (pascal_language_arch_info): Delete function, move
6494 implementation to...
6495 (pascal_language::language_arch_info): ...here, a new member
6496 function.
6497 (pascal_language_data): Delete la_language_arch_info.
6498 * rust-lang.c (rust_language_arch_info): Delete function, move
6499 implementation to...
6500 (rust_language::language_arch_info): ...here, a new member
6501 function.
6502 (rust_language_data): Delete la_language_arch_info.
6503
48448202
AB
65042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6505
6506 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6507 initializer.
6508 * c-lang.c (c_language_data): Likewise.
6509 (cplus_language_data): Likewise.
6510 (cplus_language::pass_by_reference_info): New method.
6511 (asm_language_data): Delete la_pass_by_reference initializer.
6512 (minimal_language_data): Likewise.
6513 * cp-abi.c (cp_pass_by_reference): Remove use of
6514 default_pass_by_reference.
6515 * d-lang.c (d_language_data): Likewise.
6516 * f-lang.c (f_language_data): Likewise.
6517 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6518 default_pass_by_reference.
6519 * go-lang.c (go_language_data): Likewise.
6520 * language.c (language_pass_by_reference): Update.
6521 (default_pass_by_reference): Delete.
6522 (unknown_language_data): Delete la_pass_by_reference
6523 initializer.
6524 (auto_language_data): Likewise.
6525 * language.h (struct language_data): Delete la_pass_by_reference
6526 field.
6527 (language_defn::pass_by_reference_info): New member function.
6528 (default_pass_by_reference): Delete declaration.
6529 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6530 initializer.
6531 * objc-lang.c (objc_language_data): Likewise.
6532 * opencl-lang.c (opencl_language_data): Likewise.
6533 * p-lang.c (pascal_language_data): Likewise.
6534 * rust-lang.c (rust_language_data): Likewise.
6535
15e5fd35
AB
65362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6537
6538 * ada-lang.c (ada_read_var_value): Delete function, move
6539 implementation to...
6540 (ada_language::read_var_value): ...here.
6541 (ada_language_data): Delete la_read_var_value initializer.
6542 * c-lang.c (c_language_data): Likewise.
6543 (cplus_language_data): Likewise.
6544 (minimal_language_data): Likewise.
6545 * d-lang.c (d_language_data): Likewise.
6546 * f-lang.c (f_language_data): Likewise.
6547 * findvar.c (default_read_var_value): Rename to...
6548 (language_defn::read_var_value): ...this.
6549 * findvar.c (read_var_value): Update header comment, and change to
6550 call member function instead of function pointer.
6551 * go-lang.c (go_language_data): Likewise.
6552 * language.c (unknown_language_data): Delete la_read_var_value
6553 initializer.
6554 (auto_language_data): Likewise.
6555 * language.h (struct language_data): Delete la_read_var_value
6556 field.
6557 (language_defn::read_var_value): New member function.
6558 (default_read_var_value): Delete declaration.
6559 * m2-lang.c (m2_language_data): Delete la_read_var_value
6560 initializer.
6561 * objc-lang.c (objc_language_data): Likewise.
6562 * opencl-lang.c (opencl_language_data): Likewise.
6563 * p-lang.c (pascal_language_data): Likewise.
6564 * rust-lang.c (rust_language_data): Likewise.
6565 * value.h (default_read_var_value): Delete declaration.
6566
5bd40f2a
AB
65672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * ada-lang.c (ada_print_array_index): Delete function, move
6570 implementation to...
6571 (ada_language::print_array_index): ...here.
6572 (ada_language_data): Delete la_print_array_index initializer.
6573 * c-lang.c (c_language_data): Likewise.
6574 (cplus_language_data): Likewise.
6575 (minimal_language_data): Likewise.
6576 * d-lang.c (d_language_data): Likewise.
6577 * f-lang.c (f_language_data): Likewise.
6578 * go-lang.c (go_language_data): Likewise.
6579 * language.c (default_print_array_index): Delete function, move
6580 implementation to...
6581 (language_defn::print_array_index): ...here.
6582 (unknown_language_data): Delete la_print_array_index initializer.
6583 (auto_language_data): Likewise.
6584 * language.h (struct language_data): Delete la_print_array_index
6585 field.
6586 (language_defn::print_array_index): New member function.
6587 (LA_PRINT_ARRAY_INDEX): Update.
6588 (default_print_array_index): Delete declaration.
6589 * m2-lang.c (m2_language_data): Delete la_print_array_index
6590 initializer.
6591 * objc-lang.c (objc_language_data): Likewise.
6592 * opencl-lang.c (opencl_language_data): Likewise.
6593 * p-lang.c (pascal_language_data): Likewise.
6594 * rust-lang.c (rust_language_data): Likewise.
6595
0874fd07
AB
65962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6597
6598 * gdb/ada-lang.c (ada_language_defn): Convert to...
6599 (ada_language_data): ...this.
6600 (class ada_language): New class.
6601 (ada_language_defn): New static global.
6602 * gdb/c-lang.c (c_language_defn): Convert to...
6603 (c_language_data): ...this.
6604 (class c_language): New class.
6605 (c_language_defn): New static global.
6606 (cplus_language_defn): Convert to...
6607 (cplus_language_data): ...this.
6608 (class cplus_language): New class.
6609 (cplus_language_defn): New static global.
6610 (asm_language_defn): Convert to...
6611 (asm_language_data): ...this.
6612 (class asm_language): New class.
6613 (asm_language_defn): New static global.
6614 (minimal_language_defn): Convert to...
6615 (minimal_language_data): ...this.
6616 (class minimal_language): New class.
6617 (minimal_language_defn): New static global.
6618 * gdb/d-lang.c (d_language_defn): Convert to...
6619 (d_language_data): ...this.
6620 (class d_language): New class.
6621 (d_language_defn): New static global.
6622 * gdb/f-lang.c (f_language_defn): Convert to...
6623 (f_language_data): ...this.
6624 (class f_language): New class.
6625 (f_language_defn): New static global.
6626 * gdb/go-lang.c (go_language_defn): Convert to...
6627 (go_language_data): ...this.
6628 (class go_language): New class.
6629 (go_language_defn): New static global.
6630 * gdb/language.c (unknown_language_defn): Remove declaration.
6631 (current_language): Initialize to nullptr, real initialization is
6632 moved to _initialize_language.
6633 (languages): Delete global.
6634 (language_defn::languages): Define.
6635 (set_language_command): Use language_defn::languages.
6636 (set_language): Likewise.
6637 (range_error): Likewise.
6638 (language_enum): Likewise.
6639 (language_def): Likewise.
6640 (add_set_language_command): Use language_def::languages for the
6641 language list, and language_def to lookup language pointers.
6642 (skip_language_trampoline): Use language_defn::languages.
6643 (unknown_language_defn): Convert to...
6644 (unknown_language_data): ...this.
6645 (class unknown_language): New class.
6646 (unknown_language_defn): New static global.
6647 (auto_language_defn): Convert to...
6648 (auto_language_data): ...this.
6649 (class auto_language): New class.
6650 (auto_language_defn): New static global.
6651 (language_gdbarch_post_init): Use language_defn::languages.
6652 (_initialize_language): Initialize current_language.
6653 * gdb/language.h (struct language_defn): Rename to...
6654 (struct language_data): ...this.
6655 (struct language_defn): New.
6656 (auto_language_defn): Delete.
6657 (unknown_language_defn): Delete.
6658 (minimal_language_defn): Delete.
6659 (ada_language_defn): Delete.
6660 (asm_language_defn): Delete.
6661 (c_language_defn): Delete.
6662 (cplus_language_defn): Delete.
6663 (d_language_defn): Delete.
6664 (f_language_defn): Delete.
6665 (go_language_defn): Delete.
6666 (m2_language_defn): Delete.
6667 (objc_language_defn): Delete.
6668 (opencl_language_defn): Delete.
6669 (pascal_language_defn): Delete.
6670 (rust_language_defn): Delete.
6671 * gdb/m2-lang.c (m2_language_defn): Convert to...
6672 (m2_language_data): ...this.
6673 (class m2_language): New class.
6674 (m2_language_defn): New static global.
6675 * gdb/objc-lang.c (objc_language_defn): Convert to...
6676 (objc_language_data): ...this.
6677 (class objc_language): New class.
6678 (objc_language_defn): New static global.
6679 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6680 (opencl_language_data): ...this.
6681 (class opencl_language): New class.
6682 (opencl_language_defn): New static global.
6683 * gdb/p-lang.c (pascal_language_defn): Convert to...
6684 (pascal_language_data): ...this.
6685 (class pascal_language): New class.
6686 (pascal_language_defn): New static global.
6687 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6688 language pointer, update comment format.
6689 * gdb/rust-lang.c (rust_language_defn): Convert to...
6690 (rust_language_data): ...this.
6691 (class rust_language): New class.
6692 (rust_language_defn): New static global.
6693
1313c56e
AB
66942020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6695
6696 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6697 member variable.
6698 <m_stmt_at_address>: New member variable.
6699 (lnp_state_machine::record_line): Don't record some lines, update
6700 tracking of is_stmt at the same address.
6701 (lnp_state_machine::lnp_state_machine): Initialise new member
6702 variables.
6703
b7ed9f3d
ST
67042020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6705
6706 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6707 "-include gnu-nat-mig.h".
6708 * gnu-nat-mig.h: New file.
6709 * gnu-nat.c: Include "gnu-nat-mig.h".
6710 (exc_server, msg_reply_server, notify_server,
6711 process_reply_server): Remove declarations.
6712
14a8ad62
ST
67132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6714
6715 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6716 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6717 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6718 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6719 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6720 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6721 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6722 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6723 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6724 to gnu_nat_target class.
6725 * gnu-nat.c: Likewise.
6726 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6727 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6728 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6729 object.
6730 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6731 instead of `gnu_target'.
6732
0af5e106
ST
67332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6734
6735 * i386-gnu-tdep.c: Include "gdbcore.h"
6736 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6737 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6738 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6739 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6740 i386_gnu_sigcontext_addr): New functions
6741 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6742 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6743 tdep.
6744
078f2fc9
ST
67452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6746
6747 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6748 before fork_inferior call. Avoid calling it if target_is_pushed returns
6749 true.
6750
53dff92c
ST
67512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6752
6753 * gnu-nat.h (gnu_target): New variable declaration.
6754 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6755 gnu_target.
6756 * gnu-nat.c (gnu_target): New variable.
6757 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6758 add_thread_silent, and add_thread calls.
6759 (gnu_nat_target::create_inferior): Pass gnu_target to
6760 add_thread_silent, thread_change_ptid call.
6761 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6762 call.
6763
5a8b8627
ST
67642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6765
6766 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6767 (gnu_nat_target::find_memory_regions): Remove unused
6768 `old_address' variable.
6769
366f550a
ST
67702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6771
6772 * gnu-nat.c: Include "gdbarch.h".
6773
f14871bf
ST
67742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6775
6776 * reply_mig_hack.awk (Error return): Cast function through
6777 void *, to bypass compiler function call check.
6778
c6887cfb
ST
67792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6780
6781 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6782 $(srcdir)/reply_mig_hack.awk.
6783
6930bffe
ST
67842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6785
6786 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6787
112c22ed
JG
67882020-05-30 Jonny Grant <jg@jguk.org>
6789
6790 * configure.ac (ACX_BUGURL): change bug URL to https.
6791
f68f85b5
PA
67922020-05-30 Pedro Alves <palves@redhat.com>
6793
6794 * cp-support.c (replace_typedefs_template): New.
6795 (replace_typedefs_qualified_name): Handle
6796 DEMANGLE_COMPONENT_TEMPLATE.
6797
976ca316
SM
67982020-05-29 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6801 dwarf2/index-cache.h, dwarf2/index-write.c,
6802 dwarf2/index-write.h, dwarf2/line-header.c,
6803 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6804 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6805 variables and fields from `dwarf2_per_objfile` to just
6806 `per_objfile` throughout.
6807
989ade05
SM
68082020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6809
6810 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6811 <push_dwarf_reg_entry_value>: Add comment.
6812
c47bae85
KB
68132020-05-28 Kevin Buettner <kevinb@redhat.com>
6814 Keith Seitz <keiths@redhat.com>
6815
6816 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6817 instead of PyEval_ReleaseLock.
6818 (class gdbpy_gil): Move to earlier in file.
6819 (finalize_python): Set gdb_python_initialized.
6820 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6821 when not initialized.
6822
44486dcf
SM
68232020-05-28 Simon Marchi <simon.marchi@efficios.com>
6824
6825 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6826 <push_dwarf_reg_entry_value>: Remove assert. Override
6827 per_objfile with caller_per_objfile.
6828
f030440d
TV
68292020-05-28 Tom de Vries <tdevries@suse.de>
6830
6831 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6832 PR gold/15646 workaround to symbol kind "type".
6833
f0fbb768
TT
68342020-05-27 Tom Tromey <tromey@adacore.com>
6835
6836 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6837
af0b2a3e
TT
68382020-05-27 Tom Tromey <tromey@adacore.com>
6839
6840 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6841 Use htab_find_with_hash.
6842 <add_abbrev>: Remove "abbrev_number" parameter.
6843 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6844 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6845 (hash_abbrev): Add comment.
6846 (abbrev_table::lookup_abbrev): Move to header file.
6847 (abbrev_table::read): Update.
6848
7d00ffec
TT
68492020-05-27 Tom Tromey <tromey@adacore.com>
6850
6851 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6852 method.
6853 <canonical_name>: New member.
6854 <raw_name>: Rename from "name".
6855 (partial_die_info): Initialize canonical_name.
6856 (scan_partial_symbols): Check raw_name.
6857 (partial_die_parent_scope, partial_die_full_name)
6858 (add_partial_symbol, add_partial_subprogram)
6859 (add_partial_enumeration, load_partial_dies): Use "name" method.
6860 (partial_die_info::name): New method.
6861 (partial_die_info::read, guess_partial_die_structure_name)
6862 (partial_die_info::fixup): Update.
6863
697bba18
TT
68642020-05-27 Tom Tromey <tromey@adacore.com>
6865
6866 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6867 <get_ref_die_offset>: Inline.
6868 <get_ref_die_offset_complaint>: New method.
6869 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6870 (attribute::get_ref_die_offset_complaint): Rename from
6871 get_ref_die_offset. Just issue complaint.
6872
c17ace43
HD
68732020-05-27 Hannes Domani <ssbssa@yahoo.de>
6874
6875 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6876
96445f0b
HD
68772020-05-27 Hannes Domani <ssbssa@yahoo.de>
6878
6879 * exec.c (exec_file_attach): Use errno value of first openp failure.
6880
ac637ec3
HD
68812020-05-27 Hannes Domani <ssbssa@yahoo.de>
6882
6883 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6884 Don't close thread handle.
6885
17ee85fc
TT
68862020-05-27 Tom Tromey <tom@tromey.com>
6887 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6890 shared_ptr.
6891 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6892 member.
6893 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6894 dwarf2_per_bfd_objfile_data_key>: New globals.
6895 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6896 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6897 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6898 shared.
6899 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6900 short-circuit when sharing.
6901 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6902 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6903
39b16f87
SM
69042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6905
6906 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6907 to...
6908 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6909 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6910
fcf23d5b
SM
69112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6912
6913 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6914 build_name_components, find_name_components_bounds>:
6915 Add per_objfile parameter.
6916 (struct mapped_index) <symbol_name_at>: Likewise.
6917 (struct mapped_debug_names): Remove constructor.
6918 <dwarf2_per_objfile>: Remove field.
6919 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6920 (mapped_index_base::find_name_components_bounds,
6921 mapped_index_base::build_name_components,
6922 dw2_expand_symtabs_matching_symbol): Likewise.
6923 (class mock_mapped_index) <symbol_name_at>: Likewise.
6924 (check_match): Likewise.
6925 (check_find_bounds_finds): Likewise.
6926 (test_mapped_index_find_name_component_bounds): Update.
6927 (CHECK_MATCH): Update.
6928 (dw2_expand_symtabs_matching): Update.
6929 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6930 per_objfile parameter.
6931 <find_vec_in_debug_names>: Likewise.
6932 <m_per_objfile>: New field.
6933 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6934 parameter.
6935 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6936 (dw2_debug_names_iterator::next): Update.
6937 (dw2_debug_names_lookup_symbol): Update.
6938 (dw2_debug_names_expand_symtabs_for_function): Update.
6939 (dw2_debug_names_map_matching_symbols): Update.
6940 (dw2_debug_names_expand_symtabs_matching): Update.
6941 (dwarf2_read_debug_names): Update.
6942
7188ed02
SM
69432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6946 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6947 move to dwarf2_per_objfile.
6948 <read_in_chain>: Remove.
6949 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6950 remove_all_cus, age_comp_units>: New methods.
6951 <m_dwarf2_cus>: New member.
6952 (struct dwarf2_per_cu_data) <cu>: Remove.
6953 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6954 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6955 moved to methods of dwarf2_per_objfile.
6956 (dwarf2_clear_marks): Remove.
6957 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6958 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6959 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6960 (dwarf2_per_objfile::remove_all_cus): New.
6961 (class free_cached_comp_units) <~free_cached_comp_units>:
6962 Update.
6963 (load_cu): Update.
6964 (dw2_do_instantiate_symtab): Adjust.
6965 (fill_in_sig_entry_from_dwo_entry): Adjust.
6966 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6967 (cutu_reader::cutu_reader): Likewise.
6968 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6969 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6970 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6971 and dwarf2_per_objfile::age_comp_units.
6972 (load_partial_comp_unit): Update.
6973 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6974 (process_queue): Likewise.
6975 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6976 backlink.
6977 (dwarf2_read_addr_index): Likewise.
6978 (follow_die_offset): Likewise.
6979 (dwarf2_fetch_die_loc_sect_off): Likewise.
6980 (dwarf2_fetch_constant_bytes): Likewise.
6981 (dwarf2_fetch_die_type_sect_off): Likewise.
6982 (follow_die_sig_1): Likewise.
6983 (load_full_type_unit): Likewise.
6984 (read_signatured_type): Likewise.
6985 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6986 (dwarf2_cu::~dwarf2_cu): Remove.
6987 (dwarf2_per_objfile::get_cu): New.
6988 (dwarf2_per_objfile::set_cu): New.
6989 (age_cached_comp_units): Rename to...
6990 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6991 to std::unordered_map.
6992 (free_one_cached_comp_unit): Rename to...
6993 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6994 to std::unordered_map.
6995 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6996 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6997 a dwarf2_per_objfile in data.
6998 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6999 (dwarf2_clear_marks): Remove.
7000
2e671100
SM
70012020-05-27 Simon Marchi <simon.marchi@efficios.com>
7002
7003 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7004 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7005 (init_tu_and_read_dwo_dies): Likewise.
7006 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7007 (cutu_reader::cutu_reader): Likewise.
7008 (load_partial_comp_unit): Likewise.
7009 (process_psymtab_comp_unit): Update.
7010 (build_type_psymtabs_1): Update.
7011 (process_skeletonless_type_unit): Update.
7012 (load_full_comp_unit): Update.
7013 (find_partial_die): Update.
7014 (dwarf2_read_addr_index): Update.
7015 (read_signatured_type): Update.
7016
2e6a9f79
SM
70172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7018
7019 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7020 m_header_read_in>: New fields.
7021 <get_header>: New method.
7022 * dwarf2/read.c (per_cu_header_read_in): Remove.
7023 (dwarf2_per_cu_data::get_header): New.
7024 (dwarf2_per_cu_data::addr_size): Update.
7025 (dwarf2_per_cu_data::offset_size): Update.
7026 (dwarf2_per_cu_data::ref_addr_size): Update.
7027
1b555f17
SM
70282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7029
7030 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7031 (dw2_do_instantiate_symtab): Update.
7032 (queue_and_load_all_dwo_tus): Change parameter from
7033 dwarf2_per_cu_data to dwarf2_cu.
7034 (dwarf2_fetch_die_loc_sect_off): Update.
7035 (dwarf2_fetch_constant_bytes): Update.
7036 (dwarf2_fetch_die_type_sect_off): Update.
7037
8fc0b21d
SM
70382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7039
7040 * dwarf2/read.c (process_full_comp_unit,
7041 process_full_type_unit): Remove per_cu, per_objfile paramters.
7042 Add dwarf2_cu parameter.
7043 (process_queue): Update.
7044
168c9250
SM
70452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7046
7047 * dwarf2/read.c (create_cu_from_index_list): Replace
7048 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7049 (create_cus_from_index_list): Likewise.
7050 (create_cus_from_index): Likewise.
7051 (create_signatured_type_table_from_index): Likewise.
7052 (create_cus_from_debug_names_list): Likewise.
7053 (create_cus_from_debug_names): Likewise.
7054 (dwarf2_read_gdb_index): Update.
7055 (dwarf2_read_debug_names): Update.
7056
e286671b
TT
70572020-05-27 Tom Tromey <tom@tromey.com>
7058 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * dwarf2/read.h (struct dwarf2_per_objfile)
7061 <get_type_for_signatured_type, set_type_for_signatured_type>:
7062 New methods.
7063 <m_type_map>: New member.
7064 (struct signatured_type) <type>: Remove.
7065 * dwarf2/read.c
7066 (dwarf2_per_objfile::get_type_for_signatured_type,
7067 dwarf2_per_objfile::set_type_for_signatured_type): New.
7068 (get_signatured_type): Use new methods.
7069
8adb8487
TT
70702020-05-27 Tom Tromey <tom@tromey.com>
7071 Simon Marchi <simon.marchi@efficios.com>
7072
7073 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7074 (struct dwarf2_per_objfile) <type_units>: New member.
7075 <get_type_unit_group_unshareable>: New method.
7076 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7077 num_symtabs, symtabs>: Remove; move to
7078 type_unit_group_unshareable.
7079 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7080 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7081 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7082
127bbf4b
SM
70832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * dwarf2/read.h (struct dwarf2_per_cu_data):
7086 <dwarf2_per_objfile>: Remove.
7087 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7088 dwarf2_per_objfile.
7089 (create_signatured_type_table_from_index): Likewise.
7090 (create_signatured_type_table_from_debug_names): Likewise.
7091 (create_debug_type_hash_table): Likewise.
7092 (fill_in_sig_entry_from_dwo_entry): Likewise.
7093 (create_type_unit_group): Likewise.
7094 (read_comp_units_from_section): Likewise.
7095 (create_cus_hash_table): Likewise.
7096
f6e649dd
SM
70972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7100 dwarf2_per_cu_data::dwarf2_per_objfile.
7101 (compute_compunit_symtab_includes): Likewise.
7102 (dwarf2_cu::start_symtab): Likewise.
7103
aa66c379
SM
71042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7105
7106 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7107 parameter.
7108 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7109 (read_namespace_alias): Update.
7110 (lookup_die_type): Update.
7111 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7112 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7113 Update.
7114 (disassemble_dwarf_expression): Update.
7115
120ce1b5
SM
71162020-05-27 Simon Marchi <simon.marchi@efficios.com>
7117
7118 * dwarf2/read.h (struct dwarf2_queue_item): Add
7119 dwarf2_per_objfile parameter, assign new parameter.
7120 <per_objfile>: New field.
7121 * dwarf2/read.c (free_one_cached_comp_unit): Add
7122 dwarf2_per_objfile parameter.
7123 (queue_comp_unit): Likewise.
7124 (dw2_do_instantiate_symtab): Update.
7125 (process_psymtab_comp_unit): Update.
7126 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7127 (process_imported_unit_die): Update.
7128 (queue_and_load_dwo_tu): Update.
7129 (follow_die_offset): Update.
7130 (follow_die_sig_1): Update.
7131
9f47c707
SM
71322020-05-27 Simon Marchi <simon.marchi@efficios.com>
7133
7134 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7135 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7136 (read_call_site_scope): Assign per_objfile.
7137 (dwarf2_per_cu_data::objfile): Remove.
7138 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7139 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7140 dwarf2_per_objfile parameter.
7141 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7142 dwarf2_per_objfile parameter.
7143 (dwarf_expr_reg_to_entry_parameter): Add output
7144 dwarf2_per_objfile parameter.
7145 (locexpr_get_frame_base): Update.
7146 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7147 <push_dwarf_reg_entry_value>: Update.
7148 <call_site_to_target_addr>: Update.
7149 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7150 parameter.
7151 (value_of_dwarf_reg_entry): Update.
7152 (rw_pieced_value): Update.
7153 (indirect_synthetic_pointer): Update.
7154 (dwarf2_evaluate_property): Update.
7155 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7156 parameter.
7157 (locexpr_read_variable): Update.
7158 (locexpr_get_symbol_read_needs): Update.
7159 (loclist_read_variable): Update.
7160
14095eb3
SM
71612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7162
7163 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7164 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7165 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7166 parameter.
7167 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7168 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7169 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7170 parameter.
7171 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7172 sect_variable_value): Add dwarf2_per_objfile parameter.
7173 (class dwarf_evaluate_loc_desc) <dwarf_call,
7174 dwarf_variable_value>: Update.
7175 (fetch_const_value_from_synthetic_pointer): Add
7176 dwarf2_per_objfile parameter.
7177 (fetch_const_value_from_synthetic_pointer): Update.
7178 (coerced_pieced_ref): Update.
7179 (class symbol_needs_eval_context) <dwarf_call,
7180 dwarf_variable_value>: Update.
7181 (dwarf2_compile_expr_to_ax): Update.
7182
3c3cd3d4
SM
71832020-05-27 Simon Marchi <simon.marchi@efficios.com>
7184
7185 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7186 parameter.
7187 (dwarf2_evaluate_loc_desc_full): Update.
7188
82ca3f51
SM
71892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7192 parameter.
7193 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7194 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7195 dwarf2_per_objfile parameter.
7196 (decode_debug_loc_dwo_addresses): Likewise.
7197 (dwarf2_find_location_expression): Update.
7198 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7199 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7200 parameter.
7201 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7202 parameter.
7203 (locexpr_describe_location_1): Likewise.
7204 (locexpr_describe_location): Update.
7205
4b167ea1
SM
72062020-05-27 Simon Marchi <simon.marchi@efficios.com>
7207
7208 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7209 Remove.
7210 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7211 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7212 (dwarf2_compile_property_to_c): Update.
7213 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7214 use text offset from objfile.
7215 (locexpr_tracepoint_var_ref): Update.
7216 (locexpr_generate_c_location): Update.
7217 (loclist_describe_location): Update.
7218 (loclist_tracepoint_var_ref): Update.
7219 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7220 dwarf2_per_objfile parameter.
7221 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7222 use text offset from objfile.
7223 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7224
89b07335
SM
72252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7226
7227 * dwarf2/expr.h (struct dwarf_expr_context)
7228 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7229 <offset>: Remove.
7230 <per_objfile>: New member.
7231 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7232 dwarf2_per_objfile parameter. Don't set offset, set
7233 per_objfile.
7234 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7235 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7236 a dwarf2_per_objfile object instead of an offset.
7237 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7238 constructor.
7239 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7240 to dwarf2_expr_executor constructor. Don't set offset.
7241 (dwarf2_fetch_cfa_info): Update.
7242 (struct dwarf2_frame_cache) <text_offset>: Remove.
7243 <per_objfile>: New field.
7244 (dwarf2_frame_cache): Update.
7245 (dwarf2_frame_prev_register): Update.
7246 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7247 <dwarf_evaluate_loc_desc>: Add constructor.
7248 (dwarf2_evaluate_loc_desc_full): Update.
7249 (dwarf2_locexpr_baton_eval): Update.
7250 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7251 Add constructor.
7252 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7253
293e7e51
SM
72542020-05-27 Simon Marchi <simon.marchi@efficios.com>
7255
7256 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7257 addr_sized_int_type>: Move to dwarf2_cu.
7258 <int_type>: Move to dwarf2_per_objfile.
7259 (struct dwarf2_per_objfile) <int_type>: Move here.
7260 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7261 addr_sized_int_type>: Move here.
7262 (read_func_scope): Update.
7263 (read_array_type): Update.
7264 (read_tag_string_type): Update.
7265 (attr_to_dynamic_prop): Update.
7266 (dwarf2_per_cu_data::int_type): Rename to...
7267 (dwarf2_per_objfile::int_type): ... this.
7268 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7269 (dwarf2_cu::addr_sized_int_type): ... this.
7270 (read_subrange_type): Update.
7271 (dwarf2_per_cu_data::addr_type): Rename to...
7272 (dwarf2_cu::addr_type): ... this.
7273 (set_die_type): Update.
7274
64874a40
SM
72752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7276
7277 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7278 data through per_cu->cu.
7279
4ab09049
SM
72802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7283 dwarf2_per_cu_data parameter fo dwarf2_cu.
7284 (lookup_dwo_type_unit): Likewise.
7285 (read_cutu_die_from_dwo): Likewise.
7286 (lookup_dwo_unit): Likewise.
7287 (open_and_init_dwo_file): Likewise.
7288 (lookup_dwo_cutu): Likewise.
7289 (lookup_dwo_comp_unit): Likewise.
7290 (lookup_dwo_type_unit): Likewise.
7291 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7292 (cutu_reader::cutu_reader): Update.
7293
47b14e86
SM
72942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7295
7296 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7297 parameter.
7298 (process_full_type_unit): Likewise.
7299 (process_queue): Update.
7300
43182c09
SM
73012020-05-27 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * dwarf2/read.c (recursively_compute_inclusions): Add
7304 dwarf2_per_objfile parameter.
7305 (compute_compunit_symtab_includes): Likewise.
7306 (process_cu_includes): Update.
7307
7aa104c4
SM
73082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7309
7310 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7311 parameter.
7312 (create_type_unit_group): Update.
7313 (process_psymtab_comp_unit_reader): Update.
7314 (build_type_psymtabs_reader): Update.
7315
e3beb21d
SM
73162020-05-27 Simon Marchi <simon.marchi@efficios.com>
7317
7318 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7319 object through m_this_cu->cu.
7320
d460f660
SM
73212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7322
7323 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7324 the info parameter.
7325 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7326
ab432490
SM
73272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7328
7329 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7330 per_objfile parameter.
7331 (load_full_type_unit): Add per_objfile parameter.
7332 (read_signatured_type): Likewise.
7333 (load_full_comp_unit): Likewise.
7334 (load_cu): Likewise.
7335 (dw2_do_instantiate_symtab): Likewise.
7336 (dw2_get_file_names): Likewise.
7337 (dw2_map_symtabs_matching_filename): Update.
7338 (dw_expand_symtabs_matching_file_matcher): Update.
7339 (dw2_map_symbol_filenames): Update.
7340 (process_psymtab_comp_unit): Add per_objfile parameter.
7341 (build_type_psymtabs_1): Update.
7342 (process_skeletonless_type_unit): Update.
7343 (dwarf2_build_psymtabs_hard): Update.
7344 (load_partial_comp_unit): Add per_objfile parameter.
7345 (scan_partial_symbols): Update.
7346 (load_full_comp_unit): Add per_objfile parameter.
7347 (process_imported_unit_die): Update.
7348 (create_cus_hash_table): Update.
7349 (find_partial_die): Update.
7350 (dwarf2_read_addr_index): Update.
7351 (follow_die_offset): Update.
7352 (dwarf2_fetch_die_loc_sect_off): Update.
7353 (dwarf2_fetch_constant_bytes): Update.
7354 (dwarf2_fetch_die_type_sect_off): Update.
7355 (follow_die_sig_1): Update.
7356 (load_full_type_unit): Add per_objfile parameter.
7357 (read_signatured_type): Likewise.
7358
313bad1b
SM
73592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7362 of objfile_name.
7363
c3699833
SM
73642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7365
7366 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7367 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7368 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7369 field.
7370 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7371 (create_cus_from_index): Update.
7372 (dwarf2_read_gdb_index): Update.
7373 (create_cus_from_debug_names): Update.
7374 (dwarf2_read_debug_names): Update.
7375 (get_abbrev_section_for_cu): Update.
7376 (create_all_comp_units): Update.
7377 (read_attribute_value): Update.
7378 (get_debug_line_section): Update.
7379 * dwarf2/index-cache.c (index_cache::store): Update.
7380 * dwarf2/index-write.c (save_gdb_index_command): Update.
7381 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7382
1859c670
SM
73832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7384
7385 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7386 member.
7387 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7388 dwarf2_per_cu_data::per_bfd.
7389 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7390 (create_type_unit_group): Likewise.
7391 (queue_comp_unit): Remove reference to
7392 per_cu->dwarf2_per_objfile.
7393 (maybe_queue_comp_unit): Likewise.
7394 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7395 (create_cus_hash_table): Assign new field.
7396
5e22e966
SM
73972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7398
7399 * dwarf2/read.c: Replace
7400 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7401 dwarf2_cu->per_objfile throughout.
7402
97a1449a
SM
74032020-05-27 Simon Marchi <simon.marchi@efficios.com>
7404
7405 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7406 parameter, don't use per_cu->dwarf2_per_objfile.
7407 (dw2_instantiate_symtab): Likewise.
7408 (dw2_find_last_source_symtab): Update.
7409 (dw2_map_expand_apply): Update.
7410 (dw2_lookup_symbol): Update.
7411 (dw2_expand_symtabs_for_function): Update.
7412 (dw2_expand_all_symtabs): Update.
7413 (dw2_expand_symtabs_with_fullname): Update.
7414 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7415 don't use per_cu->dwarf2_per_objfile.
7416 (dw2_expand_marked_cus): Update.
7417 (dw2_find_pc_sect_compunit_symtab): Update.
7418 (dw2_debug_names_lookup_symbol): Update.
7419 (dw2_debug_names_expand_symtabs_for_function): Update.
7420 (dw2_debug_names_map_matching_symbols): Update.
7421 (dwarf2_psymtab::expand_psymtab): Update.
7422
9e021579
SM
74232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7424
7425 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7426 <per_objfile>: New member.
7427 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7428 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7429 call to dwarf2_cu.
7430 (cutu_reader::cutu_reader): Update.
7431 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7432
ae090bdb
SM
74332020-05-27 Simon Marchi <simon.marchi@efficios.com>
7434
7435 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7436 struct dwarf2_per_objfile.
7437 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7438 dwarf2_per_bfd.
7439 * dwarf2/read.c (set_die_type): Update.
7440 (get_die_type_at_offset): Update.
7441
af758d11
SM
74422020-05-27 Tom Tromey <tom@tromey.com>
7443 Simon Marchi <simon.marchi@efficios.com>
7444
7445 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7446 method.
7447 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7448 get_symtab, set_symtab>: New methods.
7449 <m_symtabs>: New field.
7450 (struct dwarf2_psymtab): Derive from partial_symtab.
7451 <readin_p, get_compunit_symtab>: Declare methods.
7452 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7453 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7454 New methods.
7455 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7456 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7457 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7458 (dw2_symtab_iter_next, dw2_print_stats)
7459 (dw2_expand_symtabs_with_fullname)
7460 (dw2_expand_symtabs_matching_one)
7461 (dw_expand_symtabs_matching_file_matcher)
7462 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7463 (dw2_debug_names_iterator::next)
7464 (dw2_debug_names_map_matching_symbols)
7465 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7466 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7467 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7468 New methods.
7469 (get_compunit_symtab, process_full_comp_unit)
7470 (process_full_type_unit): Update.
7471 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7472
5989a64e
SM
74732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7474
7475 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7476 then introduce a new dwarf2_per_objfile type.
7477 <read_line_string>: Move to the new dwarf2_per_objfile type.
7478 <objfile>: Likewise.
7479 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7480 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7481 dwarf2_per_objfile->per_bfd.
7482 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7483 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7484 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7485 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7486 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7487 (dwarf2_per_objfile::locate_sections): Rename to...
7488 (dwarf2_per_bfd::locate_sections): ... this.
7489 (dwarf2_per_objfile::get_cutu): Rename to...
7490 (dwarf2_per_bfd::get_cutu): ... this.
7491 (dwarf2_per_objfile::get_cu): Rename to...
7492 (dwarf2_per_bfd::get_cu): ... this.
7493 (dwarf2_per_objfile::get_tu): Rename to...
7494 (dwarf2_per_bfd::get_tu): ... this.
7495 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7496 (dwarf2_per_bfd::allocate_per_cu): ... this.
7497 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7498 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7499 (get_gdb_index_contents_ftype): Change parameter from
7500 dwarf2_per_objfile to dwarf2_per_bfd.
7501 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7502 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7503
a50264ba
TT
75042020-05-27 Tom Tromey <tom@tromey.com>
7505 Simon Marchi <simon.marchi@efficios.com>
7506
7507 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7508 (allocate_piece_closure): Set "per_objfile" member.
7509 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7510 (locexpr_describe_location, loclist_describe_location): Use new
7511 member.
7512 * dwarf2/read.c (read_call_site_scope)
7513 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7514 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7515 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7516 handle_data_member_location): Set per_objfile member.
7517 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7518 member.
7519 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7520
d3473f0c
TT
75212020-05-27 Tom Tromey <tom@tromey.com>
7522
7523 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7524 allocate_signatured_type>: Declare new methods.
7525 <m_num_psymtabs>: New member.
7526 (struct dwarf2_per_cu_data) <index>: New member.
7527 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7528 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7529 (create_cu_from_index_list): Use allocate_per_cu.
7530 (create_signatured_type_table_from_index)
7531 (create_signatured_type_table_from_debug_names)
7532 (create_debug_type_hash_table, add_type_unit)
7533 (read_comp_units_from_section): Use allocate_signatured_type.
7534
5717c425
TT
75352020-05-27 Tom Tromey <tom@tromey.com>
7536
7537 * psymtab.c (partial_map_expand_apply)
7538 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7539 (psym_lookup_global_symbol_language)
7540 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7541 (psym_print_stats, psym_expand_symtabs_for_function)
7542 (psym_map_symbol_filenames, psym_map_matching_symbols)
7543 (psym_expand_symtabs_matching)
7544 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7545 (maintenance_check_psymtabs): Update.
7546 * psympriv.h (struct partial_symtab) <readin_p,
7547 get_compunit_symtab>: Add objfile parameter.
7548 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7549 Likewise.
7550 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7551 get_compunit_symtab>: Likewise.
7552 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7553
45940949
TT
75542020-05-27 Tom Tromey <tom@tromey.com>
7555
7556 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7557 member.
7558 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7559 (create_cu_from_index_list)
7560 (create_signatured_type_table_from_index)
7561 (create_signatured_type_table_from_debug_names)
7562 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7563 (dwarf2_create_include_psymtab)
7564 (create_debug_type_hash_table, add_type_unit)
7565 (create_type_unit_group, read_comp_units_from_section)
7566 (dwarf2_compute_name, create_cus_hash_table)
7567 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7568 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7569 obstack.
7570 (dw2_get_real_path): Likewise. Change argument to
7571 dwarf2_per_objfile.
7572
f8c6d152
LM
75732020-05-27 Luis Machado <luis.machado@linaro.org>
7574
7575 PR tdep/26000
7576 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7577 for ldrd (immediate).
7578
e98d2e6d
PW
75792020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7580
7581 * command.h: Add comment giving the name of class_tui.
7582 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7583 create the fake command for the help for class_tui.
7584
53a47a3e
TT
75852020-05-26 Tom Tromey <tromey@adacore.com>
7586
7587 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7588 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7589 (val_atr): New function.
7590 (value_val_atr): Use it.
7591 * ada-valprint.c (print_optional_low_bound): Change low bound
7592 handling for enums.
7593 (val_print_packed_array_elements): Don't call discrete_position.
7594 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7595 discrete_position for enum types.
7596 * language.c (default_print_array_index): Change type.
7597 * language.h (struct language_defn) <la_print_array_index>: Add
7598 index_type parameter, change type of index_value.
7599 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7600 (default_print_array_index): Update.
7601 * valprint.c (maybe_print_array_index): Don't call
7602 value_from_longest. Update.
7603 (value_print_array_elements): Don't call discrete_position.
7604
0bc2354b
TT
76052020-05-26 Tom Tromey <tromey@adacore.com>
7606
7607 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7608 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7609
1218a4bf
CDA
76102020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7611
7612 PR gdb/13519
7613 * avr-tdep.c (avr_integer_to_address): Return data or code
7614 address accordingly to the second 'type' argument of the
7615 function.
7616
92651b1d
MW
76172020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7618
7619 * infcmd.c, inferior.h: (construct_inferior_arguments):
7620 Moved function from here to gdbsupport/common-inferior.{h,cc}
7621
0a4f5f8c
TT
76222020-05-23 Tom Tromey <tom@tromey.com>
7623
7624 Revert commit eca1f90c:
7625 * NEWS: Remove entry for completion styling.
7626 * completer.c (_rl_completion_prefix_display_length): Move
7627 declaration later.
7628 (gdb_fnprint): Revert.
7629 (gdb_display_match_list_1): Likewise.
7630 * cli/cli-style.c (completion_prefix_style)
7631 (completion_difference_style, completion_suffix_style): Remove.
7632 (_initialize_cli_style): Revert.
7633 * cli/cli-style.h (completion_prefix_style)
7634 (completion_difference_style, completion_suffix_style): Don't
7635 declare.
7636
e08bd6c5
PA
76372020-05-24 Pedro Alves <palves@redhat.com>
7638
7639 * symtab.c (completion_list_add_name): Return boolean indication
7640 of whether the symbol matched.
7641 (completion_list_add_symbol): Don't try to remove C++ aliases if
7642 the symbol didn't match in the first place.
7643 * symtab.h (completion_list_add_name): Return bool.
7644
ceacbf6e
SM
76452020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7646
7647 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7648 type::field.
7649
26f16254
JB
76502020-05-23 Joel Brobecker <brobecker@adacore.com>
7651
7652 GDB 9.2 released.
7653
eca1f90c
TT
76542020-05-23 Tom Tromey <tom@tromey.com>
7655
7656 * NEWS: Add entry for completion styling.
7657 * completer.c (_rl_completion_prefix_display_length): Move
7658 declaration earlier.
7659 (gdb_fnprint): Use completion_style.
7660 (gdb_display_match_list_1): Likewise.
7661 * cli/cli-style.c (completion_prefix_style)
7662 (completion_difference_style, completion_suffix_style): New
7663 globals.
7664 (_initialize_cli_style): Register new globals.
7665 * cli/cli-style.h (completion_prefix_style)
7666 (completion_difference_style, completion_suffix_style): Declare.
7667
51e2cfa2
PA
76682020-05-23 Pedro Alves <palves@redhat.com>
7669
7670 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7671 (parse_escape): Use ISDIGIT instead of isdigit.
7672 (puts_debug): Use gdb_isprint instead of isprint.
7673 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7674 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7675 ISSPACE instead of isspace.
7676 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7677 instead of isspace.
7678 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7679 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7680 instead of isxdigit and ISDIGIT instead of isdigit.
7681
80fc5e77
SM
76822020-05-22 Simon Marchi <simon.marchi@efficios.com>
7683
7684 * gdbtypes.h (struct type) <field>: New method.
7685 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7686 or type::field.
7687
3cabb6b0
SM
76882020-05-22 Simon Marchi <simon.marchi@efficios.com>
7689
7690 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7691 (TYPE_FIELDS): Use type::fields. Change all call sites that
7692 modify the propery to use type::set_fields instead.
7693
1f704f76
SM
76942020-05-22 Simon Marchi <simon.marchi@efficios.com>
7695
7696 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7697 type::num_fields instead.
7698
5e33d5f4
SM
76992020-05-22 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7702 methods.
7703 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7704 that modify the number of fields to use type::set_num_fields
7705 instead.
7706
9392ebb3
TT
77072020-05-22 Tom Tromey <tromey@adacore.com>
7708
7709 * compile/compile-object-load.h (munmap_list_free): Don't
7710 declare.
7711
7c13f4e8
AB
77122020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7713
7714 * annotate.c (annotate_source_line): Update return type, add call
7715 to update current symtab and line.
7716 * annotate.h (annotate_source_line): Update return type, and
7717 extend header comment.
7718 * source.c (info_line_command): Check annotation_level before
7719 calling annotate_source_line.
7720 * stack.c (print_frame_info): If calling annotate_source_line
7721 returns true, then don't print any other source line information.
7722
aa370940
SM
77232020-05-21 Simon Marchi <simon.marchi@efficios.com>
7724
7725 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7726
84d53fa9
SM
77272020-05-21 Simon Marchi <simon.marchi@efficios.com>
7728
7729 * coffread.c (patch_type): Remove NULL check before xfree.
7730 * corefile.c (set_gnutarget): Likewise.
7731 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7732 * exec.c (build_section_table): Likewise.
7733 * remote.c (remote_target::pass_signals): Likewise.
7734 * utils.c (n_spaces): Likewise.
7735 * cli/cli-script.c (document_command): Likewise.
7736 * i386-windows-tdep.c (core_process_module_section): Likewise.
7737 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7738
9d428aae
SM
77392020-05-20 Simon Marchi <simon.marchi@efficios.com>
7740
7741 * symfile.c (reread_symbols): Clear objfile's section_offsets
7742 vector and section indices, re-compute them by calling
7743 sym_offsets.
7744
250106a7
TT
77452020-05-20 Tom Tromey <tromey@adacore.com>
7746
7747 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7748 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7749
9a0bacfb
TV
77502020-05-20 Tom de Vries <tdevries@suse.de>
7751
7752 PR symtab/25833
7753 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7754
7b958a48
AM
77552020-05-20 Alan Modra <amodra@gmail.com>
7756
7757 PR 25993
7758 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7759 bfd_set_filename.
7760 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7761 passed to bfd_set_filename.
7762 * symfile-mem.c (add_vsyscall_page): Likewise for string
7763 passed to symbol_file_add_from_memory.
7764 (symbol_file_add_from_memory): Make name param a const char* and
7765 don't strdup.
7766
c7e97679
AM
77672020-05-20 Alan Modra <amodra@gmail.com>
7768
7769 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7770 rather than accessing bfd->filename directly.
7771 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7772 and use bfd_section_name.
7773 * dwarf2/frame.c (decode_frame_entry): Likewise.
7774 * exec.c (exec_set_section_address): Likewise.
7775 * solib-aix.c (solib_aix_bfd_open): Likewise.
7776 * stap-probe.c (get_stap_base_address): Likewise.
7777 * symfile.c (reread_symbols): Likewise.
7778
563c591b
TT
77792020-05-19 Tom Tromey <tromey@adacore.com>
7780
7781 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7782
f408d82c
SM
77832020-05-19 Simon Marchi <simon.marchi@efficios.com>
7784
7785 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7786
98c59b52
PA
77872020-05-19 Pedro Alves <palves@redhat.com>
7788
7789 * NEWS (set exec-file-mismatch): Adjust entry.
7790 * exec.c: Include "build-id.h".
7791 (validate_exec_file): Try to match build IDs instead of filenames.
7792 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7793 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7794 and pass down 'warn_if_slow'.
7795 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7796 gdb_bfd_open_closure to pass it down.
7797 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7798
4111f652
PA
77992020-05-19 Pedro Alves <palves@redhat.com>
7800
7801 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7802 * target.c (target_fileio_open_1): Rename to target_fileio_open
7803 and make extern. Use bool.
7804 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7805 (target_fileio_read_alloc_1): Adjust.
7806 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7807 (target_fileio_open_warn_if_slow): Delete declaration.
7808
ad80db5b
PA
78092020-05-19 Pedro Alves <palves@redhat.com>
7810
7811 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7812 Adjust all callers.
7813
1d6ce4d3
YS
78142020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7815
7816 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7817 whether disp is negative.
7818
9005fbbb
SM
78192020-05-19 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * symfile.h (struct symfile_segment_data)
7822 <~symfile_segment_data>: Remove.
7823 <segment_info>: Change to std::vector.
7824 * symfile.c (default_symfile_segments): Update.
7825 * elfread.c (elf_symfile_segments): Update.
7826
68b888ff
SM
78272020-05-19 Simon Marchi <simon.marchi@efficios.com>
7828
7829 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7830 <segments>: New.
7831 <segment_bases, segment_sizes>: Remove.
7832 * symfile.c (default_symfile_segments): Update.
7833 * elfread.c (elf_symfile_segments): Update.
7834 * remote.c (remote_target::get_offsets): Update.
7835 * solib-target.c (solib_target_relocate_section_addresses):
7836 Update.
7837
62982abd
SM
78382020-05-19 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * symfile.h (struct symfile_segment_data): Initialize fields.
7841 <~symfile_segment_data>: Add.
7842 (symfile_segment_data_up): New.
7843 (struct sym_fns) <sym_segments>: Return a
7844 symfile_segment_data_up.
7845 (default_symfile_segments): Return a symfile_segment_data_up.
7846 (free_symfile_segment_data): Remove.
7847 (get_symfile_segment_data): Return a symfile_segment_data_up.
7848 * symfile.c (default_symfile_segments): Likewise.
7849 (get_symfile_segment_data): Likewise.
7850 (free_symfile_segment_data): Remove.
7851 (symfile_find_segment_sections): Update.
7852 * elfread.c (elf_symfile_segments): Return a
7853 symfile_segment_data_up.
7854 * remote.c (remote_target::get_offsets): Update.
7855 * solib-target.c (solib_target_relocate_section_addresses):
7856 Update.
7857 * symfile-debug.c (debug_sym_segments): Return a
7858 symfile_segment_data_up.
7859
7f204339
RO
78602020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7861
e52a0f1b
RO
7862 PR build/25981
7863 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7864 Hardcode register numbers.
7865
7f204339
RO
7866 PR build/25981
7867 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7868 procfs_find_LDT_entry): Remove.
7869 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7870 procfs_find_LDT_entry): Remove.
7871 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7872 Remove.
7873
7f32a4d5
PA
78742020-05-17 Pedro Alves <palves@redhat.com>
7875 Andrew Burgess <andrew.burgess@embecosm.com>
7876 Keno Fischer <keno@juliacomputing.com>
7877
7878 PR gdb/25741
7879 * breakpoint.c (build_target_condition_list): Update comments.
7880 (build_target_command_list): Update comments and skip matching
7881 locations.
7882 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7883 a separate function. Simplify "set breakpoint auto-hw off"
7884 handling.
7885 (insert_breakpoints): Update comment.
7886 (tracepoint_locations_match): New parameter. For breakpoints,
7887 compare location types too, if the caller wants to.
7888 (handle_automatic_hardware_breakpoints): New functions.
7889 (bp_location_is_less_than): Also sort by location type and
7890 hardware breakpoint length.
7891 (update_global_location_list): Handle "set breakpoint auto-hw on"
7892 here.
7893 (update_breakpoint_locations): Ask breakpoint_locations_match to
7894 ignore location types.
7895
7d93a1e0
SM
78962020-05-16 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7899 type::name instead.
7900
d0e39ea2
SM
79012020-05-16 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * gdbtypes.h (struct type) <name, set_name>: New methods.
7904 (TYPE_CODE): Use type::name. Change all call sites used to set
7905 the name to use type::set_name instead.
7906
2dab0c7b
TT
79072020-05-16 Tom Tromey <tom@tromey.com>
7908
7909 * top.c (quit_force): Update.
7910 * infrun.c (handle_no_resumed): Update.
7911 * top.h (all_uis): New function.
7912 (ALL_UIS): Remove.
7913
59f7bd8d
SM
79142020-05-16 Simon Marchi <simon.marchi@efficios.com>
7915
7916 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7917
9bf058f0
PA
79182020-05-16 Pedro Alves <palves@redhat.com>
7919
7920 * ia64-linux-nat.c
7921 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7922 Declare method.
7923 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7924
8f86ae1a
SM
79252020-05-15 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7928 (sparc64_adi_info): Likewise.
7929
d6bc0792
TT
79302020-05-15 Tom Tromey <tom@tromey.com>
7931
7932 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7933 block_objfile.
7934 (lookup_objfile_from_block): Remove.
7935 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7936 (lookup_global_symbol): Use block_objfile.
7937 * symtab.h (lookup_objfile_from_block): Don't declare.
7938 * printcmd.c (clear_dangling_display_expressions): Use
7939 block_objfile.
7940 * parse.c (operator_check_standard): Use block_objfile.
7941
8c14c3a3
TT
79422020-05-15 Tom Tromey <tom@tromey.com>
7943
7944 * language.c (language_alloc_type_symbol): Set
7945 SYMBOL_SECTION.
7946 * symtab.c (initialize_objfile_symbol): Remove.
7947 (allocate_symbol): Remove.
7948 (allocate_template_symbol): Remove.
7949 * dwarf2/read.c (fixup_go_packaging): Use "new".
7950 (new_symbol): Use "new".
7951 (read_variable): Don't call initialize_objfile_symbol. Use
7952 "new".
7953 (read_func_scope): Use "new".
7954 * xcoffread.c (process_xcoff_symbol): Don't call
7955 initialize_objfile_symbol.
7956 (SYMBOL_DUP): Remove.
7957 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7958 "new".
7959 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7960 (allocate_template_symbol): Don't declare.
7961 (struct symbol): Add copy constructor. Change defaults.
7962 * jit.c (finalize_symtab): Use "new".
7963 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7964 Use "new".
7965 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7966 (common_block_end): Use "new".
7967 * mdebugread.c (parse_symbol): Use "new".
7968 (new_symbol): Likewise.
7969
5b4a1a8d
PW
79702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7971
7972 * NEWS: Mention changes to help and apropos.
7973
57b4f16e
PW
79742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7975
7976 * command.h (enum command_class): Improve comments, document
7977 that class_alias is for user-defined aliases, give the class
7978 name for each class, remove unused class_xdb.
7979 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7980 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7981 by a precise class.
7982 * infcmd.c (_initialize_infcmd): Likewise.
7983 * reverse.c (_initialize_reverse): Likewise.
7984 * stack.c (_initialize_stack): Likewise.
7985 * symfile.c (_initialize_symfile): Likewise.
7986 * tracepoint.c (_initialize_tracepoint): Likewise.
7987
7c05caf7
PW
79882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7989
7990 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7991 when their aliased command is traversed.
7992 (help_cmd): Add fput_command_names_styled call to
7993 output command name and aliases when command has an alias.
7994
3b3aaacb
PW
79952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7996
7997 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7998 * cli/cli-decode.c (help_cmd_list): Declare as static,
7999 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8000 a command together with the command.
8001 (fput_command_name_styled, fput_command_names_styled): New functions.
8002 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8003 fput_command_name_styled.
8004 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8005 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8006
7aa1b46f
PW
80072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8008
8009 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8010 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8011 * command.h (cmd_show_list): Likewise.
8012 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8013 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8014
89bcba74
PW
80152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8016
8017 * unittests/command-def-selftests.c (traverse_command_structure):
8018 Verify all commands of a list have the same prefix command and
8019 that only the top cmdlist commands have a null prefix.
8020
3f4d92eb
PW
80212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8022
8023 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8024 as prefix, not one of its aliases.
8025 (set_cmd_prefix): Remove.
8026 (do_add_cmd): Centralize the setting of the prefix of a command, when
8027 command is defined after its full chain of prefix commands.
8028 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8029 (add_setshow_cmd_full): Likewise.
8030 (update_prefix_field_of_prefixed_commands): New function.
8031 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8032 update_prefix_field_of_prefixed_commands.
8033 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8034 addresses of remote_set_cmdlist and remote_show_cmdlist given
8035 as argument, not the address of an argument.
8036 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8037 * gdb/remote.c (_initialize_remote): Likewise.
8038
0605465f
PW
80392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8040
8041 * cli/cli-cmds.c (alias_command): Check for an existing alias
8042 using lookup_cmd_composition, as valid_command_p is too strict
8043 and forbids aliases that are the prefix of an existing alias
8044 or command.
8045 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8046 command is properly recognised as a valid command.
8047
58e6ac70
PW
80482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8049
8050 * unittests/help-doc-selftests.c: Rename to
8051 unittests/command-def-selftests.c
8052 * unittests/command-def-selftests.c (help_doc_tests): Update some
8053 comments.
8054 (command_structure_tests, traverse_command_structure): New namespace
8055 and function.
8056 (command_structure_invariants_tests): New function.
8057 (_initialize_command_def_selftests) Renamed from
8058 _initialize_help_doc_selftests, register command_structure_invariants
8059 selftest.
8060
a7b9ceb8
PW
80612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8062
8063 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8064 an alias of 'show'.
8065
b2188a06
JB
80662020-05-15 Joel Brobecker <brobecker@adacore.com>
8067
8068 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8069 ada_is_fixed_point_type. Update all callers.
8070 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8071 all callers.
8072 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8073 Update all callers.
8074 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8075 print_fixed_point_type. Update all callers.
8076 * ada-valprint.c (ada_value_print_num): Replace call to
8077 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8078
a51951c2
KB
80792020-05-14 Kevin Buettner <kevinb@redhat.com>
8080
8081 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8082 processors.
8083 (cpu_supports_bts): Add CV_AMD case.
8084
29d6859f
LM
80852020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8086 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * infrun.c (stop_all_threads): Collect multiple wait events at
8089 each pass.
8090
78134374
SM
80912020-05-14 Simon Marchi <simon.marchi@efficios.com>
8092
8093 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8094 type::code instead.
8095
67607e24
SM
80962020-05-14 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * gdbtypes.h (struct type) <code, set_code>: New methods.
8099 (TYPE_CODE): Use type::code. Change all call sites used to set
8100 the code to use type::set_code instead.
8101
a05575d3
TBA
81022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8103 Tom de Vries <tdevries@suse.de>
8104 Pedro Alves <palves@redhat.com>
8105
8106 PR threads/25478
8107 * infrun.c (stop_all_threads): Do NOT ignore
8108 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8109 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8110 received.
8111 (handle_no_resumed): Remove code handling a live inferior with no
8112 threads.
8113 * remote.c (has_single_non_exited_thread): New.
8114 (remote_target::update_thread_list): Do not delete a thread if is
8115 the last thread of the process.
8116 * thread.c (thread_select): Call delete_exited_threads instead of
8117 prune_threads.
8118
6ad82919
TBA
81192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8120
8121 * infrun.c (stop_all_threads): Enable/disable thread events of all
8122 targets. Move a debug message denoting the end of the function
8123 into the SCOPED_EXIT block.
8124
d890404b
TBA
81252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8126
8127 * process-stratum-target.h: Include <set>.
8128 (all_non_exited_process_targets, switch_to_target_no_thread): New
8129 function declarations.
8130 * process-stratum-target.c (all_non_exited_process_targets)
8131 (switch_to_target_no_thread): New function implementations.
8132
293b3ebc
TBA
81332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8134
8135 * infrun.c (handle_inferior_event): Extract out a piece of code
8136 into...
8137 (mark_non_executing_threads): ...this new function.
8138
7ca9b62a
TBA
81392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8140
8141 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8142 use.
8143
fc75c28b
TBA
81442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8145
8146 * regcache.c (regcache_read_pc_protected): New function
8147 implementation that returns 0 if the PC cannot read via
8148 'regcache_read_pc'.
8149 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8150 instead of 'regcache_read_pc'.
8151 (keep_going_pass_signal): Ditto.
8152
a89febbd
TT
81532020-05-13 Tom Tromey <tromey@adacore.com>
8154
8155 * ada-lang.c (align_value): Remove.
8156 (ada_template_to_fixed_record_type_1): Use align_up.
8157
f7e23710
TBA
81582020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8159
8160 * async-event.c: Update the copyright year.
8161 * async-event.h: Update the copyright year.
8162
02ff80c2
SM
81632020-05-12 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * objfiles.h (is_addr_in_objfile,
8166 shared_objfile_contains_address_p): Return bool.
8167 * objfile.c (is_addr_in_objfile,
8168 shared_objfile_contains_address_p): Return bool.
8169
4fd6c7e8
TT
81702020-05-11 Tom Tromey <tromey@adacore.com>
8171
8172 * cli/cli-cmds.c (info_command): Restore.
8173 (_initialize_cli_cmds): Use add_prefix_command for "info".
8174 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8175
5eb68a39
TT
81762020-05-11 Tom Tromey <tromey@adacore.com>
8177
8178 * ada-lang.c (ada_value_primitive_field): Now public.
8179 * ada-lang.h (ada_value_primitive_field): Declare.
8180 * ada-valprint.c (print_field_values): Use
8181 ada_value_primitive_field for wrapper fields.
8182
7666722f
TV
81832020-05-11 Tom de Vries <tdevries@suse.de>
8184
8185 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8186 MODULE_DOMAIN.
8187
3ee6bb11
TV
81882020-05-11 Tom de Vries <tdevries@suse.de>
8189
8190 PR symtab/25941
8191 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8192 with length 0, if not gdb-produced.
8193 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8194
43434996
TV
81952020-05-09 Tom de Vries <tdevries@suse.de>
8196
8197 PR gdb/25955
8198 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8199 calculation.
8200
2f78cffc
TT
82012020-05-09 Tom Tromey <tom@tromey.com>
8202
8203 * top.c (server_command): Now bool.
8204 * top.h (server_command): Now bool.
8205
4f7bc5ed
TT
82062020-05-08 Tom Tromey <tromey@adacore.com>
8207
8208 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8209 already being processed.
8210
8be4b118
TT
82112020-05-08 Tom Tromey <tom@tromey.com>
8212
8213 * printcmd.c (struct display) <next>: Remove.
8214 <display>: New constructor.
8215 <exp_string>: Now a std::string.
8216 <enabled_p>: Now a bool.
8217 (display_number): Move definition earlier.
8218 (displays): Rename from display_chain. Now a std::vector.
8219 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8220 (display_command): Update.
8221 (do_one_display, disable_display)
8222 (enable_disable_display_command, do_enable_disable_display):
8223 Update.
8224 (free_display): Remove.
8225 (clear_displays): Rewrite.
8226 (delete_display): Update.
8227 (map_display_numbers): Use function_view. Remove "data"
8228 parameter. Update.
8229 (do_delete_display): Remove.
8230 (undisplay_command): Update.
8231 (do_one_display, do_displays, disable_display)
8232 (info_display_command): Update.
8233 (do_enable_disable_display): Remove.
8234 (enable_disable_display_command)
8235 (clear_dangling_display_expressions): Update.
8236
94c93c35
TT
82372020-05-08 Tom Tromey <tom@tromey.com>
8238
8239 * symtab.c (set_symbol_cache_size)
8240 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8241 (maintenance_print_symbol_cache_statistics): Update.
8242 * symmisc.c (print_symbol_bcache_statistics)
8243 (print_objfile_statistics, maintenance_print_objfiles)
8244 (maintenance_info_symtabs, maintenance_check_symtabs)
8245 (maintenance_expand_symtabs, maintenance_info_line_tables):
8246 Update.
8247 * symfile-debug.c (set_debug_symfile): Update.
8248 * source.c (forget_cached_source_info): Update.
8249 * python/python.c (gdbpy_progspaces): Update.
8250 * psymtab.c (maintenance_info_psymtabs): Update.
8251 * probe.c (parse_probes): Update.
8252 * linespec.c (iterate_over_all_matching_symtabs)
8253 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8254 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8255 * exec.c (exec_target::close): Update.
8256 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8257 * breakpoint.c (print_one_breakpoint_location)
8258 (create_longjmp_master_breakpoint)
8259 (create_std_terminate_master_breakpoint): Update.
8260 * progspace.c (program_spaces): Now a std::vector.
8261 (maybe_new_address_space): Update.
8262 (add_program_space): Remove.
8263 (program_space::program_space): Update.
8264 (remove_program_space): Update.
8265 (number_of_program_spaces): Remove.
8266 (print_program_space, update_address_spaces): Update.
8267 * progspace.h (program_spaces): Change type.
8268 (ALL_PSPACES): Remove.
8269 (number_of_program_spaces): Don't declare.
8270 (struct program_space) <next>: Remove.
8271
a1fd1ac9
TT
82722020-05-08 Tom Tromey <tom@tromey.com>
8273
8274 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8275 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8276 (enable_break): Update.
8277 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8278 (frv_fdpic_find_canonical_descriptor): Update.
8279 (frv_fetch_objfile_link_map): Update.
8280 * progspace.c (program_space::free_all_objfiles): Update.
8281 (program_space::solibs): New method.
8282 * progspace.h (struct program_space) <solibs>: New method.
8283 * solist.h (master_so_list): Don't declare.
8284 (ALL_SO_LIBS): Remove.
8285 * solib.h (so_list_head): Remove.
8286 (update_solib_list): Update comment.
8287 * solib.c (master_so_list): Remove.
8288 (solib_used, update_solib_list, solib_add)
8289 (info_sharedlibrary_command, clear_solib)
8290 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8291
38eae084
TT
82922020-05-08 Tom Tromey <tom@tromey.com>
8293
8294 * extension.c (extension_languages): Now a std::array.
8295 (ALL_EXTENSION_LANGUAGES): Remove.
8296 (get_ext_lang_defn, get_ext_lang_of_file)
8297 (eval_ext_lang_from_control_command): Update.
8298 (finish_ext_lang_initialization)
8299 (auto_load_ext_lang_scripts_for_objfile)
8300 (ext_lang_type_printers::ext_lang_type_printers)
8301 (apply_ext_lang_type_printers)
8302 (ext_lang_type_printers::~ext_lang_type_printers)
8303 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8304 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8305 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8306 (get_matching_xmethod_workers, ext_lang_colorize)
8307 (ext_lang_before_prompt): Update.
8308 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8309
596dc4ad
TT
83102020-05-08 Tom Tromey <tom@tromey.com>
8311
8312 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8313 overload.
8314 <swap_string, m_string>: Remove.
8315 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8316 Update.
8317 * stabsread.c (define_symbol, read_type): Update.
8318 * linespec.c (find_linespec_symbols): Update.
8319 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8320 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8321 * dbxread.c (read_dbx_symtab): Update.
8322 * cp-support.h (cp_canonicalize_string_full)
8323 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8324 Return unique_xmalloc_ptr.
8325 * cp-support.c (inspect_type): Update.
8326 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8327 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8328 Likewise.
8329 * c-typeprint.c (print_name_maybe_canonical): Update.
8330 * break-catch-throw.c (check_status_exception_catchpoint):
8331 Update.
8332
bf4cb9be
TV
83332020-05-08 Tom de Vries <tdevries@suse.de>
8334
8335 * infrun.c (follow_fork): Copy current_line and current_symtab to
8336 child thread.
8337
a1b68f28
SM
83382020-05-07 Simon Marchi <simon.marchi@efficios.com>
8339
8340 * async-event.c (struct async_signal_handler, struct
8341 async_event_handler): Reformat, remove typedef.
8342
98d48915
SM
83432020-05-07 Simon Marchi <simon.marchi@efficios.com>
8344
8345 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8346 access thistype->main_type->dyn_prop_list directly.
8347
7aa91313
SM
83482020-05-07 Simon Marchi <simon.marchi@efficios.com>
8349
8350 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8351 (remove_dyn_prop): Remove. Update all users to use
8352 type::remove_dyn_prop.
8353 * gdbtypes.c (remove_dyn_prop): Rename to...
8354 (type::remove_dyn_prop): ... this.
8355
5c54719c
SM
83562020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8357
8358 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8359 (add_dyn_prop): Remove. Update all users to use
8360 type::add_dyn_prop.
8361 * gdbtypes.c (add_dyn_prop): Rename to...
8362 (type::add_dyn_prop): ... this.
8363
24e99c6c
SM
83642020-05-07 Simon Marchi <simon.marchi@efficios.com>
8365
8366 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8367 (get_dyn_prop): Remove. Update all users to use
8368 type::dyn_prop.
8369 * gdbtypes.c (get_dyn_prop): Rename to...
8370 (type::dyn_prop): ... this.
8371
0d4bf016
SM
83722020-05-06 Simon Marchi <simon.marchi@efficios.com>
8373
8374 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8375
ac4a4f1c
SM
83762020-05-06 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8379 instruction, skip it if it's there.
8380
a3bbacc1
SM
83812020-05-05 Simon Marchi <simon.marchi@efficios.com>
8382
8383 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8384
c3236f84
SM
83852020-05-04 Simon Marchi <simon.marchi@efficios.com>
8386
8387 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8388 * gdbtypes.c (recursive_dump_type): Remove use of
8389 TYPE_INCOMPLETE.
8390
3b6acaee
TT
83912020-05-03 Tom Tromey <tom@tromey.com>
8392
8393 * breakpoint.c (catch_command, tcatch_command): Remove.
8394 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8395 add_show_prefix_cmd.
8396 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8397 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8398 Remove.
8399 (add_internal_problem_command): Use add_basic_prefix_cmd,
8400 add_show_prefix_cmd.
8401 * mips-tdep.c (set_mipsfpu_command): Remove.
8402 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8403 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8404 (_initialize_index_cache): Use add_basic_prefix_cmd.
8405 * memattr.c (dummy_cmd): Remove.
8406 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8407 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8408 (_initialize_tui_win): Use add_basic_prefix_cmd,
8409 add_show_prefix_cmd.
8410 * cli/cli-logging.c (set_logging_command): Remove.
8411 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8412 add_show_prefix_cmd.
8413 (show_logging_command): Remove.
8414 * target.c (target_command): Remove.
8415 (add_target): Use add_basic_prefix_cmd.
8416
a51119cd
HD
84172020-05-02 Hannes Domani <ssbssa@yahoo.de>
8418
8419 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8420
652fc23a 84212020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8422
652fc23a
PW
8423 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8424 info_command.
8425
117539e6
KR
84262020-04-30 Kamil Rytarowski <n54@gmx.com>
8427
8428 * nbsd-nat.c (nbsd_enable_proc_events)
8429 (nbsd_nat_target::post_startup_inferior): Add.
8430 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8431 (nbsd_nat_target::update_thread_list): Rewrite.
8432 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8433 "PTRACE_LWP_CREATE".
8434 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8435
102e38eb 84362020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8437
102e38eb
PW
8438 * stack.c (_initialize_stack): Remove duplicated creation
8439 of "frame" command and "f" alias.
8440
ee9d1e5f
HD
84412020-04-30 Hannes Domani <ssbssa@yahoo.de>
8442
8443 PR gdb/18706
8444 * gdbtypes.c (check_typedef): Calculate size of array of
8445 stubbed type.
8446
627c7fb8
HD
84472020-04-30 Hannes Domani <ssbssa@yahoo.de>
8448
8449 PR gdb/15559
8450 * i386-tdep.c (i386_push_dummy_call): Call
8451 i386_thiscall_push_dummy_call.
8452 (i386_thiscall_push_dummy_call): New function.
8453 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8454 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8455 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8456
ffc2844e
SM
84572020-04-29 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * gdbarch.sh (do_read): Add shellcheck disable directive for
8460 warning SC2162.
8461
1207375d
SM
84622020-04-29 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8465 "referenced but not assigned" warning.
8466
9fdb2916
SM
84672020-04-29 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * gdbarch.sh: Remove code that sets fallbackdefault.
8470
759cea5e
SM
84712020-04-29 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * gdbarch.sh: Use shell operators && and || instead of
8474 -a and -o.
8475
cb02ab24
SM
84762020-04-29 Simon Marchi <simon.marchi@efficios.com>
8477
8478 * gdbarch.sh: Use $(...) instead of `...`.
8479
a6fc5ffc
SM
84802020-04-29 Simon Marchi <simon.marchi@efficios.com>
8481
8482 * gdbarch.sh: Use double quotes around variables.
8483
8d113d13
SM
84842020-04-29 Simon Marchi <simon.marchi@efficios.com>
8485
8486 * gdbarch.sh: Use %s with printf, instead of variables in the
8487 format string.
8488
ed6acedd
TT
84892020-04-29 Tom Tromey <tromey@adacore.com>
8490
8491 PR ada/25875:
8492 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8493 type fields here.
8494 (read_enumeration_type): Call
8495 update_enumeration_type_from_children later. Update comments.
8496 (process_enumeration_scope): Don't create type fields.
8497
b68b1b58
KR
84982020-04-29 Kamil Rytarowski <n54@gmx.com>
8499
8500 * nbsd-tdep.c: Include "xml-syscall.h".
8501 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8502
f94b2e03
KR
85032020-04-29 Kamil Rytarowski <n54@gmx.com>
8504
8505 * nbsd-nat.c: Include "sys/wait.h".
8506 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8507 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8508 (nbsd_nat_target::remove_exec_catchpoint)
8509 (nbsd_nat_target::set_syscall_catchpoint): Add.
8510 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8511 (nbsd_nat_target::insert_exec_catchpoint)
8512 (nbsd_nat_target::remove_exec_catchpoint)
8513 (nbsd_nat_target::set_syscall_catchpoint): Add.
8514 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8515 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8516 `nbsd_get_syscall_number'.
8517
fc49bc72
TT
85182020-04-29 Tom Tromey <tom@tromey.com>
8519
8520 * stack.c (print_block_frame_labels): Remove.
8521
d642b692
HD
85222020-04-29 Hannes Domani <ssbssa@yahoo.de>
8523
8524 PR gdb/17320
8525 * ada-valprint.c (val_print_packed_array_elements): Move array
8526 end bracket to new line.
8527 (ada_val_print_string): Remove extra spaces before first array
8528 element.
8529 * c-valprint.c (c_value_print_array): Likewise.
8530 * m2-valprint.c (m2_print_array_contents): Likewise.
8531 (m2_value_print_inner): Likewise.
8532 * p-valprint.c (pascal_value_print_inner): Likewise.
8533 * valprint.c (generic_val_print_array): Likewise.
8534 (value_print_array_elements): Move first array element and array
8535 end bracket to new line.
8536
ea90f227
TV
85372020-04-29 Tom de Vries <tdevries@suse.de>
8538
8539 PR symtab/25889
8540 * linespec.c (find_method): Fix ix calculation.
8541
4498ef4f
KR
85422020-04-28 Kamil Rytarowski <n54@gmx.com>
8543
8544 * syscalls/update-netbsd.sh: New file.
8545 * syscalls/netbsd.xml: Regenerate.
8546 * data-directory/Makefile.in: Register `netbsd.xml' in
8547 `SYSCALLS_FILES'.
8548
a55e30b5
SM
85492020-04-28 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * syscalls/update-freebsd.sh: Add double quotes.
8552
2b2fbab8
TT
85532020-04-28 Tom Tromey <tom@tromey.com>
8554
8555 * NEWS: Update.
8556 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8557 (cmdpy_init): Allow class_tui.
8558
a65189c9
TV
85592020-04-28 Mark Williams <mark@myosotissp.com>
8560
8561 PR gdb/24480
8562 * dwarf2read.c: Add missing assingments to list_in_scope when
8563 start_symtab was already called.
8564
1b95cdb7
SM
85652020-04-28 Simon Marchi <simon.marchi@efficios.com>
8566
8567 PR gdb/25881
8568 * dwarf2/read.c (offset_map_type): Use
8569 gdb:hash_enum<sect_offset> as hash function.
8570
15cd93d0
TV
85712020-04-28 Tom de Vries <tdevries@suse.de>
8572
8573 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8574 with DW_AT_signature.
8575
1eb39914
SM
85762020-04-27 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * configure.ac: Remove check for fs_base/gs_base in
8579 user_regs_struct.
8580 * configure: Re-generate.
8581 * config.in: Re-generate.
8582 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8583 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8584 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8585
991a3e2e
LM
85862020-04-27 Luis Machado <luis.machado@linaro.org>
8587
8588 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8589 problematic inline frame unwinding situation.
8590 * frame.c (frame_id_computed_p): New function.
8591 * frame.h (frame_id_computed_p): New prototype.
8592
361ba0e8
TT
85932020-04-26 Tom Tromey <tom@tromey.com>
8594
8595 * command.h (enum command_class) <class_pseudo>: Remove.
8596
bc3609fd
PW
85972020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8598
8599 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8600 and whitespace.
8601
b9771db7
KR
86022020-04-25 Kamil Rytarowski <n54@gmx.com>
8603
ec16513e
SM
8604 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8605 `PT_GET_PROCESS_STATE' block.
b9771db7 8606
7151c1af
TT
86072020-04-24 Tom Tromey <tom@tromey.com>
8608
8609 * symtab.h (symbol_get_demangled_name): Don't declare.
8610 * symtab.c (symbol_get_demangled_name): Remove.
8611 (general_symbol_info::natural_name)
8612 (general_symbol_info::demangled_name): Update.
8613
906bb4c5
TT
86142020-04-24 Tom Tromey <tom@tromey.com>
8615
8616 PR rust/25025:
8617 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8618
bcfe6157
TT
86192020-04-24 Tom Tromey <tom@tromey.com>
8620
8621 PR symtab/12707:
8622 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8623 exists.
8624 (new_symbol): Likewise.
8625 * compile/compile-object-load.c (get_out_value_type): Use
8626 symbol_matches_search_name.
8627
f049a313
TT
86282020-04-24 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2/read.c (add_partial_symbol): Do not call
8631 compute_and_set_names.
8632
76e288d1
TT
86332020-04-24 Tom Tromey <tom@tromey.com>
8634
8635 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8636 overload.
8637
2467f4f6
TT
86382020-04-24 Tom Tromey <tom@tromey.com>
8639
8640 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8641 (add_psymbol_to_list): New overload. Make old overload call new
8642 one.
8643 * psympriv.h (add_psymbol_to_list): New overload.
8644
e61108c9
TT
86452020-04-24 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2/read.c (partial_die_info::read) <case
8648 DW_AT_linkage_name>: Use value_as_string.
8649 (dwarf2_string_attr): Use value_as_string.
8650 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8651 method.
8652 * dwarf2/attribute.c (attribute::value_as_string): New method.
8653
8c87a452
TT
86542020-04-24 Tom Tromey <tom@tromey.com>
8655
8656 * symtab.c (general_symbol_info::natural_name)
8657 (general_symbol_info::demangled_name): Check for language_rust.
8658
787de330
TT
86592020-04-24 Tom Tromey <tom@tromey.com>
8660
8661 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8662 (dwarf2_physname): ... from here.
8663 (partial_die_info::read): Add Rust "{" hack.
8664
ff985671
TT
86652020-04-24 Tom Tromey <tom@tromey.com>
8666
8667 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8668 method.
8669 (symbol_set_demangled_name): Don't declare.
8670 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8671 symbol_set_demangled_name.
8672 (general_symbol_info::set_language)
8673 (general_symbol_info::compute_and_set_names): Update.
8674 * minsyms.c (minimal_symbol_reader::install): Update.
8675 * dwarf2/read.c (new_symbol): Update.
8676
1acda803
TT
86772020-04-24 Tom Tromey <tromey@adacore.com>
8678
8679 PR python/23662:
8680 * python/py-type.c (convert_field): Handle
8681 FIELD_LOC_KIND_DWARF_BLOCK.
8682 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8683 (typy_get_dynamic): Nw function.
8684 (type_object_getset): Add "dynamic".
8685 * NEWS: Add entry.
8686
d656f129
TT
86872020-04-24 Tom Tromey <tromey@adacore.com>
8688
8689 * ada-typeprint.c (print_choices, print_variant_part)
8690 (print_record_field_types_dynamic): New functions.
8691 (print_record_field_types): Use print_record_field_types_dynamic.
8692
7d79de9a
TT
86932020-04-24 Tom Tromey <tromey@adacore.com>
8694
8695 * dwarf2/read.c (handle_data_member_location): New overload.
8696 (dwarf2_add_field): Use it.
8697 (decode_locdesc): Add "computed" parameter. Update comment.
8698 * gdbtypes.c (is_dynamic_type_internal): Also look for
8699 FIELD_LOC_KIND_DWARF_BLOCK.
8700 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8701 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8702 virtual base classes.
8703 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8704 FIELD_LOC_KIND_DWARF_BLOCK.
8705
f8e89861
TT
87062020-04-24 Tom Tromey <tromey@adacore.com>
8707
8708 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8709 * gdbtypes.c (is_dynamic_type_internal): Check
8710 TYPE_HAS_DYNAMIC_LENGTH.
8711 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8712 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8713 New macros.
8714 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8715 constant.
8716
9c6a1327
TT
87172020-04-24 Tom Tromey <tromey@adacore.com>
8718
8719 * dwarf2/read.c (struct variant_field): Rewrite.
8720 (struct variant_part_builder): New.
8721 (struct nextfield): Remove "variant" field. Add "offset".
8722 (struct field_info): Add "current_variant_part" and
8723 "variant_parts".
8724 (alloc_discriminant_info): Remove.
8725 (alloc_rust_variant): New function.
8726 (quirk_rust_enum): Update.
8727 (dwarf2_add_field): Set "offset" member. Don't handle
8728 DW_TAG_variant_part.
8729 (offset_map_type): New typedef.
8730 (convert_variant_range, create_one_variant)
8731 (create_one_variant_part, create_variant_parts)
8732 (add_variant_property): New functions.
8733 (dwarf2_attach_fields_to_type): Call add_variant_property.
8734 (read_structure_type): Don't handle DW_TAG_variant_part.
8735 (handle_variant_part, handle_variant): New functions.
8736 (handle_struct_member_die): Use them.
8737 (process_structure_scope): Don't handle variant parts.
8738 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8739 (struct discriminant_info): Remove.
8740 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8741 (struct main_type) <flag_discriminated_union>: Remove.
8742 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8743 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8744 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8745 Update.
8746 * valops.c (value_union_variant): Remove.
8747 * value.h (value_union_variant): Don't declare.
8748
b249d2c2
TT
87492020-04-24 Tom Tromey <tromey@adacore.com>
8750
8751 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8752 (ada_value_primitive_packed_val): Update.
8753 * ada-valprint.c (ada_value_print_1): Update.
8754 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8755 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8756 just an address. Use evaluate_for_locexpr_baton.
8757 (dwarf2_evaluate_property): Update.
8758 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8759 array_view.
8760 * findvar.c (default_read_var_value): Update.
8761 * gdbtypes.c (compute_variant_fields_inner)
8762 (resolve_dynamic_type_internal): Update.
8763 (resolve_dynamic_type): Change type of valaddr parameter.
8764 * gdbtypes.h (resolve_dynamic_type): Update.
8765 * valarith.c (value_subscripted_rvalue): Update.
8766 * value.c (value_from_contents_and_address): Update.
8767
61122aa9
TT
87682020-04-24 Tom Tromey <tromey@adacore.com>
8769
8770 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8771 "push_initial_value" parameter.
8772 (dwarf2_evaluate_property): Likewise.
8773 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8774
ef83a141
TT
87752020-04-24 Tom Tromey <tromey@adacore.com>
8776
8777 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8778 (variant::matches, compute_variant_fields_recurse)
8779 (compute_variant_fields_inner, compute_variant_fields): New
8780 functions.
8781 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8782 Use resolved_type after type is made.
8783 (operator==): Add new cases.
8784 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8785 (struct discriminant_range, struct variant, struct variant_part):
8786 New.
8787 (union dynamic_prop_data) <variant_parts, original_type>: New
8788 members.
8789 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8790 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8791 constants.
8792 * value.c (unpack_bits_as_long): Now public.
8793 * value.h (unpack_bits_as_long): Declare.
8794
675127ec
TT
87952020-04-24 Tom Tromey <tromey@adacore.com>
8796
8797 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8798 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8799
9852ceef
HD
88002020-04-24 Hannes Domani <ssbssa@yahoo.de>
8801
8802 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8803
7632c6ce
KR
88042020-04-24 Kamil Rytarowski <n54@gmx.com>
8805
8806 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8807 (remove_fork_catchpoint, post_startup_inferior)
8808 (post_attach): Move...
8809 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8810 (remove_fork_catchpoint, post_startup_inferior)
8811 (post_attach): ...here.
8812 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8813 (remove_fork_catchpoint, post_startup_inferior)
8814 (post_attach): Move...
8815 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8816 (remove_fork_catchpoint, post_startup_inferior)
8817 (post_attach): ...here.
8818
7be2bb4f
TT
88192020-04-24 Tom Tromey <tromey@adacore.com>
8820
8821 * nat/windows-nat.h (struct windows_thread_info)
8822 <pc_adjusted>: New member.
8823 * windows-nat.c (windows_fetch_one_register): Check
8824 pc_adjusted.
8825 (windows_nat_target::get_windows_debug_event)
8826 (windows_nat_target::wait): Set pc_adjusted.
8827
f80cb3b4
TV
88282020-04-24 Tom de Vries <tdevries@suse.de>
8829
8830 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8831 Run gdb-add-index inside temp dir.
8832
29514b87
TT
88332020-04-23 Tom Tromey <tromey@adacore.com>
8834
8835 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8836 in loop.
8837
5939967b
LM
88382020-04-23 Luis Machado <luis.machado@linaro.org>
8839
8840 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8841 get_frame_register instead of gdbarch_unwind_pc.
8842
70bc38f5
TV
88432020-04-23 Tom de Vries <tdevries@suse.de>
8844
8845 * symtab.c (lookup_global_symbol): Prefer def over decl.
8846
de82891c
TV
88472020-04-23 Tom de Vries <tdevries@suse.de>
8848
8849 PR symtab/25807
8850 * block.c (best_symbol, better_symbol): Promote to external.
8851 * block.h (best_symbol, better_symbol): Declare.
8852 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8853 decl.
8854
ecc6c606
TT
88552020-04-23 Tom Tromey <tromey@adacore.com>
8856
8857 PR ada/25837:
8858 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8859 "const char *", not a "const std::string &".
8860 <name_and_matcher::operator==>: Update.
8861 * unittests/lookup_name_info-selftests.c: Change type of
8862 "result".
8863
740480b8
TT
88642020-04-23 Tom Tromey <tom@tromey.com>
8865
8866 * inferior.h (iterate_over_inferiors): Don't declare.
8867 * inferior.c (iterate_over_inferiors): Remove.
8868 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8869 Remove.
8870 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8871 use iterate_over_inferiors.
8872 (darwin_resume_inferior_it)
8873 (struct resume_inferior_threads_param)
8874 (darwin_resume_inferior_threads_it): Remove.
8875 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8876
ae3ab1f0
TV
88772020-04-23 Tom de Vries <tdevries@suse.de>
8878
8879 * blockframe.c (find_pc_partial_function): Use
8880 find_pc_sect_compunit_symtab rather than
8881 objfile->sf->qf->find_pc_sect_compunit_symtab.
8882
317d2668
TV
88832020-04-22 Tom de Vries <tdevries@suse.de>
8884
8885 PR symtab/25764
8886 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8887 in psymtabs.
8888
eea9e357
TV
88892020-04-22 Tom de Vries <tdevries@suse.de>
8890
8891 PR symtab/25801
8892 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8893 symtabs.
8894
3d5afab3
TV
88952020-04-22 Tom de Vries <tdevries@suse.de>
8896
8897 PR symtab/25700
8898 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8899 CU if already created.
8900
d43b7a2d
TBA
89012020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8902
8903 * infrun.c (displaced_step_fixup): Switch to the event_thread
8904 before calling displaced_step_restore, not after.
8905
d89edf9b
MM
89062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8907
8908 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8909 its inferior is not recorded by us.
8910 (record_btrace_target_open): Replace call to
8911 all_non_exited_threads () with call to current_inferior
8912 ()->non_exited_threads ().
8913 (record_btrace_target::stop_recording): Likewise.
8914 (record_btrace_target::close): Likewise.
8915 (record_btrace_target::wait): Likewise.
8916 (record_btrace_target::record_stop_replaying): Likewise.
8917
5897fd49
MM
89182020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8919
8920 * btrace.c (btrace_enable): Throw an error on double enables and
8921 when enabling recording fails.
8922 (btrace_disable): Throw an error if the thread is not recorded.
8923
1a476b6d
MM
89242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8925
8926 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8927 request if we do not have a thread_info.
8928
4778a5f8
TV
89292020-04-21 Tom de Vries <tdevries@suse.de>
8930
8931 PR gdb/25471
8932 * thread.c
8933 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8934 exception in get_frame_id.
8935
0fa7617d
TT
89362020-04-20 Tom Tromey <tromey@adacore.com>
8937
8938 * python/python.c (struct gdbpy_event): Mark move constructor as
8939 noexcept.
8940 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8941 constructor as noexcept.
8942 * completer.h (struct completion_result): Mark move constructor as
8943 noexcept.
8944 * completer.c (completion_result::completion_result): Use
8945 initialization style. Don't call reset_match_list.
8946
ad23bda0
MS
89472020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8948
8949 * MAINTAINERS (Write After Approval): Add myself.
8950
45e1f031
TT
89512020-04-18 Tom Tromey <tom@tromey.com>
8952
8953 * windows-tdep.c (init_w32_command_list)
8954 (w32_prefix_command_valid): Restore.
8955 (_initialize_windows_tdep): Call init_w32_command_list.
8956
08feed99
TT
89572020-04-18 Tom Tromey <tom@tromey.com>
8958
8959 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8960 * value.c (value_fn_field): Update.
8961 * valops.c (find_function_in_inferior)
8962 (value_allocate_space_in_inferior): Update.
8963 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8964 Update.
8965 * tui/tui-source.c (tui_source_window::set_contents): Update.
8966 * symtab.c (lookup_global_or_static_symbol)
8967 (find_function_start_sal_1, skip_prologue_sal)
8968 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8969 * symmisc.c (dump_msymbols, dump_symtab_1)
8970 (maintenance_print_one_line_table): Update.
8971 * symfile.c (init_entry_point_info, section_is_mapped)
8972 (list_overlays_command, simple_read_overlay_table)
8973 (simple_overlay_update_1): Update.
8974 * stap-probe.c (handle_stap_probe): Update.
8975 * stabsread.c (dbx_init_float_type, define_symbol)
8976 (read_one_struct_field, read_enum_type, read_range_type): Update.
8977 * source.c (info_line_command): Update.
8978 * python/python.c (gdbpy_source_objfile_script)
8979 (gdbpy_execute_objfile_script): Update.
8980 * python/py-type.c (save_objfile_types): Update.
8981 * python/py-objfile.c (py_free_objfile): Update.
8982 * python/py-inferior.c (python_new_objfile): Update.
8983 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8984 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8985 (maintenance_check_psymtabs): Update.
8986 * printcmd.c (info_address_command): Update.
8987 * objfiles.h (struct objfile) <arch>: New method, from
8988 get_objfile_arch.
8989 (get_objfile_arch): Don't declare.
8990 * objfiles.c (get_objfile_arch): Remove.
8991 (filter_overlapping_sections): Update.
8992 * minsyms.c (msymbol_is_function): Update.
8993 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8994 (output_nondebug_symbol): Update.
8995 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8996 (mdebug_expand_psymtab): Update.
8997 * machoread.c (macho_add_oso_symfile): Update.
8998 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8999 Update.
9000 * linux-fork.c (checkpoint_command): Update.
9001 * linespec.c (convert_linespec_to_sals): Update.
9002 * jit.c (finalize_symtab): Update.
9003 * infrun.c (insert_exception_resume_from_probe): Update.
9004 * ia64-tdep.c (ia64_find_unwind_table): Update.
9005 * hppa-tdep.c (internalize_unwinds): Update.
9006 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9007 Update.
9008 * gcore.c (call_target_sbrk): Update.
9009 * elfread.c (record_minimal_symbol, elf_symtab_read)
9010 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9011 (elf_gnu_ifunc_resolve_by_got): Update.
9012 * dwarf2/read.c (create_addrmap_from_index)
9013 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9014 (read_debug_names_from_section)
9015 (process_psymtab_comp_unit_reader, add_partial_symbol)
9016 (add_partial_subprogram, process_full_comp_unit)
9017 (read_file_scope, read_func_scope, read_lexical_block_scope)
9018 (read_call_site_scope, dwarf2_ranges_read)
9019 (dwarf2_record_block_ranges, dwarf2_add_field)
9020 (mark_common_block_symbol_computed, read_tag_pointer_type)
9021 (read_tag_string_type, dwarf2_init_float_type)
9022 (dwarf2_init_complex_target_type, read_base_type)
9023 (partial_die_info::read, partial_die_info::read)
9024 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9025 (dwarf2_fetch_die_loc_sect_off): Update.
9026 * dwarf2/loc.c (dwarf2_find_location_expression)
9027 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9028 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9029 (dwarf2_loc_desc_get_symbol_read_needs)
9030 (locexpr_describe_location_piece, locexpr_describe_location_1)
9031 (loclist_describe_location): Update.
9032 * dwarf2/index-write.c (write_debug_names): Update.
9033 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9034 * dtrace-probe.c (dtrace_process_dof): Update.
9035 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9036 (process_one_symbol): Update.
9037 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9038 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9039 (coff_read_enum_type): Update.
9040 * cli/cli-cmds.c (edit_command, list_command): Update.
9041 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9042 * breakpoint.c (create_overlay_event_breakpoint)
9043 (create_longjmp_master_breakpoint)
9044 (create_std_terminate_master_breakpoint)
9045 (create_exception_master_breakpoint, get_sal_arch): Update.
9046 * block.c (block_gdbarch): Update.
9047 * annotate.c (annotate_source_line): Update.
9048
0743fc83
TT
90492020-04-17 Tom Tromey <tromey@adacore.com>
9050
9051 * auto-load.c (show_auto_load_cmd): Remove.
9052 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9053 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9054 (maintenance_print_arc_command): Remove.
9055 * tui/tui-win.c (tui_command): Remove.
9056 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9057 * tui/tui-layout.c (tui_layout_command): Remove.
9058 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9059 * python/python.c (user_set_python, user_show_python): Remove.
9060 (_initialize_python): Use add_basic_prefix_cmd,
9061 add_show_prefix_cmd.
9062 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9063 (install_gdb_commands): Use add_basic_prefix_cmd,
9064 add_show_prefix_cmd.
9065 (info_guile_command): Remove.
9066 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9067 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9068 add_show_prefix_cmd.
9069 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9070 Remove do_set and do_show parameters.
9071 * cli/cli-style.c (set_style, show_style): Remove.
9072 (_initialize_cli_style): Use add_basic_prefix_cmd,
9073 add_show_prefix_cmd.
9074 (cli_style_option::add_setshow_commands): Remove do_set and
9075 do_show parameters.
9076 (cli_style_option::add_setshow_commands): Use
9077 add_basic_prefix_cmd, add_show_prefix_cmd.
9078 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9079 (set_style_name): Remove.
9080 * cli/cli-dump.c (dump_command, append_command): Remove.
9081 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9082 (tekhex_dump_command, binary_dump_command)
9083 (binary_append_command): Remove.
9084 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9085 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9086 (init_w32_command_list): Remove; move into ...
9087 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9088 * valprint.c (set_print, show_print, set_print_raw)
9089 (show_print_raw): Remove.
9090 (_initialize_valprint): Use add_basic_prefix_cmd,
9091 add_show_prefix_cmd.
9092 * typeprint.c (set_print_type, show_print_type): Remove.
9093 (_initialize_typeprint): Use add_basic_prefix_cmd,
9094 add_show_prefix_cmd.
9095 * record.c (set_record_command, show_record_command): Remove.
9096 (_initialize_record): Use add_basic_prefix_cmd,
9097 add_show_prefix_cmd.
9098 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9099 add_show_prefix_cmd.
9100 (info_command, show_command, set_debug, show_debug): Remove.
9101 * top.h (set_history, show_history): Don't declare.
9102 * top.c (set_history, show_history): Remove.
9103 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9104 (unset_tdesc_cmd): Remove.
9105 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9106 add_show_prefix_cmd.
9107 * symtab.c (info_module_command): Remove.
9108 (_initialize_symtab): Use add_basic_prefix_cmd.
9109 * symfile.c (overlay_command): Remove.
9110 (_initialize_symfile): Use add_basic_prefix_cmd.
9111 * sparc64-tdep.c (info_adi_command): Remove.
9112 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9113 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9114 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9115 add_show_prefix_cmd.
9116 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9117 (_initialize_serial): Use add_basic_prefix_cmd,
9118 add_show_prefix_cmd.
9119 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9120 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9121 add_show_prefix_cmd.
9122 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9123 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9124 add_show_prefix_cmd.
9125 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9126 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9127 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9128 add_show_prefix_cmd.
9129 * remote.c (remote_command, set_remote_cmd): Remove.
9130 (_initialize_remote): Use add_basic_prefix_cmd.
9131 * record-full.c (set_record_full_command)
9132 (show_record_full_command): Remove.
9133 (_initialize_record_full): Use add_basic_prefix_cmd,
9134 add_show_prefix_cmd.
9135 * record-btrace.c (cmd_set_record_btrace)
9136 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9137 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9138 (cmd_show_record_btrace_pt): Remove.
9139 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9140 add_show_prefix_cmd.
9141 * ravenscar-thread.c (set_ravenscar_command)
9142 (show_ravenscar_command): Remove.
9143 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9144 add_show_prefix_cmd.
9145 * mips-tdep.c (show_mips_command, set_mips_command)
9146 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9147 add_show_prefix_cmd.
9148 * maint.c (maintenance_command, maintenance_info_command)
9149 (maintenance_check_command, maintenance_print_command)
9150 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9151 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9152 add_show_prefix_cmd.
9153 (show_per_command_cmd): Remove.
9154 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9155 Remove.
9156 (maintenance_show_test_settings_cmd): Remove.
9157 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9158 add_show_prefix_cmd.
9159 * maint-test-options.c (maintenance_test_options_command):
9160 Remove.
9161 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9162 * macrocmd.c (macro_command): Remove
9163 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9164 * language.c (set_check, show_check): Remove.
9165 (_initialize_language): Use add_basic_prefix_cmd,
9166 add_show_prefix_cmd.
9167 * infcmd.c (unset_command): Remove.
9168 (_initialize_infcmd): Use add_basic_prefix_cmd.
9169 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9170 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9171 add_show_prefix_cmd.
9172 * go32-nat.c (go32_info_dos_command): Remove.
9173 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9174 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9175 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9176 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9177 (_initialize_frame): Use add_basic_prefix_cmd,
9178 add_show_prefix_cmd.
9179 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9180 (_initialize_dcache): Use add_basic_prefix_cmd,
9181 add_show_prefix_cmd.
9182 * cp-support.c (maint_cplus_command): Remove.
9183 (_initialize_cp_support): Use add_basic_prefix_cmd.
9184 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9185 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9186 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9187 add_basic_prefix_cmd, add_show_prefix_cmd.
9188 * breakpoint.c (save_command): Remove.
9189 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9190 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9191 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9192 add_show_prefix_cmd.
9193 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9194 (set_ada_command, show_ada_command): Remove.
9195 (_initialize_ada_language): Use add_basic_prefix_cmd,
9196 add_show_prefix_cmd.
9197 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9198
3557f442
KR
91992020-04-16 Kamil Rytarowski <n54@gmx.com>
9200
9201 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9202 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9203
16197208
SM
92042020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9205
9206 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9207 warning messages.
9208
00ac85d3
SM
92092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9210
9211 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9212 import table is not at beginning of .idata section.
9213
381ce63f
PA
92142020-04-16 Pedro Alves <palves@redhat.com>
9215
9216 * inferior.c (delete_inferior): Use delete operator directly
9217 instead of delete_program_space.
9218 * progspace.c (add_program_space): New, factored out from
9219 program_space::program_space.
9220 (remove_program_space): New, factored out from
9221 delete_program_space.
9222 (program_space::program_space): Remove intro comment. Rewrite.
9223 (program_space::~program_space): Remove intro comment. Call
9224 remove_program_space.
9225 (delete_program_space): Delete.
9226 * progspace.h (program_space::program_space): Make explicit. Move
9227 intro comment here, adjusted.
9228 (program_space::~program_space): Move intro comment here,
9229 adjusted.
9230 (delete_program_space): Remove.
9231
a010605f
TT
92322020-04-16 Tom Tromey <tromey@adacore.com>
9233
9234 * windows-nat.c (windows_nat::handle_access_violation): New
9235 function.
9236 * nat/windows-nat.h (handle_access_violation): Declare.
9237 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9238 windows-nat.c. Call handle_access_violation.
9239
efba5c23
TV
92402020-04-16 Tom de Vries <tdevries@suse.de>
9241
9242 PR symtab/25791
9243 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9244 CUs without psymtab.
9245
97ed802d
KB
92462020-04-16 Kevin Buettner <kevinb@redhat.com>
9247
9248 * python/python.c (do_start_initialization): Don't call
9249 PyEval_InitThreads for Python 3.9 and beyond.
9250
c7d64809
KR
92512020-04-15 Kamil Rytarowski <n54@gmx.com>
9252
9253 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9254 thread functions.
9255 (obsd_nat_target::wait): Likewise.
9256
ce127a96
TT
92572020-04-15 Tom Tromey <tromey@adacore.com>
9258
9259 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9260 (DEBUG_EXCEPT): Use debug_printf.
9261
99f1bc6a
AB
92622020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9263
9264 * completer.c (class completion_tracker::completion_hash_entry)
9265 <hash_name>: New member function.
9266 (completion_tracker::discard_completions): New callback to hash a
9267 completion_hash_entry, pass this to htab_create_alloc.
9268
a0e9b532
JT
92692016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9270
9271 * windows-nat.c (windows_make_so): Warn rather than stopping with
9272 an error if realpath() fails.
9273
06ca5dd4
KR
92742020-04-14 Kamil Rytarowski <n54@gmx.com>
9275
9276 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9277 (nbsd_nat_target::info_proc): Add do_status.
9278
194d088f
TV
92792020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9280 Tom de Vries <tdevries@suse.de>
9281
9282 PR symtab/25718
9283 * psympriv.h (struct partial_symtab::read_symtab)
9284 (struct partial_symtab::expand_psymtab)
9285 (struct partial_symtab::read_dependencies): Update comments.
9286 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9287 read_symtab for includer.
9288 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9289 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9290 (struct dwarf2_include_psymtab::m_readin): Remove.
9291 (struct dwarf2_include_psymtab::includer): New member function.
9292 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9293
c1a66c06
TV
92942020-04-14 Tom de Vries <tdevries@suse.de>
9295
9296 PR symtab/25720
9297 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9298 with NULL symbol_matcher and lookup_name.
9299 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9300 and lookup_name.
9301 * dwarf2/read.c (dw2_expand_symtabs_matching)
9302 (dw2_debug_names_expand_symtabs_matching): Same.
9303 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9304 Make lookup_name a pointer. Update comment.
9305 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9306 lookup_name being a pointer.
9307 * symfile.c (expand_symtabs_matching): Same.
9308 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9309 * linespec.c (iterate_over_all_matching_symtabs): Same.
9310
400b5eca
TT
93112020-04-13 Tom Tromey <tom@tromey.com>
9312
9313 * run-on-main-thread.c: Update include.
9314 * unittests/main-thread-selftests.c: Update include.
9315 * tui/tui-win.c: Update include.
9316 * tui/tui-io.c: Update include.
9317 * tui/tui-interp.c: Update include.
9318 * tui/tui-hooks.c: Update include.
9319 * top.h: Update include.
9320 * top.c: Update include.
9321 * ser-base.c: Update include.
9322 * remote.c: Update include.
9323 * remote-notif.c: Update include.
9324 * remote-fileio.c: Update include.
9325 * record-full.c: Update include.
9326 * record-btrace.c: Update include.
9327 * python/python.c: Update include.
9328 * posix-hdep.c: Update include.
9329 * mingw-hdep.c: Update include.
9330 * mi/mi-main.c: Update include.
9331 * mi/mi-interp.c: Update include.
9332 * main.c: Update include.
9333 * linux-nat.c: Update include.
9334 * interps.c: Update include.
9335 * infrun.c: Update include.
9336 * inf-loop.c: Update include.
9337 * event-top.c: Update include.
9338 * event-loop.c: Move to ../gdbsupport/.
9339 * event-loop.h: Move to ../gdbsupport/.
9340 * async-event.h: Update include.
9341 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9342
93b54c8e
TT
93432020-04-13 Tom Tromey <tom@tromey.com>
9344
9345 * tui/tui-win.c: Include async-event.h.
9346 * remote.c: Include async-event.h.
9347 * remote-notif.c: Include async-event.h.
9348 * record-full.c: Include async-event.h.
9349 * record-btrace.c: Include async-event.h.
9350 * infrun.c: Include async-event.h.
9351 * event-top.c: Include async-event.h.
9352 * event-loop.h: Move some declarations to async-event.h.
9353 * event-loop.c: Don't include ser-event.h or top.h. Move some
9354 code to async-event.c.
9355 * async-event.h: New file.
9356 * async-event.c: New file.
9357 * Makefile.in (COMMON_SFILES): Add async-event.c.
9358 (HFILES_NO_SRCDIR): Add async-event.h.
9359
c1cd3163
TT
93602020-04-13 Tom Tromey <tom@tromey.com>
9361
9362 * utils.c (flush_streams): New function.
9363 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9364
29f2bf4f
TT
93652020-04-13 Tom Tromey <tom@tromey.com>
9366
9367 * event-loop.c (handle_file_event): Use warning, not
9368 printf_unfiltered.
9369
98029d02
TT
93702020-04-13 Tom Tromey <tom@tromey.com>
9371
9372 * event-loop.c: Include <chrono>.
9373
06cc9596
TT
93742020-04-13 Tom Tromey <tom@tromey.com>
9375
9376 * gdb_select.h: Move to ../gdbsupport/.
9377 * event-loop.c: Update include path.
9378 * top.c: Update include path.
9379 * ser-base.c: Update include path.
9380 * ui-file.c: Update include path.
9381 * ser-tcp.c: Update include path.
9382 * guile/scm-ports.c: Update include path.
9383 * posix-hdep.c: Update include path.
9384 * ser-unix.c: Update include path.
9385 * gdb_usleep.c: Update include path.
9386 * mingw-hdep.c: Update include path.
9387 * inflow.c: Update include path.
9388 * infrun.c: Update include path.
9389 * event-top.c: Update include path.
9390
8ae8e197
TT
93912020-04-13 Tom Tromey <tom@tromey.com>
9392
9393 * configure: Rebuild.
9394 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9395
58cf28e8
TT
93962020-04-13 Tom Tromey <tom@tromey.com>
9397
9398 * event-loop.h (start_event_loop): Don't declare.
9399 * event-loop.c (start_event_loop): Move...
9400 * main.c (start_event_loop): ...here. Now static.
9401
b7f999ae
SDJ
94022020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9403
9404 * MAINTAINERS: Update my email address.
9405
1085dfd4
KR
94062020-04-12 Kamil Rytarowski <n54@gmx.com>
9407
9408 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9409 IP_ALL.
9410
49d1d1f5
KR
94112020-04-12 Kamil Rytarowski <n54@gmx.com>
9412
9413 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9414 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9415
b4848d2a
KR
94162020-04-12 Kamil Rytarowski <n54@gmx.com>
9417
9418 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9419 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9420
51c133d5
KR
94212020-04-12 Kamil Rytarowski <n54@gmx.com>
9422
9423 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9424
54b8cbd0
KR
94252020-04-11 Kamil Rytarowski <n54@gmx.com>
9426
9427 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9428 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9429 (nbsd_nat_target::info_proc): New functions.
9430 * nbsd-nat.c (kinfo_get_vmmap): New function.
9431 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9432 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9433 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9434 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9435 functions.
9436 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9437 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9438 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9439 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9440 (KINFO_VME_FLAG_GROWS_DOWN): New.
9441
cf83625d
AS
94422020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9443
9444 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9445 bit shift.
9446
0c4311ab
TT
94472020-04-10 Tom Tromey <tromey@adacore.com>
9448
9449 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9450
3e65b3e9
TT
94512020-04-10 Tom Tromey <tromey@adacore.com>
9452
9453 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9454 separate debug files.
9455
13302e95
HD
94562020-04-10 Hannes Domani <ssbssa@yahoo.de>
9457
9458 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9459 Move to...
9460 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9461 ... here.
9462 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9463 Check for STATUS_WX86_BREAKPOINT.
9464 (windows_nat_target::wait): Same.
9465
bdfc1e8a
TV
94662020-04-10 Tom de Vries <tdevries@suse.de>
9467
9468 PR cli/25808
9469 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9470
f4460aec
SM
94712020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9472
9473 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9474 (Write After Approval): Remove Tom de Vries.
9475
a25198bb
BE
94762020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9477
9478 revert partially:
9479 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9480
aac66a4c
SM
9481 * buildsym.c (record_line): Fix undefined behavior and preserve
9482 lines at eof.
a25198bb 9483
206c98a6
KR
94842020-04-09 Kamil Rytarowski <n54@gmx.com>
9485
9486 * auxv.h (svr4_auxv_parse): New.
9487 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9488 and generic_auxv_parse.
9489 (svr4_auxv_parse): Add.
9490 * obsd-tdep.c: Include "auxv.h".
9491 (obsd_auxv_parse): Remove.
9492 (obsd_init_abi): Remove comment.
9493 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9494 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9495 * nbsd-tdep.c: Include "auxv.h".
9496 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9497
71fbdbaf
TT
94982020-04-08 Tom Tromey <tromey@adacore.com>
9499
9500 * nat/windows-nat.h (last_wait_event): Don't declare.
9501 (wait_for_debug_event): Update comment.
9502 * nat/windows-nat.c (last_wait_event): Now static.
9503
2c1d95e8
TT
95042020-04-08 Tom Tromey <tromey@adacore.com>
9505
9506 * windows-nat.c (wait_for_debug_event): Move to
9507 nat/windows-nat.c.
9508 * nat/windows-nat.h (wait_for_debug_event): Declare.
9509 * nat/windows-nat.c (wait_for_debug_event): Move from
9510 windows-nat.c. No longer static.
9511
d2977bc4
TT
95122020-04-08 Tom Tromey <tromey@adacore.com>
9513
9514 * windows-nat.c (get_windows_debug_event): Use
9515 fetch_pending_stop.
9516 * nat/windows-nat.h (fetch_pending_stop): Declare.
9517 * nat/windows-nat.c (fetch_pending_stop): New function.
9518
e758e19c
TT
95192020-04-08 Tom Tromey <tromey@adacore.com>
9520
9521 * windows-nat.c (windows_continue): Use matching_pending_stop and
9522 continue_last_debug_event.
9523 * nat/windows-nat.h (matching_pending_stop)
9524 (continue_last_debug_event): Declare.
9525 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9526 (matching_pending_stop, continue_last_debug_event): New
9527 functions.
9528
8d30e395
TT
95292020-04-08 Tom Tromey <tromey@adacore.com>
9530
9531 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9532 (handle_exception_result): Move to nat/windows-nat.h.
9533 (DEBUG_EXCEPTION_SIMPLE): Remove.
9534 (windows_nat::handle_ms_vc_exception): New function.
9535 (handle_exception): Move to nat/windows-nat.c.
9536 (get_windows_debug_event): Update.
9537 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9538 nat/windows-nat.c.
9539 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9540 (handle_exception_result): Move from windows-nat.c.
9541 (handle_exception): Declare.
9542 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9543 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9544 windows-nat.c.
9545
29de418d
TT
95462020-04-08 Tom Tromey <tromey@adacore.com>
9547
9548 * windows-nat.c (exception_count, event_count): Remove.
9549 (handle_exception, get_windows_debug_event)
9550 (do_initial_windows_stuff): Update.
9551
a816ba18
TT
95522020-04-08 Tom Tromey <tromey@adacore.com>
9553
9554 * windows-nat.c (windows_nat::handle_load_dll)
9555 (windows_nat::handle_unload_dll): Rename. No longer static.
9556 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9557 Declare.
9558
a00caa12
TT
95592020-04-08 Tom Tromey <tromey@adacore.com>
9560
9561 * complaints.h (stop_whining): Declare at top-level.
9562 (complaint): Don't declare stop_whining.
9563
d41b524f
TT
95642020-04-08 Tom Tromey <tromey@adacore.com>
9565
9566 * windows-nat.c (windows_nat::handle_output_debug_string):
9567 Rename. No longer static.
9568 * nat/windows-nat.h (handle_output_debug_string): Declare.
9569
3c76026d
TT
95702020-04-08 Tom Tromey <tromey@adacore.com>
9571
9572 * windows-nat.c (current_process_handle, current_process_id)
9573 (main_thread_id, last_sig, current_event, last_wait_event)
9574 (current_windows_thread, desired_stop_thread_id, pending_stops)
9575 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9576 (display_selectors, fake_create_process)
9577 (get_windows_debug_event): Update.
9578 * nat/windows-nat.h (current_process_handle, current_process_id)
9579 (main_thread_id, last_sig, current_event, last_wait_event)
9580 (current_windows_thread, desired_stop_thread_id, pending_stops)
9581 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9582 * nat/windows-nat.c (current_process_handle, current_process_id)
9583 (main_thread_id, last_sig, current_event, last_wait_event)
9584 (current_windows_thread, desired_stop_thread_id, pending_stops)
9585 (siginfo_er): New globals. Move from windows-nat.c.
9586
9d8679cc
TT
95872020-04-08 Tom Tromey <tromey@adacore.com>
9588
9589 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9590 (handle_load_dll): Update.
9591 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9592
28688adf
TT
95932020-04-08 Tom Tromey <tromey@adacore.com>
9594
9595 * windows-nat.c (enum thread_disposition_type): Move to
9596 nat/windows-nat.h.
9597 (windows_nat::thread_rec): Rename from thread_rec. No longer
9598 static.
9599 (windows_add_thread, windows_nat_target::fetch_registers)
9600 (windows_nat_target::store_registers, handle_exception)
9601 (windows_nat_target::resume, get_windows_debug_event)
9602 (windows_nat_target::get_tib_address)
9603 (windows_nat_target::thread_name)
9604 (windows_nat_target::thread_alive): Update.
9605 * nat/windows-nat.h (enum thread_disposition_type): Move from
9606 windows-nat.c.
9607 (thread_rec): Declare.
9608
4834dad0
TT
96092020-04-08 Tom Tromey <tromey@adacore.com>
9610
9611 * windows-nat.c: Add "using namespace".
9612 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9613 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9614
65bafd5b
TT
96152020-04-08 Tom Tromey <tromey@adacore.com>
9616
9617 * nat/windows-nat.h (struct windows_thread_info): Declare
9618 destructor.
9619 * nat/windows-nat.c (~windows_thread_info): New.
9620
0a4afda3
TT
96212020-04-08 Tom Tromey <tromey@adacore.com>
9622
9623 PR gdb/22992
9624 * windows-nat.c (current_event): Update comment.
9625 (last_wait_event, desired_stop_thread_id): New globals.
9626 (struct pending_stop): New.
9627 (pending_stops): New global.
9628 (windows_nat_target) <stopped_by_sw_breakpoint>
9629 <supports_stopped_by_sw_breakpoint>: New methods.
9630 (windows_fetch_one_register): Add assertions. Adjust PC.
9631 (windows_continue): Handle pending stops. Suspend other threads
9632 when stepping. Use last_wait_event
9633 (wait_for_debug_event): New function.
9634 (get_windows_debug_event): Use wait_for_debug_event. Handle
9635 pending stops. Queue spurious stops.
9636 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9637 (windows_nat_target::kill): Use wait_for_debug_event.
9638 * nat/windows-nat.h (struct windows_thread_info)
9639 <stopped_at_software_breakpoint>: New field.
9640 * nat/windows-nat.c (windows_thread_info::resume): Clear
9641 stopped_at_software_breakpoint.
9642
8e61ebec
TT
96432020-04-08 Tom Tromey <tromey@adacore.com>
9644
9645 * windows-nat.c (enum thread_disposition_type): New.
9646 (thread_rec): Replace "get_context" parameter with "disposition";
9647 change type.
9648 (windows_add_thread, windows_nat_target::fetch_registers)
9649 (windows_nat_target::store_registers, handle_exception)
9650 (windows_nat_target::resume, get_windows_debug_event)
9651 (windows_nat_target::get_tib_address)
9652 (windows_nat_target::thread_name)
9653 (windows_nat_target::thread_alive): Update.
9654
98a03287
TT
96552020-04-08 Tom Tromey <tromey@adacore.com>
9656
9657 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9658 (windows_continue): Use windows_continue::resume.
9659 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9660 resume>: Declare new methods.
9661 * nat/windows-nat.c: New file.
9662 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9663
7c7411bc
TT
96642020-04-08 Tom Tromey <tromey@adacore.com>
9665
9666 * windows-nat.c (windows_add_thread, windows_delete_thread)
9667 (windows_nat_target::fetch_registers)
9668 (windows_nat_target::store_registers, fake_create_process)
9669 (windows_nat_target::resume, windows_nat_target::resume)
9670 (get_windows_debug_event, windows_nat_target::wait)
9671 (windows_nat_target::pid_to_str)
9672 (windows_nat_target::get_tib_address)
9673 (windows_nat_target::get_ada_task_ptid)
9674 (windows_nat_target::thread_name)
9675 (windows_nat_target::thread_alive): Use lwp, not tid.
9676
2950fdf7
TT
96772020-04-08 Tom Tromey <tromey@adacore.com>
9678
9679 * windows-nat.c (handle_exception)
9680 (windows_nat_target::thread_name): Update.
9681 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9682 <name>: Now unique_xmalloc_ptr.
9683
62fe396b
TT
96842020-04-08 Tom Tromey <tromey@adacore.com>
9685
9686 * windows-nat.c (thread_rec)
9687 (windows_nat_target::fetch_registers): Update.
9688 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9689 Update comment.
9690 <debug_registers_changed, reload_context>: Now bool.
9691
e9534bd2
TT
96922020-04-08 Tom Tromey <tromey@adacore.com>
9693
9694 * windows-nat.c (windows_add_thread): Use new.
9695 (windows_init_thread_list, windows_delete_thread): Use delete.
9696 (get_windows_debug_event): Update.
9697 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9698 destructor, and initializers.
9699
ae1f8880
TT
97002020-04-08 Tom Tromey <tromey@adacore.com>
9701
9702 * windows-nat.c (struct windows_thread_info): Remove.
9703 * nat/windows-nat.h: New file.
9704
55a1e039
TT
97052020-04-08 Tom Tromey <tromey@adacore.com>
9706
9707 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9708 (thread_rec, windows_add_thread, windows_delete_thread)
9709 (windows_continue): Update.
9710
93366324
TT
97112020-04-08 Tom Tromey <tromey@adacore.com>
9712
9713 * windows-nat.c (struct windows_thread_info): Remove typedef.
9714 (thread_head): Remove.
9715 (thread_list): New global.
9716 (thread_rec, windows_add_thread, windows_init_thread_list)
9717 (windows_delete_thread, windows_continue): Update.
9718
0f2265e2
SM
97192020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9720
9721 * windows-tdep.h (windows_init_abi): Add comment.
9722 (cygwin_init_abi): New declaration.
9723 * windows-tdep.c: Split signal enumeration in two, one for
9724 Windows and one for Cygwin.
9725 (windows_gdb_signal_to_target): Only deal with signal of the
9726 Windows OS ABI.
9727 (cygwin_gdb_signal_to_target): New function.
9728 (windows_init_abi): Rename to windows_init_abi_common, don't set
9729 gdb_signal_to_target gdbarch method. Add new new function with
9730 this name.
9731 (cygwin_init_abi): New function.
9732 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9733 comment. Don't call windows_init_abi.
9734 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9735 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9736 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9737 i386_windows_init_abi_common, don't call windows_init_abi. Add
9738 a new function of this name.
9739 (i386_cygwin_init_abi): New function.
9740 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9741 OS ABI Cygwin.
9742
3810f182
SM
97432020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9744
9745 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9746 parameter.c.
9747 (dwarf2_read_gdb_index): Update.
9748
063f8e80
KR
97492020-04-07 Kamil Rytarowski <n54@gmx.com>
9750
9751 * nbsd-tdep.c: Include "objfiles.h".
9752 (nbsd_skip_solib_resolver): New.
9753 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9754
85a9510c 97552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9756
9757 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9758 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9759 with DW_LLE_base_addressx are being emitted in DWARFv5.
9760 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9761 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9762 unsigned integer.
9763
9fc3eaae 97642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9765
9766 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9767 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9768 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9769 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9770 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9771 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9772 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9773
9774
41144253 97752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9776
9777 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9778 (read_loclist_index): New function definition.
9779 (lookup_loclist_base): New function definition.
9780 (read_loclist_header): New function definition.
9781 (dwarf2_cu): Add loclist_base and loclist_header field.
9782 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9783 (read_full_die_1): Read the value of DW_AT_loclists_base.
9784 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9785 (read_attribute_value): Handle DW_FORM_loclistx.
9786 (skip_one_die): Handle DW_FORM_loclistx.
9787 (loclist_header): New structure declaration.
9788 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9789
9f4e76a4
SM
97902020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9791
9792 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9793 constructor. Remove `addr` parameter from other constructor and
9794 add `per_cu` parameter.
9795 * dwarf2/read.c (create_partial_symtab): Update.
9796
25c11aca
TV
97972020-04-07 Tom de Vries <tdevries@suse.de>
9798
9799 PR symtab/25796
9800 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9801 (partial_die_info::fixup): Inherit has_const_value.
9802
5707e24b
TV
98032020-04-07 Tom de Vries <tdevries@suse.de>
9804
9805 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9806 symbols without address.
9807
05f00e22
KR
98082020-04-06 Kamil Rytarowski <n54@gmx.com>
9809
9810 * nbsd-nat.h (struct thread_info): Add forward declaration.
9811 (nbsd_nat_target::thread_alive): Add.
9812 (nbsd_nat_target::thread_name): Likewise.
9813 (nbsd_nat_target::update_thread_list): Likewise.
9814 (update_thread_list::post_attach): Likewise.
9815 (post_attach::pid_to_str): Likewise.
9816 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9817 (nbsd_thread_lister): Add.
9818 (nbsd_nat_target::thread_alive): Likewise.
9819 (nbsd_nat_target::thread_name): Likewise.
9820 (nbsd_add_threads): Likewise.
9821 (update_thread_list::post_attach): Likewise.
9822 (nbsd_nat_target::update_thread_list): Likewise.
9823 (post_attach::pid_to_str): Likewise.
9824
6ee448cc
TT
98252020-04-06 Tom Tromey <tromey@adacore.com>
9826
9827 * ada-valprint.c (print_variant_part): Extract the variant field.
9828 (print_field_values): Use the field as the outer value when
9829 recursing.
9830
dea34e8c
TT
98312020-04-06 Tom Tromey <tromey@adacore.com>
9832
9833 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9834 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9835 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9836 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9837 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9838
93689ce9
TT
98392020-04-06 Tom Tromey <tromey@adacore.com>
9840
9841 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9842 TYPE_CODE_ERROR.
9843
79743962
KR
98442020-04-06 Kamil Rytarowski <n54@gmx.com>
9845
9846 * nbsd-tdep.c: Include "gdbarch.h".
9847 Define enum with NetBSD signal numbers.
9848 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9849 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9850 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9851 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9852 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9853 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9854 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9855 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9856 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9857 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9858 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9859 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9860
9e7c9a03
HD
98612020-04-03 Hannes Domani <ssbssa@yahoo.de>
9862
9863 PR gdb/25325
9864 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9865
d9e49b61
TT
98662020-04-03 Tom Tromey <tromey@adacore.com>
9867
9868 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9869 Read constant block.
9870
e0fc5c3f
SM
98712020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9872
9873 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9874 (gdb_bfd_get_full_section_contents): New declaration.
9875 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9876 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9877 gdb_bfd_get_full_section_contents.
9878
e2ff18a0
SM
98792020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9880
9881 * exec.c (build_section_table): Replace internal_error with
9882 gdb_assert.
9883 (section_table_xfer_memory_partial): Likewise.
9884 * mdebugread.c (parse_partial_symbols): Likewise.
9885 * psymtab.c (lookup_partial_symbol): Likewise.
9886 * utils.c (wrap_here): Likewise.
9887
0830d301
TT
98882020-04-02 Tom Tromey <tromey@adacore.com>
9889
9890 * f-lang.c (build_fortran_types): Use arch_type to initialize
9891 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9892
e7da7f8f
TT
98932020-04-02 Tom Tromey <tromey@adacore.com>
9894
9895 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9896 of attributes.
9897
c90d28ac
AB
98982020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9899 Bernd Edlinger <bernd.edlinger@hotmail.de>
9900 Tom Tromey <tromey@adacore.com>
9901
9902 * buildsym.c (buildsym_compunit::record_line): Remove
9903 deduplication code.
9904
1aa98955
TV
99052020-04-02 Tom de Vries <tdevries@suse.de>
9906
9907 PR ada/24671
9908 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9909
d3214198
TV
99102020-04-02 Tom de Vries <tdevries@suse.de>
9911
9912 * dwarf2/read.c (dwarf2_gdb_index_functions,
9913 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9914 NULL.
9915 * psymtab.c (psym_lookup_global_symbol_language): New function.
9916 (psym_functions): Init psym_lookup_global_symbol_language with
9917 psym_lookup_global_symbol_language.
9918 * symfile-debug.c (debug_sym_quick_functions): Init
9919 lookup_global_symbol_language with NULL.
9920 * symfile.c (set_initial_language): Remove fixme comment.
9921 * symfile.h (struct quick_symbol_functions): Add
9922 lookup_global_symbol_language.
9923 * symtab.c (find_quick_global_symbol_language): New function.
9924 (find_main_name): Use find_quick_global_symbol_language.
9925
2836752f
SM
99262020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9927
9928 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9929
64dc2d4b
BE
99302020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9931
9932 * buildsym.c (record_line): Fix undefined behavior and preserve
9933 lines at eof.
9934
bbe3dc41
BE
99352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9936
9937 * buildsym.c (record_line): Fix the resizing condition.
9938
6b4a335b
TT
99392020-04-01 Tom Tromey <tom@tromey.com>
9940
9941 * value.h (value_literal_complex): Add comment.
9942 * valops.c (value_literal_complex): Refer to value.h.
9943
3638a098
TT
99442020-04-01 Tom Tromey <tom@tromey.com>
9945
9946 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9947 (scalar_type): New rule, from typebase.
9948 (typebase): Use scalar_type. Recognize complex types.
9949 (field_name): Handle FLOAT_KEYWORD.
9950 (ident_tokens): Add _Complex and __complex__.
9951
c34e8714
TT
99522020-04-01 Tom Tromey <tom@tromey.com>
9953
9954 PR exp/25299:
9955 * valarith.c (promotion_type, complex_binop): New functions.
9956 (scalar_binop): Handle complex numbers. Use promotion_type.
9957 (value_pos, value_neg, value_complement): Handle complex numbers.
9958
fa649bb7
TT
99592020-04-01 Tom Tromey <tom@tromey.com>
9960
9961 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9962 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9963 (parse_number): Handle complex numbers.
9964
981c08ce
TT
99652020-04-01 Tom Tromey <tom@tromey.com>
9966
9967 * c-valprint.c (c_decorations): Change complex suffix to "i".
9968
4c99290d
TT
99692020-04-01 Tom Tromey <tom@tromey.com>
9970
9971 * valprint.c (generic_value_print_complex): Use accessors.
9972 * value.h (value_real_part, value_imaginary_part): Declare.
9973 * valops.c (value_real_part, value_imaginary_part): New
9974 functions.
9975 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9976
5b930b45
TT
99772020-04-01 Tom Tromey <tom@tromey.com>
9978
9979 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9980 (read_range_type): Update.
9981 * mdebugread.c (basic_type): Update.
9982 * go-lang.c (build_go_types): Use init_complex_type.
9983 * gdbtypes.h (struct main_type) <complex_type>: New member.
9984 (init_complex_type): Update.
9985 (arch_complex_type): Don't declare.
9986 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9987 Make name if none given. Use alloc_type_copy. Look for cached
9988 complex type.
9989 (arch_complex_type): Remove.
9990 (gdbtypes_post_init): Use init_complex_type.
9991 * f-lang.c (build_fortran_types): Use init_complex_type.
9992 * dwarf2/read.c (read_base_type): Update.
9993 * d-lang.c (build_d_types): Use init_complex_type.
9994 * ctfread.c (read_base_type): Update.
9995
53cccef1
TBA
99962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9997
9998 * infrun.c (stop_all_threads): Update assertion, plus when
9999 stopping threads, take into account that we might be trying
10000 to stop an all-stop target.
10001 (stop_waiting): Call 'stop_all_threads' if there exists a
10002 non-stop target.
10003
a0714d30
TBA
100042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10005
10006 * target.h (exists_non_stop_target): New function declaration.
10007 * target.c (exists_non_stop_target): New function.
10008
60e22c1e
HD
100092020-04-01 Hannes Domani <ssbssa@yahoo.de>
10010
10011 PR gdb/24789
10012 * eval.c (is_integral_or_integral_reference): New function.
10013 (evaluate_subexp_standard): Allow integer references in
10014 pointer arithmetic.
10015
e139a727
TBA
100162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10017
10018 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10019 check for no ptid in the stop reply when the target is non-stop.
10020
e0802d59
TT
100212020-04-01 Tom Tromey <tromey@adacore.com>
10022
10023 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10024 "name" parameter to rvalue reference. Initialize m_name_holder.
10025 <lookup_name_info>: New overloads.
10026 <name>: Return gdb::string_view.
10027 <c_str>: New method.
10028 <make_ignore_params>: Update.
10029 <search_name_hash>: Update.
10030 <language_lookup_name>: Return const char *.
10031 <m_name>: Change type.
10032 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10033 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10034 (lookup_name_info::match_any): Update.
10035 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10036 Update.
10037 * minsyms.c (linkage_name_str): Update.
10038 * language.c (default_symbol_name_matcher): Update.
10039 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10040 Update.
10041 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10042 (ada_lookup_name_info::ada_lookup_name_info): Update.
10043 (literal_symbol_name_matcher): Update.
10044
8c072cb6
TT
100452020-04-01 Tom Tromey <tromey@adacore.com>
10046
10047 * psymtab.c (psymtab_search_name): Remove function.
10048 (psym_lookup_symbol): Create search name and lookup name here.
10049 (lookup_partial_symbol): Remove "name" parameter; add
10050 lookup_name.
10051 (psym_expand_symtabs_for_function): Update.
10052
6f29a534
TT
100532020-03-31 Joel Jones <joelkevinjones@gmail.com>
10054
10055 PR tui/25597:
10056 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10057
af62665e
TT
100582020-03-31 Tom Tromey <tromey@adacore.com>
10059
10060 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10061 memcpy.
10062
d1a89da5
NC
100632020-03-30 Nelson Chu <nelson.chu@sifive.com>
10064
10065 * features/riscv/32bit-csr.xml: Regenerated.
10066 * features/riscv/64bit-csr.xml: Regenerated.
10067
d8af9068
TT
100682020-03-30 Tom Tromey <tromey@adacore.com>
10069
10070 * ada-valprint.c (print_variant_part): Update.
10071 * ada-lang.h (ada_which_variant_applies): Update.
10072 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10073 outer_valaddr parameters; replace with "outer" value parameter.
10074 (to_fixed_variant_branch_type): Update.
10075
227c0bf4
PFC
100762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10077
10078 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10079 <list>. Remove inclusion of observable.h.
10080 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10081 (struct arch_lwp_info): New struct.
10082 (class ppc_linux_dreg_interface): New class.
10083 (struct ppc_linux_process_info): New struct.
10084 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10085 <low_new_clone, low_forget_process, low_prepare_to_resume>
10086 <copy_thread_dreg_state, mark_thread_stale>
10087 <mark_debug_registers_changed, register_hw_breakpoint>
10088 <clear_hw_breakpoint, register_wp, clear_wp>
10089 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10090 <num_memory_accesses, get_trigger_type>
10091 <create_watchpoint_request, hwdebug_point_cmp>
10092 <init_arch_lwp_info, get_arch_lwp_info>
10093 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10094 methods.
10095 <struct ptid_hash>: New inner struct.
10096 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10097 members.
10098 (saved_dabr_value, hwdebug_info, max_slots_number)
10099 (struct hw_break_tuple, struct thread_points, ppc_threads)
10100 (have_ptrace_hwdebug_interface)
10101 (hwdebug_find_thread_points_by_tid)
10102 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10103 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10104 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10105 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10106 use m_dreg_interface.
10107 (hwdebug_point_cmp): Change to...
10108 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10109 reference arguments instead of pointers.
10110 (ppc_linux_nat_target::ranged_break_num_registers): Use
10111 m_dreg_interface.
10112 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10113 m_dreg_interface. Call register_hw_breakpoint.
10114 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10115 m_dreg_interface. Call clear_hw_breakpoint.
10116 (get_trigger_type): Change to...
10117 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10118 comment.
10119 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10120 use m_dreg_interface. Call register_hw_breakpoint.
10121 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10122 use m_dreg_interface. Call clear_hw_breakpoint.
10123 (can_use_watchpoint_cond_accel): Change to...
10124 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10125 method. Update comment, use m_dreg_interface and
10126 m_process_info.
10127 (calculate_dvc): Change to...
10128 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10129 m_dreg_interface.
10130 (num_memory_accesses): Change to...
10131 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10132 (check_condition): Change to...
10133 (ppc_linux_nat_target::check_condition): ...this method.
10134 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10135 comment, use m_dreg_interface.
10136 (create_watchpoint_request): Change to...
10137 (ppc_linux_nat_target::create_watchpoint_request): ...this
10138 method. Use m_dreg_interface.
10139 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10140 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10141 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10142 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10143 (ppc_linux_nat_target::low_forget_process)
10144 (ppc_linux_nat_target::low_new_fork)
10145 (ppc_linux_nat_target::low_new_clone)
10146 (ppc_linux_nat_target::low_delete_thread)
10147 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10148 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10149 only call mark_thread_stale.
10150 (ppc_linux_thread_exit): Remove.
10151 (ppc_linux_nat_target::stopped_data_address): Change to...
10152 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10153 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10154 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10155 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10156 comment. Call low_stopped_data_address.
10157 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10158 m_dreg_interface.
10159 (ppc_linux_nat_target::masked_watch_num_registers): Use
10160 m_dreg_interface.
10161 (ppc_linux_nat_target::copy_thread_dreg_state)
10162 (ppc_linux_nat_target::mark_thread_stale)
10163 (ppc_linux_nat_target::mark_debug_registers_changed)
10164 (ppc_linux_nat_target::register_hw_breakpoint)
10165 (ppc_linux_nat_target::clear_hw_breakpoint)
10166 (ppc_linux_nat_target::register_wp)
10167 (ppc_linux_nat_target::clear_wp)
10168 (ppc_linux_nat_target::init_arch_lwp_info)
10169 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10170 (_initialize_ppc_linux_nat): Remove observer callback.
10171
4db10d8f
PFC
101722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10173
10174 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10175 (ppc_linux_nat_target::auxv_parse)
10176 (ppc_linux_nat_target::read_description)
10177 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10178 Move up.
10179
1310c1b0
PFC
101802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10181
10182 * linux-nat.h (low_new_clone): New method.
10183 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10184
69b037c3
SM
101852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10186
10187 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10188 (dbx_expand_psymtab): ... this.
10189 (start_psymtab): Update.
10190 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10191 (mdebug_expand_psymtab): ... this.
10192 (parse_partial_symbols): Update.
10193 (new_psymtab): Update.
10194 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10195 (xcoff_expand_psymtab): ... this.
10196 (xcoff_start_psymtab): Update.
10197
48993951
SM
101982020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10199
10200 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10201 <expand_dependencies>: ... this.
10202 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10203 (partial_symtab::expand_dependencies): ... this.
10204 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10205 Update.
10206 (dwarf2_psymtab::expand_psymtab): Update.
10207 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10208 * mdebugread.c (psymtab_to_symtab_1): Update.
10209 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10210
3ad83046
SM
102112020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10212
10213 * psympriv.h (discard_psymtab): Remove.
10214 * dbxread.c (dbx_end_psymtab): Update.
10215 * xcoffread.c (xcoff_end_psymtab): Update.
10216
4d1b9ab6
TT
102172020-03-28 Tom Tromey <tom@tromey.com>
10218
10219 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10220 comment.
10221
f1749218
TT
102222020-03-28 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10225
ebea7626
HD
102262020-03-27 Hannes Domani <ssbssa@yahoo.de>
10227
10228 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10229
a879b4d5
JB
102302020-03-26 John Baldwin <jhb@FreeBSD.org>
10231
10232 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10233
0826b30a
TT
102342020-03-26 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10237 (mark_common_block_symbol_computed, read_tag_string_type)
10238 (attr_to_dynamic_prop, read_subrange_type): Update.
10239 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10240 to be methods on struct attribute.
10241 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10242 (read_call_site_scope, partial_die_info::read)
10243 (partial_die_info::read, lookup_die_type, follow_die_ref):
10244 Update.
10245 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10246 from dwarf2_get_ref_die_offset.
10247 (attribute::constant_value): New method, from
10248 dwarf2_get_attr_constant_value.
10249 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10250 Declare method.
10251 <constant_value>: New method.
10252
2b2558bf
TT
102532020-03-26 Tom Tromey <tom@tromey.com>
10254
10255 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10256 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10257 (dwarf_type_encoding_name): Move to stringify.c.
10258 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10259 * dwarf2/stringify.c: New file.
10260 * dwarf2/stringify.h: New file.
10261
eeb64781
TT
102622020-03-26 Tom Tromey <tom@tromey.com>
10263
10264 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10265 Rewrite.
10266
a39fdb41
TT
102672020-03-26 Tom Tromey <tom@tromey.com>
10268
10269 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10270 methods.
10271 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10272 (lookup_ranges_base): Likewise.
10273 (read_cutu_die_from_dwo, read_full_die_1): Update.
10274
436c571c
TT
102752020-03-26 Tom Tromey <tom@tromey.com>
10276
10277 * dwarf2/read.c (read_import_statement, read_file_scope)
10278 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10279 (read_lexical_block_scope, read_call_site_scope)
10280 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10281 (handle_struct_member_die, process_structure_scope)
10282 (update_enumeration_type_from_children)
10283 (process_enumeration_scope, read_array_type, read_common_block)
10284 (read_namespace, read_module, read_subroutine_type): Update.
10285 (sibling_die): Remove.
10286
052c8bb8
TT
102872020-03-26 Tom Tromey <tom@tromey.com>
10288
10289 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10290 (build_type_psymtabs_reader, read_structure_type)
10291 (read_enumeration_type, read_full_die_1): Update.
10292 (dwarf2_attr_no_follow): Move to die.h.
10293 * dwarf2/die.h (struct die_info) <attr>: New method.
10294
2b24b6e4
TT
102952020-03-26 Tom Tromey <tom@tromey.com>
10296
10297 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10298 <base_address>: Now an optional.
10299 (dwarf2_find_base_address, dwarf2_rnglists_process)
10300 (dwarf2_ranges_process, fill_in_loclist_baton)
10301 (dwarf2_symbol_mark_computed): Update.
10302
c2d50fd0
TT
103032020-03-26 Tom Tromey <tom@tromey.com>
10304
10305 * dwarf2/read.c (struct die_info): Move to die.h.
10306 * dwarf2/die.h: New file.
10307
0df7ad3a
TT
103082020-03-26 Tom Tromey <tom@tromey.com>
10309
10310 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10311 * dwarf2/read.c
10312 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10313 Move to line-header.c.
10314 (read_checked_initial_length_and_offset, read_formatted_entries):
10315 Likewise.
10316 (dwarf_decode_line_header): Split into two.
10317 * dwarf2/line-header.c
10318 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10319 Move from read.c.
10320 (read_checked_initial_length_and_offset, read_formatted_entries):
10321 Likewise.
10322 (dwarf_decode_line_header): New function, split from read.c.
10323
86c0bb4c
TT
103242020-03-26 Tom Tromey <tom@tromey.com>
10325
10326 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10327 Declare method.
10328 * dwarf2/read.c (read_attribute_value): Update.
10329 (dwarf2_per_objfile::read_line_string): Rename from
10330 read_indirect_line_string.
10331 (read_formatted_entries): Update.
10332
2ef46c2f
TT
103332020-03-26 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10336 variable.
10337
4f9c1eda
TT
103382020-03-26 Tom Tromey <tom@tromey.com>
10339
10340 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10341 const.
10342 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10343 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10344 parameter const.
10345
5a0e026f
TT
103462020-03-26 Tom Tromey <tom@tromey.com>
10347
10348 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10349 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10350 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10351 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10352
8844c11b
TT
103532020-03-26 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10356 file_names_size, file_full_name, file_file_name>: Use const.
10357 <file_name_at, file_names>: Add const overload.
10358 * dwarf2/line-header.c (line_header::file_file_name)
10359 (line_header::file_full_name): Update.
10360
c90ec28a
TT
103612020-03-26 Tom Tromey <tom@tromey.com>
10362
10363 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10364 (macro_start_file, consume_improper_spaces)
10365 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10366 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10367 (dwarf_decode_macros): Move to macro.c.
10368 * dwarf2/macro.c: New file.
10369 * dwarf2/macro.h: New file.
10370 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10371
4f44ae6c
TT
103722020-03-26 Tom Tromey <tom@tromey.com>
10373
10374 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10375 method.
10376 * dwarf2/section.c: New method. From
10377 read_indirect_string_at_offset_from.
10378 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10379 (read_indirect_string_at_offset_from): Move to section.c.
10380 (read_indirect_string_at_offset): Rewrite.
10381 (read_indirect_line_string_at_offset): Remove.
10382 (read_indirect_string, read_indirect_line_string)
10383 (dwarf_decode_macro_bytes): Update.
10384
a0194fa8
TT
103852020-03-26 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2/section.h (struct dwarf2_section_info)
10388 <overload_complaint>: Declare.
10389 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10390 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10391 Rename from dwarf2_section_buffer_overflow_complaint.
10392 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10393 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10394
3d27bbdb
TT
103952020-03-26 Tom Tromey <tom@tromey.com>
10396
10397 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10398 Declare.
10399 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10400 Move from read.c.
10401 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10402 to section.c.
10403
9eac9650
TT
104042020-03-26 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10407
bf80d710
TT
104082020-03-26 Tom Tromey <tom@tromey.com>
10409
10410 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10411 "builder".
10412 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10413 parameter.
10414 (dwarf_decode_macros): Update.
10415
0314b390
TT
104162020-03-26 Tom Tromey <tom@tromey.com>
10417
10418 * dwarf2/read.c (read_attribute_value): Update.
10419 (read_indirect_string_from_dwz): Move to dwz.c; change into
10420 method.
10421 (dwarf_decode_macro_bytes): Update.
10422 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10423 * dwarf2/dwz.c: New file.
10424 * Makefile.in (COMMON_SFILES): Add dwz.c.
10425
9fda78b6
TT
104262020-03-26 Tom Tromey <tom@tromey.com>
10427
10428 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10429 * dwarf2/read.c: Add include.
10430 * dwarf2/index-write.c: Add include.
10431 * dwarf2/index-cache.c: Add include.
10432 * dwarf2/dwz.h: New file.
10433
33aa3c10
TT
104342020-03-25 Tom Tromey <tom@tromey.com>
10435
10436 * compile/compile-object-load.c (get_out_value_type): Mention
10437 correct symbol name in error message.
10438
d503b685
HD
104392020-03-25 Hannes Domani <ssbssa@yahoo.de>
10440
10441 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10442
7b1eff95
TV
104432020-03-25 Tom de Vries <tdevries@suse.de>
10444
10445 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10446 * symmisc.c (dump_symtab_1): Print user and includes fields.
10447 (maintenance_info_symtabs): Same.
10448
dd895392
AB
104492020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10450
10451 PR gdb/25534
10452 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10453 (riscv_regcache_cooked_write): New function.
10454 (riscv_push_dummy_call): Use new function.
10455 (riscv_return_value): Likewise.
10456
5ab2fbf1
SM
104572020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10458
10459 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10460 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10461 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10462 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10463 * infrun.c (follow_fork): Likewise.
10464 (follow_fork_inferior): Likewise.
10465 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10466 * linux-nat.h (class linux_nat_target): Likewise.
10467 * remote.c (class remote_target) <follow_fork>: Likewise.
10468 (remote_target::follow_fork): Likewise.
10469 * target-delegates.c: Re-generate.
10470 * target.c (default_follow_fork): Likewise.
10471 (target_follow_fork): Likewise.
10472 * target.h (struct target_ops) <follow_fork>: Likewise.
10473 (target_follow_fork): Likewise.
10474
a64fafb5
TV
104752020-03-24 Tom de Vries <tdevries@suse.de>
10476
10477 * psymtab.c (maintenance_info_psymtabs): Print user field.
10478
fe26d3a3
TT
104792020-03-20 Tom Tromey <tromey@adacore.com>
10480
10481 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10482 const.
10483 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10484 const.
10485
c884cc46
SM
104862020-03-20 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * ptrace.m4: Don't check for ptrace declaration.
10489 * config.in: Re-generate.
10490 * configure: Re-generate.
10491 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10492 not defined.
10493
1ff700c2
KR
104942020-03-20 Kamil Rytarowski <n54@gmx.com>
10495
10496 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10497 `PTRACE_TYPE_RET'.
10498 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10499 * sparc-nat.c (gdb_ptrace): Likewise.
10500 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10501
f7d4f0b1
TT
105022020-03-20 Tom Tromey <tromey@adacore.com>
10503
10504 * c-exp.y (lex_one_token): Fix assert.
10505
f67210ff
TT
105062020-03-20 Tom Tromey <tromey@adacore.com>
10507
10508 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10509 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10510 strncpy call.
10511
1773be9e
TT
105122020-03-20 Tom Tromey <tromey@adacore.com>
10513
10514 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10515
70304be9
TT
105162020-03-20 Tom Tromey <tromey@adacore.com>
10517
10518 * ada-valprint.c (print_variant_part): Remove parameters; switch
10519 to value-based API.
10520 (print_field_values): Likewise.
10521 (ada_val_print_struct_union): Likewise.
10522 (ada_value_print_1): Update.
10523
9faa006d
KR
105242020-03-20 Kamil Rytarowski <n54@gmx.com>
10525
10526 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10527 nbsd_nat_target instead of inf_ptrace_target.
10528 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10529 nbsd_nat_target.
10530
4a90f062
KR
105312020-03-20 Kamil Rytarowski <n54@gmx.com>
10532
10533 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10534 it to the ptrace call.
10535 * (store_registers): Likewise.
10536
105372020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10538
10539 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10540 it to the ptrace call.
10541 * (store_registers): Likewise.
10542
2d07da27
LM
105432020-03-19 Luis Machado <luis.machado@linaro.org>
10544
10545 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10546 valid, fetch vg value from ptrace.
10547
f09db380
KR
105482020-03-19 Kamil Rytarowski <n54@gmx.com>
10549 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10550 * inf-ptrace.c: Likewise.
10551 * (gdb_ptrace): Add.
10552 * (inf_ptrace_target::resume): Update.
10553 * (inf_ptrace_target::xfer_partial): Likewise.
10554 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10555 * (inf_ptrace_peek_poke): Update.
10556
fcc7376e
KR
105572020-03-19 Kamil Rytarowski <n54@gmx.com>
10558
10559 * x86-bsd-nat.c (gdb_ptrace): New.
10560 * (x86bsd_dr_set): Add new argument `ptid'.
10561 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10562 x86bsd_dr_set_addr): Update.
10563
cada5fc9
AB
105642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10565
10566 * remote.c (remote_target::process_stop_reply): Handle events for
10567 all threads differently.
10568
19a2740f
AB
105692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10570
10571 * completer.c (completion_tracker::remove_completion): Define new
10572 function.
10573 * completer.h (completion_tracker::remove_completion): Declare new
10574 function.
10575 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10576 when adding a C++ function symbol.
10577
724fd9ba
AB
105782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10579
10580 * completer.c (completion_tracker::completion_hash_entry): Define
10581 new class.
10582 (advance_to_filename_complete_word_point): Call
10583 recompute_lowest_common_denominator.
10584 (completion_tracker::completion_tracker): Call discard_completions
10585 to setup the hash table.
10586 (completion_tracker::discard_completions): Allow for being called
10587 from the constructor, pass new equal function, and element deleter
10588 when constructing the hash table. Initialise new class member
10589 variables.
10590 (completion_tracker::maybe_add_completion): Remove use of
10591 m_entries_vec, and store more information into m_entries_hash.
10592 (completion_tracker::recompute_lcd_visitor): New function, most
10593 content taken from...
10594 (completion_tracker::recompute_lowest_common_denominator):
10595 ...here, this now just visits each item in the hash calling the
10596 above visitor.
10597 (completion_tracker::build_completion_result): Remove use of
10598 m_entries_vec, call recompute_lowest_common_denominator.
10599 * completer.h (completion_tracker::have_completions): Remove use
10600 of m_entries_vec.
10601 (completion_tracker::completion_hash_entry): Declare new class.
10602 (completion_tracker::recompute_lowest_common_denominator): Change
10603 function signature.
10604 (completion_tracker::recompute_lcd_visitor): Declare new function.
10605 (completion_tracker::m_entries_vec): Delete.
10606 (completion_tracker::m_entries_hash): Initialize to NULL.
10607 (completion_tracker::m_lowest_common_denominator_valid): New
10608 member variable.
10609 (completion_tracker::m_lowest_common_denominator_max_length): New
10610 member variable.
10611
5a82b8a1
KR
106122020-03-17 Kamil Rytarowski <n54@gmx.com>
10613
10614 * regformats/regdef.h: Put reg in gdb namespace.
10615
fb516a69
KR
106162020-03-17 Kamil Rytarowski <n54@gmx.com>
10617
10618 * i386-bsd-nat.c (gdb_ptrace): New.
10619 * (i386bsd_fetch_inferior_registers,
10620 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10621 * (i386bsd_fetch_inferior_registers,
10622 i386bsd_store_inferior_registers) Use gdb_ptrace.
10623
1c0aa1fb
KR
106242020-03-17 Kamil Rytarowski <n54@gmx.com>
10625
10626 * amd64-bsd-nat.c (gdb_ptrace): New.
10627 * (amd64bsd_fetch_inferior_registers,
10628 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10629 * (amd64bsd_fetch_inferior_registers,
10630 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10631
5ccd2fb7
KR
106322020-03-17 Kamil Rytarowski <n54@gmx.com>
10633
10634 * user-regs.c (user_reg::read): Rename to...
10635 (user_reg::xread): ...this.
10636 * (append_user_reg): Rename argument `read' to `xread'.
10637 * (user_reg_add_builtin): Likewise.
10638 * (user_reg_add): Likewise.
10639 * (value_of_user_reg): Likewise.
10640
2108a63a
KR
106412020-03-17 Kamil Rytarowski <n54@gmx.com>
10642
10643 * sparc-nat.c (gdb_ptrace): New.
10644 * sparc-nat.c (sparc_fetch_inferior_registers)
10645 (sparc_store_inferior_registers) Remove obsolete comment.
10646 * sparc-nat.c (sparc_fetch_inferior_registers)
10647 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10648 * sparc-nat.c (sparc_fetch_inferior_registers)
10649 (sparc_store_inferior_registers) Use gdb_ptrace.
10650
a225c9a8
KR
106512020-03-17 Kamil Rytarowski <n54@gmx.com>
10652
10653 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10654 it to the ptrace call.
10655 * sh-nbsd-nat.c (store_registers): Likewise.
10656
98097623
KR
106572020-03-17 Kamil Rytarowski <n54@gmx.com>
10658
10659 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10660 nbsd_nat_target instead of inf_ptrace_target.
10661 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10662 nbsd_nat_target.
10663
9e38d619
KR
106642020-03-17 Kamil Rytarowski <n54@gmx.com>
10665
10666 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10667
a2ecbe9f
KR
106682020-03-17 Kamil Rytarowski <n54@gmx.com>
10669
10670 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10671 <sys/sysctl.h>.
10672 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10673
58990295
TV
106742020-03-17 Tom de Vries <tdevries@suse.de>
10675
10676 PR gdb/23710
10677 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10678 fields.
10679 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10680 fields.
10681 (process_imported_unit_die): Skip import of c++ CUs.
10682
771dd3a8
TT
106832020-03-16 Tom Tromey <tom@tromey.com>
10684
10685 * p-valprint.c (pascal_object_print_value): Initialize
10686 base_value.
10687
817a7585
AK
106882020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10689 Shahab Vahedi <shahab@synopsys.com>
10690
10691 * Makefile.in: Add arch/arc.o
10692 * configure.tgt: Likewise.
10693 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10694 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10695 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10696 * arc-tdep.h (arc_read_description): Add proto type.
10697 * arch/arc.c: New file.
10698 * arch/arc.h: Likewise.
10699 * features/Makefile: Replace old target descriptions with new.
10700 * features/arc-arcompact.c: Remove.
10701 * features/arc-arcompact.xml: Likewise.
10702 * features/arc-v2.c: Likewise
10703 * features/arc-v2.xml: Likewise
10704 * features/arc/aux-arcompact.xml: New file.
10705 * features/arc/aux-v2.xml: Likewise.
10706 * features/arc/core-arcompact.xml: Likewise.
10707 * features/arc/core-v2.xml: Likewise.
10708 * features/arc/aux-arcompact.c: Generate.
10709 * features/arc/aux-v2.c: Likewise.
10710 * features/arc/core-arcompact.c: Likewise.
10711 * features/arc/core-v2.c: Likewise.
10712 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10713
67430cd0
TT
107142020-03-16 Tom Tromey <tromey@adacore.com>
10715
10716 PR gdb/25663:
10717 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10718 putting value into bcache.
10719
30efb6c7
SM
107202020-03-16 Simon Marchi <simon.marchi@efficios.com>
10721
10722 PR gdb/21500
10723 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10724 to...
10725 (amd64_windows_init_abi_common): ... this. Don't set size of
10726 long type.
10727 (amd64_windows_init_abi): New function.
10728 (amd64_cygwin_init_abi): New function.
10729 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10730 the Cygwin OS ABI.
10731 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10732 comment.
10733
8db52437
SM
107342020-03-16 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10737 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10738 (pe_import_directory_entry): New struct type.
10739 (is_linked_with_cygwin_dll): New function.
10740 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10741 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10742 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10743
5982a56a
SM
107442020-03-16 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10747 i386_cygwin_core_osabi_sniffer.
10748
7a1998df
SM
107492020-03-16 Simon Marchi <simon.marchi@efficios.com>
10750
10751 * i386-cygwin-tdep.c: Rename to...
10752 * i386-windows-tdep.c: ... this.
10753 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10754 i386-windows-tdep.c.
10755 * configure.tgt: Likewise.
10756
053205cc
SM
107572020-03-16 Simon Marchi <simon.marchi@efficios.com>
10758
10759 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10760 * osabi.c (gdb_osabi_names): Add "Windows".
10761 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10762 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10763 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10764 i386_cygwin_osabi_sniffer.
10765 (_initialize_i386_cygwin_tdep): Register OS ABI
10766 GDB_OSABI_WINDOWS for i386.
10767 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10768 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10769 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10770 for x86-64.
10771 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10772 when the target matches '*-*-mingw*'.
10773
fe4b2ee6
SM
107742020-03-16 Simon Marchi <simon.marchi@efficios.com>
10775
10776 * defs.h (enum gdb_osabi): Move to...
10777 * osabi.h (enum gdb_osabi): ... here.
10778 * gdbarch.sh: Include osabi.h in gdbarch.h.
10779 * gdbarch.h: Re-generate.
10780
cb9b645d
SM
107812020-03-16 Simon Marchi <simon.marchi@efficios.com>
10782
10783 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10784 function.
10785 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10786
3293bbaf
TT
107872020-03-14 Tom Tromey <tom@tromey.com>
10788
10789 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10790 for C++.
10791 (c_type_print_modifier): Likewise. Add "language" parameter.
10792 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10793 (c_type_print_base_1): Update.
10794 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10795 constants.
10796 * type-stack.c (type_stack::insert): Handle tp_atomic and
10797 tp_restrict.
10798 (type_stack::follow_type_instance_flags): Likewise.
10799 (type_stack::follow_types): Likewise. Merge type-following code.
10800 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10801 (space_identifier, cv_with_space_id)
10802 (const_or_volatile_or_space_identifier_noopt)
10803 (const_or_volatile_or_space_identifier): Remove.
10804 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10805 rules.
10806 (ptr_operator, typebase): Update.
10807 (enum token_flag) <FLAG_C>: New constant.
10808 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10809 "_Atomic".
10810 (lex_one_token): Handle FLAG_C.
10811
154151a6
KR
108122020-03-14 Kamil Rytarowski <n54@gmx.com>
10813
10814 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10815 it to the ptrace call.
10816 * m68k-bsd-nat.c (store_registers): Likewise.
10817
bc107784
KR
108182020-03-14 Kamil Rytarowski <n54@gmx.com>
10819
10820 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10821 gdb_byte *.
10822 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10823 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10824 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10825
01a80117
KR
108262020-03-14 Kamil Rytarowski <n54@gmx.com>
10827
10828 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10829 nbsd_nat_target instead of inf_ptrace_target.
10830 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10831 nbsd_nat_target.
10832
f90280ca
KR
108332020-03-14 Kamil Rytarowski <n54@gmx.com>
10834
10835 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10836 register_t.
10837
6def66f1
KR
108382020-03-14 Kamil Rytarowski <n54@gmx.com>
10839
10840 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10841 it to the ptrace call.
10842 * alpha-bsd-nat.c (store_registers): Likewise.
10843
66eaca97
KR
108442020-03-14 Kamil Rytarowski <n54@gmx.com>
10845
10846 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10847 includes.
10848 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10849 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10850 fill_fpregset): Likewise.
10851
4fed520b
KR
108522020-03-14 Kamil Rytarowski <n54@gmx.com>
10853
10854 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10855 nbsd_nat_target instead of inf_ptrace_target.
10856 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10857 nbsd_nat_target.
10858
2190cf06
KR
108592020-03-14 Kamil Rytarowski <n54@gmx.com>
10860
10861 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10862 register_t.
10863
75c56d3d
KR
108642020-03-14 Kamil Rytarowski <n54@gmx.com>
10865
10866 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10867 it to the ptrace call.
10868 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10869 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10870 * arm-nbsd-nat.c (store_register): Likewise.
10871 * arm-nbsd-nat.c (store_regs): Likewise.
10872 * arm-nbsd-nat.c (store_fp_register): Likewise.
10873 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10874
6018d381
KR
108752020-03-14 Kamil Rytarowski <n54@gmx.com>
10876
10877 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10878 nbsd_nat_target instead of inf_ptrace_target.
10879 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10880 nbsd_nat_target.
10881
013f99f0
KR
108822020-03-14 Kamil Rytarowski <n54@gmx.com>
10883
10884 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10885 it to the ptrace call.
10886 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10887
12753073
KR
108882020-03-14 Kamil Rytarowski <n54@gmx.com>
10889
6227b330
KR
10890 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10891 it to the ptrace call.
10892 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10893
108942020-03-14 Kamil Rytarowski <n54@gmx.com>
10895
10896 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10897 gdb_byte *.
12753073
KR
10898 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10899
d5be5fa4
KR
109002020-03-14 Kamil Rytarowski <n54@gmx.com>
10901
10902 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10903 instead of inf_ptrace_target.
10904 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10905 nbsd_nat_target.
10906
8110f842
KR
109072020-03-14 Kamil Rytarowski <n54@gmx.com>
10908
10909 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10910 register_t.
10911
52feded7
KR
109122020-03-14 Kamil Rytarowski <n54@gmx.com>
10913
10914 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10915 register_t.
10916
25567eee
KR
109172020-03-14 Kamil Rytarowski <n54@gmx.com>
10918
10919 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10920 register_t.
10921
426a9c18
TT
109222020-03-13 Tom Tromey <tom@tromey.com>
10923
10924 * value.h (val_print): Don't declare.
10925 * valprint.h (val_print_array_elements)
10926 (val_print_scalar_formatted, generic_val_print): Don't declare.
10927 * valprint.c (generic_val_print_array): Take a struct value.
10928 (generic_val_print_ptr, generic_val_print_memberptr)
10929 (generic_val_print_bool, generic_val_print_int)
10930 (generic_val_print_char, generic_val_print_complex)
10931 (generic_val_print): Remove.
10932 (generic_value_print): Update.
10933 (do_val_print): Remove unused parameters. Don't call
10934 la_val_print.
10935 (val_print): Remove.
10936 (common_val_print): Update. Don't call value_check_printable.
10937 (val_print_scalar_formatted, val_print_array_elements): Remove.
10938 * rust-lang.c (rust_val_print): Remove.
10939 (rust_language_defn): Update.
10940 * p-valprint.c (pascal_val_print): Remove.
10941 (pascal_value_print_inner): Update.
10942 (pascal_object_print_val_fields, pascal_object_print_val):
10943 Remove.
10944 (pascal_object_print_static_field): Update.
10945 * p-lang.h (pascal_val_print): Don't declare.
10946 * p-lang.c (pascal_language_defn): Update.
10947 * opencl-lang.c (opencl_language_defn): Update.
10948 * objc-lang.c (objc_language_defn): Update.
10949 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10950 * m2-lang.h (m2_val_print): Don't declare.
10951 * m2-lang.c (m2_language_defn): Update.
10952 * language.h (struct language_defn) <la_val_print>: Remove.
10953 * language.c (unk_lang_value_print_inner): Rename. Change
10954 argument types.
10955 (unknown_language_defn, auto_language_defn): Update.
10956 * go-valprint.c (go_val_print): Remove.
10957 * go-lang.h (go_val_print): Don't declare.
10958 * go-lang.c (go_language_defn): Update.
10959 * f-valprint.c (f_val_print): Remove.
10960 * f-lang.h (f_value_print): Don't declare.
10961 * f-lang.c (f_language_defn): Update.
10962 * d-valprint.c (d_val_print): Remove.
10963 * d-lang.h (d_value_print): Don't declare.
10964 * d-lang.c (d_language_defn): Update.
10965 * cp-valprint.c (cp_print_value_fields)
10966 (cp_print_value_fields_rtti, cp_print_value): Remove.
10967 (cp_print_static_field): Update.
10968 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10969 (c_val_print_struct, c_val_print_union, c_val_print_int)
10970 (c_val_print_memberptr, c_val_print): Remove.
10971 * c-lang.h (c_val_print_array, cp_print_value_fields)
10972 (cp_print_value_fields_rtti): Don't declare.
10973 * c-lang.c (c_language_defn, cplus_language_defn)
10974 (asm_language_defn, minimal_language_defn): Update.
10975 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10976 (ada_val_print_enum): Take a struct value.
10977 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10978 (ada_val_print): Remove.
10979 (ada_value_print_1): Update.
10980 (printable_val_type): Remove.
10981 * ada-lang.h (ada_val_print): Don't declare.
10982 * ada-lang.c (ada_language_defn): Update.
10983
42331a1e
TT
109842020-03-13 Tom Tromey <tom@tromey.com>
10985
10986 * valprint.c (do_val_print): Update.
10987 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10988 a struct value.
10989 (value_to_value_object_no_release): Declare.
10990 * python/py-value.c (value_to_value_object_no_release): New
10991 function.
10992 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10993 struct value.
10994 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10995 function.
10996 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10997 a struct value.
10998 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10999 Declare.
11000 (gdbscm_apply_val_pretty_printer): Take a struct value.
11001 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11002 value.
11003 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11004 value.
11005 * extension-priv.h (struct extension_language_ops)
11006 <apply_val_pretty_printer>: Take a struct value.
11007 * cp-valprint.c (cp_print_value): Create a struct value.
11008 (cp_print_value): Update.
11009
3a916a97
TT
110102020-03-13 Tom Tromey <tom@tromey.com>
11011
11012 * ada-valprint.c (print_field_values): Call common_val_print.
11013
b59eac37
TT
110142020-03-13 Tom Tromey <tom@tromey.com>
11015
11016 * ada-valprint.c (val_print_packed_array_elements): Remove
11017 bitoffset and val parameters. Call common_val_print.
11018 (ada_val_print_string): Remove offset, address, and original_value
11019 parameters.
11020 (ada_val_print_array): Update.
11021 (ada_value_print_array): New function.
11022 (ada_value_print_1): Call it.
11023
03371129
TT
110242020-03-13 Tom Tromey <tom@tromey.com>
11025
11026 * ada-valprint.c (ada_value_print): Use common_val_print.
11027
2e088f8b
TT
110282020-03-13 Tom Tromey <tom@tromey.com>
11029
11030 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11031
39ef85a8
TT
110322020-03-13 Tom Tromey <tom@tromey.com>
11033
11034 * ada-valprint.c (ada_value_print_num): New function.
11035 (ada_value_print_1): Use it.
11036
b9fa6e07
TT
110372020-03-13 Tom Tromey <tom@tromey.com>
11038
11039 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11040
416595d6
TT
110412020-03-13 Tom Tromey <tom@tromey.com>
11042
11043 * ada-valprint.c (ada_value_print_ptr): New function.
11044 (ada_value_print_1): Use it.
11045
5b5e15ec
TT
110462020-03-13 Tom Tromey <tom@tromey.com>
11047
11048 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11049 call common_val_print.
11050 (ada_val_print_1): Update.
11051 (ada_value_print_1): New function.
11052 (ada_value_print_inner): Rewrite.
11053
fbf54e75
TT
110542020-03-13 Tom Tromey <tom@tromey.com>
11055
11056 * cp-valprint.c (cp_print_value_fields): Update.
11057 (cp_print_value): New function.
11058
64b653ca
TT
110592020-03-13 Tom Tromey <tom@tromey.com>
11060
11061 * m2-valprint.c (m2_value_print_inner): Use
11062 cp_print_value_fields.
11063 * cp-valprint.c (cp_print_value_fields): New function.
11064 * c-valprint.c (c_value_print_struct): New function.
11065 (c_value_print_inner): Use c_value_print_struct.
11066 * c-lang.h (cp_print_value_fields): Declare.
11067
6999f067
TT
110682020-03-13 Tom Tromey <tom@tromey.com>
11069
11070 * c-valprint.c (c_value_print_array): New function.
11071 (c_value_print_inner): Use it.
11072
ce80b8bd
TT
110732020-03-13 Tom Tromey <tom@tromey.com>
11074
11075 * c-valprint.c (c_value_print_memberptr): New function.
11076 (c_value_print_inner): Use it.
11077
2faac269
TT
110782020-03-13 Tom Tromey <tom@tromey.com>
11079
11080 * c-valprint.c (c_value_print_int): New function.
11081 (c_value_print_inner): Use it.
11082
da3e2c29
TT
110832020-03-13 Tom Tromey <tom@tromey.com>
11084
11085 * c-valprint.c (c_value_print_ptr): New function.
11086 (c_value_print_inner): Use it.
11087
50836231
TT
110882020-03-13 Tom Tromey <tom@tromey.com>
11089
11090 * c-valprint.c (c_value_print_inner): Rewrite.
11091
4f412b6e
TT
110922020-03-13 Tom Tromey <tom@tromey.com>
11093
11094 * valprint.c (generic_value_print_complex): New function.
11095 (generic_value_print): Use it.
11096
f5354008
TT
110972020-03-13 Tom Tromey <tom@tromey.com>
11098
11099 * valprint.c (generic_val_print_float): Don't call
11100 val_print_scalar_formatted.
11101 (generic_val_print, generic_value_print): Update.
11102
3eec3b05
TT
111032020-03-13 Tom Tromey <tom@tromey.com>
11104
11105 * valprint.c (generic_value_print_char): New function
11106 (generic_value_print): Use it.
11107
fdddfccb
TT
111082020-03-13 Tom Tromey <tom@tromey.com>
11109
11110 * valprint.c (generic_value_print_int): New function.
11111 (generic_value_print): Use it.
11112
6dde7521
TT
111132020-03-13 Tom Tromey <tom@tromey.com>
11114
11115 * valprint.c (generic_value_print_bool): New function.
11116 (generic_value_print): Use it.
11117
4112d2e6
TT
111182020-03-13 Tom Tromey <tom@tromey.com>
11119
11120 * valprint.c (generic_val_print_func): Simplify.
11121 (generic_val_print, generic_value_print): Update.
11122
65786af6
TT
111232020-03-13 Tom Tromey <tom@tromey.com>
11124
11125 * valprint.c (generic_val_print_flags): Remove.
11126 (generic_val_print, generic_value_print): Update.
11127 (val_print_type_code_flags): Add original_value parameter.
11128
40f3ce18
TT
111292020-03-13 Tom Tromey <tom@tromey.com>
11130
11131 * valprint.c (generic_val_print): Update.
11132 (generic_value_print): Update.
11133 * valprint.c (generic_val_print_enum): Don't call
11134 val_print_scalar_formatted.
11135
2a5b130b
TT
111362020-03-13 Tom Tromey <tom@tromey.com>
11137
11138 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11139 * valprint.c (generic_value_print_ptr): New function.
11140
abc66ce9
TT
111412020-03-13 Tom Tromey <tom@tromey.com>
11142
11143 * valprint.c (generic_value_print): Rewrite.
11144
07a32858
TT
111452020-03-13 Tom Tromey <tom@tromey.com>
11146
11147 * p-valprint.c (pascal_object_print_value_fields)
11148 (pascal_object_print_value): New functions.
11149
64d64d3a
TT
111502020-03-13 Tom Tromey <tom@tromey.com>
11151
11152 * p-valprint.c (pascal_value_print_inner): Rewrite.
11153
6a95a1f5
TT
111542020-03-13 Tom Tromey <tom@tromey.com>
11155
11156 * f-valprint.c (f_value_print_innner): Rewrite.
11157
59fcdac6
TT
111582020-03-13 Tom Tromey <tom@tromey.com>
11159
11160 * m2-valprint.c (m2_print_unbounded_array): New overload.
11161 (m2_print_unbounded_array): Update.
11162 (m2_print_array_contents): Take a struct value.
11163 (m2_value_print_inner): Rewrite.
11164
d133c3e1
TT
111652020-03-13 Tom Tromey <tom@tromey.com>
11166
11167 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11168 (d_value_print_inner): New function.
11169 * d-lang.h (d_value_print_inner): Declare.
11170 * d-lang.c (d_language_defn): Use d_value_print_inner.
11171
23b0f06b
TT
111722020-03-13 Tom Tromey <tom@tromey.com>
11173
11174 * go-valprint.c (go_value_print_inner): New function.
11175 * go-lang.h (go_value_print_inner): Declare.
11176 * go-lang.c (go_language_defn): Use go_value_print_inner.
11177
5f56f7cb
TT
111782020-03-13 Tom Tromey <tom@tromey.com>
11179
11180 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11181 API.
11182 (rust_val_print): Rewrite.
11183 (rust_value_print_inner): New function, from rust_val_print.
11184 (rust_language_defn): Use rust_value_print_inner.
11185
26792ee0
TT
111862020-03-13 Tom Tromey <tom@tromey.com>
11187
11188 * ada-valprint.c (ada_value_print_inner): New function.
11189 * ada-lang.h (ada_value_print_inner): Declare.
11190 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11191
24051bbe
TT
111922020-03-13 Tom Tromey <tom@tromey.com>
11193
11194 * f-valprint.c (f_value_print_innner): New function.
11195 * f-lang.h (f_value_print_innner): Declare.
11196 * f-lang.c (f_language_defn): Use f_value_print_innner.
11197
c0941be6
TT
111982020-03-13 Tom Tromey <tom@tromey.com>
11199
11200 * p-valprint.c (pascal_value_print_inner): New function.
11201 * p-lang.h (pascal_value_print_inner): Declare.
11202 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11203
62c4663d
TT
112042020-03-13 Tom Tromey <tom@tromey.com>
11205
11206 * m2-valprint.c (m2_value_print_inner): New function.
11207 * m2-lang.h (m2_value_print_inner): Declare.
11208 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11209
62182190
TT
112102020-03-13 Tom Tromey <tom@tromey.com>
11211
11212 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11213 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11214 * c-valprint.c (c_value_print_inner): New function.
11215 * c-lang.h (c_value_print_inner): Declare.
11216 * c-lang.c (c_language_defn, cplus_language_defn)
11217 (asm_language_defn, minimal_language_defn): Use
11218 c_value_print_inner.
11219
1e592a8a
TT
112202020-03-13 Tom Tromey <tom@tromey.com>
11221
11222 * p-valprint.c (pascal_object_print_value_fields): Now static.
11223 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11224
7fe471e9
TT
112252020-03-13 Tom Tromey <tom@tromey.com>
11226
11227 * c-valprint.c (c_val_print_array): Simplify.
11228
d121c6ce
TT
112292020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * valprint.c (value_print_array_elements): New function.
11232 * valprint.h (value_print_array_elements): Declare.
11233
4dba70ee
TT
112342020-03-13 Tom Tromey <tom@tromey.com>
11235
11236 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11237 * mips-tdep.c (mips_print_register): Use
11238 value_print_scalar_formatted.
11239
4f9ae810
TT
112402020-03-13 Tom Tromey <tom@tromey.com>
11241
11242 * valprint.h (value_print_scalar_formatted): Declare.
11243 * valprint.c (value_print_scalar_formatted): New function.
11244
156bfec9
TT
112452020-03-13 Tom Tromey <tom@tromey.com>
11246
11247 * valprint.h (generic_value_print): Declare.
11248 * valprint.c (generic_value_print): New function.
11249
2b4e573d
TT
112502020-03-13 Tom Tromey <tom@tromey.com>
11251
11252 * valprint.c (do_val_print): Call la_value_print_inner, if
11253 available.
11254 * rust-lang.c (rust_language_defn): Update.
11255 * p-lang.c (pascal_language_defn): Update.
11256 * opencl-lang.c (opencl_language_defn): Update.
11257 * objc-lang.c (objc_language_defn): Update.
11258 * m2-lang.c (m2_language_defn): Update.
11259 * language.h (struct language_defn) <la_value_print_inner>: New
11260 member.
11261 * language.c (unknown_language_defn, auto_language_defn): Update.
11262 * go-lang.c (go_language_defn): Update.
11263 * f-lang.c (f_language_defn): Update.
11264 * d-lang.c (d_language_defn): Update.
11265 * c-lang.c (c_language_defn, cplus_language_defn)
11266 (asm_language_defn, minimal_language_defn): Update.
11267 * ada-lang.c (ada_language_defn): Update.
11268
a1f6a07c
TT
112692020-03-13 Tom Tromey <tom@tromey.com>
11270
11271 * c-valprint.c (c_value_print): Use common_val_print.
11272
410cf315
TT
112732020-03-13 Tom Tromey <tom@tromey.com>
11274
11275 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11276
72a45c93
TT
112772020-03-13 Tom Tromey <tom@tromey.com>
11278
11279 * f-valprint.c (f77_print_array_1, f_val_print): Use
11280 common_val_print.
11281
040f66bd
TT
112822020-03-13 Tom Tromey <tom@tromey.com>
11283
11284 * riscv-tdep.c (riscv_print_one_register_info): Use
11285 common_val_print.
11286
a6e05a6c
TT
112872020-03-13 Tom Tromey <tom@tromey.com>
11288
11289 * mi/mi-main.c (output_register): Use common_val_print.
11290
3444c526
TT
112912020-03-13 Tom Tromey <tom@tromey.com>
11292
11293 * infcmd.c (default_print_one_register_info): Use
11294 common_val_print.
11295
c2a44efe
TT
112962020-03-13 Tom Tromey <tom@tromey.com>
11297
11298 * valprint.h (common_val_print_checked): Declare.
11299 * valprint.c (common_val_print_checked): New function.
11300 * stack.c (print_frame_arg): Use common_val_print_checked.
11301
b0c26e99
TT
113022020-03-13 Tom Tromey <tom@tromey.com>
11303
11304 * valprint.c (do_val_print): New function, from val_print.
11305 (val_print): Use do_val_print.
11306 (common_val_print): Use do_val_print.
11307
ce3acbe9
TT
113082020-03-13 Tom Tromey <tom@tromey.com>
11309
11310 * valprint.c (value_print): Use scoped_value_mark.
11311
96c7f873
TV
113122020-03-13 Tom de Vries <tdevries@suse.de>
11313
11314 PR symtab/25646
11315 * psymtab.c (partial_symtab::partial_symtab): Don't set
11316 globals_offset and statics_offset. Push element onto
11317 current_global_psymbols and current_static_psymbols stacks.
11318 (concat): New function.
11319 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11320 element from current_global_psymbols and current_static_psymbols
11321 stacks. Concat popped elements to global_psymbols and
11322 static_symbols.
11323 (add_psymbol_to_list): Use current_global_psymbols and
11324 current_static_psymbols stacks.
11325 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11326 current_static_psymbols fields.
11327
6ba0a321
CB
113282020-03-12 Christian Biesinger <cbiesinger@google.com>
11329
11330 * corelow.c (sniff_core_bfd): Remove.
11331 (class core_target) <m_core_vec>: Remove.
11332 (core_target::core_target): Update.
11333 (core_file_fns): Remove.
11334 (deprecated_add_core_fns): Remove.
11335 (default_core_sniffer): Remove.
11336 (sniff_core_bfd): Remove.
11337 (default_check_format): Remove.
11338 (gdb_check_format): Remove.
11339 (core_target_open): Update.
11340 (core_target::get_core_register_section): Update.
11341 (get_core_registers_cb): Update.
11342 (core_target::fetch_registers): Update.
11343 * gdbcore.h (struct core_fns): Remove.
11344 (deprecated_add_core_fns): Remove.
11345 (default_core_sniffer): Remove.
11346 (default_check_format): Remove.
11347
227031b2
TT
113482020-03-12 Tom Tromey <tom@tromey.com>
11349
11350 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11351 CORE_ADDR.
11352 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11353
53807e9f
TT
113542020-03-12 Tom Tromey <tom@tromey.com>
11355
11356 * remote.c (remote_target::download_tracepoint)
11357 (remote_target::enable_tracepoint)
11358 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11359 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11360 sprintf_vma.
11361
64f25102
TT
113622020-03-12 Tom Tromey <tom@tromey.com>
11363
11364 * symfile-mem.c: Update CORE_ADDR size assert.
11365
272cd5a3
SM
113662020-03-12 Simon Marchi <simon.marchi@efficios.com>
11367
11368 * selftest.m4: Move to gdbsupport/.
11369 * acinclude.m4: Update path to selftest.m4.
11370
74cd3f9d
SM
113712020-03-12 Simon Marchi <simon.marchi@efficios.com>
11372
11373 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11374 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11375 gdbarch-selfselftests.c and selftest-arch.c.
11376 (SUBDIR_UNITTESTS_OBS): Rename to...
11377 (SELFTESTS_OBS): ... this.
11378 (COMMON_SFILES): Remove disasm-selftests.c and
11379 gdbarch-selftests.c.
11380 * configure.ac: Don't add selftest-arch.{c,o} to
11381 CONFIG_{SRCS,OBS}.
11382 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11383 preprocessor conditions.
11384
db6878ac
SM
113852020-03-12 Simon Marchi <simon.marchi@efficios.com>
11386
11387 * configure.ac: Don't source bfd/development.sh.
11388 * selftest.m4: Modify comment.
11389 * configure: Re-generate.
11390
4d696a5c
SM
113912020-03-12 Simon Marchi <simon.marchi@efficios.com>
11392
11393 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11394 not "true" or "false".
11395 * configure: Re-generate.
11396
8dd8e1c7
CB
113972020-03-12 Christian Biesinger <cbiesinger@google.com>
11398
11399 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11400 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11401 renamed to arm_nbsd_supply_gregset.
11402 (fetch_register): Update to call arm_nbsd_supply_gregset.
11403 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11404 (arm_netbsd_nat_target::fetch_registers): Update.
11405 (fetch_elfcore_registers): Removed.
11406 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11407 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11408 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11409 not require NetBSD system headers.
11410 (arm_nbsd_regset): New struct.
11411 (arm_nbsd_iterate_over_regset_sections): New function.
11412 (arm_netbsd_init_abi_common): Updated to call
11413 set_gdbarch_iterate_over_regset_sections.
11414 * arm-nbsd-tdep.h: New file.
11415
dd69bf7a
KB
114162020-03-11 Kevin Buettner <kevinb@redhat.com>
11417
11418 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11419 recursion.
11420
a0761e34
SM
114212020-03-11 Simon Marchi <simon.marchi@efficios.com>
11422
11423 * configure: Re-generate.
11424
e7a82140
TT
114252020-03-11 Tom Tromey <tromey@adacore.com>
11426
11427 * ada-typeprint.c (print_choices): Fix comment.
11428
dcc050c8
AB
114292020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11430
11431 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11432 previous item in the list, when the list has no items.
11433
1c33af77
TV
114342020-03-11 Tom de Vries <tdevries@suse.de>
11435
11436 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11437 PROP_LOCLIST handling code.
11438
8c95582d
AB
114392020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11440
11441 * buildsym-legacy.c (record_line): Pass extra parameter to
11442 record_line.
11443 * buildsym.c (buildsym_compunit::record_line): Take an extra
11444 parameter, reduce duplication in the line table, and record the
11445 is_stmt flag in the line table.
11446 * buildsym.h (buildsym_compunit::record_line): Add extra
11447 parameter.
11448 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11449 non-statement lines.
11450 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11451 this to the symtab builder.
11452 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11453 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11454 through to dwarf_record_line_1.
11455 * infrun.c (process_event_stop_test): When stepping, don't stop at
11456 a non-statement instruction, and only refresh the step info when
11457 we land in the middle of a line's range. Also add an extra
11458 comment.
11459 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11460 field.
11461 * record-btrace.c (btrace_find_line_range): Only record lines
11462 marked as is-statement.
11463 * stack.c (frame_show_address): Show the frame address if we are
11464 in a non-statement sal.
11465 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11466 (maintenance_print_one_line_table): Print a header for the is_stmt
11467 column, and include is_stmt information in the output.
11468 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11469 preference to non-statements.
11470 (find_pcs_for_symtab_line): Prefer is-statement entries.
11471 (find_line_common): Likewise.
11472 * symtab.h (struct linetable_entry): Add is_stmt field.
11473 (struct symtab_and_line): Likewise.
11474 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11475 arranging the line table.
11476
e4003a34
TV
114772020-03-07 Tom de Vries <tdevries@suse.de>
11478
11479 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11480 DIE.
11481
e8932576
TT
114822020-03-07 Tom Tromey <tom@tromey.com>
11483
11484 * valops.c (value_literal_complex): Remove obsolete comment.
11485 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11486 comment.
11487
29734269
SM
114882020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11489
11490 * infrun.h: Forward-declare thread_info.
11491 (set_step_info): Add thread_info parameter, add doc.
11492 * infrun.c (set_step_info): Add thread_info parameter, move doc
11493 to header.
11494 * infrun.c (process_event_stop_test): Pass thread to
11495 set_step_info call.
11496 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11497 set_step_info.
11498 (prepare_one_step): Add thread_info parameter, pass it to
11499 set_step_frame and prepare_one_step (recursive) call.
11500 (step_1): Pass thread to prepare_one_step call.
11501 (step_command_fsm::should_stop): Pass thread to
11502 prepare_one_step.
11503 (until_next_fsm): Pass thread to set_step_frame call.
11504 (finish_command): Pass thread to set_step_info call.
11505
b7d64b29
HD
115062020-03-06 Hannes Domani <ssbssa@yahoo.de>
11507
11508 * windows-tdep.c (windows_solib_create_inferior_hook):
11509 Check if inferior is running.
11510
09f2921c
TV
115112020-03-06 Tom de Vries <tdevries@suse.de>
11512
11513 * NEWS: Fix "the the".
11514 * ctfread.c: Same.
11515
fd760e79
TV
115162020-03-06 Tom de Vries <tdevries@suse.de>
11517
11518 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11519
20ea4a60
AB
115202020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11521
11522 * .dir-locals.el: Add a comment referencing the other copies of
11523 this file.
11524
0afbabf0
JB
115252020-03-05 John Baldwin <jhb@FreeBSD.org>
11526
11527 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11528 psargs.
11529
842806cb
TBA
115302020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11531
11532 * .gitattributes: New file.
11533
be1e3d3e
TT
115342020-03-04 Tom Tromey <tom@tromey.com>
11535
11536 * symmisc.c (print_symbol_bcache_statistics)
11537 (print_objfile_statistics): Update.
11538 * symfile.c (allocate_symtab): Use intern.
11539 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11540 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11541 macro_cache>: Remove.
11542 <string_cache>: New member.
11543 (struct objfile) <intern>: New methods.
11544 * elfread.c (elf_symtab_read): Use intern.
11545 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11546 (dwarf2_compute_name, dwarf2_physname)
11547 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11548 names.
11549 (guess_partial_die_structure_name): Update.
11550 (partial_die_info::fixup): Intern name.
11551 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11552 name.
11553 (dwarf2_name): Intern name. Update.
11554 * buildsym.c (buildsym_compunit::get_macro_table): Use
11555 string_cache.
11556
4e7625fd
TT
115572020-03-04 Tom Tromey <tom@tromey.com>
11558
11559 * jit.c (bfd_open_from_target_memory): Make "target" const.
11560 * corefile.c (gnutarget): Now const.
11561 * gdbcore.h (gnutarget): Now const.
11562
46f9f931
HD
115632020-03-04 Hannes Domani <ssbssa@yahoo.de>
11564
11565 * NEWS: Mention support for WOW64 processes.
11566 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11567 (amd64_windows_segment_register_p): Remove static.
11568 (_initialize_amd64_windows_nat): Update.
11569 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11570 * i386-windows-nat.c (context_offset): Update.
11571 (i386_mappings): Rename and remove static.
11572 (i386_windows_segment_register_p): Remove static.
11573 (_initialize_i386_windows_nat): Update.
11574 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11575 (STATUS_WX86_SINGLE_STEP): New macro.
11576 (EnumProcessModulesEx): New macro.
11577 (Wow64SuspendThread): New macro.
11578 (Wow64GetThreadContext): New macro.
11579 (Wow64SetThreadContext): New macro.
11580 (Wow64GetThreadSelectorEntry): New macro.
11581 (windows_set_context_register_offsets): Add static.
11582 (windows_set_segment_register_p): Likewise.
11583 (windows_add_thread): Adapt for WOW64 processes.
11584 (windows_fetch_one_register): Likewise.
11585 (windows_nat_target::fetch_registers): Likewise.
11586 (windows_store_one_register): Likewise.
11587 (display_selector): Likewise.
11588 (display_selectors): Likewise.
11589 (handle_exception): Likewise.
11590 (windows_continue): Likewise.
11591 (windows_nat_target::resume): Likewise.
11592 (windows_add_all_dlls): Likewise.
11593 (do_initial_windows_stuff): Likewise.
11594 (windows_nat_target::attach): Likewise.
11595 (windows_get_exec_module_filename): Likewise.
11596 (windows_nat_target::create_inferior): Likewise.
11597 (windows_xfer_siginfo): Likewise.
11598 (_initialize_loadable): Initialize Wow64SuspendThread,
11599 Wow64GetThreadContext, Wow64SetThreadContext,
11600 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11601 * windows-nat.h (windows_set_context_register_offsets):
11602 Remove declaration.
11603 (windows_set_segment_register_p): Likewise.
11604 (i386_windows_segment_register_p): Add declaration.
11605 (amd64_windows_segment_register_p): Likewise.
11606
440cf44e
LM
116072020-03-04 Luis Machado <luis.machado@linaro.org>
11608
11609 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11610 in "info registers" for AArch64/ARM.
11611
11612 The change caused "info registers" to not print GPR's.
11613
11614 gdb/ChangeLog:
11615
11616 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11617
11618 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11619 when reg->group is empty and reggroup is not.
11620
1009d92f
TT
116212020-03-03 Tom Tromey <tromey@adacore.com>
11622
11623 * dwarf2/frame.c (struct dwarf2_frame_cache)
11624 <checked_tailcall_bottom, entry_cfa_sp_offset,
11625 entry_cfa_sp_offset_p>: Remove members.
11626 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11627 (dwarf2_frame_prev_register): Don't call
11628 dwarf2_tailcall_sniffer_first.
11629 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11630 * frame-unwind.c (add_unwinder): New fuction.
11631 (frame_unwind_init): Use it. Add tailcall unwinder.
11632
5e5d66b6
AB
116332020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11634 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11635
11636 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11637 value should be printed as true.
11638
584cf46d
HD
116392020-03-03 Hannes Domani <ssbssa@yahoo.de>
11640
11641 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11642 (windows_init_abi): Set and use windows_so_ops.
11643
7b973adc
SDJ
116442020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11645
11646 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11647 when verifying if dealing with a convenience variable.
11648
bb7b70ab
LM
116492020-03-03 Luis Machado <luis.machado@linaro.org>
11650
11651 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11652
9822cb57
SM
116532020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11654
11655 * infrun.c (gdbarch_supports_displaced_stepping): New.
11656 (use_displaced_stepping): Break up conditions in smaller pieces.
11657 Use gdbarch_supports_displaced_stepping.
11658 (displaced_step_prepare_throw): Use
11659 gdbarch_supports_displaced_stepping.
11660
63e163f2
AB
116612020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11662
11663 * NEWS: Mention new behaviour of the history filename.
11664 * top.c (write_history_p): Add comment.
11665 (show_write_history_p): Add header comment, give a different
11666 message when history writing is on, but the history filename is
11667 empty.
11668 (history_filename): Add comment.
11669 (history_filename_empty): New function.
11670 (show_history_filename): Add header comment, give a different
11671 message when the filename is empty.
11672 (init_history): Compare history_filename against nullptr, and only
11673 read history if the filename is not empty.
11674 (set_history_filename): Add header comment, and only make
11675 non-empty filenames absolute.
11676 (init_main): Make the filename argument to 'set history filename'
11677 optional.
11678
81b86b97
CB
116792020-03-02 Christian Biesinger <cbiesinger@google.com>
11680
11681 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11682 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11683 (fetch_fp_register): Update.
11684 (fetch_fp_regs): Update.
11685 (store_fp_register): Update.
11686 (store_fp_regs): Update.
11687 (arm_netbsd_nat_target::read_description): New function.
11688 (fetch_elfcore_registers): Update.
11689
24ed6739
AB
116902020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11691
11692 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11693 general_thread if the stop reply is missing a thread-id.
11694 (remote_target::process_stop_reply): Use the first non-exited
11695 thread if the target didn't pass a thread-id.
11696 * infrun.c (do_target_wait): Move call to
11697 switch_to_inferior_no_thread to ....
11698 (do_target_wait_1): ... here.
11699
a84bb2a0
JT
117002020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11701
11702 * debuginfod-support.c: Include defs.h first.
11703
658dadf0
TV
117042020-02-28 Tom de Vries <tdevries@suse.de>
11705
11706 * symfile.c (set_initial_language): Use default language for lookup.
11707
4ebe4877
SM
117082020-02-28 Simon Marchi <simon.marchi@efficios.com>
11709
11710 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11711 reader variable, pass `this` to read_cutu_die_from_dwo.
11712
e5da1139
AM
117132020-02-27 Aaron Merey <amerey@redhat.com>
11714
11715 * source.c (open_source_file): Check for nullptr when computing
11716 srcpath.
11717
317f7127
TT
117182020-02-27 Tom Tromey <tromey@adacore.com>
11719
11720 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11721 member.
11722 (dwarf2_add_field): Don't update nfields.
11723 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11724
3104d9ee
AB
117252020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11726
11727 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11728 abs.
11729
b83470bf
TT
117302020-02-26 Tom Tromey <tom@tromey.com>
11731
11732 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11733 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11734 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11735 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11736 per_cu_data.
11737
edfe0a0c
TT
117382020-02-26 Tom Tromey <tom@tromey.com>
11739
11740 * dwarf2/index-write.c (psym_index_map): Change type.
11741 (add_address_entry_worker, write_one_signatured_type)
11742 (recursively_count_psymbols, recursively_write_psymbols)
11743 (class debug_names, psyms_seen_size, write_gdbindex)
11744 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11745
0d79cdc4
AM
117462020-02-26 Aaron Merey <amerey@redhat.com>
11747
11748 * Makefile.in: Handle optional debuginfod support.
11749 * NEWS: Update.
11750 * README: Add --with-debuginfod summary.
11751 * config.in: Regenerate.
11752 * configure: Regenerate.
11753 * configure.ac: Handle optional debuginfod support.
11754 * debuginfod-support.c: debuginfod helper functions.
11755 * debuginfod-support.h: Ditto.
11756 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11757 summary.
11758 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11759 when a dwz file cannot be found.
11760 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11761 debuginfo file cannot be found.
11762 * source.c (open_source_file): Query debuginfod servers when a
11763 source file cannot be found.
11764 * top.c (print_gdb_configuration): Include
11765 --{with,without}-debuginfod in the output.
11766
b65ce565
JG
117672020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11768
11769 * thread.c (thr_try_catch_cmd): Print thread name.
11770
d4c9a4f8
SM
117712020-02-26 Simon Marchi <simon.marchi@efficios.com>
11772
11773 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11774 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11775 dwarf2_fetch_die_type_sect_off): Move to...
11776 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11777 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11778 dwarf2_fetch_die_type_sect_off): ... here.
11779 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11780 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11781 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11782
0dce4280
TV
117832020-02-26 Tom de Vries <tdevries@suse.de>
11784
11785 PR gdb/25603
11786 * symfile.c (set_initial_language): Exit-early if
11787 language_mode == language_mode_manual.
11788
450a1bfc
SM
117892020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11790
11791 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11792 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11793 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11794
9e80cfa1
AB
117952020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11796
11797 * gdbtypes.c (create_array_type_with_stride): Handle negative
11798 array strides.
11799 * valarith.c (value_subscripted_rvalue): Likewise.
11800
09624f1f
LM
118012020-02-25 Luis Machado <luis.machado@linaro.org>
11802
11803 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11804
8cb5117c
SM
118052020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11806
11807 * loc.h (dwarf2_get_die_type): Move to...
11808 * read.h (dwarf2_get_die_type): ... here.
11809 * read.c (dwarf2_get_die_type): Move doc to header.
11810
c325c44e
JB
118112020-02-25 Joel Brobecker <brobecker@adacore.com>
11812
11813 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11814 'gnulib/Makefile.in' to the list.
11815
4ac93832
TT
118162020-02-24 Tom Tromey <tom@tromey.com>
11817
11818 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11819 Remove.
11820 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11821 XOBNEWVEC.
11822
197400e8
TT
118232020-02-24 Tom Tromey <tom@tromey.com>
11824
11825 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11826 New method.
11827 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11828 (dw2_do_instantiate_symtab, dw2_get_file_names)
11829 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11830
76935768
TT
118312020-02-24 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11834 make_scoped_restore.
11835 (dwarf2_psymtab::read_symtab): Don't clear
11836 reading_partial_symbols.
11837
a88ef40d
TV
118382020-02-24 Tom de Vries <tdevries@suse.de>
11839
11840 PR gdb/25592
11841 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11842
c9af6521
TV
118432020-02-24 Tom de Vries <tdevries@suse.de>
11844
11845 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11846 commands layout next/prev/regs.
11847
5707a07a
TT
118482020-02-22 Tom Tromey <tom@tromey.com>
11849
11850 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11851 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11852
3b0fb49e
TT
118532020-02-22 Tom Tromey <tom@tromey.com>
11854
11855 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11856
283be8bf
TT
118572020-02-22 Tom Tromey <tom@tromey.com>
11858
11859 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11860 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11861 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11862 * tui/tui.c (_initialize_tui): Add usage text.
11863
ca793b96
TT
118642020-02-22 Tom Tromey <tom@tromey.com>
11865
11866 * tui/tui-win.c (tui_set_focus_command)
11867 (tui_set_win_height_command): Use error_no_arg.
11868 (_initialize_tui_win): Update help text.
11869 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11870
432b5c40
TT
118712020-02-22 Tom Tromey <tom@tromey.com>
11872
11873 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11874 * tui/tui-disasm.h (struct tui_disasm_window)
11875 <display_start_addr>: Declare.
11876 * tui/tui-source.h (struct tui_source_window)
11877 <display_start_addr>: Declare.
11878 * tui/tui-winsource.h (struct tui_source_window_base)
11879 <show_source_line, display_start_addr>: New methods.
11880 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11881 Rename and move to protected section.
11882 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11883 (tui_source_window_base::do_erase_source_content): Update.
11884 (tui_source_window_base::show_source_line): Now a method.
11885 (tui_source_window_base::show_source_content)
11886 (tui_source_window_base::tui_source_window_base)
11887 (tui_source_window_base::rerender)
11888 (tui_source_window_base::refill)
11889 (tui_source_window_base::do_scroll_horizontal)
11890 (tui_source_window_base::set_is_exec_point_at)
11891 (tui_source_window_base::update_breakpoint_info)
11892 (tui_source_window_base::update_exec_info): Update.
11893 * tui/tui-source.c (tui_source_window::set_contents)
11894 (tui_source_window::showing_source_p)
11895 (tui_source_window::do_scroll_vertical)
11896 (tui_source_window::location_matches_p)
11897 (tui_source_window::line_is_displayed): Update.
11898 (tui_source_window::display_start_addr): New method.
11899 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11900 (tui_disasm_window::do_scroll_vertical)
11901 (tui_disasm_window::location_matches_p): Update.
11902 (tui_disasm_window::display_start_addr): New method.
11903
01b1af32
TT
119042020-02-22 Tom Tromey <tom@tromey.com>
11905
11906 * NEWS: Add entry for gdb.register_window_type.
11907 * tui/tui-layout.h (window_factory): New typedef.
11908 (tui_register_window): Declare.
11909 * tui/tui-layout.c (saved_tui_windows): New global.
11910 (tui_apply_current_layout): Use it.
11911 (tui_register_window): New function.
11912 * python/python.c (do_start_initialization): Call
11913 gdbpy_initialize_tui.
11914 (python_GdbMethods): Add "register_window_type" function.
11915 * python/python-internal.h (gdbpy_register_tui_window)
11916 (gdbpy_initialize_tui): Declare.
11917 * python/py-tui.c: New file.
11918 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11919
fc96d20b
TT
119202020-02-22 Tom Tromey <tom@tromey.com>
11921
11922 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11923
935c78c0
TT
119242020-02-22 Tom Tromey <tom@tromey.com>
11925
11926 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11927 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11928 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11929 (tui_set_win_focus_to): Move from tui-win.c.
11930
0240c8f1
TT
119312020-02-22 Tom Tromey <tom@tromey.com>
11932
11933 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11934 functions.
11935 (known_window_types): New global.
11936 (tui_get_window_by_name): Reimplement.
11937 (initialize_known_windows): New function.
11938 (validate_window_name): Rewrite.
11939 (_initialize_tui_layout): Call initialize_known_windows.
11940
fdb01f0c
TT
119412020-02-22 Tom Tromey <tom@tromey.com>
11942
11943 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11944 Remove constants.
11945 * tui/tui-winsource.h (struct tui_source_window_base)
11946 <tui_source_window_base>: Remove parameter.
11947 * tui/tui-winsource.c
11948 (tui_source_window_base::tui_source_window_base): Remove
11949 parameter.
11950 (tui_source_window_base::refill): Update.
11951 * tui/tui-stack.h (struct tui_locator_window)
11952 <tui_locator_window>: Update.
11953 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11954 Default the constructor.
11955 * tui/tui-regs.h (struct tui_data_item_window)
11956 <tui_data_item_window>: Default the constructor.
11957 (struct tui_data_window) <tui_data_window>: Likewise.
11958 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11959 Default the constructor.
11960 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11961 Default the constructor.
11962 <type>: Remove.
11963 (struct tui_win_info) <tui_win_info>: Default the constructor.
11964 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11965 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11966 Default the constructor.
11967
865a5aec
TT
119682020-02-22 Tom Tromey <tom@tromey.com>
11969
11970 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11971 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11972 * tui/tui-win.c (tui_resize_all): Don't call
11973 tui_delete_invisible_windows.
11974 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11975 done.
11976 (tui_set_layout): Update.
11977 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11978 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11979 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11980
e098d18c
TT
119812020-02-22 Tom Tromey <tom@tromey.com>
11982
11983 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11984 correctly.
11985
eb9c8874
TT
119862020-02-22 Tom Tromey <tom@tromey.com>
11987
11988 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11989
7eed1a8e
TT
119902020-02-22 Tom Tromey <tom@tromey.com>
11991
11992 * tui/tui-winsource.h (struct tui_source_window_iterator)
11993 <inner_iterator>: New etytypedef.
11994 <tui_source_window_iterator>: Take "end" parameter.
11995 <tui_source_window_iterator>: Take iterator.
11996 <operator*, advance>: Update.
11997 <m_iter>: Change type.
11998 <m_end>: New field.
11999 (struct tui_source_windows) <begin, end>: Update.
12000 * tui/tui-layout.c (tui_windows): New global.
12001 (tui_apply_current_layout): Clear tui_windows.
12002 (tui_layout_window::apply): Update tui_windows.
12003 * tui/tui-data.h (tui_windows): Declare.
12004 (all_tui_windows): Now inline function.
12005 (class tui_window_iterator, struct all_tui_windows): Remove.
12006
7c043ba6
TT
120072020-02-22 Tom Tromey <tom@tromey.com>
12008
12009 PR tui/17850:
12010 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12011 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12012 "height" argument.
12013 (class tui_layout_window) <get_sizes>: Likewise.
12014 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12015 argument.
12016 <get_sizes>: Add "height" argument.
12017 <m_vertical>: New field.
12018 * tui/tui-layout.c (tui_layout_split::clone): Update.
12019 (tui_layout_split::get_sizes): Add "height" argument.
12020 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12021 (tui_new_layout_command): Parse "-horizontal".
12022 (_initialize_tui_layout): Update help string.
12023 (tui_layout_split::specification): Add "-horizontal" when needed.
12024 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12025 argument.
12026 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12027 New methods.
12028
6bc56648
TT
120292020-02-22 Tom Tromey <tom@tromey.com>
12030
12031 * tui/tui-layout.h (enum tui_adjust_result): New.
12032 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12033 (class tui_layout_window) <adjust_size>: Return
12034 tui_adjust_result. Rewrite.
12035 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12036 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12037
c22fef7e
TT
120382020-02-22 Tom Tromey <tom@tromey.com>
12039
12040 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12041 parameter and return types.
12042 (class tui_layout_base) <specification>: Add "depth".
12043 (class tui_layout_window) <specification>: Add "depth".
12044 (class tui_layout_split) <specification>: Add "depth".
12045 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12046 and return types.
12047 (tui_new_layout_command): Parse sub-layouts.
12048 (_initialize_tui_layout): Update help string.
12049 (tui_layout_window::specification): Add "depth".
12050 (add_layout_command): Update.
12051
ee325b61
TT
120522020-02-22 Tom Tromey <tom@tromey.com>
12053
12054 * NEWS: Add "tui new-layout" item.
12055 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12056 Add new-layout command to help text.
12057 (validate_window_name): New function.
12058 (tui_new_layout_command): New function.
12059 (_initialize_tui_layout): Register "new-layout".
12060 (tui_layout_window::specification): New method.
12061 (tui_layout_window::specification): New method.
12062 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12063 method.
12064 (class tui_layout_window) <specification>: New method.
12065 (class tui_layout_split) <specification>: New method.
12066
416eb92d
TT
120672020-02-22 Tom Tromey <tom@tromey.com>
12068
12069 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12070 * tui/tui-win.c (window_name_completer): Update comment.
12071 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12072 Declare method.
12073 (class tui_layout_window) <replace_window>: Likewise.
12074 (class tui_layout_split) <replace_window>: Likewise.
12075 (tui_set_layout): Don't declare.
12076 (tui_set_initial_layout): Declare function.
12077 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12078 (asm_regs_layout): New globals.
12079 (tui_current_layout, show_layout): Remove.
12080 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12081 (find_layout, tui_apply_layout): New function.
12082 (layout_completer): Remove.
12083 (tui_next_layout): Reimplement.
12084 (tui_next_layout_command): New function.
12085 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12086 (tui_regs_layout): Reimplement.
12087 (tui_regs_layout_command): New function.
12088 (extract_display_start_addr): Rewrite.
12089 (next_layout, prev_layout): Remove.
12090 (tui_layout_window::replace_window): New method.
12091 (tui_layout_split::replace_window): New method.
12092 (destroy_layout): New function.
12093 (layout_list): New global.
12094 (add_layout_command): New function.
12095 (initialize_layouts): Update.
12096 (tui_layout_command): New function.
12097 (_initialize_tui_layout): Install "layout" commands.
12098 * tui/tui-data.h (enum tui_layout_type): Remove.
12099 (tui_current_layout): Don't declare.
12100
0dbc2fc7
TT
121012020-02-22 Tom Tromey <tom@tromey.com>
12102
12103 * tui/tui-regs.c (tui_reg_layout): Remove.
12104 (tui_reg_command): Use tui_regs_layout.
12105 * tui/tui-layout.h (tui_reg_command): Declare.
12106 * tui/tui-layout.c (tui_reg_command): New function.
12107
5afe342e
TT
121082020-02-22 Tom Tromey <tom@tromey.com>
12109
12110 * tui/tui.c (tui_rl_delete_other_windows): Call
12111 tui_remove_some_windows.
12112 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12113 Declare method.
12114 (class tui_layout_window) <remove_windows>: New method.
12115 (class tui_layout_split) <remove_windows>: Declare.
12116 (tui_remove_some_windows): Declare.
12117 * tui/tui-layout.c (tui_remove_some_windows): New function.
12118 (tui_layout_split::remove_windows): New method.
12119
427326a8
TT
121202020-02-22 Tom Tromey <tom@tromey.com>
12121
12122 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12123 * tui/tui-layout.h (tui_next_layout): Declare.
12124 * tui/tui-layout.c (tui_next_layout): New function.
12125
3fe12b6d
TT
121262020-02-22 Tom Tromey <tom@tromey.com>
12127
12128 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12129 correct coordinates.
12130
59b8b5d2
TT
121312020-02-22 Tom Tromey <tom@tromey.com>
12132
12133 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12134 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12135 DATA_WIN case.
12136
2a3d458b
TT
121372020-02-22 Tom Tromey <tom@tromey.com>
12138
12139 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12140 TUI_DISASM_WIN, not tui_win_list.
12141
3f0cbb04
TT
121422020-02-22 Tom Tromey <tom@tromey.com>
12143
12144 * valprint.c (generic_val_print_enum_1)
12145 (val_print_type_code_flags): Style member names.
12146 * rust-lang.c (val_print_struct, rust_print_enum)
12147 (rust_print_struct_def, rust_internal_print_type): Style member
12148 names.
12149 * p-valprint.c (pascal_object_print_value_fields): Style member
12150 names. Only call fprintf_symbol_filtered for static members.
12151 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12152 * f-valprint.c (f_val_print): Style member names.
12153 * f-typeprint.c (f_type_print_base): Style member names.
12154 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12155 call fprintf_symbol_filtered for static members.
12156 (cp_print_class_member): Style member names.
12157 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12158 member names.
12159 * ada-valprint.c (ada_print_scalar): Style enum names.
12160 (ada_val_print_enum): Likewise.
12161 * ada-typeprint.c (print_enum_type): Style enum names.
12162
d4d947ae
TT
121632020-02-21 Tom Tromey <tom@tromey.com>
12164
12165 * psympriv.h (struct partial_symtab): Update comment.
12166
e94e944b
TT
121672020-02-21 Tom Tromey <tromey@adacore.com>
12168
12169 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12170 type is CORE_ADDR.
12171
1eb73179
TV
121722020-02-21 Tom de Vries <tdevries@suse.de>
12173
12174 PR gdb/25534
12175 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12176 if dependencies[i]->user != NULL.
12177
4f180d53
AT
121782020-02-21 Ali Tamur <tamur@google.com>
12179
12180 * dwarf2/read.c (dwarf2_name): Add null check.
12181
22b6cd70
TT
121822020-02-20 Tom Tromey <tom@tromey.com>
12183
12184 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12185 ">=", in binary search.
12186 (dwarf2_find_containing_comp_unit): New overload.
12187 (run_test): New self-test.
12188 (_initialize_dwarf2_read): Register new test.
12189
bd0cf5a6
NC
121902020-02-20 Nelson Chu <nelson.chu@sifive.com>
12191
12192 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12193 * riscv-tdep.h: Likewise.
12194 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12195 rv32-only CSR.
12196 * features/riscv/64bit-csr.xml: Regenerated.
12197
3f702acd
SDJ
121982020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12199 Tom Tromey <tom@tromey.com>
12200
12201 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12202 of 'fputc_unfiltered'.
12203 (putchar_unfiltered): Call 'fputc_unfiltered'.
12204 (fputc_unfiltered): Call 'fputs_unfiltered'.
12205
d13c7322
AB
122062020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * config.in: Regenerate.
12209 * configure: Regenerate.
12210 * configure.ac: Add --with-python-libdir option.
12211 * main.c: Use WITH_PYTHON_LIBDIR.
12212
869d8950
TT
122132020-02-19 Tom Tromey <tom@tromey.com>
12214
12215 * symtab.c (general_symbol_info::compute_and_set_names): Use
12216 obstack_strndup. Simplify call to symbol_set_demangled_name.
12217
298e9637
SM
122182020-02-19 Simon Marchi <simon.marchi@efficios.com>
12219
12220 * dwarf2/read.c (allocate_signatured_type_table,
12221 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12222 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12223 Remove objfile parameter, update all callers.
12224
08410482
DE
122252020-02-19 Doug Evans <dje@google.com>
12226
12227 PR rust/25535
12228 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12229 rust_enum_variant calculation.
12230
dfdeeca1
TT
122312020-02-19 Tom Tromey <tromey@adacore.com>
12232
12233 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12234
2ef5453b
TT
122352020-02-19 Tom Tromey <tromey@adacore.com>
12236
12237 * ada-lang.c (cache_symbol): Use obstack_strdup.
12238
9f1528a1
AB
122392020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12240
12241 * configure: Regenerate.
12242
d3c22fa8
TT
122432020-02-19 Tom Tromey <tromey@adacore.com>
12244
12245 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12246 NULL check.
12247
bf84f706
MR
122482020-02-19 Maciej W. Rozycki <macro@wdc.com>
12249
12250 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12251
d1c9b20f
AB
122522020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12253
12254 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12255 if GDBSERVER is not defined.
12256 (riscv_tdesc_cache): Likewise, also store const target_desc.
12257 (STATIC_IN_GDB): Define.
12258 (riscv_create_target_description): Update declaration with
12259 STATIC_IN_GDB.
12260 (riscv_lookup_target_description): New function, only define if
12261 GDBSERVER is not defined.
12262 * arch/riscv.h (riscv_create_target_description): Declare only
12263 when GDBSERVER is defined.
12264 (riscv_lookup_target_description): New declaration when GDBSERVER
12265 is not defined.
12266 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12267 (riscv_linux_read_features): ...this, and return
12268 riscv_gdbarch_features instead of target_desc.
12269 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12270 (riscv_linux_read_description): Rename to...
12271 (riscv_linux_read_features): ...this.
12272 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12273 Update to use riscv_gdbarch_features and
12274 riscv_lookup_target_description.
12275 * riscv-tdep.c (riscv_find_default_target_description): Use
12276 riscv_lookup_target_description instead of
12277 riscv_create_target_description.
12278
373d7ac0
SM
122792020-02-18 Simon Marchi <simon.marchi@efficios.com>
12280
12281 * valprint.c (generic_val_print_enum_1): When printing a flag
12282 enum with value 0 and there is no enumerator with value 0, print
12283 just "0" instead of "(unknown: 0x0)".
12284
b29a2df0
SM
122852020-02-18 Simon Marchi <simon.marchi@efficios.com>
12286
12287 * valprint.c (generic_val_print_enum_1): Print unknown part of
12288 flag enum in hex.
12289
6740f0cc
SM
122902020-02-18 Simon Marchi <simon.marchi@efficios.com>
12291
12292 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12293 flag enums to contain duplicate enumerators.
12294 * valprint.c (generic_val_print_enum_1): Update comment.
12295
edd45eb0
SM
122962020-02-18 Simon Marchi <simon.marchi@efficios.com>
12297
12298 * dwarf2/read.c: Include "count-one-bits.h".
12299 (update_enumeration_type_from_children): If an enumerator has
12300 multiple bits set, don't treat the enumeration as a "flag enum".
12301 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12302 of flag enums have 0 or 1 bit set.
12303
6d0cf446
BE
123042020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12305
12306 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12307 conversion.
12308 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12309 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12310 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12311 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12312 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12313
7001c1b7
SM
123142020-02-18 Simon Marchi <simon.marchi@efficios.com>
12315
12316 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12317
fdb61c6c
SM
123182020-02-14 Simon Marchi <simon.marchi@efficios.com>
12319
12320 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12321 displaced_step_closure_up.
12322 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12323 (struct displaced_step_closure_up):
12324 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12325 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12326 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12327 Likewise.
12328 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12329 * gdbarch.c, gdbarch.h: Re-generate.
12330 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12331 displaced_step_closure_up.
12332 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12333 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12334 * infrun.h (displaced_step_closure_up): New type alias.
12335 (struct displaced_step_inferior_state) <step_closure>: Change
12336 type to displaced_step_closure_up.
12337 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12338 displaced_step_closure_up.
12339 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12340
a4a38eb4
TT
123412020-02-14 Tom Tromey <tom@tromey.com>
12342
12343 * minidebug.c (gnu_debug_key): New global.
12344 (find_separate_debug_file_in_section): Use it.
12345
e8217e61
SM
123462020-02-14 Simon Marchi <simon.marchi@efficios.com>
12347
12348 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12349 std::unique_ptr.
12350 * gdbarch.c: Re-generate.
12351 * gdbarch.h: Re-generate.
12352 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12353 change.
12354 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12355 type to std::unique_ptr.
12356 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12357 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12358 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12359 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12360 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12361 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12362 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12363 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12364 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12365
d8d83535
SM
123662020-02-14 Simon Marchi <simon.marchi@efficios.com>
12367
12368 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12369 std::unique_ptr.
12370 (displaced_step_clear): Rename to...
12371 (displaced_step_reset): ... this. Just call displaced->reset ().
12372 (displaced_step_clear_cleanup): Rename to...
12373 (displaced_step_reset_cleanup): ... this.
12374 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12375 (displaced_step_fixup): Likewise.
12376 (resume_1): Likewise.
12377 (handle_inferior_event): Restore child's memory before calling
12378 displaced_step_fixup on the parent.
12379 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12380 to std::unique_ptr.
12381 <step_closure>: Change type to std::unique_ptr.
12382
5f661e03
SM
123832020-02-14 Simon Marchi <simon.marchi@efficios.com>
12384
12385 * arm-tdep.c: Include count-one-bits.h.
12386 (cleanup_block_store_pc): Use count_one_bits.
12387 (cleanup_block_load_pc): Use count_one_bits.
12388 (arm_copy_block_xfer): Use count_one_bits.
12389 (thumb2_copy_block_xfer): Use count_one_bits.
12390 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12391 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12392 (thumb_get_next_pcs_raw): Use count_one_bits.
12393 (arm_get_next_pcs_raw): Use count_one_bits_l.
12394 * arch/arm.c (bitcount): Remove.
12395 * arch/arm.h (bitcount): Remove.
12396
8084e579
TT
123972020-02-14 Tom Tromey <tromey@adacore.com>
12398
12399 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12400 Update.
12401 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12402 * dwarf2/loc.c (call_site_find_chain_1): Return
12403 unique_xmalloc_ptr.
12404 (call_site_find_chain): Likewise.
12405
258bf0ee
RB
124062020-02-14 Richard Biener <rguenther@suse.de>
12407
12408 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12409 on expression with division operators.
12410
f98a8458
AKS
124112020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12412
12413 * MAINTAINERS (Write After Approval): Adding myself.
12414
d1437c0e
TT
124152020-02-12 Tom Tromey <tom@tromey.com>
12416
12417 * event-loop.c (event_data, gdb_event, event_handler_func):
12418 Remove.
12419
3d4560f7
TT
124202020-02-12 Tom Tromey <tom@tromey.com>
12421
12422 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12423 (dwarf2_frame_objfile_data): Add comment.
12424 (find_comp_unit, set_comp_unit): New functions.
12425 (dwarf2_frame_find_fde): Use find_comp_unit.
12426 (dwarf2_build_frame_info): Use set_comp_unit.
12427
21982304
TT
124282020-02-12 Tom Tromey <tom@tromey.com>
12429
12430 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12431 (comp_unit): Don't initialize objfile.
12432 (execute_cfa_program): Add text_offset parameter.
12433 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12434 (dwarf2_frame_cache): Update.
12435 (dwarf2_build_frame_info): Don't set "objfile" member.
12436
4debb237
TT
124372020-02-12 Tom Tromey <tom@tromey.com>
12438
12439 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12440 (decode_frame_entry): Likewise.
12441 (dwarf2_build_frame_info): Update.
12442
0d404d44
TT
124432020-02-12 Tom Tromey <tom@tromey.com>
12444
12445 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12446 (decode_frame_entry_1): Use the comp_unit obstack.
12447
a7a3ae5c
TT
124482020-02-12 Tom Tromey <tom@tromey.com>
12449
12450 * dwarf2/frame.c (struct comp_unit): Add initializers and
12451 constructor.
12452 (dwarf2_frame_objfile_data): Store a comp_unit.
12453 (dwarf2_frame_find_fde): Update.
12454 (dwarf2_build_frame_info): Use "new".
12455
a9d65418
TT
124562020-02-12 Tom Tromey <tom@tromey.com>
12457
12458 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12459 (dwarf2_fde_table): Typedef for std::vector.
12460 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12461 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12462 (decode_frame_entry): Update.
12463 (dwarf2_build_frame_info): Use "new".
12464
7559c217
CB
124652020-02-12 Christian Biesinger <cbiesinger@google.com>
12466
12467 * arm-tdep.c (arm_gdbarch_init): Update.
12468 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12469 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12470 have_neon, is_m>: Change to bool.
12471
aeefc73c
CB
124722020-02-12 Christian Biesinger <cbiesinger@google.com>
12473
12474 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12475
d27b8e5f
TT
124762020-02-12 Tom Tromey <tom@tromey.com>
12477
12478 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12479
cd5900f3
HD
124802020-02-12 Hannes Domani <ssbssa@yahoo.de>
12481
12482 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12483 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12484
f056b22b
TT
124852020-02-11 Tom Tromey <tom@tromey.com>
12486
12487 * psymtab.h: Update comment.
12488
f92ff6b5
TT
124892020-02-11 Tom Tromey <tom@tromey.com>
12490
12491 * gdb_obstack.h (struct auto_obstack): Use
12492 DISABLE_COPY_AND_ASSIGN.
12493
3fd6912b
TT
124942020-02-11 Tom Tromey <tom@tromey.com>
12495
12496 * dwarf2/frame.h (struct objfile): Don't forward declare.
12497
69ed9b74
CB
124982020-02-11 Christian Biesinger <cbiesinger@google.com>
12499
12500 * cris-tdep.c (cris_supply_gregset): Change signature to match
12501 what struct regset expects.
12502 (cris_regset): New struct.
12503 (fetch_core_registers): Remove.
12504 (cris_iterate_over_regset_sections): New function.
12505 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12506 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12507
bda874f6
CB
125082020-02-11 Christian Biesinger <cbiesinger@google.com>
12509
12510 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12511 registers.
12512
754e1564
CB
125132020-02-11 Christian Biesinger <cbiesinger@google.com>
12514
12515 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12516
8ddd8e0e
SM
125172020-02-11 Simon Marchi <simon.marchi@efficios.com>
12518
12519 * configure: Re-generate.
12520
898e7f60
SM
125212020-02-11 Simon Marchi <simon.marchi@efficios.com>
12522
12523 * configure: Re-generate.
12524
58df732b
SM
125252020-02-11 Simon Marchi <simon.marchi@efficios.com>
12526
12527 * acinclude: Update warning.m4 path.
12528 * warning.m4: Move to gdbsupport.
12529
da5bd37e
TT
125302020-02-11 Tom Tromey <tromey@adacore.com>
12531
12532 * remote.c (remote_console_output): Update.
12533 * printcmd.c (printf_command): Update.
12534 * event-loop.c (gdb_wait_for_event): Update.
12535 * linux-nat.c (sigchld_handler): Update.
12536 * remote-sim.c (gdb_os_write_stdout): Update.
12537 (gdb_os_flush_stdout): Update.
12538 (gdb_os_flush_stderr): Update.
12539 (gdb_os_write_stderr): Update.
12540 * exceptions.c (print_exception): Update.
12541 * remote-fileio.c (remote_fileio_func_read): Update.
12542 (remote_fileio_func_write): Update.
12543 * tui/tui.c (tui_enable): Update.
12544 * tui/tui-interp.c (tui_interp::init): Update.
12545 * utils.c (init_page_info): Update.
12546 (putchar_unfiltered, fputc_unfiltered): Update.
12547 (gdb_flush): Update.
12548 (emit_style_escape): Update.
12549 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12550 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12551 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12552 (stderr_file::write): Update.
12553 (stderr_file::puts): Update.
12554 * ui-file.h (ui_file_isatty, ui_file_write)
12555 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12556 (ui_file_puts): Don't declare.
12557
85f0dd3c
TV
125582020-02-10 Tom de Vries <tdevries@suse.de>
12559
12560 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12561 sentinel to char *.
12562
2e927613
TV
125632020-02-09 Tom de Vries <tdevries@suse.de>
12564
12565 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12566 filename if it matches "<artificial>".
12567
6bafc845
HD
125682020-02-09 Hannes Domani <ssbssa@yahoo.de>
12569
12570 * windows-tdep.c (struct enum_value_name): New struct.
12571 (create_enum): New function.
12572 (windows_get_siginfo_type): Create and use enum types.
12573
7928d571
HD
125742020-02-09 Hannes Domani <ssbssa@yahoo.de>
12575
12576 * NEWS: Mention $_siginfo support for Windows.
12577 * windows-nat.c (handle_exception): Set siginfo_er.
12578 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12579 (windows_xfer_siginfo): New function.
12580 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12581 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12582 (init_windows_gdbarch_data): New function.
12583 (get_windows_gdbarch_data): New function.
12584 (windows_get_siginfo_type): New function.
12585 (windows_init_abi): Register windows_get_siginfo_type.
12586 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12587
6751ebae
TT
125882020-02-08 Tom Tromey <tom@tromey.com>
12589
12590 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12591 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12592 <keep>: Declare method.
12593 <m_keep>: Remove member.
12594 <~cutu_reader>: Remove.
12595 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12596 (cutu_reader::cutu_reader): Update.
12597 (cutu_reader::keep): Rename from ~cutu_reader.
12598 (process_psymtab_comp_unit, build_type_psymtabs_1)
12599 (process_skeletonless_type_unit, load_partial_comp_unit)
12600 (load_full_comp_unit, dwarf2_read_addr_index)
12601 (read_signatured_type): Update.
12602
135f5437
TT
126032020-02-08 Tom Tromey <tom@tromey.com>
12604
12605 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12606 "want_partial_unit" parameter.
12607 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12608 Inline check for DW_TAG_partial_unit.
12609 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12610
9f66ff1c
TT
126112020-02-08 Tom Tromey <tom@tromey.com>
12612
12613 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12614 read.c.
12615 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12616 read.c.
12617
c8a7a66f
TT
126182020-02-08 Tom Tromey <tom@tromey.com>
12619
12620 * dwarf2/read.c (read_address): Move to comp-unit.c.
12621 (dwarf2_rnglists_process, dwarf2_ranges_process)
12622 (read_attribute_value, dwarf_decode_lines_1)
12623 (var_decode_location, decode_locdesc): Update.
12624 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12625 read.c. Remove "cu" parameter.
12626 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12627 method.
12628
8266302d
TT
126292020-02-08 Tom Tromey <tom@tromey.com>
12630
12631 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12632 (read_indirect_line_string): Update.
12633 * dwarf2/comp-unit.c (read_offset): Remove.
12634 (read_comp_unit_head): Update.
12635 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12636 method.
12637 (read_offset): Don't declare.
12638
4057dfde
TT
126392020-02-08 Tom Tromey <tom@tromey.com>
12640
12641 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12642 * dwarf2/read.c (struct comp_unit_head): Move to
12643 dwarf2/comp-unit.h.
12644 (enum class rcuh_kind): Move to comp-unit.h.
12645 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12646 (read_comp_unit_head, error_check_comp_unit_head)
12647 (read_and_check_comp_unit_head): Move to comp-unit.c.
12648 (read_offset, dwarf_unit_type_name): Likewise.
12649 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12650 (cutu_reader::cutu_reader, read_call_site_scope)
12651 (find_partial_die, follow_die_offset): Update.
12652 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12653
24aa364d
TT
126542020-02-08 Tom Tromey <tom@tromey.com>
12655
12656 * dwarf2/read.c (read_offset_1): Move to leb.c.
12657 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12658 (dwarf_decode_macro_bytes): Update.
12659 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12660 * dwarf2/leb.h (read_offset): Declare.
12661
2c7d5afc
TT
126622020-02-08 Tom Tromey <tom@tromey.com>
12663
12664 * dwarf2/read.c (dwarf2_section_size): Remove.
12665 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12666 Update.
12667 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12668
4075cb26
TT
126692020-02-08 Tom Tromey <tom@tromey.com>
12670
12671 * dwarf2/read.c (read_initial_length): Move to leb.c.
12672 * dwarf2/leb.h (read_initial_length): Declare.
12673 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12674 handle_nonstd parameter.
12675 * dwarf2/frame.c (read_initial_length): Remove.
12676 (decode_frame_entry_1): Update.
12677
09ba997f
TT
126782020-02-08 Tom Tromey <tom@tromey.com>
12679
12680 * dwarf2/loc.c (dwarf2_find_location_expression)
12681 (dwarf_evaluate_loc_desc::get_tls_address)
12682 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12683 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12684 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12685 (dwarf2_compile_property_to_c)
12686 (dwarf2_loc_desc_get_symbol_read_needs)
12687 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12688 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12689 (loclist_describe_location, loclist_tracepoint_var_ref)
12690 (loclist_generate_c_location): Update.
12691 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12692 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12693 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12694 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12695 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12696 (dwarf2_per_cu_data::addr_size)
12697 (dwarf2_per_cu_data::ref_addr_size)
12698 (dwarf2_per_cu_data::text_offset)
12699 (dwarf2_per_cu_data::addr_type): Now methods.
12700 (per_cu_header_read_in): Make per_cu "const".
12701 (dwarf2_version): Remove.
12702 (dwarf2_per_cu_data::int_type): Now a method.
12703 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12704 (set_die_type, read_array_type, read_subrange_index_type)
12705 (read_tag_string_type, read_subrange_type): Update.
12706 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12707 offset_size, ref_addr_size, text_offset, addr_type, version,
12708 objfile, int_type, addr_sized_int_type>: Declare methods.
12709
96c738c0
TT
127102020-02-08 Tom Tromey <tom@tromey.com>
12711
12712 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12713 Move earlier.
12714
8fdd972c
TT
127152020-02-08 Tom Tromey <tom@tromey.com>
12716
12717 * dwarf2/read.h (dwarf_line_debug): Declare.
12718 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12719 * dwarf2/read.c: Move line_header code to new files.
12720 (dwarf_line_debug): No longer static.
12721 * dwarf2/line-header.c: New file.
12722 * dwarf2/line-header.h: New file.
12723
03075812
TT
127242020-02-08 Tom Tromey <tom@tromey.com>
12725
12726 * dwarf2/read.c (struct line_header) <file_full_name,
12727 file_file_name>: Return unique_xmalloc_ptr.
12728 (line_header::file_file_name): Update.
12729 (line_header::file_full_name): Update.
12730 (dw2_get_file_names_reader): Update.
12731 (macro_start_file): Update.
12732
bb822404
TT
127332020-02-08 Tom Tromey <tom@tromey.com>
12734
12735 * dwarf2/read.c (struct line_header) <file_full_name,
12736 file_file_name>: Declare methods.
12737 (dw2_get_file_names_reader): Update.
12738 (file_file_name): Now a method.
12739 (file_full_name): Likewise.
12740 (macro_start_file): Update.
12741
009b64fc
TT
127422020-02-08 Tom Tromey <tom@tromey.com>
12743
12744 * dwarf2/read.c (dwarf_always_disassemble)
12745 (show_dwarf_always_disassemble): Move to loc.c.
12746 (_initialize_dwarf2_read): Move "always-disassemble" registration
12747 to loc.c.
12748 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12749 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12750 static.
12751 (show_dwarf_always_disassemble): Move from read.c.
12752 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12753
5895093f
TT
127542020-02-08 Tom Tromey <tom@tromey.com>
12755
12756 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12757 (create_quick_file_names_table): Return htab_up.
12758 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12759 Update.
12760 * dwarf2/read.h (struct dwarf2_per_objfile)
12761 <quick_file_names_table>: Now htab_up.
12762
b3b32279
TT
127632020-02-08 Tom Tromey <tom@tromey.com>
12764
12765 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12766
1d33d811
TT
127672020-02-08 Tom Tromey <tom@tromey.com>
12768
12769 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12770 Rewrite.
12771 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12772 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12773 (abbrev_table::abbrev_table): No longer inline.
12774 (ABBREV_HASH_SIZE): Remove.
12775 (abbrev_table::m_abbrevs): Now an htab_up.
12776
86de1d91
TT
127772020-02-08 Tom Tromey <tom@tromey.com>
12778
12779 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12780 (cutu_reader): Update.
12781 (build_type_psymtabs_1): Update.
12782 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12783 (abbrev_table::alloc_abbrev): Update.
12784 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12785 (abbrev_table::read): New static method, renamed from
12786 abbrev_table_read_table.
12787 (abbrev_table::alloc_abbrev)
12788 (abbrev_table::add_abbrev): Now private.
12789 (abbrev_table::abbrev_table): Now private.
12790 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12791
0335378b
TT
127922020-02-08 Tom Tromey <tom@tromey.com>
12793
12794 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12795 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12796 htab_up.
12797
48b490f2
TT
127982020-02-08 Tom Tromey <tom@tromey.com>
12799
12800 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12801 htab_up.
12802 (lookup_dwo_unit_in_dwp): Update.
12803 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12804 on obstack.
12805
bc68fb19
TT
128062020-02-08 Tom Tromey <tom@tromey.com>
12807
12808 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12809 obstack.
12810
d15acc42
TT
128112020-02-08 Tom Tromey <tom@tromey.com>
12812
12813 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12814 line_header_hash.
12815 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12816 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12817 Change type to htab_up.
12818
eaa5fa8b
TT
128192020-02-08 Tom Tromey <tom@tromey.com>
12820
12821 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12822 htab_up. Don't allocate on obstack.
12823 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12824 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12825 Change type to htab_up.
12826
b0b6a987
TT
128272020-02-08 Tom Tromey <tom@tromey.com>
12828
12829 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12830 Change type to htab_up.
12831 * dwarf2/read.c (create_signatured_type_table_from_index)
12832 (create_signatured_type_table_from_debug_names)
12833 (create_all_type_units, add_type_unit)
12834 (lookup_dwo_signatured_type, lookup_signatured_type)
12835 (process_skeletonless_type_unit): Update.
12836 (create_debug_type_hash_table, create_debug_types_hash_table):
12837 Change type of types_htab.
12838 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12839 htab_up. Don't allocate on obstack.
12840 (create_cus_hash_table): Change type of cus_htab parameter.
12841 (struct dwo_file) <cus, tus>: Now htab_up.
12842 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12843 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12844 (queue_and_load_all_dwo_tus): Update.
12845 * dwarf2/index-write.c (write_gdbindex): Update.
12846 (write_debug_names): Update.
12847
39856def
TT
128482020-02-08 Tom Tromey <tom@tromey.com>
12849
12850 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12851 dwarf2/read.c. Remove "next" member. Add constructor ntad
12852 destructor.
12853 (struct dwarf2_per_objfile) <queue>: New member.
12854 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12855 dwarf2/read.h.
12856 (dwarf2_queue, dwarf2_queue_tail): Remove.
12857 (class dwarf2_queue_guard): Add parameter to constructor. Use
12858 DISABLE_COPY_AND_ASSIGN.
12859 <m_per_objfile>: New member.
12860 <~dwarf2_queue_guard>: Rewrite.
12861 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12862 Update.
12863 (~dwarf2_queue_item): New.
12864
3e225074
TT
128652020-02-08 Tom Tromey <tom@tromey.com>
12866
12867 * dwarf2/read.c (struct die_info) <has_children>: New member.
12868 (dw2_get_file_names_reader): Remove has_children.
12869 (dw2_get_file_names): Update.
12870 (read_cutu_die_from_dwo): Remove has_children.
12871 (cutu_reader::init_tu_and_read_dwo_dies)
12872 (cutu_reader::cutu_reader): Update.
12873 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12874 Remove has_children.
12875 (build_type_psymtabs_1, process_skeletonless_type_unit)
12876 (load_partial_comp_unit, load_full_comp_unit): Update.
12877 (create_dwo_cu_reader): Remove has_children.
12878 (create_cus_hash_table, read_die_and_children): Update.
12879 (read_full_die_1,read_full_die): Remove has_children.
12880 (read_signatured_type): Update.
12881 (class cutu_reader) <has_children>: Remove.
12882
82ca8957
TT
128832020-02-08 Tom Tromey <tom@tromey.com>
12884
12885 * dwarf2/expr.c: Rename from dwarf2expr.c.
12886 * dwarf2/expr.h: Rename from dwarf2expr.h.
12887 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12888 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12889 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12890 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12891 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12892 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12893 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12894 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12895 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12896 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12897 * dwarf2/loc.c: Rename from dwarf2loc.c.
12898 * dwarf2/loc.h: Rename from dwarf2loc.h.
12899 * dwarf2/read.c: Rename from dwarf2read.c.
12900 * dwarf2/read.h: Rename from dwarf2read.h.
12901 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12902 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12903 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12904 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12905 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12906 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12907 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12908 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12909 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12910 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12911 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12912 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12913 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12914 Update.
12915 * Makefile.in (COMMON_SFILES): Update.
12916 (HFILES_NO_SRCDIR): Update.
12917
9e35d499
TT
129182020-02-08 Tom Tromey <tom@tromey.com>
12919
12920 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12921 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12922
1eba2311
TT
129232020-02-08 Tom Tromey <tom@tromey.com>
12924
12925 * dwarf2read.h (struct die_info): Don't declare.
12926
e41c2da2
TT
129272020-02-08 Tom Tromey <tom@tromey.com>
12928
12929 * dwarf2read.h (die_info_ptr): Remove typedef.
12930
4fc6c0d5
TT
129312020-02-08 Tom Tromey <tom@tromey.com>
12932
12933 * dwarf2read.c (read_call_site_scope)
12934 (handle_data_member_location, dwarf2_add_member_fn)
12935 (mark_common_block_symbol_computed, read_common_block)
12936 (attr_to_dynamic_prop, partial_die_info::read)
12937 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12938 (dwarf2_symbol_mark_computed, set_die_type): Update.
12939 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12940 method.
12941 (attr_form_is_block): Don't declare.
12942 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12943
cd6c91b4
TT
129442020-02-08 Tom Tromey <tom@tromey.com>
12945
12946 * dwarf2read.c (dwarf2_find_base_address, )
12947 (read_call_site_scope, rust_containing_type)
12948 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12949 (handle_data_member_location, dwarf2_add_member_fn)
12950 (get_alignment, read_structure_type, process_structure_scope)
12951 (mark_common_block_symbol_computed, read_common_block)
12952 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12953 (partial_die_info::read, read_attribute_value, new_symbol)
12954 (lookup_die_type, dwarf2_get_ref_die_offset)
12955 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12956 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12957 (dwarf2_symbol_mark_computed): Update.
12958 * dwarf2/attribute.h (struct attribute) <value_as_address,
12959 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12960 methods.
12961 (value_as_address, attr_form_is_section_offset)
12962 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12963 * dwarf2/attribute.c (attribute::value_as_address)
12964 (attribute::form_is_section_offset, attribute::form_is_constant)
12965 (attribute::form_is_ref): Now methods.
12966
162dce55
TT
129672020-02-08 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2read.c (struct attribute, DW_STRING)
12970 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12971 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12972 (attr_form_is_block, attr_form_is_section_offset)
12973 (attr_form_is_constant, attr_form_is_ref): Move.
12974 * dwarf2/attribute.h: New file.
12975 * dwarf2/attribute.c: New file, from dwarf2read.c.
12976 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12977
3054dd54
TT
129782020-02-08 Tom Tromey <tom@tromey.com>
12979
12980 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12981 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12982 Move.
12983 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12984 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12985 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12986 abbrev.c.
12987 * dwarf2/abbrev.h: New file.
12988 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12989 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12990
96b79293
TT
129912020-02-08 Tom Tromey <tom@tromey.com>
12992
12993 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12994 (dwarf2_section_size, dwarf2_get_section_info)
12995 (create_signatured_type_table_from_debug_names)
12996 (create_addrmap_from_aranges, read_debug_names_from_section)
12997 (get_gdb_index_contents_from_section, read_comp_unit_head)
12998 (error_check_comp_unit_head, read_abbrev_offset)
12999 (create_debug_type_hash_table, init_cu_die_reader)
13000 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13001 (read_comp_units_from_section, create_cus_hash_table)
13002 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13003 (create_dwp_v2_section, dwarf2_rnglists_process)
13004 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13005 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13006 (read_indirect_string_from_dwz, read_addr_index_1)
13007 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13008 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13009 (fill_in_loclist_baton): Update.
13010 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13011 get_containing_section, get_bfd_owner, get_bfd_section,
13012 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13013 (dwarf2_read_section, get_section_name, get_section_file_name)
13014 (get_containing_section, get_section_bfd_owner)
13015 (get_section_bfd_section, get_section_name, get_section_file_name)
13016 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13017 declare.
13018 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13019 (dwarf2_section_info::get_bfd_owner)
13020 (dwarf2_section_info::get_bfd_section)
13021 (dwarf2_section_info::get_name)
13022 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13023 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13024 (dwarf2_section_info::read): Now methods.
13025 * dwarf-index-write.c (class debug_names): Update.
13026
2c86cff9
TT
130272020-02-08 Tom Tromey <tom@tromey.com>
13028
13029 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13030 Move to dwarf2/section.h.
13031 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13032 (get_section_bfd_section, get_section_name)
13033 (get_section_file_name, get_section_id, get_section_flags)
13034 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13035 dwarf2/section.c.
13036 * dwarf2/section.h: New file.
13037 * dwarf2/section.c: New file, from dwarf2read.c.
13038 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13039
f4382c45
TT
130402020-02-08 Tom Tromey <tom@tromey.com>
13041
13042 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13043 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13044 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13045 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13046 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13047 * dwarf2/leb.h: New file, from dwarf2read.c.
13048 * dwarf2/leb.c: New file, from dwarf2read.c.
13049 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13050 Remove.
13051 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13052 (COMMON_SFILES): Add dwarf2/leb.c.
13053
01840b7a
JB
130542020-02-08 Joel Brobecker <brobecker@adacore.com>
13055
13056 GDB 9.1 released.
13057
dfcb27e4
IB
130582020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13059
13060 PR gdb/25190:
aac66a4c
SM
13061 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13062 * gdb/remote.c (remote_console_output): Update.
13063 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13064 (ui_file_puts): ...this.
13065 * gdb/ui-file.h (ui_file_puts): Add declaration.
13066 * gdb/utils.c (emit_style_escape): Update.
13067 (flush_wrap_buffer): Update.
13068 (fputs_maybe_filtered): Update.
13069 (fputs_unfiltered): Add function.
dfcb27e4 13070
faa17681
IB
130712020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13072
aac66a4c
SM
13073 * gdb/event-loop.c (gdb_wait_for_event): Update.
13074 * gdb/printcmd.c (printf_command): Update.
13075 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13076 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13077 (gdb_os_flush_stderr): Update.
13078 * gdb/remote.c (remote_console_output): Update.
13079 * gdb/ui-file.c (gdb_flush): Rename to...
13080 (ui_file_flush): ...this.
13081 (stderr_file::write): Update.
13082 (stderr_file::puts): Update.
13083 * gdb/ui-file.h (gdb_flush): Rename to...
13084 (ui_file_flush): ...this.
13085 * gdb/utils.c (gdb_flush): Add function.
13086 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13087
5abbbe1d
TT
130882020-02-07 Tom Tromey <tromey@adacore.com>
13089
13090 PR breakpoints/24915:
13091 * source.c (find_and_open_source): Do not check basenames_may_differ.
13092
919adfe8
TT
130932020-02-07 Tom Tromey <tom@tromey.com>
13094
13095 * README: Update gdbserver documentation.
13096 * gdbserver: Move to top level.
13097 * configure.tgt (build_gdbserver): Remove.
13098 * configure.ac: Remove --enable-gdbserver.
13099 * configure: Rebuild.
13100 * Makefile.in (distclean): Don't mention gdbserver.
13101
1d5d29e7
SV
131022020-02-06 Shahab Vahedi <shahab@synopsys.com>
13103
13104 * source-cache.c (source_cache::ensure): Surround
13105 get_plain_source_lines with a try/catch.
13106 (source_cache::get_line_charpos): Get rid of try/catch
13107 and only check for the return value of "ensure".
13108 * tui/tui-source.c (tui_source_window::set_contents):
13109 Simplify "nlines" calculation.
13110
6eb1129c
SV
131112020-02-06 Shahab Vahedi <shahab@synopsys.com>
13112
13113 * MAINTAINERS (Write After Approval): Add myself.
13114
c6a42d11
CB
131152020-02-05 Christian Biesinger <cbiesinger@google.com>
13116
13117 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13118 function call.
13119
c8ecdda6
CB
131202020-02-05 Christian Biesinger <cbiesinger@google.com>
13121
13122 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13123
f6480e70
MR
131242020-02-05 Maciej W. Rozycki <macro@wdc.com>
13125
13126 * nat/riscv-linux-tdesc.h: New file.
13127 * nat/riscv-linux-tdesc.c: New file, taking code from...
13128 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13129 ... here.
13130 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13131 NATDEPFILES.
13132
dcc9fbc6
AB
131332020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13134
13135 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13136 we don't set the fake simulator ptid to the null_ptid.
13137
719546c4
SM
131382020-02-03 Simon Marchi <simon.marchi@efficios.com>
13139
13140 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13141 * gdbthread.h (class thread_info) <resumed>: Likewise.
13142 * infrun.c (resume_1): Likewise.
13143 (proceed): Likewise.
13144 (infrun_thread_stop_requested): Likewise.
13145 (stop_all_threads): Likewise.
13146 (handle_inferior_event): Likewise.
13147 (restart_threads): Likewise.
13148 (finish_step_over): Likewise.
13149 (keep_going_stepped_thread): Likewise.
13150 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13151 (linux_handle_extended_wait): Likewise.
13152 * record-btrace.c (get_thread_current_frame_id): Likewise.
13153 * record-full.c (record_full_wait_1): Likewise.
13154 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13155 * target.c (target_resume): Likewise.
13156 * thread.c (set_running_thread): Likewise.
13157
e409c542
AKS
131582020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13159
13160 * f-valprint.c (f77_print_array_1): Changed datatype of index
13161 variable to LONGEST from int to enable it to contain bound
13162 values correctly.
13163
ee98c0da
MR
131642020-02-03 Maciej W. Rozycki <macro@wdc.com>
13165
13166 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13167 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13168 offsets according to FLEN determined.
13169 (riscv_linux_nat_target::read_description): Determine FLEN
13170 dynamically.
13171 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13172 according to FLEN determined.
13173 (riscv_linux_nat_target::store_registers): Likewise.
13174
aa66aac4
SV
131752020-02-01 Shahab Vahedi <shahab@synopsys.com>
13176
13177 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13178 when reg->group is empty and reggroup is not.
13179
fd9faca8
TT
131802020-01-31 Tom Tromey <tromey@adacore.com>
13181
13182 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13183 Call beneath target's mourn_inferior after unpushing.
13184
42330a68
AB
131852020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13186
13187 PR tui/9765
13188 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13189 have enough lines to fill the screen, still return the lowest
13190 address we found.
13191
7a27a45b
AB
131922020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13193
13194 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13195 '-', '<', and '>' commands.
13196
c47f70e2
PA
131972020-01-29 Pedro Alves <palves@redhat.com>
13198 Sergio Durigan Junior <sergiodj@redhat.com>
13199
13200 * infcmd.c (construct_inferior_arguments): Assert that
13201 'argc' is greater than 0.
13202
5133a315
LM
132032020-01-29 Luis Machado <luis.machado@linaro.org>
13204
13205 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13206 (BRK_INSN_MASK): Define to 0xd4200000.
13207 (aarch64_program_breakpoint_here_p): New function.
13208 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13209 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13210 breakpoint.c.
13211 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13212 breakpoint.h
13213 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13214 call gdbarch_program_breakpoint_here_p.
13215 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13216 default_program_breakpoint_here_p, changed return type to bool and
13217 simplified.
13218 * breakpoint.h (program_breakpoint_here): Moved prototype to
13219 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13220 return type to bool.
13221 * gdbarch.c: Regenerate.
13222 * gdbarch.h: Regenerate.
13223 * gdbarch.sh (program_breakpoint_here_p): New method.
13224 * infrun.c (handle_signal_stop): Call
13225 gdbarch_program_breakpoint_here_p.
13226
168f8c6b
TT
132272020-01-26 Tom Tromey <tom@tromey.com>
13228
13229 * ctfread.c (struct ctf_fp_info): Reindent.
13230 (_initialize_ctfread): Remove.
13231
128a391f
TT
132322020-01-26 Tom Tromey <tom@tromey.com>
13233
13234 * psymtab.c (partial_map_expand_apply)
13235 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13236 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13237 (psym_print_stats, psym_expand_symtabs_for_function)
13238 (psym_map_symbol_filenames, psym_map_matching_symbols)
13239 (psym_expand_symtabs_matching)
13240 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13241 (maintenance_check_psymtabs): Use new methods.
13242 * psympriv.h (struct partial_symtab) <readin_p,
13243 get_compunit_symtab>: New methods.
13244 <readin, compunit_symtab>: Remove members.
13245 (struct standard_psymtab): New.
13246 (struct legacy_psymtab): Derive from standard_psymtab.
13247 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13248 standard_psymtab.
13249 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13250
0494dbec
TT
132512020-01-26 Tom Tromey <tom@tromey.com>
13252
13253 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13254 read_dependencies. Add assert.
13255 * psymtab.c (partial_symtab::read_dependencies): New method.
13256 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13257 method.
13258 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13259 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13260 read_dependencies.
13261 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13262 Add assert.
13263
8566b89b
TT
132642020-01-26 Tom Tromey <tom@tromey.com>
13265
13266 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13267 Call expand_psymtab.
13268 (xcoff_read_symtab): Call expand_psymtab.
13269 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13270 legacy_expand_psymtab.
13271 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13272 method.
13273 (struct legacy_psymtab) <expand_psymtab>: Implement.
13274 <legacy_expand_psymtab>: New member.
13275 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13276 (parse_partial_symbols): Set legacy_expand_psymtab.
13277 (psymtab_to_symtab_1): Change argument order. Call
13278 expand_psymtab.
13279 (new_psymtab): Set legacy_expand_psymtab.
13280 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13281 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13282 expand_psymtab.
13283 (dwarf2_psymtab::expand_psymtab): Rename from
13284 psymtab_to_symtab_1. Call expand_psymtab.
13285 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13286 (dbx_end_psymtab): Likewise.
13287 (dbx_psymtab_to_symtab_1): Change argument order. Call
13288 expand_psymtab.
13289 (dbx_read_symtab): Call expand_psymtab.
13290 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13291 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13292 (ctf_psymtab::read_symtab): Call expand_psymtab.
13293
077cbab2
TT
132942020-01-26 Tom Tromey <tom@tromey.com>
13295
13296 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13297 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13298 messages.
13299 * mdebugread.c (mdebug_read_symtab): Remove prints.
13300 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13301 assert.
13302 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13303
891813be
TT
133042020-01-26 Tom Tromey <tom@tromey.com>
13305
13306 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13307 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13308 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13309 legacy_symtab.
13310 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13311 * psymtab.c (psymtab_to_symtab): Call method.
13312 (dump_psymtab): Update.
13313 * psympriv.h (struct partial_symtab): Add virtual destructor.
13314 <read_symtab>: New method.
13315 (struct legacy_symtab): New.
13316 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13317 (struct pst_map) <pst>: Now a legacy_psymtab.
13318 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13319 (new_psymtab): Use legacy_psymtab.
13320 * dwarf2read.h (struct dwarf2_psymtab): New.
13321 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13322 * dwarf2read.c (dwarf2_create_include_psymtab)
13323 (dwarf2_build_include_psymtabs, create_type_unit_group)
13324 (create_partial_symtab, process_psymtab_comp_unit_reader)
13325 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13326 (set_partial_user): Use dwarf2_psymtab.
13327 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13328 (psymtab_to_symtab_1, process_full_comp_unit)
13329 (process_full_type_unit, dwarf2_ranges_read)
13330 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13331 (dwarf_decode_lines): Use dwarf2_psymtab.
13332 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13333 (add_address_entry_worker, write_one_signatured_type)
13334 (recursively_count_psymbols, recursively_write_psymbols)
13335 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13336 (write_debug_names): Likewise.
13337 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13338 <pst>: Now a legacy_psymtab.
13339 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13340 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13341 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13342 * ctfread.c (struct ctf_psymtab): New.
13343 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13344 ctf_psymtab.
13345 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13346 (create_partial_symtab): Return a ctf_psymtab.
13347 (scan_partial_symbols): Update.
13348
c3693a1d
TT
133492020-01-26 Tom Tromey <tom@tromey.com>
13350
13351 * xcoffread.c (xcoff_start_psymtab): Use new.
13352 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13353 renamed from start_psymtab_common.
13354 * psympriv.h (struct partial_symtab): Add new constructor.
13355 (start_psymtab_common): Don't declare.
13356 * mdebugread.c (parse_partial_symbols): Use new.
13357 * dwarf2read.c (create_partial_symtab): Use new.
13358 * dbxread.c (start_psymtab): Use new.
13359 * ctfread.c (create_partial_symtab): Use new.
13360
32caafd0
TT
133612020-01-26 Tom Tromey <tom@tromey.com>
13362
13363 * xcoffread.c (xcoff_end_psymtab): Use new.
13364 * psymtab.c (start_psymtab_common): Use new.
13365 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13366 Update.
13367 * psympriv.h (struct partial_symtab): Add parameters to
13368 constructor. Don't inline.
13369 (allocate_psymtab): Don't declare.
13370 * mdebugread.c (new_psymtab): Use new.
13371 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13372 * dbxread.c (dbx_end_psymtab): Use new.
13373
abaa2f23
TT
133742020-01-26 Tom Tromey <tom@tromey.com>
13375
13376 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13377 allocate_psymtab. Update documentation.
13378 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13379 allocate_psymtab. Do not use new.
13380 (allocate_psymtab): Use new. Update.
13381
6d94535f
TT
133822020-01-26 Tom Tromey <tom@tromey.com>
13383
13384 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13385 * psymtab.c (psym_print_stats): Update.
13386 * psympriv.h (struct partial_symtab) <readin,
13387 psymtabs_addrmap_supported, anonymous>: Now bool.
13388 * mdebugread.c (psymtab_to_symtab_1): Update.
13389 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13390 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13391 (process_full_comp_unit, process_full_type_unit): Update.
13392 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13393 * ctfread.c (psymtab_to_symtab): Update.
13394
6f17252b
TT
133952020-01-26 Tom Tromey <tom@tromey.com>
13396
13397 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13398 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13399 * psymtab.c (psymtab_storage): Delete psymtabs.
13400 (psymtab_storage::allocate_psymtab): Use new.
13401 (psymtab_storage::discard_psymtab): Use delete.
13402 * psympriv.h (struct partial_symtab): Add constructor and
13403 initializers.
13404
f6f1cebc
TT
134052020-01-26 Tom Tromey <tom@tromey.com>
13406
13407 * machoread.c: Do not include psympriv.h.
13408
e47e48f6
PW
134092020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13410
13411 * NEWS: Mention the new option and the set/show commands.
13412
a2fedca9
PW
134132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13414
13415 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13416 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13417 (validate_exec_file): New variables, enums, functions.
13418 (exec_file_locate_attach, print_section_info): Style the filenames.
13419 (_initialize_exec): Install show_exec_file_mismatch_command and
13420 set_exec_file_mismatch_command.
13421 * gdbcore.h (validate_exec_file): Declare.
13422 * infcmd.c (attach_command): Call validate_exec_file.
13423 * remote.c ( remote_target::remote_add_inferior): Likewise.
13424
7ffa82e1
AB
134252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13426
13427 * frame.c (find_frame_sal): Move call to get_next_frame into more
13428 inner scope.
13429 * inline-frame.c (inilne_state) <inline_state>: Update argument
13430 types.
13431 (inilne_state) <skipped_symbol>: Rename to...
13432 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13433 (skip_inline_frames): Build vector of skipped symbols and use this
13434 to reate the inline_state.
13435 (inline_skipped_symbol): Add a comment and some assertions, fetch
13436 skipped symbol from the list.
13437
3d92a3e3
AB
134382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13439
13440 * buildsym.c (lte_is_less_than): Delete.
13441 (buildsym_compunit::end_symtab_with_blockvector): Create local
13442 lambda function to sort line table entries, and use
13443 std::stable_sort instead of std::sort.
13444 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13445 markers when looking for a previous line.
13446
94a72be7
AB
134472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13448
13449 * dwarf2read.c (lnp_state_machine::record_line): Include
13450 end_sequence parameter in debug print out. Record the line if we
13451 are at an end_sequence marker even if it's not the start of a
13452 statement.
13453 * symmisc.c (maintenance_print_one_line_table): Print end of
13454 sequence markers with 'END' not '0'.
13455
53af73bf
PA
134562020-01-24 Pedro Alves <palves@redhat.com>
13457
13458 PR gdb/25410
13459 * thread.c (scoped_restore_current_thread::restore): Use
13460 switch_to_inferior_no_thread.
13461 * exec.c: Include "progspace-and-thread.h".
13462 (add_target_sections, remove_target_sections):
13463 scoped_restore_current_pspace_and_thread instead of
13464 scoped_restore_current_thread.
13465 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13466 and aspace to the inferior before calling clone_program_space.
13467 Remove stale comment.
13468
3050c6f4
CB
134692020-01-24 Christian Biesinger <cbiesinger@google.com>
13470
13471 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13472 (arm_netbsd_nat_target::fetch_registers): ...this.
13473 (arm_nbsd_nat_target::store_registers): Rename to...
13474 (arm_netbsd_nat_target::store_registers): ...this.
13475
73685c7e
CB
134762020-01-24 Christian Biesinger <cbiesinger@google.com>
13477
13478 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13479 register_t.
13480
89203d40
CB
134812020-01-24 Christian Biesinger <cbiesinger@google.com>
13482
13483 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13484 Update comment.
13485 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13486 Likewise.
13487 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13488 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13489 the correct replacement (iterate_over_regset_sections).
13490 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13491 Update comment.
13492
1ba1ac88
AB
134932020-01-24 Graham Markall <graham.markall@embecosm.com>
13494
13495 PR gdb/23718
13496 * gdb/python/python.c (execute_gdb_command): Call
13497 async_enable_stdin in catch block.
13498
f3364a6d
AB
134992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13500
13501 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13502 SWITCH_THRU_ALL_UIS.
13503
733d0a67
AB
135042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13505
13506 PR tui/9765
13507 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13508 comment, add extra parameter, and update to store previous symbol
13509 when appropriate.
13510 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13511 add extra parameter.
13512 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13513 remove unneeded parameter, add try/catch around gdb_print_insn,
13514 rewrite to add items to asm_lines vector.
13515 (tui_find_backward_disassembly_start_address): New function.
13516 (tui_find_disassembly_address): Updated throughout.
13517 (tui_disasm_window::set_contents): Update for changes to
13518 tui_disassemble.
13519 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13520 number of lines to scroll.
13521
b3b3bada
SM
135222020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13523
13524 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13525 (SECT_OFF_DATA): Likewise.
13526 (SECT_OFF_RODATA): Likewise.
13527 (SECT_OFF_TEXT): Likewise.
13528 (SECT_OFF_BSS): Likewise.
13529 (struct objfile) <text_section_offset, data_section_offset>: New
13530 methods.
13531 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13532 objfile::text_section_offset.
13533 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13534 * coffread.c (coff_symtab_read): Likewise.
13535 (enter_linenos): Likewise.
13536 (process_coff_symbol): Likewise.
13537 * ctfread.c (get_objfile_text_range): Likewise.
13538 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13539 Use objfile::data_section_offset.
13540 * dwarf2-frame.c (execute_cfa_program): Use
13541 objfile::text_section_offset.
13542 (dwarf2_frame_find_fde): Likewise.
13543 * dwarf2read.c (create_addrmap_from_index): Likewise.
13544 (create_addrmap_from_aranges): Likewise.
13545 (dw2_find_pc_sect_compunit_symtab): Likewise.
13546 (process_psymtab_comp_unit_reader): Likewise.
13547 (add_partial_symbol): Likewise.
13548 (add_partial_subprogram): Likewise.
13549 (process_full_comp_unit): Likewise.
13550 (read_file_scope): Likewise.
13551 (read_func_scope): Likewise.
13552 (read_lexical_block_scope): Likewise.
13553 (read_call_site_scope): Likewise.
13554 (dwarf2_rnglists_process): Likewise.
13555 (dwarf2_ranges_process): Likewise.
13556 (dwarf2_ranges_read): Likewise.
13557 (dwarf_decode_lines_1): Likewise.
13558 (new_symbol): Likewise.
13559 (dwarf2_fetch_die_loc_sect_off): Likewise.
13560 (dwarf2_per_cu_text_offset): Likewise.
13561 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13562 * hppa-tdep.c (read_unwind_info): Likewise.
13563 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13564 * psympriv.h (struct partial_symtab): Likewise.
13565 * psymtab.c (find_pc_sect_psymtab): Likewise.
13566 * solib-svr4.c (enable_break): Likewise.
13567 * stap-probe.c (relocate_address): Use
13568 objfile::data_section_offset.
13569 * xcoffread.c (enter_line_range): Use
13570 objfile::text_section_offset.
13571 (read_xcoff_symtab): Likewise.
13572
ab53f382
SM
135732020-01-23 Simon Marchi <simon.marchi@efficios.com>
13574
13575 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13576 declaration to narrower scopes.
13577
e7eee665
SM
135782020-01-23 Simon Marchi <simon.marchi@efficios.com>
13579
13580 * darwin-nat.h (struct darwin_exception_msg, enum
13581 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13582 Move up.
13583 (class darwin_nat_target) <wait_1, check_new_threads,
13584 decode_exception_message, decode_message, stop_inferior,
13585 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13586 * darwin-nat.c (darwin_check_new_threads): Rename to...
13587 (darwin_nat_target::check_new_threads): ... this.
13588 (darwin_suspend_inferior_it): Remove.
13589 (darwin_decode_exception_message): Rename to...
13590 (darwin_nat_target::decode_exception_message): ... this.
13591 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13592 (darwin_decode_message): Rename to...
13593 (darwin_nat_target::decode_message): ... this.
13594 (cancel_breakpoint): Rename to...
13595 (darwin_nat_target::cancel_breakpoint): ... this.
13596 (darwin_wait): Rename to...
13597 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13598 instead of iterate_over_inferiors.
13599 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13600 (darwin_stop_inferior): Rename to...
13601 (darwin_nat_target::stop_inferior): ... this.
13602 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13603 (darwin_init_thread_list): Rename to...
13604 (darwin_nat_target::init_thread_list): ... this.
13605 (darwin_ptrace_him): Rename to...
13606 (darwin_nat_target::ptrace_him): ... this.
13607 (darwin_nat_target::create_inferior): Pass lambda function to
13608 fork_inferior.
13609 (darwin_nat_target::detach): Call stop_inferior instead of
13610 darwin_stop_inferior.
13611 * fork-inferior.h (fork_inferior): Change init_trace_fun
13612 parameter to gdb::function_view.
13613 * fork-inferior.c (fork_inferior): Likewise.
13614
c162ed3e
HD
136152020-01-23 Hannes Domani <ssbssa@yahoo.de>
13616
13617 * i386-cygwin-tdep.c (core_process_module_section): Update.
13618 * windows-nat.c (struct lm_info_windows): Add text_offset.
13619 (windows_xfer_shared_libraries): Update.
13620 * windows-tdep.c (windows_xfer_shared_library):
13621 Add text_offset_cached argument.
13622 * windows-tdep.h (windows_xfer_shared_library): Update.
13623
a1237872
SM
136242020-01-21 Simon Marchi <simon.marchi@efficios.com>
13625
13626 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13627
b3ee6dd9
SM
136282020-01-21 Simon Marchi <simon.marchi@efficios.com>
13629
13630 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13631 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13632 replace with range-based for.
13633 (gdbsim_interrupt_inferior): Remove.
13634 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13635 with a range-based for. Inline code from
13636 gdbsim_interrupt_inferior.
13637
f9fac3c8
SM
136382020-01-21 Simon Marchi <simon.marchi@efficios.com>
13639
13640 * infrun.c (proceed): Fix indentation.
13641
f6474de9
TT
136422020-01-21 Tom Tromey <tromey@adacore.com>
13643
13644 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13645 * python/python.c (python_extension_ops): Update.
13646 (gdbpy_colorize): New function.
13647 * python/lib/gdb/__init__.py (colorize): New function.
13648 * extension.h (ext_lang_colorize): Declare.
13649 * extension.c (ext_lang_colorize): New function.
13650 * extension-priv.h (struct extension_language_ops) <colorize>: New
13651 member.
13652 * cli/cli-style.c (_initialize_cli_style): Update help text.
13653
f0c702d4
LM
136542020-01-21 Luis Machado <luis.machado@linaro.org>
13655
13656 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13657 <cond>: Change type to bool.
13658 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13659 (aarch64_displaced_step_cb): Likewise.
13660 (aarch64_displaced_step_tb): Likewise.
13661
1ab139e5
LM
136622020-01-21 Luis Machado <luis.machado@linaro.org>
13663
13664 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13665 output.
13666
0c271889
LM
136672020-01-21 Luis Machado <luis.machado@linaro.org>
13668
13669 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13670 <pc_adjust>: Adjust the documentation.
13671 (aarch64_displaced_step_fixup): Check if PC really moved before
13672 adjusting it.
13673
4d89c1c7
TT
136742020-01-19 Tom Tromey <tom@tromey.com>
13675
13676 * disasm.c (~gdb_disassembler): New destructor.
13677 (gdb_buffered_insn_length): Call disassemble_free_target.
13678 * disasm.h (class gdb_disassembler): Declare destructor. Use
13679 DISABLE_COPY_AND_ASSIGN.
13680
c0ab21c2
TT
136812020-01-19 Tom Tromey <tom@tromey.com>
13682
13683 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13684 (die_reader_func_ftype): Remove.
13685 (cutu_reader): New class.
13686 (dw2_get_file_names_reader): Remove "data" parameter.
13687 (dw2_get_file_names): Use cutu_reader.
13688 (create_debug_type_hash_table): Update.
13689 (read_cutu_die_from_dwo): Update comment.
13690 (lookup_dwo_unit): Add dwo_name parameter.
13691 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13692 die_reader_func_ftype and data parameters.
13693 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13694 Remove die_reader_func_ftype and data parameters.
13695 (~cutu_reader): New; from init_cutu_and_read_dies.
13696 (cutu_reader::cutu_reader): Rename from
13697 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13698 and data parameters.
13699 (init_cutu_and_read_dies_simple): Remove.
13700 (struct process_psymtab_comp_unit_data): Remove.
13701 (process_psymtab_comp_unit_reader): Remove data parameter; add
13702 want_partial_unit and pretend_language parameters.
13703 (process_psymtab_comp_unit): Use cutu_reader.
13704 (build_type_psymtabs_reader): Remove data parameter.
13705 (build_type_psymtabs_1): Use cutu_reader.
13706 (process_skeletonless_type_unit): Likewise.
13707 (load_partial_comp_unit_reader): Remove.
13708 (load_partial_comp_unit): Use cutu_reader.
13709 (load_full_comp_unit_reader): Remove.
13710 (load_full_comp_unit): Use cutu_reader.
13711 (struct create_dwo_cu_data): Remove.
13712 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13713 dwo_unit parameters.
13714 (create_cus_hash_table): Use cutu_reader.
13715 (struct dwarf2_read_addr_index_data): Remove.
13716 (dwarf2_read_addr_index_reader): Remove.
13717 (dwarf2_read_addr_index): Use cutu_reader.
13718 (read_signatured_type_reader): Remove.
13719 (read_signatured_type): Use cutu_reader.
13720
45bbae5c
TT
137212020-01-19 Tom Tromey <tom@tromey.com>
13722
13723 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13724 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13725 (tui_wrefresh): Declare.
13726 * tui/tui-wingeneral.c (suppress_output): New global.
13727 (tui_suppress_output, ~tui_suppress_output): New constructor and
13728 destructor.
13729 (tui_wrefresh): New function.
13730 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13731 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13732 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13733 method.
13734 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13735 tui_wrefresh.
13736 (tui_data_window::no_refresh): New method.
13737 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13738 (tui_reg_command): Use tui_suppress_output
13739 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13740 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13741 method.
13742 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13743
4f13c1c0
TT
137442020-01-19 Tom Tromey <tom@tromey.com>
13745
13746 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13747 Handle case where symtab is null.
13748
fa47e446
SM
137492020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13750
13751 * linux-fork.c (one_fork_p): Simplify.
13752
26f42329
SM
137532020-01-17 Simon Marchi <simon.marchi@efficios.com>
13754
13755 * top.c (struct qt_args): Remove.
13756 (kill_or_detach): Change return type to void, replace `void *`
13757 parameter with a proper one.
13758 (print_inferior_quit_action): Likewise.
13759 (quit_confirm): Use range-based for loop to iterate over inferiors.
13760 (quit_force): Likewise.
13761
a9ac81b1
SM
137622020-01-17 Simon Marchi <simon.marchi@efficios.com>
13763
13764 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13765 `void *` parameter with proper parameters.
13766 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13767 (print_one_inferior): Change return type to void, replace `void *`
13768 parameter with proper parameters.
13769 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13770 inferiors.
13771 (get_other_inferior): Remove.
13772 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13773 inferiors.
13774
788eca49
SM
137752020-01-17 Simon Marchi <simon.marchi@efficios.com>
13776
13777 * mi/mi-interp.c (report_initial_inferior): Remove.
13778 (mi_interp::init): Use range-based for to iterate over inferiors.
13779
d9bc85b6
SM
137802020-01-17 Simon Marchi <simon.marchi@efficios.com>
13781
13782 * python/py-inferior.c (build_inferior_list): Remove.
13783 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13784
40c94099
CB
137852020-01-16 Christian Biesinger <cbiesinger@google.com>
13786
13787 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13788 (btrace_stitch_trace): Likewise.
13789 * charset.c (intermediate_encoding): Likewise (vaild).
13790 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13791 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13792 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13793
e0cdfe3c
HD
137942020-01-16 Hannes Domani <ssbssa@yahoo.de>
13795
13796 * windows-tdep.c (windows_get_tlb_type):
13797 Add rtl_user_process_parameters type.
13798
790f1718 137992020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13800 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13801
13802 PR build/24805
13803 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13804 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13805 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13806 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13807 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13808 (ps_plog): Redeclare exported functions with default visibility.
13809
3112ed97
NA
138102020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13811
13812 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13813 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13814
8dc3273e
SM
138152020-01-15 Simon Marchi <simon.marchi@efficios.com>
13816
13817 * infcmd.c (post_create_inferior): Use get_thread_regcache
13818 instead of get_current_regcache.
13819
ff47f4f0
TT
138202020-01-14 Tom Tromey <tom@tromey.com>
13821
13822 PR symtab/12535:
13823 * python/python.c (gdbpy_decode_line): Treat empty string the same
13824 as no argument.
13825
975f45b7
TT
138262020-01-14 Tom Tromey <tom@tromey.com>
13827
13828 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13829
25e57356
TT
138302020-01-14 Tom Tromey <tom@tromey.com>
13831
13832 * nat/linux-btrace.c: Don't include <config.h>.
13833 * nat/linux-ptrace.c: Don't include <config.h>.
13834 * nat/x86-linux-dregs.c: Don't include <config.h>.
13835
05ea2a05
TT
138362020-01-14 Tom Tromey <tom@tromey.com>
13837
13838 * configure: Rebuild.
13839 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13840
01027315
TT
138412020-01-14 Tom Tromey <tom@tromey.com>
13842
13843 * nat/x86-linux-dregs.c: Include configh.h.
13844 * nat/linux-ptrace.c: Include configh.h.
13845 * nat/linux-btrace.c: Include configh.h.
13846 * defs.h: Include config.h, bfd.h.
13847 * configure.ac: Don't source common.host.
13848 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13849 * configure: Rebuild.
13850 * acinclude.m4: Update path.
13851 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13852 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13853 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13854 (CLIBS): Add LIBSUPPORT.
13855 (CDEPS): Likewise.
13856 (COMMON_SFILES): Remove gdbsupport files.
13857 (HFILES_NO_SRCDIR): Likewise.
13858 (stamp-version): Update path to create-version.sh.
13859 (ALLDEPFILES): Remove gdbsupport files.
13860
b2ceabe8
TT
138612020-01-14 Tom Tromey <tom@tromey.com>
13862
13863 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13864 USE_WIN32API when needed.
13865 * configure.ac (USE_WIN32API): Don't define.
13866 (WIN32LIBS): Use WIN32APILIBS.
13867 * configure: Rebuild.
13868
25c51f71
TT
138692020-01-14 Tom Tromey <tom@tromey.com>
13870
13871 * configure: Rebuild.
13872 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13873
717c684d
BE
138742020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13875
13876 * skip.c (skip_function_command): Make skip w/o arguments use the
13877 name of the inlined function if pc is inside any inlined function.
13878
7da6a5b9
LM
138792020-01-14 Luis Machado <luis.machado@linaro.org>
13880
13881 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13882 * infrun.c (resume_1): Likewise.
13883 (handle_inferior_event): Remove stale comment.
13884 * linux-nat.c (linux_nat_target::resume): Update comments.
13885 (save_stop_reason): Likewise.
13886 (linux_nat_filter_event): Likewise.
13887 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13888
44e4c775
AB
138892020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13890
13891 * elfread.c (record_minimal_symbol): Set section index to 0 for
13892 non-allocatable sections.
13893
18a8505e
AT
13894
138952020-01-13 Ali Tamur <tamur@google.com>
13896
13897 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13898 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13899 to gdb::optional. Update comments.
13900 (dwo_file): Update comments.
13901 (read_attribute): Update API to take an additional out parameter,
13902 need_reprocess. This is used to mark attributes that need other
13903 attributes (e.g. str_offsets_base) for correct computation which may not
13904 have been read yet.
13905 (read_attribute_reprocess): New function declaration.
13906 (read_addr_index): Likewise.
13907 (read_dwo_str_index): Likewise.
13908 (read_stub_str_index): Likewise.
13909 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13910 (lookup_addr_base): New function definition.
13911 (lookup_ranges_base): Likewise.
13912 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13913 lookup_ranges_base.
13914 (init_cutu_and_read_dies): Update comments.
13915 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13916 unit. This is used to inherit parent's str_offsets_base and addr_base.
13917 Update comments.
13918 (init_cutu_and_read_dies_simple): Reflect API changes.
13919 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13920 (create_cus_hash_table): Change API to take parent compile unit.
13921 Reflect API changes.
13922 (open_and_init_dwo_file): Reflect API changes.
13923 (dwarf2_get_pc_bounds): Update comments.
13924 (dwarf2_record_block_ranges): Likewise.
13925 (read_full_die_1): Change implementation to reprocess attributes that
13926 need str_offsets_base and addr_base.
13927 (partial_die_info::read): Likewise.
13928 (read_attribute_reprocess): New function definition.
13929 (read_attribute_value): Change API to take an additional out parameter,
13930 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13931 when a non-dwo compile unit has index based attributes.
13932 (read_attribute): Reflect API changes.
13933 (read_addr_index_1): Reflect API changes. Update comments.
13934 (dwarf2_read_addr_index_data): Reflect API changes.
13935 (dwarf2_read_addr_index): Likewise.
13936 (read_str_index): Change API and implementation. This becomes a helper
13937 to be used by the new string index related methods. Update error
13938 message and comments.
13939 (read_dwo_str_index): New function definition.
13940 (read_stub_str_index): Likewise.
13941 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13942 * symfile.h (dwarf2_debug_sections): Likewise.
13943 * xcoffread.c (dwarf2_debug_sections): Likewise.
13944
0cac9354
SM
139452020-01-13 Simon Marchi <simon.marchi@efficios.com>
13946
13947 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13948 core_reg_sect type to gdb_byte *.
13949 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13950 * cris-tdep.c (fetch_core_registers): Likewise.
13951 * corelow.c (core_target::get_core_register_section): Change
13952 type of `contents` to gdb::byte_vector.
13953
9a6d629c
AB
139542020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13955
13956 * tui/tui-wingeneral.c (box_win): Position the title in the center
13957 of the border.
13958
d8b2f9e3
SM
139592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13960
13961 * corelow.c (core_target::get_core_register_section): Use
13962 std::vector instead of alloca.
13963
bb564c58
SM
139642020-01-13 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * warning.m4: Add -Wmissing-declarations to build_warnings.
13967 * configure: Re-generate.
13968
6b366111
SM
139692020-01-13 Simon Marchi <simon.marchi@efficios.com>
13970
13971 * python/python.c (init__gdb_module): Add declaration.
13972
6c265988
SM
139732020-01-13 Simon Marchi <simon.marchi@efficios.com>
13974
13975 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13976 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13977 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13978 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13979 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13980 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13981 * ada-exp.y (_initialize_ada_exp): Add declaration.
13982 * ada-lang.c (_initialize_ada_language): Add declaration.
13983 * ada-tasks.c (_initialize_tasks): Add declaration.
13984 * agent.c (_initialize_agent): Add declaration.
13985 * aix-thread.c (_initialize_aix_thread): Add declaration.
13986 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13987 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13988 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13989 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13990 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13991 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13992 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13993 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13994 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13995 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13996 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13997 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13998 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13999 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14000 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14001 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14002 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14003 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14004 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14005 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14006 * annotate.c (_initialize_annotate): Add declaration.
14007 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14008 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14009 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14010 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14011 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14012 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14013 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14014 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14015 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14016 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14017 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14018 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14019 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14020 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14021 * auto-load.c (_initialize_auto_load): Add declaration.
14022 * auxv.c (_initialize_auxv): Add declaration.
14023 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14024 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14025 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14026 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14027 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14028 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14029 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14030 * breakpoint.c (_initialize_breakpoint): Add declaration.
14031 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14032 * btrace.c (_initialize_btrace): Add declaration.
14033 * charset.c (_initialize_charset): Add declaration.
14034 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14035 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14036 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14037 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14038 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14039 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14040 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14041 * coffread.c (_initialize_coffread): Add declaration.
14042 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14043 * compile/compile.c (_initialize_compile): Add declaration.
14044 * complaints.c (_initialize_complaints): Add declaration.
14045 * completer.c (_initialize_completer): Add declaration.
14046 * copying.c (_initialize_copying): Add declaration.
14047 * corefile.c (_initialize_core): Add declaration.
14048 * corelow.c (_initialize_corelow): Add declaration.
14049 * cp-abi.c (_initialize_cp_abi): Add declaration.
14050 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14051 * cp-support.c (_initialize_cp_support): Add declaration.
14052 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14053 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14054 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14055 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14056 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14057 * ctfread.c (_initialize_ctfread): Add declaration.
14058 * d-lang.c (_initialize_d_language): Add declaration.
14059 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14060 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14061 * dbxread.c (_initialize_dbxread): Add declaration.
14062 * dcache.c (_initialize_dcache): Add declaration.
14063 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14064 * disasm.c (_initialize_disasm): Add declaration.
14065 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14066 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14067 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14068 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14069 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14070 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14071 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14072 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14073 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14074 * elfread.c (_initialize_elfread): Add declaration.
14075 * exec.c (_initialize_exec): Add declaration.
14076 * extension.c (_initialize_extension): Add declaration.
14077 * f-lang.c (_initialize_f_language): Add declaration.
14078 * f-valprint.c (_initialize_f_valprint): Add declaration.
14079 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14080 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14081 * filesystem.c (_initialize_filesystem): Add declaration.
14082 * findcmd.c (_initialize_mem_search): Add declaration.
14083 * findvar.c (_initialize_findvar): Add declaration.
14084 * fork-child.c (_initialize_fork_child): Add declaration.
14085 * frame-base.c (_initialize_frame_base): Add declaration.
14086 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14087 * frame.c (_initialize_frame): Add declaration.
14088 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14089 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14090 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14091 * gcore.c (_initialize_gcore): Add declaration.
14092 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14093 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14094 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14095 * gdbarch.c (_initialize_gdbarch): Add declaration.
14096 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14097 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14098 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14099 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14100 * go-lang.c (_initialize_go_language): Add declaration.
14101 * go32-nat.c (_initialize_go32_nat): Add declaration.
14102 * guile/guile.c (_initialize_guile): Add declaration.
14103 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14104 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14105 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14106 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14107 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14108 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14109 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14110 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14111 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14112 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14113 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14114 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14115 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14116 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14117 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14118 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14119 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14120 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14121 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14122 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14123 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14124 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14125 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14126 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14127 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14128 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14129 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14130 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14131 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14132 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14133 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14134 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14135 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14136 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14137 * infcall.c (_initialize_infcall): Add declaration.
14138 * infcmd.c (_initialize_infcmd): Add declaration.
14139 * inflow.c (_initialize_inflow): Add declaration.
14140 * infrun.c (_initialize_infrun): Add declaration.
14141 * interps.c (_initialize_interpreter): Add declaration.
14142 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14143 * jit.c (_initialize_jit): Add declaration.
14144 * language.c (_initialize_language): Add declaration.
14145 * linux-fork.c (_initialize_linux_fork): Add declaration.
14146 * linux-nat.c (_initialize_linux_nat): Add declaration.
14147 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14148 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14149 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14150 * m2-lang.c (_initialize_m2_language): Add declaration.
14151 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14152 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14153 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14154 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14155 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14156 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14157 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14158 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14159 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14160 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14161 * machoread.c (_initialize_machoread): Add declaration.
14162 * macrocmd.c (_initialize_macrocmd): Add declaration.
14163 * macroscope.c (_initialize_macroscope): Add declaration.
14164 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14165 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14166 * maint.c (_initialize_maint_cmds): Add declaration.
14167 * mdebugread.c (_initialize_mdebugread): Add declaration.
14168 * memattr.c (_initialize_mem): Add declaration.
14169 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14170 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14171 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14172 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14173 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14174 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14175 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14176 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14177 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14178 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14179 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14180 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14181 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14182 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14183 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14184 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14185 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14186 * mipsread.c (_initialize_mipsread): Add declaration.
14187 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14188 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14189 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14190 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14191 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14192 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14193 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14194 * nto-procfs.c (_initialize_procfs): Add declaration.
14195 * objc-lang.c (_initialize_objc_language): Add declaration.
14196 * observable.c (_initialize_observer): Add declaration.
14197 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14198 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14199 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14200 * osabi.c (_initialize_gdb_osabi): Add declaration.
14201 * osdata.c (_initialize_osdata): Add declaration.
14202 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14203 * parse.c (_initialize_parse): Add declaration.
14204 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14205 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14206 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14207 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14208 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14209 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14210 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14211 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14212 * printcmd.c (_initialize_printcmd): Add declaration.
14213 * probe.c (_initialize_probe): Add declaration.
14214 * proc-api.c (_initialize_proc_api): Add declaration.
14215 * proc-events.c (_initialize_proc_events): Add declaration.
14216 * proc-service.c (_initialize_proc_service): Add declaration.
14217 * procfs.c (_initialize_procfs): Add declaration.
14218 * producer.c (_initialize_producer): Add declaration.
14219 * psymtab.c (_initialize_psymtab): Add declaration.
14220 * python/python.c (_initialize_python): Add declaration.
14221 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14222 * record-btrace.c (_initialize_record_btrace): Add declaration.
14223 * record-full.c (_initialize_record_full): Add declaration.
14224 * record.c (_initialize_record): Add declaration.
14225 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14226 * regcache.c (_initialize_regcache): Add declaration.
14227 * reggroups.c (_initialize_reggroup): Add declaration.
14228 * remote-notif.c (_initialize_notif): Add declaration.
14229 * remote-sim.c (_initialize_remote_sim): Add declaration.
14230 * remote.c (_initialize_remote): Add declaration.
14231 * reverse.c (_initialize_reverse): Add declaration.
14232 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14233 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14234 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14235 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14236 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14237 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14238 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14239 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14240 Add declaration.
14241 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14242 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14243 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14244 * rust-exp.y (_initialize_rust_exp): Add declaration.
14245 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14246 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14247 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14248 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14249 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14250 * score-tdep.c (_initialize_score_tdep): Add declaration.
14251 * ser-go32.c (_initialize_ser_dos): Add declaration.
14252 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14253 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14254 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14255 * ser-uds.c (_initialize_ser_socket): Add declaration.
14256 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14257 * serial.c (_initialize_serial): Add declaration.
14258 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14259 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14260 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14261 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14262 * skip.c (_initialize_step_skip): Add declaration.
14263 * sol-thread.c (_initialize_sol_thread): Add declaration.
14264 * solib-aix.c (_initialize_solib_aix): Add declaration.
14265 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14266 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14267 * solib-frv.c (_initialize_frv_solib): Add declaration.
14268 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14269 * solib-target.c (_initialize_solib_target): Add declaration.
14270 * solib.c (_initialize_solib): Add declaration.
14271 * source-cache.c (_initialize_source_cache): Add declaration.
14272 * source.c (_initialize_source): Add declaration.
14273 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14274 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14275 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14276 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14277 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14278 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14279 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14280 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14281 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14282 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14283 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14284 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14285 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14286 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14287 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14288 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14289 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14290 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14291 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14292 * stabsread.c (_initialize_stabsread): Add declaration.
14293 * stack.c (_initialize_stack): Add declaration.
14294 * stap-probe.c (_initialize_stap_probe): Add declaration.
14295 * std-regs.c (_initialize_frame_reg): Add declaration.
14296 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14297 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14298 * symfile.c (_initialize_symfile): Add declaration.
14299 * symmisc.c (_initialize_symmisc): Add declaration.
14300 * symtab.c (_initialize_symtab): Add declaration.
14301 * target.c (_initialize_target): Add declaration.
14302 * target-connection.c (_initialize_target_connection): Add
14303 declaration.
14304 * target-dcache.c (_initialize_target_dcache): Add declaration.
14305 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14306 * thread.c (_initialize_thread): Add declaration.
14307 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14308 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14309 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14310 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14311 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14312 * tracectf.c (_initialize_ctf): Add declaration.
14313 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14314 * tracefile.c (_initialize_tracefile): Add declaration.
14315 * tracepoint.c (_initialize_tracepoint): Add declaration.
14316 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14317 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14318 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14319 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14320 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14321 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14322 * tui/tui.c (_initialize_tui): Add declaration.
14323 * typeprint.c (_initialize_typeprint): Add declaration.
14324 * ui-style.c (_initialize_ui_style): Add declaration.
14325 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14326 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14327 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14328 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14329 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14330 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14331 * unittests/filtered_iterator-selftests.c
14332 (_initialize_filtered_iterator_selftests): Add declaration.
14333 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14334 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14335 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14336 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14337 * unittests/main-thread-selftests.c
14338 (_initialize_main_thread_selftests): Add declaration.
14339 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14340 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14341 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14342 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14343 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14344 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14345 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14346 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14347 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14348 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14349 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14350 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14351 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14352 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14353 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14354 declaration.
14355 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14356 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14357 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14358 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14359 * user-regs.c (_initialize_user_regs): Add declaration.
14360 * utils.c (_initialize_utils): Add declaration.
14361 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14362 * valops.c (_initialize_valops): Add declaration.
14363 * valprint.c (_initialize_valprint): Add declaration.
14364 * value.c (_initialize_values): Add declaration.
14365 * varobj.c (_initialize_varobj): Add declaration.
14366 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14367 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14368 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14369 * windows-nat.c (_initialize_windows_nat): Add declaration.
14370 (_initialize_check_for_gdb_ini): Add declaration.
14371 (_initialize_loadable): Add declaration.
14372 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14373 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14374 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14375 * xcoffread.c (_initialize_xcoffread): Add declaration.
14376 * xml-support.c (_initialize_xml_support): Add declaration.
14377 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14378 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14379 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14380 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14381
e2de1eec
SM
143822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14383
14384 * regformats/regdat.sh: Generate declaration for init function.
14385
e0037b4c
SM
143862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14387
14388 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14389 up.
14390 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14391 close_one_inferior>: New methods.
14392 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14393 pass down target to find_inferior_pid.
14394 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14395 Pass down target to find_inferior_ptid.
14396 (gdbsim_target::create_inferior): Pass down target to
14397 add_thread_silent.
14398 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14399 target down to find_inferior_ptid and switch_to_thread.
14400 (gdbsim_target::close): Update to call close_one_inferior.
14401 (struct resume_data): Remove.
14402 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14403 directly, rather than through a void pointer.
14404 (gdbsim_target::resume): Update to call resume_one_inferior.
14405
58920b5b
SM
144062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14407
14408 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14409
4ec89149
PA
144102020-01-12 Pedro Alves <palves@redhat.com>
14411
14412 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14413 directly for the current inferior instead of
14414 discard_all_inferiors.
14415 (discard_all_inferiors): Delete.
14416
7c392d1d
TT
144172020-01-11 Tom Tromey <tom@tromey.com>
14418
14419 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14420 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14421 deprecated_safe_get_selected_frame.
14422
d9ebdab7
TBA
144232020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14424
14425 * inferior.c (print_inferior): Switch inferior before printing it.
14426
f3c469b9
PA
144272020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14428 Pedro Alves <palves@redhat.com>
14429
14430 * progspace-and-thread.c (switch_to_program_space_and_thread):
14431 Assert there's an inferior for PSPACE. Use
14432 switch_to_inferior_no_thread to switch the inferior too.
14433 * progspace.c (program_space::~program_space): Call
14434 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14435 (program_space::free_all_objfiles): Don't call clear_symtab_users
14436 here.
14437 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14438
65c574f6
PA
144392020-01-10 Pedro Alves <palves@redhat.com>
14440
14441 * NEWS: Mention multi-target debugging, "info connections", and
14442 "add-inferior -no-connection".
14443
2f4fcf00
PA
144442020-01-10 Pedro Alves <palves@redhat.com>
14445
14446 * infrun.c: Include "target-connection.h".
14447 (check_multi_target_resumption): New.
14448 (proceed): Call it.
14449 * target-connection.c (make_target_connection_string): Make
14450 extern.
14451 * target-connection.h (make_target_connection_string): Declare.
14452
121b3efd
PA
144532020-01-10 Pedro Alves <palves@redhat.com>
14454
14455 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14456 * inferior.c (uiout_field_connection): New function.
14457 (print_inferior): Add new "connection-id" column.
14458 (add_inferior_command): Show connection number/string of added
14459 inferior.
14460 * process-stratum-target.h
14461 (process_stratum_target::connection_string): New virtual method.
14462 (process_stratum_target::connection_number): New field.
14463 * remote.c (remote_target::connection_string): New override.
14464 * target-connection.c: New file.
14465 * target-connection.h: New file.
14466 * target.c (decref_target): Remove process_stratum targets from
14467 the connection list.
14468 (target_stack::push): Add process_stratum targets to the
14469 connection list.
14470
4f837581
PA
144712020-01-10 Pedro Alves <palves@redhat.com>
14472
14473 Revert:
14474 2016-04-12 Pedro Alves <palves@redhat.com>
14475 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14476 Remove references to name.
14477 * serial.h (struct serial) <name>: Delete.
14478
f4ec508e
PA
144792020-01-10 Pedro Alves <palves@redhat.com>
14480
14481 * gdbarch-selftests.c (register_to_value_test): Remove "target
14482 already pushed" check.
14483
5b6d1e4f
PA
144842020-01-10 Pedro Alves <palves@redhat.com>
14485 John Baldwin <jhb@FreeBSD.org>
14486
14487 * aarch64-linux-nat.c
14488 (aarch64_linux_nat_target::thread_architecture): Adjust.
14489 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14490 (task_command_1): Likewise.
14491 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14492 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14493 (aix_thread_target::store_registers)
14494 (aix_thread_target::thread_alive): Adjust.
14495 * amd64-fbsd-tdep.c: Include "inferior.h".
14496 (amd64fbsd_get_thread_local_address): Pass down target.
14497 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14498 thread's gdbarch instead of target_gdbarch.
14499 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14500 get_last_target_status.
14501 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14502 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14503 inferiors.
14504 (update_inserted_breakpoint_locations): Skip if inferiors with no
14505 execution.
14506 (update_global_location_list): When handling moribund locations,
14507 find representative inferior for location's pspace, and use thread
14508 count of its process_stratum target.
14509 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14510 * bsd-uthread.c (bsd_uthread_target::wait): Use
14511 as_process_stratum_target and adjust thread_change_ptid and
14512 add_thread calls.
14513 (bsd_uthread_target::update_thread_list): Use
14514 as_process_stratum_target and adjust find_thread_ptid,
14515 thread_change_ptid and add_thread calls.
14516 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14517 find_thread_ptid call.
14518 * corelow.c (add_to_thread_list): Adjust add_thread call.
14519 (core_target_open): Adjust add_thread_silent and thread_count
14520 calls.
14521 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14522 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14523 * event-top.c (async_disconnect): Pop targets from all inferiors.
14524 * exec.c (add_target_sections): Push exec target on all inferiors
14525 sharing the program space.
14526 (remove_target_sections): Remove the exec target from all
14527 inferiors sharing the program space.
14528 (exec_on_vfork): New.
14529 * exec.h (exec_on_vfork): Declare.
14530 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14531 Pass it down.
14532 (fbsd_nat_target::update_thread_list): Adjust.
14533 (fbsd_nat_target::resume): Adjust.
14534 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14535 down.
14536 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14537 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14538 get_thread_arch_regcache call.
14539 * fork-child.c (gdb_startup_inferior): Pass target down to
14540 startup_inferior and set_executing.
14541 * gdbthread.h (struct process_stratum_target): Forward declare.
14542 (add_thread, add_thread_silent, add_thread_with_info)
14543 (in_thread_list): Add process_stratum_target parameter.
14544 (find_thread_ptid(inferior*, ptid_t)): New overload.
14545 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14546 parameter.
14547 (all_threads()): Delete overload.
14548 (all_threads, all_non_exited_threads): Add process_stratum_target
14549 parameter.
14550 (all_threads_safe): Use brace initialization.
14551 (thread_count): Add process_stratum_target parameter.
14552 (set_resumed, set_running, set_stop_requested, set_executing)
14553 (threads_are_executing, finish_thread_state): Add
14554 process_stratum_target parameter.
14555 (switch_to_thread): Use is_current_thread.
14556 * i386-fbsd-tdep.c: Include "inferior.h".
14557 (i386fbsd_get_thread_local_address): Pass down target.
14558 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14559 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14560 have_inferiors check.
14561 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14562 (inf_ptrace_target::attach): Adjust.
14563 * infcall.c (run_inferior_call): Adjust.
14564 * infcmd.c (run_command_1): Pass target to
14565 scoped_finish_thread_state.
14566 (proceed_thread_callback): Skip inferiors with no execution.
14567 (continue_command): Rename 'all_threads' local to avoid hiding
14568 'all_threads' function. Adjust get_last_target_status call.
14569 (prepare_one_step): Adjust set_running call.
14570 (signal_command): Use user_visible_resume_target. Compare thread
14571 pointers instead of inferior_ptid.
14572 (info_program_command): Adjust to pass down target.
14573 (attach_command): Mark target's 'thread_executing' flag.
14574 (stop_current_target_threads_ns): New, factored out from ...
14575 (interrupt_target_1): ... this. Switch inferior before making
14576 target calls.
14577 * inferior-iter.h
14578 (struct all_inferiors_iterator, struct all_inferiors_range)
14579 (struct all_inferiors_safe_range)
14580 (struct all_non_exited_inferiors_range): Filter on
14581 process_stratum_target too. Remove explicit.
14582 * inferior.c (inferior::inferior): Push dummy target on target
14583 stack.
14584 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14585 Add process_stratum_target parameter, and pass it down.
14586 (have_live_inferiors): Adjust.
14587 (switch_to_inferior_and_push_target): New.
14588 (add_inferior_command, clone_inferior_command): Handle
14589 "-no-connection" parameter. Use
14590 switch_to_inferior_and_push_target.
14591 (_initialize_inferior): Mention "-no-connection" option in
14592 the help of "add-inferior" and "clone-inferior" commands.
14593 * inferior.h: Include "process-stratum-target.h".
14594 (interrupt_target_1): Use bool.
14595 (struct inferior) <push_target, unpush_target, target_is_pushed,
14596 find_target_beneath, top_target, process_target, target_at,
14597 m_stack>: New.
14598 (discard_all_inferiors): Delete.
14599 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14600 (all_inferiors, all_non_exited_inferiors): Add
14601 process_stratum_target parameter.
14602 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14603 (target_last_proc_target): New global.
14604 (follow_fork_inferior): Push target on new inferior. Pass target
14605 to add_thread_silent. Call exec_on_vfork. Handle target's
14606 reference count.
14607 (follow_fork): Adjust get_last_target_status call. Also consider
14608 target.
14609 (follow_exec): Push target on new inferior.
14610 (struct execution_control_state) <target>: New field.
14611 (user_visible_resume_target): New.
14612 (do_target_resume): Call target_async.
14613 (resume_1): Set target's threads_executing flag. Consider resume
14614 target.
14615 (commit_resume_all_targets): New.
14616 (proceed): Also consider resume target. Skip threads of inferiors
14617 with no execution. Commit resumtion in all targets.
14618 (start_remote): Pass current inferior to wait_for_inferior.
14619 (infrun_thread_stop_requested): Consider target as well. Pass
14620 thread_info pointer to clear_inline_frame_state instead of ptid.
14621 (infrun_thread_thread_exit): Consider target as well.
14622 (random_pending_event_thread): New inferior parameter. Use it.
14623 (do_target_wait): Rename to ...
14624 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14625 down.
14626 (threads_are_resumed_pending_p, do_target_wait): New.
14627 (prepare_for_detach): Adjust calls.
14628 (wait_for_inferior): New inferior parameter. Handle it. Use
14629 do_target_wait_1 instead of do_target_wait.
14630 (fetch_inferior_event): Adjust. Switch to representative
14631 inferior. Pass target down.
14632 (set_last_target_status): Add process_stratum_target parameter.
14633 Save target in global.
14634 (get_last_target_status): Add process_stratum_target parameter and
14635 handle it.
14636 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14637 (context_switch): Check inferior_ptid == null_ptid before calling
14638 inferior_thread().
14639 (get_inferior_stop_soon): Pass down target.
14640 (wait_one): Rename to ...
14641 (poll_one_curr_target): ... this.
14642 (struct wait_one_event): New.
14643 (wait_one): New.
14644 (stop_all_threads): Adjust.
14645 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14646 event's target.
14647 (switch_back_to_stepped_thread): Also consider target.
14648 (print_stop_event): Update.
14649 (normal_stop): Update. Also consider the resume target.
14650 * infrun.h (wait_for_inferior): Remove declaration.
14651 (user_visible_resume_target): New declaration.
14652 (get_last_target_status, set_last_target_status): New
14653 process_stratum_target parameter.
14654 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14655 process_stratum_target parameter, and use it.
14656 (clear_inline_frame_state (thread_info*)): New.
14657 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14658 process_stratum_target parameter.
14659 (clear_inline_frame_state (thread_info*)): Declare.
14660 * linux-fork.c (delete_checkpoint_command): Pass target down to
14661 find_thread_ptid.
14662 (checkpoint_command): Adjust.
14663 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14664 instead of just tweaking inferior_ptid.
14665 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14666 (exit_lwp): Pass target down to find_thread_ptid.
14667 (attach_proc_task_lwp_callback): Pass target down to
14668 add_thread/set_running/set_executing.
14669 (linux_nat_target::attach): Pass target down to
14670 thread_change_ptid.
14671 (get_detach_signal): Pass target down to find_thread_ptid.
14672 Consider last target status's target.
14673 (linux_resume_one_lwp_throw, resume_lwp)
14674 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14675 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14676 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14677 (linux_nat_target::async_wait_fd): New.
14678 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14679 target down.
14680 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14681 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14682 * linux-thread-db.c (struct thread_db_info::process_target): New
14683 field.
14684 (add_thread_db_info): Save target.
14685 (get_thread_db_info): New process_stratum_target parameter. Also
14686 match target.
14687 (delete_thread_db_info): New process_stratum_target parameter.
14688 Also match target.
14689 (thread_from_lwp): Adjust to pass down target.
14690 (thread_db_notice_clone): Pass down target.
14691 (check_thread_db_callback): Pass down target.
14692 (try_thread_db_load_1): Always push the thread_db target.
14693 (try_thread_db_load, record_thread): Pass target down.
14694 (thread_db_target::detach): Pass target down. Always unpush the
14695 thread_db target.
14696 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14697 target down. Always unpush the thread_db target.
14698 (find_new_threads_callback, thread_db_find_new_threads_2)
14699 (thread_db_target::update_thread_list): Pass target down.
14700 (thread_db_target::pid_to_str): Pass current inferior down.
14701 (thread_db_target::get_thread_local_address): Pass target down.
14702 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14703 target down.
14704 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14705 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14706 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14707 (procfs_init_inferior): Rename to ...
14708 (procfs_target::procfs_init_inferior): ... this and adjust.
14709 (procfs_target::create_inferior, procfs_notice_thread)
14710 (procfs_do_thread_registers): Adjust.
14711 * ppc-fbsd-tdep.c: Include "inferior.h".
14712 (ppcfbsd_get_thread_local_address): Pass down target.
14713 * proc-service.c (ps_xfer_memory): Switch current inferior and
14714 program space as well.
14715 (get_ps_regcache): Pass target down.
14716 * process-stratum-target.c
14717 (process_stratum_target::thread_address_space)
14718 (process_stratum_target::thread_architecture): Pass target down.
14719 * process-stratum-target.h
14720 (process_stratum_target::threads_executing): New field.
14721 (as_process_stratum_target): New.
14722 * ravenscar-thread.c
14723 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14724 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14725 down.
14726 * record-btrace.c (record_btrace_target::info_record): Adjust.
14727 (record_btrace_target::record_method)
14728 (record_btrace_target::record_is_replaying)
14729 (record_btrace_target::fetch_registers)
14730 (get_thread_current_frame_id, record_btrace_target::resume)
14731 (record_btrace_target::wait, record_btrace_target::stop): Pass
14732 target down.
14733 * record-full.c (record_full_wait_1): Switch to event thread.
14734 Pass target down.
14735 * regcache.c (regcache::regcache)
14736 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14737 process_stratum_target parameter and handle it.
14738 (current_thread_target): New global.
14739 (get_thread_regcache): Add process_stratum_target parameter and
14740 handle it. Switch inferior before calling target method.
14741 (get_thread_regcache): Pass target down.
14742 (get_thread_regcache_for_ptid): Pass target down.
14743 (registers_changed_ptid): Add process_stratum_target parameter and
14744 handle it.
14745 (registers_changed_thread, registers_changed): Pass target down.
14746 (test_get_thread_arch_aspace_regcache): New.
14747 (current_regcache_test): Define a couple local test_target_ops
14748 instances and use them for testing.
14749 (readwrite_regcache): Pass process_stratum_target parameter.
14750 (cooked_read_test, cooked_write_test): Pass mock_target down.
14751 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14752 (get_thread_arch_aspace_regcache): Add process_stratum_target
14753 parameter.
14754 (regcache::target): New method.
14755 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14756 (regcache::registers_changed_ptid): Add process_stratum_target
14757 parameter.
14758 (regcache::m_target): New field.
14759 (registers_changed_ptid): Add process_stratum_target parameter.
14760 * remote.c (remote_state::supports_vCont_probed): New field.
14761 (remote_target::async_wait_fd): New method.
14762 (remote_unpush_and_throw): Add remote_target parameter.
14763 (get_current_remote_target): Adjust.
14764 (remote_target::remote_add_inferior): Push target.
14765 (remote_target::remote_add_thread)
14766 (remote_target::remote_notice_new_inferior)
14767 (get_remote_thread_info): Pass target down.
14768 (remote_target::update_thread_list): Skip threads of inferiors
14769 bound to other targets. (remote_target::close): Don't discard
14770 inferiors. (remote_target::add_current_inferior_and_thread)
14771 (remote_target::process_initial_stop_replies)
14772 (remote_target::start_remote)
14773 (remote_target::remote_serial_quit_handler): Pass down target.
14774 (remote_target::remote_unpush_target): New remote_target
14775 parameter. Unpush the target from all inferiors.
14776 (remote_target::remote_unpush_and_throw): New remote_target
14777 parameter. Pass it down.
14778 (remote_target::open_1): Check whether the current inferior has
14779 execution instead of checking whether any inferior is live. Pass
14780 target down.
14781 (remote_target::remote_detach_1): Pass down target. Use
14782 remote_unpush_target.
14783 (extended_remote_target::attach): Pass down target.
14784 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14785 (remote_target::append_resumption): Pass down target.
14786 (remote_target::append_pending_thread_resumptions)
14787 (remote_target::remote_resume_with_hc, remote_target::resume)
14788 (remote_target::commit_resume): Pass down target.
14789 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14790 (remote_target::interrupt_query)
14791 (remote_target::remove_new_fork_children)
14792 (remote_target::check_pending_events_prevent_wildcard_vcont)
14793 (remote_target::remote_parse_stop_reply)
14794 (remote_target::process_stop_reply): Pass down target.
14795 (first_remote_resumed_thread): New remote_target parameter. Pass
14796 it down.
14797 (remote_target::wait_as): Pass down target.
14798 (unpush_and_perror): New remote_target parameter. Pass it down.
14799 (remote_target::readchar, remote_target::remote_serial_write)
14800 (remote_target::getpkt_or_notif_sane_1)
14801 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14802 down target.
14803 (remote_target::mourn_inferior): Pass down target. Use
14804 remote_unpush_target.
14805 (remote_target::core_of_thread)
14806 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14807 (remote_target::pid_to_exec_file)
14808 (remote_target::thread_handle_to_thread_info): Pass down target.
14809 (remote_target::async_wait_fd): New.
14810 * riscv-fbsd-tdep.c: Include "inferior.h".
14811 (riscv_fbsd_get_thread_local_address): Pass down target.
14812 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14813 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14814 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14815 Adjust.
14816 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14817 * solib-svr4.c (enable_break): Pass down target.
14818 * spu-multiarch.c (parse_spufs_run): Pass down target.
14819 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14820 * target-delegates.c: Regenerate.
14821 * target.c (g_target_stack): Delete.
14822 (current_top_target): Return the current inferior's top target.
14823 (target_has_execution_1): Refer to the passed-in inferior's top
14824 target.
14825 (target_supports_terminal_ours): Check whether the initial
14826 inferior was already created.
14827 (decref_target): New.
14828 (target_stack::push): Incref/decref the target.
14829 (push_target, push_target, unpush_target): Adjust.
14830 (target_stack::unpush): Defref target.
14831 (target_is_pushed): Return bool. Adjust to refer to the current
14832 inferior's target stack.
14833 (dispose_inferior): Delete, and inline parts ...
14834 (target_preopen): ... here. Only dispose of the current inferior.
14835 (target_detach): Hold strong target reference while detaching.
14836 Pass target down.
14837 (target_thread_name): Add assertion.
14838 (target_resume): Pass down target.
14839 (target_ops::beneath, find_target_at): Adjust to refer to the
14840 current inferior's target stack.
14841 (get_dummy_target): New.
14842 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14843 has a thread running.
14844 (initialize_targets): Rename to ...
14845 (_initialize_target): ... this.
14846 * target.h: Include "gdbsupport/refcounted-object.h".
14847 (struct target_ops): Inherit refcounted_object.
14848 (target_ops::shortname, target_ops::longname): Make const.
14849 (target_ops::async_wait_fd): New method.
14850 (decref_target): Declare.
14851 (struct target_ops_ref_policy): New.
14852 (target_ops_ref): New typedef.
14853 (get_dummy_target): Declare function.
14854 (target_is_pushed): Return bool.
14855 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14856 (all_matching_threads_iterator::all_matching_threads_iterator):
14857 Handle filter target.
14858 * thread-iter.h (struct all_matching_threads_iterator, struct
14859 all_matching_threads_range, class all_non_exited_threads_range):
14860 Filter by target too. Remove explicit.
14861 * thread.c (threads_executing): Delete.
14862 (inferior_thread): Pass down current inferior.
14863 (clear_thread_inferior_resources): Pass down thread pointer
14864 instead of ptid_t.
14865 (add_thread_silent, add_thread_with_info, add_thread): Add
14866 process_stratum_target parameter. Use it for thread and inferior
14867 searches.
14868 (is_current_thread): New.
14869 (thread_info::deletable): Use it.
14870 (find_thread_ptid, thread_count, in_thread_list)
14871 (thread_change_ptid, set_resumed, set_running): New
14872 process_stratum_target parameter. Pass it down.
14873 (set_executing): New process_stratum_target parameter. Pass it
14874 down. Adjust reference to 'threads_executing'.
14875 (threads_are_executing): New process_stratum_target parameter.
14876 Adjust reference to 'threads_executing'.
14877 (set_stop_requested, finish_thread_state): New
14878 process_stratum_target parameter. Pass it down.
14879 (switch_to_thread): Also match inferior.
14880 (switch_to_thread): New process_stratum_target parameter. Pass it
14881 down.
14882 (update_threads_executing): Reimplement.
14883 * top.c (quit_force): Pop targets from all inferior.
14884 (gdb_init): Don't call initialize_targets.
14885 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14886 Declare.
14887 (windows_add_thread, windows_delete_thread): Adjust.
14888 (get_windows_debug_event): Rename to ...
14889 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14890 * tracefile-tfile.c (tfile_target_open): Pass down target.
14891 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14892 Forward declare.
14893 (switch_to_thread): Add process_stratum_target parameter.
14894 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14895 parameter. Use it.
14896 (mi_on_resume): Pass target down.
14897 * nat/fork-inferior.c (startup_inferior): Add
14898 process_stratum_target parameter. Pass it down.
14899 * nat/fork-inferior.h (startup_inferior): Add
14900 process_stratum_target parameter.
14901 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14902
75c6c844
PA
149032020-01-10 Pedro Alves <palves@redhat.com>
14904
14905 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14906 directly. Instead find the first thread in the thread list and
14907 use switch_to_thread.
14908
78f2c40a
PA
149092020-01-10 Pedro Alves <palves@redhat.com>
14910
14911 * remote.c (remote_target::remote_add_inferior): Don't bind a
14912 process to the current inferior if the current inferior is already
14913 bound to a process.
14914
e7af6c70
TBA
149152020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14916 Pedro Alves <palves@redhat.com>
14917
14918 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14919 If no process is specified, return null_ptid instead of
14920 inferior_ptid.
14921 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14922 TARGET_WAITKIND_SIGNALLED with no pid.
14923
31ba933e
PA
149242020-01-10 Pedro Alves <palves@redhat.com>
14925
14926 * remote.c (first_remote_resumed_thread): New.
14927 (remote_target::wait_as): Use it as default event_ptid instead of
14928 inferior_ptid.
14929
735fc2ca
PA
149302020-01-10 Pedro Alves <palves@redhat.com>
14931
14932 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14933
c17e02e1
PA
149342020-01-10 Pedro Alves <palves@redhat.com>
14935
14936 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14937 not -1.
14938
ab1ddbcf
PA
149392020-01-10 Pedro Alves <palves@redhat.com>
14940
14941 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14942 ptid to get_last_target_status.
14943 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14944 ptid to get_last_target_status.
14945 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14946 get_last_target_status.
14947 (info_program_command): Don't pass a target_waitstatus to
14948 get_last_target_status.
14949 * infrun.c (init_wait_for_inferior): Use
14950 nullify_last_target_wait_ptid.
14951 (get_last_target_status): Handle nullptr arguments.
14952 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14953 (print_stop_event): Don't pass a ptid to get_last_target_status.
14954 (normal_stop): Don't pass a ptid to get_last_target_status.
14955 * infrun.h (get_last_target_status, set_last_target_status): Move
14956 comments here and update.
14957 (nullify_last_target_wait_ptid): Declare.
14958 * linux-fork.c (fork_load_infrun_state): Remove local extern
14959 declaration of nullify_last_target_wait_ptid.
14960 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14961 to get_last_target_status.
14962
f3f8ece4
PA
149632020-01-10 Pedro Alves <palves@redhat.com>
14964
14965 * gdbthread.h (scoped_restore_current_thread)
14966 <dont_restore, restore, m_dont_restore>: Declare.
14967 * thread.c (thread_alive): Add assertion. Return bool.
14968 (switch_to_thread_if_alive): New.
14969 (prune_threads): Switch inferior/thread.
14970 (print_thread_info_1): Switch thread before calling target methods.
14971 (scoped_restore_current_thread::restore): New, factored out from
14972 ...
14973 (scoped_restore_current_thread::~scoped_restore_current_thread):
14974 ... this.
14975 (scoped_restore_current_thread::scoped_restore_current_thread):
14976 Add assertion.
14977 (thread_apply_all_command, thread_select): Use
14978 switch_to_thread_if_alive.
14979 * infrun.c (proceed, restart_threads, handle_signal_stop)
14980 (switch_back_to_stepped_thread): Switch current thread before
14981 calling target methods.
14982
db2d40f7
PA
149832020-01-10 Pedro Alves <palves@redhat.com>
14984
14985 * inferior.c (switch_to_inferior_no_thread): New function,
14986 factored out from ...
14987 (inferior_command): ... here.
14988 * inferior.h (switch_to_inferior_no_thread): Declare.
14989 * mi/mi-main.c (run_one_inferior): Use
14990 switch_to_inferior_no_thread.
14991
bd420a2d
PA
149922020-01-10 Pedro Alves <palves@redhat.com>
14993
14994 * infcmd.c (kill_command): Remove dead code.
14995
ddf5db90
PA
149962020-01-10 Pedro Alves <palves@redhat.com>
14997
14998 * remote.c (remote_target::mourn_inferior): No longer check
14999 whether the target is running.
15000
5018ce90
PA
150012020-01-10 Pedro Alves <palves@redhat.com>
15002
15003 * corelow.c (core_target::has_execution): Change parameter type to
15004 inferior pointer.
15005 * inferior.c (number_of_live_inferiors): Use
15006 inferior::has_execution instead of target_has_execution_1.
15007 * inferior.h (inferior::has_execution): New.
15008 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15009 inferior::has_execution instead of target_has_execution_1.
15010 * process-stratum-target.c
15011 (process_stratum_target::has_execution): Change parameter type to
15012 inferior pointer. Check the inferior's PID instead of
15013 inferior_ptid.
15014 * process-stratum-target.h
15015 (process_stratum_target::has_execution): Change parameter type to
15016 inferior pointer.
15017 * record-full.c (record_full_core_target::has_execution): Change
15018 parameter type to inferior pointer.
15019 * target.c (target_has_execution_1): Change parameter type to
15020 inferior pointer.
15021 (target_has_execution_current): Adjust.
15022 * target.h (target_ops::has_execution): Change parameter type to
15023 inferior pointer.
15024 (target_has_execution_1): Change parameter type to inferior
15025 pointer. Change return type to bool.
15026 * tracefile.h (tracefile_target::has_execution): Change parameter
15027 type to inferior pointer.
15028
74375d18
PA
150292020-01-10 Pedro Alves <palves@redhat.com>
15030
15031 * exceptions.c (print_flush): Remove current_top_target() check.
15032
acdf84a6
PA
150332020-01-10 Pedro Alves <palves@redhat.com>
15034
15035 * remote.c (show_remote_exec_file): Show the current inferior's
15036 exec-file instead of the command variable's value.
15037
ec506636
PA
150382020-01-10 Pedro Alves <palves@redhat.com>
15039
15040 * record-full.c (record_full_resume_ptid): New global.
15041 (record_full_target::resume): Set it.
15042 (record_full_wait_1): Use record_full_resume_ptid instead of
15043 inferior_ptid.
15044
873657b9
PA
150452020-01-10 Pedro Alves <palves@redhat.com>
15046
15047 * gdbthread.h (scoped_restore_current_thread)
15048 <dont_restore, restore, m_dont_restore>: Declare.
15049 * thread.c (thread_alive): Add assertion. Return bool.
15050 (switch_to_thread_if_alive): New.
15051 (prune_threads): Switch inferior/thread.
15052 (print_thread_info_1): Switch thread before calling target methods.
15053 (scoped_restore_current_thread::restore): New, factored out from
15054 ...
15055 (scoped_restore_current_thread::~scoped_restore_current_thread):
15056 ... this.
15057 (scoped_restore_current_thread::scoped_restore_current_thread):
15058 Add assertion.
15059 (thread_apply_all_command, thread_select): Use
15060 switch_to_thread_if_alive.
15061
7f0ae84c
GB
150622020-01-10 George Barrett <bob@bob131.so>
15063
15064 * stap-probe.c (stap_modify_semaphore): Don't check for null
15065 semaphores.
15066 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15067 for null semaphores.
15068
f5a7c406
AB
150692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15070
15071 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15072 all source windows, and maintain horizontal scroll status while
15073 doing so.
15074
9ae6bf64
TT
150752020-01-09 Tom Tromey <tom@tromey.com>
15076
15077 PR tui/18932:
15078 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15079 update_source_window, not print_source_lines.
15080
b2efe70c
AB
150812020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15082
15083 * tui/tui.c (tui_enable): Register tui hooks after calling
15084 tui_display_main.
15085
5f23a082
CB
150862020-01-09 Christian Biesinger <cbiesinger@google.com>
15087
15088 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15089
3061113b
SM
150902020-01-08 Simon Marchi <simon.marchi@efficios.com>
15091
15092 * thread.c (print_thread_info_1): Fix indentation.
15093
57d75002
CB
150942020-01-09 Christian Biesinger <cbiesinger@google.com>
15095
15096 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15097 unique_xmalloc_ptr outside the if to always free the demangled name.
15098
6a053cb1
TT
150992020-01-08 Tom Tromey <tromey@adacore.com>
15100
15101 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15102 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15103 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15104 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15105 Remove.
15106 (section_offsets): New typedef.
15107 * symtab.c (fixup_section, get_msymbol_address): Update.
15108 * symmisc.c (dump_msymbols): Update.
15109 * symfile.h (relative_addr_info_to_section_offsets)
15110 (symfile_map_offsets_to_segments): Update.
15111 * symfile.c (build_section_addr_info_from_objfile)
15112 (init_objfile_sect_indices): Update.
15113 (struct place_section_arg): Change type of "offsets".
15114 (place_section): Update.
15115 (relative_addr_info_to_section_offsets): Change type of
15116 "section_offsets". Remove "num_sections" parameter.
15117 (default_symfile_offsets, syms_from_objfile_1)
15118 (set_objfile_default_section_offset): Update.
15119 (reread_symbols): No need to preserve section offsets by hand.
15120 (symfile_map_offsets_to_segments): Change type of "offsets".
15121 * stap-probe.c (relocate_address): Update.
15122 * stabsread.h (process_one_symbol): Update.
15123 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15124 (solib_target_relocate_section_addresses): Update.
15125 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15126 Update.
15127 * solib-frv.c (frv_relocate_main_executable): Update.
15128 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15129 * solib-aix.c (solib_aix_get_section_offsets): Change return
15130 type.
15131 (solib_aix_solib_create_inferior_hook): Update.
15132 * remote.c (remote_target::get_offsets): Update.
15133 * psymtab.c (find_pc_sect_psymtab): Update.
15134 * psympriv.h (struct partial_symbol) <address, text_low,
15135 text_high>: Update.
15136 * objfiles.h (obj_section_offset): Update.
15137 (struct objfile) <section_offsets>: Change type.
15138 <num_sections>: Remove.
15139 (objfile_relocate): Update.
15140 * objfiles.c (entry_point_address_query): Update
15141 (relocate_one_symbol): Change type of "section_offsets".
15142 (objfile_relocate1, objfile_relocate1): Change type of
15143 "new_offsets".
15144 (objfile_rebase1): Update.
15145 * mipsread.c (mipscoff_symfile_read): Update.
15146 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15147 parameter.
15148 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15149 (parse_external, psymtab_to_symtab_1): Update.
15150 * machoread.c (macho_symfile_offsets): Update.
15151 * ia64-tdep.c (ia64_find_unwind_table): Update.
15152 * hppa-tdep.c (read_unwind_info): Update.
15153 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15154 * dwarf2read.c (create_addrmap_from_index)
15155 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15156 (process_psymtab_comp_unit_reader, add_partial_symbol)
15157 (add_partial_subprogram, process_full_comp_unit)
15158 (read_file_scope, read_func_scope, read_lexical_block_scope)
15159 (read_call_site_scope, dwarf2_rnglists_process)
15160 (dwarf2_ranges_process, dwarf2_ranges_read)
15161 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15162 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15163 Update.
15164 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15165 Update.
15166 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15167 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15168 (process_one_symbol): Change type of "section_offsets".
15169 * ctfread.c (get_objfile_text_range): Update.
15170 * coffread.c (coff_symtab_read, enter_linenos)
15171 (process_coff_symbol): Update.
15172 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15173 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15174
456e800a
TT
151752020-01-08 Tom Tromey <tromey@adacore.com>
15176
15177 * dwarf2read.c (parse_macro_definition): Use std::string.
15178 (parse_macro_definition): Likewise.
15179
6dfa2fc2
TT
151802020-01-08 Tom Tromey <tromey@adacore.com>
15181
15182 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15183 (ATTR_ALLOC_CHUNK): Remove.
15184
421d1616
TT
151852020-01-08 Tom Tromey <tromey@adacore.com>
15186
15187 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15188
43816ebc
TT
151892020-01-08 Tom Tromey <tromey@adacore.com>
15190
15191 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15192 (dwarf2_compute_name, open_dwo_file): Likewise.
15193 (process_enumeration_scope): Use std::vector.
15194 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15195 (partial_die_info::fixup, dwarf2_start_subfile)
15196 (guess_full_die_structure_name, dwarf2_name): Likewise.
15197 (determine_prefix): Update.
15198 (guess_full_die_structure_name): Make return type const.
15199 (partial_die_full_name): Return unique_xmalloc_ptr.
15200 (DW_FIELD_ALLOC_CHUNK): Remove.
15201
4212d509
TT
152022020-01-07 Tom Tromey <tromey@adacore.com>
15203
15204 PR build/24937:
15205 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15206
06a6207a
JT
152072020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15208
15209 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15210
153d79c4
AB
152112020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15212
15213 * stack.c (print_frame_info): Move disassemble_next_line code
15214 inside source_print block.
15215
66182876
EZ
152162020-01-06 Eli Zaretskii <eliz@gnu.org>
15217
15218 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15219 gdb/signals.h, as we are now using native signal symbols.
15220
cbfa8581
SV
152212020-01-06 Shahab Vahedi <shahab@synopsys.com>
15222
15223 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15224 overflow by an early check of content vs threshold.
aac66a4c 15225 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15226 Likewise.
15227
3f602821
EZ
152282020-01-06 Eli Zaretskii <eliz@gnu.org>
15229
15230 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15231
a08c904d
JT
152322020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15233
15234 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15235 export table if no section contains it's RVA.
15236
89a65580
EZ
152372020-01-06 Eli Zaretskii <eliz@gnu.org>
15238
15239 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15240
8b7fcda2
HD
152412020-01-06 Hannes Domani <ssbssa@yahoo.de>
15242
15243 * source.c (print_source_lines_base): Set last_line_listed.
15244
a61b4f69
SV
152452020-01-06 Shahab Vahedi <shahab@synopsys.com>
15246
15247 * tui/tui-disasm.c: Remove trailing spaces.
15248
559e7e50
EZ
152492020-01-06 Eli Zaretskii <eliz@gnu.org>
15250 Pedro Alves <palves@redhat.com>
15251
15252 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15253 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15254 (windows_gdb_signal_to_target): New function, uses the above
15255 enumeration to convert GDB internal signal codes to equivalent
15256 Windows codes.
15257 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15258 * windows-nat.c: Include "gdb_wait.h".
15259 (get_windows_debug_event): Extract the fatal exception from the
15260 exit status and convert to the equivalent Posix signal number.
15261 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15262 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15263 * gdbsupport/gdb_wait.c: New file, implements
15264 windows_status_to_termsig.
15265 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15266 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15267
f2302a34
AB
152682020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15269
15270 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15271 show_layout.
15272
6a5206eb
LM
152732020-01-05 Luis Machado <luis.machado@linaro.org>
15274
15275 * aarch64-linux-nat.c
15276 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15277 and bfd_mach_aarch64.
15278
6ec1d75e
PW
152792020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15280
15281 * ui-file.c (stdio_file::can_emit_style_escape)
15282 (tee_file::can_emit_style_escape): Ensure style is used also on
15283 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15284 to gdb_stdout.
15285 * main.c (set_gdb_data_directory): Use file style to output the
15286 warning that the given pathname is not a directory.
15287 * top.c (show_history_filename, gdb_safe_append_history)
15288 (show_gdb_datadir): Use file style.
15289
44f81a76
HD
152902020-01-03 Hannes Domani <ssbssa@yahoo.de>
15291
15292 * solib-target.c (struct lm_info_target):
15293 Change offsets to be a unique_xmalloc_ptr.
15294 (solib_target_relocate_section_addresses): Update.
15295
25057eb0
HD
152962020-01-03 Hannes Domani <ssbssa@yahoo.de>
15297
15298 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15299
6e2118f5
BE
153002020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15301
15302 * MAINTAINERS (Write After Approval): Add myself.
15303
8133c7dc
LM
153042020-01-02 Luis Machado <luis.machado@linaro.org>
15305
15306 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15307 Cell BE architecture.
15308 * target.h (struct target_ops) <thread_architecture>: Likewise.
15309
48189bec
HD
153102020-01-01 Hannes Domani <ssbssa@yahoo.de>
15311
15312 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15313
ead1063b
HD
153142020-01-01 Hannes Domani <ssbssa@yahoo.de>
15315
15316 * MAINTAINERS (Write After Approval): Add myself.
15317
e5d78223
JB
153182020-01-01 Joel Brobecker <brobecker@adacore.com>
15319
15320 * gdbarch.sh: Update copyright year range of generated files.
15321
b811d2c2
JB
153222020-01-01 Joel Brobecker <brobecker@adacore.com>
15323
15324 Update copyright year range in all GDB files.
15325
5f4def5c
JB
153262020-01-01 Joel Brobecker <brobecker@adacore.com>
15327
15328 * copyright.py: Convert to Python 3.
15329
51fd4002
JB
153302020-01-01 Joel Brobecker <brobecker@adacore.com>
15331
15332 * copyright.py: Adapt after move of gnulib directory from gdb
15333 directory to toplevel directory.
15334
5fb651f2
JB
153352020-01-01 Joel Brobecker <brobecker@adacore.com>
15336
15337 * copyright.py (main): Exit if run from the wrong directory.
15338
5dd8bf88
JB
153392020-01-01 Joel Brobecker <brobecker@adacore.com>
15340
15341 * top.c (print_gdb_version): Change copyright year to 2020.
15342
9f71dacb 153432020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15344
9f71dacb 15345 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15346
9f71dacb 15347For older changes see ChangeLog-2019.
c906108c
SS
15348\f
15349Local Variables:
15350mode: change-log
15351left-margin: 8
15352fill-column: 74
15353version-control: never
57da7796 15354coding: utf-8
c906108c 15355End: