]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
asan: readelf: use after free in process_archive
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1776e3e5
NA
12020-06-26 Nick Alcock <nick.alcock@oracle.com>
2
3 * configure.ac: Add --enable-libctf: handle --disable-static
4 properly.
5 * acinclude.m4: sinclude ../config/enable.m4.
6 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7 (LIBCTF): Substitute in.
8 (CTF_DEPS): New, likewise.
9 (CLIBS): libctf needs symbols from libbfd: move earlier.
10 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
11 flags.
12 * ctfread.c: Surround in ENABLE_LIBCTF.
13 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
14 * configure: Regenerate.
15 * config.in: Likewise.
16
58373b80
SM
172020-06-25 Simon Marchi <simon.marchi@efficios.com>
18
19 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
20
277474ee
SM
212020-06-25 Simon Marchi <simon.marchi@efficios.com>
22
23 * inferior.h (struct inferior) <terminal>: Change type to
24 gdb::unique_xmalloc_ptr<char>.
25 * inferior.c (inferior::~inferior): Don't free inf->terminal.
26 * infcmd.c (set_inferior_io_terminal): Don't free terminal
27 field, adjust to unique pointer.
28 (get_inferior_io_terminal): Adjust to unique pointer.
29
6d74da72
AB
302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * riscv-tdep.c (riscv_print_registers_info): Loop over all
33 registers, not just the known core set of registers.
34
2e52d038
AB
352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
38 fflags, frm, and fcsr registers.
39 (riscv_register_reggroup_p): Remove unknown CSRs from save and
40 restore groups.
41 (riscv_tdesc_unknown_reg): New function.
42 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
43 tdesc_use_registers.
44 * riscv-tdep.h (struct gdbarch_tdep): Add
45 unknown_csrs_first_regnum, unknown_csrs_count,
46 duplicate_fflags_regnum, duplicate_frm_regnum, and
47 duplicate_fcsr_regnum fields.
48
be64fd07
AB
492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * target-descriptions.c (tdesc_use_registers): Add new parameter a
52 callback, use the callback (when not null) to help number unknown
53 registers.
54 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
55 (tdesc_use_registers): Add extra parameter to declaration.
56
3b9fce96
AB
572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
58
59 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
60 in the file.
61 (class riscv_pending_register_alias): Likewise.
62 (riscv_register_feature::register_info): Change 'required_p' field
63 to 'required', and change its type. Add 'check' member function.
64 (riscv_register_feature::register_info::check): Define new member
65 function.
66 (riscv_xreg_feature): Change initialisation of 'required' field.
67 (riscv_freg_feature): Likewise.
68 (riscv_virtual_feature): Likewise.
69 (riscv_csr_feature): Likewise.
70 (riscv_check_tdesc_feature): Take extra parameter, the csr
71 tdesc_feature, rewrite the function to use the new
72 riscv_register_feature::register_info::check function.
73 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
74
865bad26
AB
752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * features/Makefile: Remove all references to the deleted files
78 below.
79 * features/riscv/32bit-csr.c: Deleted.
80 * features/riscv/32bit-csr.xml: Deleted.
81 * features/riscv/64bit-csr.c: Deleted.
82 * features/riscv/64bit-csr.xml: Deleted.
83 * features/riscv/rebuild-csr-xml.sh: Deleted.
84
ed69cbc8
AB
852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
86
87 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
88 whitespace error for declaration of names member variable.
89 (struct riscv_register_feature): Add new prefer_first_name member
90 variable, and fix whitespace error in declaration of registers.
91 (riscv_xreg_feature): Initialize prefer_first_name field.
92 (riscv_freg_feature): Likewise.
93 (riscv_virtual_feature): Likewise.
94 (riscv_csr_feature): Likewise.
95 (riscv_register_name): Expand on comments. Remove register name
96 modifications for CSR and virtual registers.
97
4445e8f5
AB
982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
101 errors.
102
767a879e
AB
1032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
104
105 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
106 riscv-opc.h.
107 (class riscv_pending_register_alias): New class.
108 (riscv_check_tdesc_feature): Take vector of pending aliases and
109 populate it as appropriate.
110 (riscv_setup_register_aliases): Delete.
111 (riscv_gdbarch_init): Create vector of pending aliases and pass it
112 to riscv_check_tdesc_feature in all cases. Use the vector to
113 create the register aliases.
114
bb6e55f3
RO
1152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116
117 * sol2-tdep.c (sol2_static_transform_name): Remove.
118 (sol2_init_abi): Don't register it.
119 * gdbarch.sh (static_transform_name): Remove.
120 * gdbarch.c, gdbarch.h: Regenerate.
121
122 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
123 gdbarch_static_transform_name.
124 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
125 * stabsread.c (define_symbol) <'X'>: Remove.
126 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
127 handling.
128 <'V'>: Likewise.
129 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
130 <'S'>: Remove call to gdbarch_static_transform_name.
131
c6d36836
RO
1322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133
134 * procfs.c (procfs_pre_trace): New function.
135 (procfs_target::create_inferior): Pass it to fork_inferior.
136
a7e6196b
RO
1372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
138
139 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
140 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
141 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
142 sol2-tdep.o, sparc-sol2-tdep.o.
143 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
144 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
145 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
146 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
147
d412e696
RO
1482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
149
150 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
151 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
152 Call sol2_init_abi.
153 Remove calls to set_gdbarch_skip_solib_resolver,
154 set_gdbarch_core_pid_to_str.
155 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
156 (i386_sol2_static_transform_name): Remove.
157 (i386_sol2_init_abi): Call sol2_init_abi.
158 Remove calls to set_gdbarch_sofun_address_maybe_missing,
159 set_gdbarch_static_transform_name,
160 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
161 Use sol2_sigtramp_p.
162 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
163 (sol2_sigtramp_p): New function.
164 (sol2_static_transform_name): New function.
165 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
166 (sol2_init_abi): New function.
167 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
168 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
169 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
170 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
171 (sparc_sol2_static_transform_name): Remove.
172 (sparc32_sol2_init_abi): Call sol2_init_abi.
173 Remove calls to set_gdbarch_sofun_address_maybe_missing,
174 set_gdbarch_static_transform_name,
175 set_gdbarch_skip_solib_resolver,
176 set_gdbarch_core_pid_to_str.
177 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
178 (sparc_sol2_static_transform_name): Remove
179 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
180 call sol2_sigtramp_p.
181 (sparc64_sol2_init_abi): Call sol2_init_abi.
182 Remove calls to set_gdbarch_sofun_address_maybe_missing,
183 set_gdbarch_static_transform_name,
184 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
185
a8654e7d
PW
1862020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
187
188 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
189 * exec.c (validate_exec_file): If from_tty, set both
190 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
191 * symfile.c (symbol_file_add_with_addrs): if always_confirm
192 and from_tty, unconditionally ask a confirmation.
193
caa7fd04
AB
1942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * target-descriptions.c (tdesc_architecture_name): Protect against
197 NULL pointer dereference.
198 (maint_print_xml_tdesc_cmd): New function.
199 (_initialize_target_descriptions): Register new 'maint print
200 xml-tdesc' command and give it the filename completer.
201 * NEWS: Mention new 'maint print xml-tdesc' command.
202
fbf42f4e
AB
2032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * target-descriptions.c (class tdesc_compatible_info): New class.
206 (struct target_desc): Change type of compatible vector.
207 (tdesc_compatible_p): Update for change in type of
208 target_desc::compatible.
209 (tdesc_compatible_info_list): New function.
210 (tdesc_compatible_info_arch_name): New function.
211 (tdesc_add_compatible): Update for change in type of
212 target_desc::compatible.
213 (print_c_tdesc::visit_pre): Likewise.
214
20821f4e
AB
2152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
218 whitespace to underscore.
219 (maint_print_c_tdesc_cmd): Use fake filename for target
220 descriptions that came from the target.
221 (_initialize_target_descriptions): Add filename command completion
222 for 'maint print c-tdesc'.
223
1fb5ee62
SM
2242020-06-23 Simon Marchi <simon.marchi@efficios.com>
225
226 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
227 lines.
228
fc3ecb3e
SM
2292020-06-23 Simon Marchi <simon.marchi@efficios.com>
230
231 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
232 lines.
233 (dwarf2_find_location_expression): Likewise.
234 (call_site_parameter_matches): Likewise.
235 (dwarf2_compile_expr_to_ax): Likewise.
236 (disassemble_dwarf_expression): Likewise.
237 (loclist_describe_location): Likewise.
238
236ef034
PA
2392020-06-23 Pedro Alves <palves@redhat.com>
240
241 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
242 progspace-and-thread.h. Include scoped-mock-context.h instead.
243 (register_to_value_test): Use scoped_mock_context.
244 * regcache.c: Include "scoped-mock-context.h".
245 (cooked_read_test): Don't error out if a target is already pushed.
246 Use scoped_mock_context. Adjust.
247 * scoped-mock-context.h: New file.
248
39e7ecca
AB
2492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
252 initializer.
253 (ada_language::is_string_type_p): New member function.
254 * c-lang.c (c_language_data): Delete la_is_string_type_p
255 initializer.
256 (cplus_language_data): Likewise.
257 (asm_language_data): Likewise.
258 (minimal_language_data): Likewise.
259 * d-lang.c (d_language_data): Likewise.
260 * f-lang.c (f_is_string_type_p): Delete function, implementation
261 moved to f_language::is_string_type_p.
262 (f_language_data): Delete la_is_string_type_p initializer.
263 (f_language::is_string_type_p): New member function,
264 implementation from f_is_string_type_p.
265 * go-lang.c (go_is_string_type_p): Delete function, implementation
266 moved to go_language::is_string_type_p.
267 (go_language_data): Delete la_is_string_type_p initializer.
268 (go_language::is_string_type_p): New member function,
269 implementation from go_is_string_type_p.
270 * language.c (language_defn::is_string_type_p): Define new member
271 function.
272 (default_is_string_type_p): Make static, add comment copied from
273 header file.
274 (unknown_language_data): Delete la_is_string_type_p initializer.
275 (unknown_language::is_string_type_p): New member function.
276 (auto_language_data): Delete la_is_string_type_p initializer.
277 (auto_language::is_string_type_p): New member function.
278 * language.h (language_data): Delete la_is_string_type_p field.
279 (language_defn::is_string_type_p): Declare new function.
280 (default_is_string_type_p): Delete desclaration, move comment to
281 definition.
282 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
283 moved to m2_language::is_string_type_p.
284 (m2_language_data): Delete la_is_string_type_p initializer.
285 (m2_language::is_string_type_p): New member function,
286 implementation from m2_is_string_type_p.
287 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
288 initializer.
289 * opencl-lang.c (opencl_language_data): Likewise.
290 * p-lang.c (pascal_is_string_type_p): Delete function,
291 implementation moved to pascal_language::is_string_type_p.
292 (pascal_language_data): Delete la_is_string_type_p initializer.
293 (pascal_language::is_string_type_p): New member function,
294 implementation from pascal_is_string_type_p.
295 * rust-lang.c (rust_is_string_type_p): Delete function,
296 implementation moved to rust_language::is_string_type_p.
297 (rust_language_data): Delete la_is_string_type_p initializer.
298 (rust_language::is_string_type_p): New member function,
299 implementation from rust_is_string_type_p.
300 * valprint.c (val_print_scalar_or_string_type_p): Update call to
301 is_string_type_p.
302
4ffc13fb
AB
3032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
304
305 * ada-lang.c (ada_language_data): Delete la_print_typedef
306 initializer.
307 (ada_language::print_typedef): New member function.
308 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
309 (cplus_language_data): Likewise.
310 (asm_language_data): Likewise.
311 (minimal_language_data): Likewise.
312 * d-lang.c (d_language_data): Likewise.
313 * f-lang.c (f_language_data): Likewise.
314 (f_language::print_typedef): New member function.
315 * go-lang.c (go_language_data): Delete la_print_typedef
316 initializer.
317 * language.c (language_defn::print_typedef): Define member
318 function.
319 (unknown_language_data): Delete la_print_typedef initializer.
320 (unknown_language::print_typedef): New member function.
321 (auto_language_data): Delete la_print_typedef initializer.
322 (auto_language::print_typedef): New member function.
323 * language.h (language_data): Delete la_print_typedef field.
324 (language_defn::print_typedef): Declare new member function.
325 (LA_PRINT_TYPEDEF): Update call to print_typedef.
326 (default_print_typedef): Delete declaration.
327 * m2-lang.c (m2_language_data): Delete la_print_typedef
328 initializer.
329 (m2_language::print_typedef): New member function.
330 * objc-lang.c (objc_language_data): Delete la_print_typedef
331 initializer.
332 * opencl-lang.c (opencl_language_data): Likewise.
333 * p-lang.c (pascal_language_data): Likewise.
334 (pascal_language::print_typedef): New member function.
335 * rust-lang.c (rust_print_typedef): Delete function,
336 implementation moved to rust_language::print_typedef.
337 (rust_language): Delete la_print_typedef initializer.
338 (rust_language::print_typedef): New member function,
339 implementation from rust_print_typedef.
340 * typeprint.c (default_print_typedef): Delete.
341
d711ee67
AB
3422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
345 (ada_language::printstr): New member function.
346 * c-lang.c (c_language_data): Delete la_printstr initializer.
347 (cplus_language_data): Likewise.
348 (asm_language_data): Likewise.
349 (minimal_language_data): Likewise.
350 * d-lang.c (d_language_data): Likewise.
351 * f-lang.c (f_printstr): Rename to f_language::printstr.
352 (f_language_data): Delete la_printstr initializer.
353 (f_language::printstr): New member function, implementation from
354 f_printstr.
355 * go-lang.c (go_language_data): Delete la_printstr initializer.
356 * language.c (language_defn::printstr): Define new member
357 function.
358 (unk_lang_printstr): Delete.
359 (unknown_language_data): Delete la_printstr initializer.
360 (unknown_language::printstr): New member function.
361 (auto_language_data): Delete la_printstr initializer.
362 (auto_language::printstr): New member function.
363 * language.h (language_data): Delete la_printstr field.
364 (language_defn::printstr): Declare new member function.
365 (LA_PRINT_STRING): Update call to printstr.
366 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
367 (m2_language_data): Delete la_printstr initializer.
368 (m2_language::printstr): New member function, implementation from
369 m2_printstr.
370 * objc-lang.c (objc_language_data): Delete la_printstr
371 initializer.
372 * opencl-lang.c (opencl_language_data): Likewise.
373 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
374 (pascal_language_data): Delete la_printstr initializer.
375 (pascal_language::printstr): New member function, implementation
376 from pascal_printstr.
377 * p-lang.h (pascal_printstr): Delete declaration.
378 * rust-lang.c (rust_printstr): Update header comment.
379 (rust_language_data): Delete la_printstr initializer.
380 (rust_language::printstr): New member function.
381
52b50f2c
AB
3822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
383
384 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
385 (ada_language::printchar): New member function.
386 * c-lang.c (c_language_data): Delete la_printchar initializer.
387 (cplus_language_data): Likewise.
388 (asm_language_data): Likewise.
389 (minimal_language_data): Likewise.
390 * d-lang.c (d_language_data): Likewise.
391 * f-lang.c (f_printchar): Rename to f_language::printchar.
392 (f_language_data): Delete la_printchar initializer.
393 (f_language::printchar): New member function, implementation from
394 f_printchar.
395 * go-lang.c (go_language_data): Delete la_printchar initializer.
396 * language.c (unk_lang_printchar): Delete.
397 (language_defn::printchar): Define new member function.
398 (unknown_language_data): Delete la_printchar initializer.
399 (unknown_language::printchar): New member function.
400 (auto_language_data): Delete la_printchar initializer.
401 (auto_language::printchar): New member function.
402 * language.h (language_data): Delete la_printchar field.
403 (language_defn::printchar): Declare new member function.
404 (LA_PRINT_CHAR): Update call to printchar.
405 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
406 (m2_language::printchar): New member function.
407 * objc-lang.c (objc_language_data): Delete la_printchar
408 initializer.
409 * opencl-lang.c (opencl_language_data): Likewise.
410 * p-lang.c (pascal_language_data): Delete la_printchar
411 initializer.
412 (pascal_language::printchar): New member function.
413 * rust-lang.c (rust_printchar): Rename to
414 rust_language::printchar.
415 (rust_language_data): Delete la_printchar initializer.
416 (rust_language::printchar): New member function, implementation
417 from rust_printchar.
418
ec8cec5b
AB
4192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
422 (ada_language_data): Delete la_emitchar initializer.
423 (ada_language::emitchar): New member function, implementation from
424 emit_char.
425 * c-lang.c (c_language_data): Delete la_emitchar initializer.
426 (cplus_language_data): Likewise.
427 (asm_language_data): Likewise.
428 (minimal_language_data): Likewise.
429 * d-lang.c (d_language_data): Likewise.
430 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
431 (f_language_data): Delete la_emitchar initializer.
432 (f_language::emitchar): New member function, implementation from
433 f_emit_char.
434 * go-lang.c (go_language_data): Delete la_emitchar initializer.
435 * language.c (unk_lang_emit_char): Delete.
436 (language_defn::emitchar): New member function definition.
437 (unknown_language_data): Delete la_emitchar initializer.
438 (unknown_language::emitchar): New member function.
439 (auto_language_data): Delete la_emitchar initializer.
440 (auto_language::emitchar): New member function.
441 * language.h (language_data): Delete la_emitchar field.
442 (language_defn::emitchar): New member field declaration.
443 (LA_EMIT_CHAR): Update call to emitchar.
444 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
445 (m2_language_data): Delete la_emitchar initializer.
446 (m2_language::emitchar): New member function, implementation from
447 m2_emit_char.
448 * objc-lang.c (objc_language_data): Delete la_emitchar
449 initializer.
450 * opencl-lang.c (opencl_language_data): Likewise.
451 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
452 (pascal_language_data): Delete la_emitchar initializer.
453 (pascal_language::emitchar): New member function, implementation
454 from pascal_emit_char.
455 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
456 (rust_language_data): Delete la_emitchar initializer.
457 (rust_language::emitchar): New member function, implementation
458 from rust_emitchar.
459
1bf9c363
AB
4602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
461
462 * ada-lang.c (resolve): Rename to ada_language::post_parser.
463 (ada_language_data): Delete la_post_parser initializer.
464 (ada_language::post_parser): New member function.
465 * c-lang.c (c_language_data): Delete la_post_parser initializer.
466 (cplus_language_data): Likewise.
467 (asm_language_data): Likewise.
468 (minimal_language_data): Likewise.
469 * d-lang.c (d_language_data): Likewise.
470 * f-lang.c (f_language_data): Likewise.
471 * go-lang.c (go_language_data): Likewise.
472 * language.c (unknown_language_data): Likewise.
473 (auto_language_data): Likewise.
474 * language.h (language_data): Delete la_post_parser field.
475 (language_defn::post_parser): New member function.
476 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
477 * objc-lang.c (objc_language_data): Likewise.
478 * opencl-lang.c (opencl_language_data): Likewise.
479 * p-lang.c (pascal_language_data): Likewise.
480 * parse.c (parse_exp_in_context): Update call to post_parser.
481 (null_post_parser): Delete definition.
482 * parser-defs.h (null_post_parser): Delete declaration.
483 * rust-lang.c (rust_language_data): Delete la_post_parser
484 initializer.
485
87afa652
AB
4862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * ada-lang.c (parse): Rename to ada_language::parser.
489 (ada_language_data): Delete la_parser initializer.
490 (ada_language::parser): New member function, implementation from
491 parse.
492 * c-lang.c (c_language_data): Delete la_parser initializer.
493 (cplus_language_data): Likewise.
494 (asm_language_data): Likewise.
495 (minimal_language_data): Likewise.
496 * d-lang.c (d_language_data): Likewise.
497 (d_language::parser): New member function.
498 * f-lang.c (f_language_data): Delete la_parser initializer.
499 (f_language::parser): New member function.
500 * go-lang.c (go_language_data): Delete la_parser initializer.
501 (go_language::parser): New member function.
502 * language.c (unk_lang_parser): Delete.
503 (language_defn::parser): Define new member function.
504 (unknown_language_data): Delete la_parser initializer.
505 (unknown_language::parser): New member function.
506 (auto_language_data): Delete la_parser initializer.
507 (auto_language::parser): New member function.
508 * language.h (language_data): Delete la_parser field.
509 (language_defn::parser): Declare new member function.
510 * m2-lang.c (m2_language_data): Delete la_parser initializer.
511 (m2_language::parser): New member function.
512 * objc-lang.c (objc_language_data): Delete la_parser initializer.
513 * opencl-lang.c (opencl_language_data): Likewise.
514 * p-lang.c (pascal_language_data): Likewise.
515 (pascal_language::parser): New member function.
516 * parse.c (parse_exp_in_context): Update call to parser.
517 * rust-lang.c (rust_language_data): Delete la_parser initializer.
518 (rust_language::parser): New member function.
519
37825800
AB
5202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * top.c (print_gdb_configuration): Print --with-python-libdir
523 configuration value.
524
5b860c93
PW
5252020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
526
527 * NEWS: Mention change to the alias command.
528
cf00cd6f
PW
5292020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
530
531 * cli/cli-cmds.c (lookup_cmd_for_default_args)
532 (alias_command_completer)
533 (make_alias_options_def_group): New functions.
534 (alias_opts, alias_option_defs): New struct and array.
535 (alias_usage_error): Update usage.
536 (alias_command): Handles optional DEFAULT-ARGS... arguments.
537 Use option framework.
538 (_initialize_cli_cmds): Update alias command help.
539 Update aliases command help.
540 (show_user):
541 Add NULL for new default_args lookup_cmd argument.
542 (valid_command_p): Rename to validate_aliased_command.
543 Add NULL for new default_args lookup_cmd argument. Verify that the
544 aliased_command has no default args.
545 * cli/cli-decode.c (help_cmd): Show aliases definitions.
546 (lookup_cmd_1, lookup_cmd): New argument default_args.
547 (add_alias_cmd):
548 Add NULL for new default_args lookup_cmd argument.
549 (print_help_for_command): Show default args under the layout
550 alias some_alias = some_aliased_cmd some_alias_default_arg.
551 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
552 xfree default_args in destructor.
553 * cli/cli-script.c (process_next_line, do_define_command):
554 Add NULL for new default_args lookup_cmd argument.
555 * command.h: Declare new default_args argument in lookup_cmd
556 and lookup_cmd_1.
557 * completer.c (complete_line_internal_1):
558 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
559 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
560 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
561 Likewise.
562 * infcmd.c (_initialize_infcmd): Likewise.
563 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
564 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
565 * python/py-param.c (add_setshow_generic): Likewise.
566 * remote.c (_initialize_remote): Likewise.
567 * top.c (execute_command): Prepend default_args if command has some.
568 (set_verbose):
569 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
570 * tracepoint.c (validate_actionline, encode_actions_1):
571 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
572
bd920864
TBA
5732020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
574
575 * jit.c (jit_read_descriptor): Use bool as the return type.
576 (jit_breakpoint_re_set_internal): Use bool as the return type.
577 Invert the return value logic; return true if the jit breakpoint
578 has been successfully initialized.
579 (jit_inferior_init): Update the call to
580 jit_breakpoint_re_set_internal.
581
f8098322
PA
5822020-06-22 Pedro Alves <palves@redhat.com>
583
584 PR gdb/25939
585 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
586 Use the current inferior instead. Don't return
587 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
588 wait again.
589 * sol-thread.c (sol_thread_target::wait): Don't reference
590 inferior_ptid.
591 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
592 (sol_update_thread_list_callback): Use the current inferior's pid
593 instead of inferior_ptid.
594
196535a6
RO
5952020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
596
597 * procfs.c: Cleanup many comments.
598
599 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
600 (AFTER_WATCHFLAG): Replace by value.
601
602 (MAIN_PROC_NAME_FORMAT): Inline ...
603 (create_procinfo): ... here.
604
605 (procfs_debug_inferior): Remove SYS_exec handling.
606 (syscall_is_exec): Likewise.
607 (procfs_set_exec_trap): Likewise.
608
609 (syscall_is_lwp_exit): Inline in callers.
610 (syscall_is_exit): Likewise.
611 (syscall_is_exec): Likewise.
612 (syscall_is_lwp_create): Likewise.
613
614 (invalidate_cache): Remove #if 0 code.
615
616 (make_signal_thread_runnable): Remove.
617 (procfs_target::resume): Remove #if 0 code.
618
cf6f3e86
RO
6192020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620
621 PR gdb/25939
622 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
623 call ...
624 (procfs_target::create_inferior): ... here.
625
48e9cc84
PW
6262020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
627
628 * exec.c (validate_exec_file): Ensure the build-id is up to
629 date by calling reopen_exec_file (that checks file timestamp
630 to decide to re-read the file).
631
3922b302
PA
6322020-06-18 Pedro Alves <palves@redhat.com>
633
634 PR gdb/25412
635 * gdbthread.h (delete_thread, delete_thread_silent)
636 (find_thread_ptid): Update comments.
637 * thread.c (current_thread_): New global.
638 (is_current_thread): Move higher, and reimplement.
639 (inferior_thread): Reimplement.
640 (set_thread_exited): Use bool. Add assertions.
641 (add_thread_silent): Simplify thread-reuse handling by always
642 calling delete_thread.
643 (delete_thread): Remove intro comment.
644 (find_thread_ptid): Skip exited threads.
645 (switch_to_thread_no_regs): Write to current_thread_.
646 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
647 INFERIOR_PTID. Clear current_thread_.
648
6dbdab44
PA
6492020-06-18 Pedro Alves <palves@redhat.com>
650
651 * aix-thread.c (pd_update): Use switch_to_thread.
652
2da4b788
PA
6532020-06-18 Pedro Alves <palves@redhat.com>
654
655 * ravenscar-thread.c (ravenscar_thread_target): Update.
656 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
657 (ravenscar_thread_target::add_active_thread): ... this. Don't
658 set m_base_ptid here. Update to avoid referencing inferior_ptid.
659 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
660
50838d1b
PA
6612020-06-18 Pedro Alves <palves@redhat.com>
662
663 * nat/windows-nat.c (current_windows_thread): Remove.
664 * nat/windows-nat.h (current_windows_thread): Remove.
665 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
666 Adjust.
667 (display_selectors): Adjust to fetch the current
668 windows_thread_info based on inferior_ptid.
669 (fake_create_process): No longer write to current_windows_thread.
670 (windows_nat_target::get_windows_debug_event):
671 Don't set inferior_ptid or current_windows_thread.
672 (windows_nat_target::wait): Adjust to not rely on
673 current_windows_thread.
674 (do_initial_windows_stuff): Now a method of windows_nat_target.
675 Switch to the last_ptid thread.
676 (windows_nat_target::attach): Adjust.
677 (windows_nat_target::detach): Use switch_to_no_thread instead of
678 writing to inferior_ptid directly.
679 (windows_nat_target::create_inferior): Adjust.
680
31ce04e9
PA
6812020-06-18 Pedro Alves <palves@redhat.com>
682
683 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
684
1ee1a363
PA
6852020-06-18 Pedro Alves <palves@redhat.com>
686
687 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
688 after creating it, instead of writing to inferior_ptid. Don't
689 write to inferior_ptid.
690
6d350754
PA
6912020-06-18 Pedro Alves <palves@redhat.com>
692
693 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
694
5d971d48
PA
6952020-06-18 Pedro Alves <palves@redhat.com>
696
697 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
698 it, instead of writing to inferior_ptid.
699
86e57d1b
PA
7002020-06-18 Pedro Alves <palves@redhat.com>
701
702 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
703 to inferior_ptid.
704
f2e1c129
PA
7052020-06-18 Pedro Alves <palves@redhat.com>
706
707 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
708 instead of writing to inferior_ptid directly.
709
60db1b85
PA
7102020-06-18 Pedro Alves <palves@redhat.com>
711
712 * corelow.c (core_target::close): Use switch_to_no_thread instead
713 of writing to inferior_ptid directly.
714 (add_to_thread_list, core_target_open): Use switch_to_thread
715 instead of writing to inferior_ptid directly.
716
fe7d6a8d
PA
7172020-06-18 Pedro Alves <palves@redhat.com>
718
719 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
720 inferior_ptid.
721 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
722 inferior_ptid.
723 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
724 inferior_ptid directly.
725 (darwin_nat_target::init_thread_list): Switch to thread, instead
726 of writing to inferior_ptid.
727 (darwin_nat_target::attach): Don't write to inferior_ptid.
728 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
729
975f8708
PA
7302020-06-18 Pedro Alves <palves@redhat.com>
731
732 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
733 thread.
734 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
735 Instead use switch_to_thread.
736 (gnu_nat_target::detach): Use switch_to_no_thread
737 instead of writing to inferior_ptid directly. Used passed-in
738 inferior instead of looking up the inferior by pid.
739
1a204730
PA
7402020-06-18 Pedro Alves <palves@redhat.com>
741
742 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
743 inferior_ptid.
744
ebe84f23
PA
7452020-06-18 Pedro Alves <palves@redhat.com>
746
747 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
748 inferior_ptid.
749 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
750 thread.
751 (nto_procfs_target::detach): Avoid referencing
752 inferior_ptid. Use switch_to_no_thread instead of writing to
753 inferior_ptid directly.
754 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
755 instead of writing to inferior_ptid directly.
756 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
757 to thread.
758
191f02e5
PA
7592020-06-18 Pedro Alves <palves@redhat.com>
760
761 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
762 after creating it, instead of writing to inferior_ptid.
763 (gdbsim_target_open): Use switch_to_no_thread instead of writing
764 to inferior_ptid directly.
765 (gdbsim_target::wait): Don't write to inferior_ptid.
766
0ac55310
PA
7672020-06-18 Pedro Alves <palves@redhat.com>
768
769 * remote.c (remote_target::remote_notice_new_inferior): Use
770 switch_to_thread instead of writing to inferior_ptid directly.
771 (remote_target::add_current_inferior_and_thread): Use
772 switch_to_no_thread instead of writing to inferior_ptid directly.
773 (extended_remote_target::attach): Use switch_to_inferior_no_thread
774 and switch_to_thread instead of using set_current_inferior or
775 writing to inferior_ptid directly.
776
5233f39b
PA
7772020-06-18 Pedro Alves <palves@redhat.com>
778
779 * tracectf.c (ctf_target_open): Switch to added thread instead of
780 writing to inferior_ptid directly.
781 (ctf_target::close): Use switch_to_no_thread instead of writing to
782 inferior_ptid directly.
783
087e161b
PA
7842020-06-18 Pedro Alves <palves@redhat.com>
785
786 * tracefile-tfile.c (tfile_target_open): Don't write to
787 inferior_ptid directly, instead switch to added thread.
788 (tfile_target::close): Use switch_to_no_thread instead of writing
789 to inferior_ptid directly.
790
7fb43e53
PA
7912020-06-18 Pedro Alves <palves@redhat.com>
792
793 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
794 (procfs_target::detach): Use switch_to_no_thread
795 instead of writing to inferior_ptid directly.
796 (do_attach): Change return type to void. Switch to the added
797 thread.
798 (procfs_target::create_inferior): Switch to the added thread.
799 (procfs_do_thread_registers): Don't write to inferior_ptid.
800
18493a00
PA
8012020-06-18 Pedro Alves <palves@redhat.com>
802
803 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
804 of writing to inferior_ptid.
805 (scoped_restore_exited_inferior): Delete.
806 (handle_vfork_child_exec_or_exit): Simplify using
807 scoped_restore_current_pspace_and_thread. Use switch_to_thread
808 instead of writing to inferior_ptid.
809 (THREAD_STOPPED_BY): Delete.
810 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
811 (thread_stopped_by_hw_breakpoint): Delete.
812 (save_waitstatus): Use
813 scoped_restore_current_thread+switch_to_thread, and call
814 target_stopped_by_watchpoint instead of
815 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
816 instead of thread_stopped_by_sw_breakpoint, and
817 target_stopped_by_hw_breakpoint instead of
818 thread_stopped_by_hw_breakpoint.
819 (handle_inferior_event)
820 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
821 inferior_ptid directly, nor
822 set_current_inferior/set_current_program_space. Use
823 switch_to_thread / switch_to_inferior_no_thread instead.
824
a0776b13
PA
8252020-06-18 Pedro Alves <palves@redhat.com>
826
827 * target.c (generic_mourn_inferior): Use switch_to_no_thread
828 instead of writing to inferior_ptid.
829
6155c136
PA
8302020-06-18 Pedro Alves <palves@redhat.com>
831
832 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
833 added thread.
834 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
835 to the added thread.
836 (inf_ptrace_target::detach_success): Use switch_to_no_thread
837 instead of writing to inferior_ptid.
838
c5316fc6
PA
8392020-06-18 Pedro Alves <palves@redhat.com>
840
841 * gdbarch-selftests.c: Include "progspace-and-thread.h".
842 (register_to_value_test): Mock a program_space too. Heap-allocate
843 the address space. Don't write to inferior_ptid. Use
844 switch_to_thread instead.
845
8df01799
PA
8462020-06-18 Pedro Alves <palves@redhat.com>
847
848 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
849 Delete.
850 (find_signalled_thread()): New, factored out from
851 linux_make_corefile_notes and adjusted to handle exited threads.
852 (linux_make_corefile_notes): Adjust to use the new
853 find_signalled_thread.
854
41792d68
PA
8552020-06-18 Pedro Alves <palves@redhat.com>
856
857 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
858 of saving/restoring inferior_ptid.
859
612f258a
TT
8602020-06-17 Tom Tromey <tom@tromey.com>
861
862 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
863 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
864 declare.
865 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
866
efb763a5
SM
8672020-06-15 Simon Marchi <simon.marchi@efficios.com>
868
869 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
870 of partial symtabs.
871
2951f6c0
SM
8722020-06-17 Simon Marchi <simon.marchi@efficios.com>
873
874 * regformats/reg-arm.dat: Remove.
875 * regformats/reg-bfin.dat: Remove.
876 * regformats/reg-cris.dat: Remove.
877 * regformats/reg-crisv32.dat: Remove.
878 * regformats/reg-m32r.dat: Remove.
879 * regformats/reg-tilegx.dat: Remove.
880 * regformats/reg-tilegx32.dat: Remove.
881
7d458ea5
SM
8822020-06-17 Simon Marchi <simon.marchi@efficios.com>
883
884 * features/Makefile (WHICH): Remove arm files.
885 * regformats/arm/arm-with-iwmmxt.dat: Remove.
886 * regformats/arm/arm-with-neon.dat: Remove.
887 * regformats/arm/arm-with-vfpv2.dat: Remove.
888 * regformats/arm/arm-with-vfpv3.dat: Remove.
889
3af96c0d
SM
8902020-06-17 Simon Marchi <simon.marchi@efficios.com>
891
892 * features/Makefile (XMLTOC): Remove rx.xml.
893
b25e22fd
PA
8942020-06-17 Pedro Alves <palves@redhat.com>
895
896 * gdbthread.h (thread_control_state) <trap_expected> Update
897 comments.
898
a78a19b1
AB
8992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
902 ada_language::lookup_symbol_nonlocal.
903 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
904 (ada_language::lookup_symbol_nonlocal): New member function,
905 implementation from ada_lookup_symbol_nonlocal.
906 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
907 initializer.
908 (cplus_language_data): Delete la_lookup_symbol_nonlocal
909 initializer.
910 (cplus_language::lookup_symbol_nonlocal): New member function.
911 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
912 (minimal_language_data) Likewise.
913 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
914 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
915 initializer.
916 (d_language::lookup_symbol_nonlocal): New member function.
917 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
918 initializer.
919 (f_language::lookup_symbol_nonlocal): New member function.
920 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
921 initializer.
922 * language.c (unknown_language_data): Likewise.
923 (auto_language_data): Likewise.
924 * language.h (language_data): Delete la_lookup_symbol_nonlocal
925 field.
926 (language_defn::lookup_symbol_nonlocal): New member function.
927 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
928 initializer.
929 * objc-lang.c (objc_language_data): Likewise.
930 * opencl-lang.c (opencl_language_data): Likewise.
931 * p-lang.c (pascal_language_data): Likewise.
932 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
933 rust_language::lookup_symbol_nonlocal.
934 (rust_language_data): Delete la_lookup_symbol_nonlocal
935 initializer.
936 (rust_language::lookup_symbol_nonlocal): New member function,
937 implementation from rust_lookup_symbol_nonlocal.
938 * symtab.c (lookup_symbol_aux): Update call to
939 lookup_symbol_nonlocal.
940 (basic_lookup_symbol_nonlocal): Rename to...
941 (language_defn::lookup_symbol_nonlocal): ...this, and update
942 header comment. Remove language_defn parameter, and replace with
943 uses of `this'.
944 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
945
ebe2334e
AB
9462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * ada-lang.c (ada_language_data): Delete la_value_print_inner
949 initializer.
950 (ada_language::value_print_inner): New member function.
951 * c-lang.c (c_language_data): Delete la_value_print_inner
952 initializer.
953 (cplus_language_data): Likewise.
954 (asm_language_data): Likewise.
955 (minimal_language_data): Likewise.
956 * d-lang.c (d_language_data): Likewise.
957 (d_language::value_print_inner): New member function.
958 * f-lang.c (f_language_data): Delete la_value_print_inner
959 initializer.
960 (f_language::value_print_inner): New member function.
961 * f-lang.h (f_value_print_innner): Rename to...
962 (f_value_print_inner): ...this (note spelling of 'inner').
963 * f-valprint.c (f_value_print_innner): Rename to...
964 (f_value_print_inner): ...this (note spelling of 'inner').
965 * go-lang.c (go_language_data): Delete la_value_print_inner
966 initializer.
967 (go_language::value_print_inner): New member function.
968 * language.c (language_defn::value_print_inner): Define new member
969 function.
970 (unk_lang_value_print_inner): Delete.
971 (unknown_language_data): Delete la_value_print_inner initializer.
972 (unknown_language::value_print_inner): New member function.
973 (auto_language_data): Delete la_value_print_inner initializer.
974 (auto_language::value_print_inner): New member function.
975 * language.h (language_data): Delete la_value_print_inner field.
976 (language_defn::value_print_inner): Delcare new member function.
977 * m2-lang.c (m2_language_data): Delete la_value_print_inner
978 initializer.
979 (m2_language::value_print_inner): New member function.
980 * objc-lang.c (objc_language_data): Delete la_value_print_inner
981 initializer.
982 * opencl-lang.c (opencl_language_data): Likewise.
983 * p-lang.c (pascal_language_data): Likewise.
984 (pascal_language::value_print_inner): New member function.
985 * rust-lang.c (rust_language_data): Delete la_value_print_inner
986 initializer.
987 (rust_language::value_print_inner): New member function.
988 * valprint.c (do_val_print): Update call to value_print_inner.
989
a1d1fa3e
AB
9902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
991
992 * ada-lang.c (ada_language_data): Delete la_value_print
993 initializer.
994 (ada_language::value_print): New member function.
995 * c-lang.c (c_language_data): Delete la_value_print initializer.
996 (cplus_language_data): Likewise.
997 (asm_language_data): Likewise.
998 (minimal_language_data): Likewise.
999 * d-lang.c (d_language_data): Likewise.
1000 * f-lang.c (f_language_data): Likewise.
1001 * go-lang.c (go_language_data): Likewise.
1002 * language.c (unk_lang_value_print): Delete.
1003 (language_defn::value_print): Define new member function.
1004 (unknown_language_data): Delete la_value_print initializer.
1005 (unknown_language::value_print): New member function.
1006 (auto_language_data): Delete la_value_print initializer.
1007 (auto_language::value_print): New member function.
1008 * language.h (language_data): Delete la_value_print field.
1009 (language_defn::value_print): Declare new member function.
1010 (LA_VALUE_PRINT): Update call to value_print.
1011 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1012 * objc-lang.c (objc_language_data): Likewise.
1013 * opencl-lang.c (opencl_language_data): Likewise.
1014 * p-lang.c (pascal_language_data): Likewise.
1015 (pascal_language::value_print): New member function.
1016 * rust-lang.c (rust_language_data): Delete la_value_print
1017 initializer.
1018
f16a9f57
AB
10192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * ada-lang.c (ada_watch_location_expression): Rename to
1022 ada_language::watch_location_expression.
1023 (ada_language_data): Delete la_watch_location_expression
1024 initializer.
1025 (ada_language::watch_location_expression): New member function,
1026 implementation from ada_watch_location_expression.
1027 * breakpoint.c (watch_command_1): Update call to
1028 watch_location_expression.
1029 * c-lang.c (c_watch_location_expression): Rename to
1030 language_defn::watch_location_expression.
1031 (c_language_data): Delete la_watch_location_expression
1032 initializer.
1033 (cplus_language_data): Likewise.
1034 (asm_language_data): Likewise.
1035 (minimal_language_data): Likewise.
1036 * c-lang.h (c_watch_location_expression): Delete declaration.
1037 * d-lang.c (d_language_data): Delete la_watch_location_expression
1038 initializer.
1039 * f-lang.c (f_language_data): Likewise.
1040 * go-lang.c (go_language_data): Likewise.
1041 * language.c (language_defn::watch_location_expression): Member
1042 function implementation from c_watch_location_expression.
1043 (unknown_language_data): Delete la_watch_location_expression
1044 initializer.
1045 (auto_language_data): Likewise.
1046 * language.h (language_data): Delete la_watch_location_expression
1047 field.
1048 (language_defn::watch_location_expression): Declare new member
1049 function.
1050 * m2-lang.c (m2_language_data): Delete
1051 la_watch_location_expression initializer.
1052 * objc-lang.c (objc_language_data): Likewise.
1053 * opencl-lang.c (opencl_language_data): Likewise.
1054 * p-lang.c (pascal_language_data): Likewise.
1055 * rust-lang.c (rust_watch_location_expression): Rename to
1056 rust_language::watch_location_expression.
1057 (rust_language_data): Delete la_watch_location_expression
1058 initializer.
1059 (rust_language::watch_location_expression): New member function,
1060 implementation from rust_watch_location_expression.
1061
7e56227d
AB
10622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1063
1064 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1065 ada_language::collect_symbol_completion_matches.
1066 (ada_language_data): Delete la_collect_symbol_completion_matches
1067 initializer.
1068 (ada_language::collect_symbol_completion_matches): New member
1069 function, implementation from
1070 ada_collect_symbol_completion_matches.
1071 * c-lang.c (c_language_data): Delete
1072 la_collect_symbol_completion_matches initializer.
1073 (cplus_language_data): Likewise.
1074 (asm_language_data): Likewise.
1075 (minimal_language_data): Likewise.
1076 * d-lang.c (d_language_data): Likewise.
1077 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1078 f_language::collect_symbol_completion_matches.
1079 (f_language_data): Delete la_collect_symbol_completion_matches
1080 initializer.
1081 (f_language::collect_symbol_completion_matches) New member
1082 function, implementation from f_collect_symbol_completion_matches.
1083 * go-lang.c (go_language_data): Delete
1084 la_collect_symbol_completion_matches initializer.
1085 * language.c (unknown_language_data): Likewise.
1086 (auto_language_data): Likewise.
1087 * language.h (language_data): Delete
1088 la_collect_symbol_completion_matches field.
1089 (language_defn::collect_symbol_completion_matches): New member
1090 function.
1091 * m2-lang.c (m2_language_data): Delete
1092 la_collect_symbol_completion_matches initializer.
1093 * objc-lang.c (objc_language_data): Likewise.
1094 * opencl-lang.c (opencl_language_data): Likewise.
1095 * p-lang.c (pascal_language_data): Likewise.
1096 * rust-lang.c (rust_language_data): Likewise.
1097 * symtab.c (default_collect_symbol_completion_matches): Delete.
1098 (collect_symbol_completion_matches): Update call to
1099 collect_symbol_completion_matches.
1100 (collect_symbol_completion_matches_type): Likewise.
1101 * symtab.h (default_collect_symbol_completion_matches): Delete
1102 declaration.
1103
53fc67f8
AB
11042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1107 (ada_language_data): Delete la_word_break_characters initializer.
1108 (ada_language::word_break_characters): New member function.
1109 * c-lang.c (c_language_data): Delete la_word_break_characters
1110 initializer.
1111 (cplus_language_data): Likewise.
1112 (asm_language_data): Likewise.
1113 (minimal_language_data): Likewise.
1114 * completer.c: Update global comment.
1115 (advance_to_expression_complete_word_point): Update call to
1116 word_break_characters.
1117 (complete_files_symbols): Likewise.
1118 (complete_line_internal_1): Likewise.
1119 (default_completer_handle_brkchars): Likewise.
1120 (skip_quoted_chars): Likewise.
1121 * d-lang.c (d_language_data): Delete la_word_break_characters
1122 initializer.
1123 * f-lang.c (f_word_break_characters): Delete.
1124 (f_language_data): Delete la_word_break_characters initializer.
1125 (f_language::word_break_characters): New member function.
1126 * go-lang.c (go_language_data): Delete la_word_break_characters
1127 initializer.
1128 * language.c (unknown_language_data): Likewise.
1129 (auto_language_data): Likewise.
1130 * language.h (default_word_break_characters): Move declaration to
1131 earlier in the file.
1132 (language_data): Delete la_word_break_characters field.
1133 (language_defn::word_break_characters): New member function.
1134 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1135 initializer.
1136 * objc-lang.c (objc_language_data): Likewise.
1137 * opencl-lang.c (opencl_language_data): Likewise.
1138 * p-lang.c (pascal_language_data): Likewise.
1139 * rust-lang.c (rust_language_data): Likewise.
1140
c9debfb9
AB
11412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1144 (ada_language_data): Delete la_get_symbol_name_matcher
1145 initializer.
1146 (language_defn::get_symbol_name_matcher_inner): New member
1147 function.
1148 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1149 initializer.
1150 (cplus_language_data): Likewise.
1151 (cplus_language::get_symbol_name_matcher_inner): New member
1152 function.
1153 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1154 (minimal_language_data): Likewise.
1155 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1156 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1157 initializer.
1158 * dictionary.c (iter_match_first_hashed): Update call to
1159 get_symbol_name_matcher.
1160 (iter_match_next_hashed): Likewise.
1161 (iter_match_next_linear): Likewise.
1162 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1163 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1164 initializer.
1165 (f_language::get_symbol_name_matcher_inner): New member function.
1166 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1167 initializer.
1168 * language.c (default_symbol_name_matcher): Update header comment,
1169 make static.
1170 (language_defn::get_symbol_name_matcher): New definition.
1171 (language_defn::get_symbol_name_matcher_inner): Likewise.
1172 (get_symbol_name_matcher): Delete.
1173 (unknown_language_data): Delete la_get_symbol_name_matcher
1174 initializer.
1175 (auto_language_data): Likewise.
1176 * language.h (language_data): Delete la_get_symbol_name_matcher
1177 field.
1178 (language_defn::get_symbol_name_matcher): New member function.
1179 (language_defn::get_symbol_name_matcher_inner): Likewise.
1180 (default_symbol_name_matcher): Delete declaration.
1181 * linespec.c (find_methods): Update call to
1182 get_symbol_name_matcher.
1183 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1184 initializer.
1185 * minsyms.c (lookup_minimal_symbol): Update call to
1186 get_symbol_name_matcher.
1187 (iterate_over_minimal_symbols): Likewise.
1188 * objc-lang.c (objc_language_data): Delete
1189 la_get_symbol_name_matcher initializer.
1190 * opencl-lang.c (opencl_language_data): Likewise.
1191 * p-lang.c (pascal_language_data): Likewise.
1192 * psymtab.c (psymbol_name_matches): Update call to
1193 get_symbol_name_matcher.
1194 * rust-lang.c (rust_language_data): Delete
1195 la_get_symbol_name_matcher initializer.
1196 * symtab.c (symbol_matches_search_name): Update call to
1197 get_symbol_name_matcher.
1198 (compare_symbol_name): Likewise.
1199
9a49ad8c
AB
12002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1201
1202 * ada-lang.c (ada_language_data): Delete la_compute_program
1203 initializer.
1204 * c-lang.c (c_language_data): Likewise.
1205 (c_language::compute_program): New member function.
1206 (cplus_language_data): Delete la_compute_program initializer.
1207 (cplus_language::compute_program): New member function.
1208 (asm_language_data): Delete la_compute_program initializer.
1209 (minimal_language_data): Likewise.
1210 * c-lang.h (c_compute_program): Update comment.
1211 (cplus_compute_program): Likewise.
1212 * compile/compile-c-support.c (c_compute_program): Likewise.
1213 (cplus_compute_program): Likewise.
1214 * compile/compile.c (compile_to_object): Update call to
1215 la_compute_program.
1216 * d-lang.c (d_language_data): Delete la_compute_program
1217 initializer.
1218 * f-lang.c (f_language_data): Likewise.
1219 * go-lang.c (go_language_data): Likewise.
1220 * language.c (unknown_language_data): Likewise.
1221 (auto_language_data): Likewise.
1222 * language.h (language_data): Delete la_compute_program field.
1223 (language_defn::compute_program): New member function.
1224 * m2-lang.c (m2_language_data): Delete la_compute_program
1225 initializer.
1226 * objc-lang.c (objc_language_data): Likewise.
1227 * opencl-lang.c (opencl_language_data): Likewise.
1228 * p-lang.c (pascal_language_data): Likewise.
1229 * rust-lang.c (rust_language_data): Likewise.
1230
eff93b4d
AB
12312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * ada-lang.c (ada_language_data) Delete
1234 la_class_name_from_physname initializer.
1235 * c-lang.c (c_language_data): Likewise.
1236 (cplus_language_data): Likewise.
1237 (cplus_language::class_name_from_physname): New member function.
1238 (asm_language_data): Delete la_class_name_from_physname
1239 initializer.
1240 (minimal_language_data): Likewise.
1241 * d-lang.c (d_language_data): Likewise.
1242 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1243 method on language_defn class.
1244 (guess_full_die_structure_name): Likewise.
1245 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1246 initializer.
1247 * go-lang.c (go_language_data): Likewise.
1248 * language.c (language_class_name_from_physname): Delete.
1249 (unk_lang_class_name): Delete.
1250 (unknown_language_data): Delete la_class_name_from_physname
1251 initializer.
1252 (auto_language_data): Likewise.
1253 * language.h (language_data): Delete la_class_name_from_physname
1254 field.
1255 (language_defn::class_name_from_physname): New function.
1256 (language_class_name_from_physname): Delete declaration.
1257 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1258 initializer.
1259 * objc-lang.c (objc_language_data): Likewise.
1260 * opencl-lang.c (opencl_language_data): Likewise.
1261 * p-lang.c (pascal_language_data): Likewise.
1262 * rust-lang.c (rust_language_data): Likewise.
1263
de543742
TT
12642020-06-16 Tom Tromey <tom@tromey.com>
1265
1266 * tui/tui-data.h (STATUS_NAME): New macro.
1267 * tui/tui-layout.c (tui_remove_some_windows)
1268 (initialize_known_windows, tui_register_window)
1269 (tui_layout_split::remove_windows, initialize_layouts)
1270 (tui_new_layout_command): Don't use hard-coded window names.
1271
a350efd4
TT
12722020-06-16 Tom Tromey <tom@tromey.com>
1273
1274 PR tui/25348:
1275 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1276 tui_initialize_readline. Only run once. Call rl_initialize.
1277 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1278 tui_initialize_readline.
1279 * tui/tui-io.c (tui_setup_io): Call
1280 tui_ensure_readline_initialized.
1281 * tui/tui-interp.c (tui_interp::init): Update.
1282
39ec0490
TT
12832020-06-16 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1286 Also preserve the status window.
1287
d2d1ea20
TT
12882020-06-16 Tom Tromey <tom@tromey.com>
1289
1290 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1291 where m_window==nullptr.
1292
66920317
TT
12932020-06-15 Tom Tromey <tromey@adacore.com>
1294
1295 * windows-nat.c (windows_nat::handle_output_debug_string):
1296 Update.
1297 (windows_nat::handle_ms_vc_exception): Update.
1298 * target.h (target_read_string): Change API.
1299 * target.c (target_read_string): Change API.
1300 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1301 Update.
1302 * solib-frv.c (frv_current_sos): Update.
1303 * solib-dsbt.c (dsbt_current_sos): Update.
1304 * solib-darwin.c (darwin_current_sos): Update.
1305 * linux-thread-db.c (inferior_has_bug): Update.
1306 * expprint.c (print_subexp_standard): Update.
1307 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1308 (ada_exception_message_1): Update.
1309
a5d871dd
TT
13102020-06-15 Tom Tromey <tromey@adacore.com>
1311
1312 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1313
670e35fa
TT
13142020-06-15 Tom Tromey <tromey@adacore.com>
1315
1316 * valprint.c (read_string): Update comment.
1317 * target.c (MIN): Remove.
1318 (target_read_string): Rewrite.
1319
f5272a3b
TT
13202020-06-15 Tom Tromey <tromey@adacore.com>
1321
1322 * corefile.c (read_memory_string): Remove.
1323 * ada-valprint.c (ada_value_print_ptr): Update.
1324 * ada-lang.h (ada_tag_name): Change return type.
1325 * ada-lang.c (type_from_tag): Update.
1326 (ada_tag_name_from_tsd): Change return type. Use
1327 target_read_string.
1328 (ada_tag_name): Likewise.
1329 * gdbcore.h (read_memory_string): Don't declare.
1330
2c074f49
HD
13312020-06-14 Hannes Domani <ssbssa@yahoo.de>
1332
1333 * symtab.c (rbreak_command): Ignore Windows drive colon.
1334
6a17d503
SM
13352020-06-12 Simon Marchi <simon.marchi@efficios.com>
1336
1337 * NEWS: Mention removed GDBserver host support.
1338
453c733f
NC
13392020-06-12 Nelson Chu <nelson.chu@sifive.com>
1340
1341 * features/riscv/rebuild-csr-xml.sh: Updated.
1342
2b4e6a3f
TT
13432020-06-11 Tom Tromey <tom@tromey.com>
1344
1345 PR gdb/18318:
1346 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1347
4412332f
JG
13482020-06-09 Jonny Grant <jg@jguk.org>
13492020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1350
1351 * main.c (captured_main_1): Don't print new line after help.
1352 (print_gdb_help): add mailing list and IRC channel information
1353 to --help. Add new lines between items in the footer. Remove
1354 quotes around bug url.
1355
2f33032a
KS
13562020-06-11 Keith Seitz <keiths@redhat.com>
1357
1358 PR gdb/21356
1359 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1360 Resolve typedefs for type length calculations.
1361
7ab96794
TV
13622020-06-10 Tom de Vries <tdevries@suse.de>
1363
1364 PR ada/24713
1365 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1366 (write_psymbols): Enable .gdb_index for ada.
1367 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1368 ada.
1369
e5f3ece2
TV
13702020-06-10 Tom de Vries <tdevries@suse.de>
1371
1372 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1373 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1374 namei" instead of "const char *name" argument.
1375 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1376 dw2_symtab_iter_init.
1377
940da03e
SM
13782020-06-08 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1381 to use type::field and field::type instead.
1382
b6cdac4b
SM
13832020-06-08 Simon Marchi <simon.marchi@efficios.com>
1384
1385 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1386 to use field::type instead.
1387
5d14b6e5
SM
13882020-06-08 Simon Marchi <simon.marchi@efficios.com>
1389
1390 * gdbtypes.h (struct field) <type, set_type>: New methods.
1391 Rename `type` field to...
1392 <m_type>: ... this. Change references throughout to use type or
1393 set_type methods.
1394 (FIELD_TYPE): Use field::type. Change call sites that modify
1395 the field's type to use field::set_type instead.
1396
3d967001
SM
13972020-06-08 Simon Marchi <simon.marchi@efficios.com>
1398
1399 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1400 to use type::index_type instead.
1401
262abc0d
SM
14022020-06-08 Simon Marchi <simon.marchi@efficios.com>
1403
1404 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1405 methods.
1406 (TYPE_INDEX_TYPE): Use type::index_type.
1407 * gdbtypes.c (create_array_type_with_stride): Likewise.
1408
82836c92
TT
14092020-06-07 Tom Tromey <tom@tromey.com>
1410
1411 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1412 parameter.
1413 (generic_value_print): Update.
1414
940dace9
AB
14152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 Revert commit 982a38f60b0.
1418 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1419
982a38f6
AB
14202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1423 avoid use after free.
1424
82f06518
TV
14252020-06-05 Tom de Vries <tdevries@suse.de>
1426
1427 * NEWS: Fix typos.
1428
f8c41851
SM
14292020-06-04 Simon Marchi <simon.marchi@efficios.com>
1430
1431 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1432 the per_bfd object.
1433 (dwarf2_read_debug_names): Likewise.
1434 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1435 object when re-using a per_bfd object with an index.
1436
f9b5d5ea
TV
14372020-06-03 Tom de Vries <tdevries@suse.de>
1438
1439 PR symtab/26046
1440 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1441 children for C++.
1442 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1443 DW_TAG_subprogram.
1444
f6eee2d0
AB
14452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * ada-lang.c (ada_language_data): Delete skip_trampoline
1448 initializer.
1449 * c-lang.c (c_language_data): Likewise.
1450 (cplus_language_data): Likewise.
1451 (cplus_language::skip_trampoline): New member function.
1452 (asm_language_data): Delete skip_trampoline initializer.
1453 (minimal_language_data): Likewise.
1454 * d-lang.c (d_language_data): Likewise.
1455 * f-lang.c (f_language_data): Likewise.
1456 * go-lang.c (go_language_data): Likewise.
1457 * language.c (unk_lang_trampoline): Delete function.
1458 (skip_language_trampoline): Update.
1459 (unknown_language_data): Delete skip_trampoline initializer.
1460 (auto_language_data): Likewise.
1461 * language.h (language_data): Delete skip_trampoline field.
1462 (language_defn::skip_trampoline): New function.
1463 * m2-lang.c (m2_language_data): Delete skip_trampoline
1464 initializer.
1465 * objc-lang.c (objc_skip_trampoline): Delete function, move
1466 implementation to objc_language::skip_trampoline.
1467 (objc_language_data): Delete skip_trampoline initializer.
1468 (objc_language::skip_trampoline): New member function with
1469 implementation from objc_skip_trampoline.
1470 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1471 initializer.
1472 * p-lang.c (pascal_language_data): Likewise.
1473 * rust-lang.c (rust_language_data): Likewise.
1474
0a50df5d
AB
14752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1476
1477 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1478 (ada_language::demangle): New member function.
1479 * c-lang.c (c_language_data): Delete la_demangle initializer.
1480 (cplus_language_data): Delete la_demangle initializer.
1481 (cplus_language::demangle): New member function.
1482 (asm_language_data): Delete la_demangle initializer.
1483 (minimal_language_data): Delete la_demangle initializer.
1484 * d-lang.c (d_language_data): Delete la_demangle initializer.
1485 (d_language::demangle): New member function.
1486 * f-lang.c (f_language_data): Delete la_demangle initializer.
1487 (f_language::demangle): New member function.
1488 * go-lang.c (go_language_data): Delete la_demangle initializer.
1489 (go_language::demangle): New member function.
1490 * language.c (language_demangle): Update.
1491 (unk_lang_demangle): Delete.
1492 (unknown_language_data): Delete la_demangle initializer.
1493 (unknown_language::demangle): New member function.
1494 (auto_language_data): Delete la_demangle initializer.
1495 (auto_language::demangle): New member function.
1496 * language.h (language_data): Delete la_demangle field.
1497 (language_defn::demangle): New function.
1498 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1499 * objc-lang.c (objc_language_data): Delete la_demangle
1500 initializer.
1501 (objc_language::demangle): New member function.
1502 * opencl-lang.c (opencl_language_data): Delete la_demangle
1503 initializer.
1504 * p-lang.c (pascal_language_data): Likewise.
1505 * rust-lang.c (rust_language_data): Likewise.
1506 (rust_language::demangle): New member function.
1507
fbfb0a46
AB
15082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * ada-lang.c (ada_language_data): Delete la_print_type
1511 initializer.
1512 (ada_language::print_type): New member function.
1513 * c-lang.c (c_language_data): Delete la_print_type initializer.
1514 (c_language::print_type): New member function.
1515 (cplus_language_data): Delete la_print_type initializer.
1516 (cplus_language::print_type): New member function.
1517 (asm_language_data): Delete la_print_type initializer.
1518 (asm_language::print_type): New member function.
1519 (minimal_language_data): Delete la_print_type initializer.
1520 (minimal_language::print_type): New member function.
1521 * d-lang.c (d_language_data): Delete la_print_type initializer.
1522 (d_language::print_type): New member function.
1523 * f-lang.c (f_language_data): Delete la_print_type initializer.
1524 (f_language::print_type): New member function.
1525 * go-lang.c (go_language_data): Delete la_print_type initializer.
1526 (go_language::print_type): New member function.
1527 * language.c (unk_lang_print_type): Delete.
1528 (unknown_language_data): Delete la_print_type initializer.
1529 (unknown_language::print_type): New member function.
1530 (auto_language_data): Delete la_print_type initializer.
1531 (auto_language::print_type): New member function.
1532 * language.h (language_data): Delete la_print_type field.
1533 (language_defn::print_type): New function.
1534 (LA_PRINT_TYPE): Update.
1535 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1536 (m2_language::print_type): New member function.
1537 * objc-lang.c (objc_language_data): Delete la_print_type
1538 initializer.
1539 (objc_language::print_type): New member function.
1540 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1541 to opencl_language::print_type.
1542 (opencl_language_data): Delete la_print_type initializer.
1543 (opencl_language::print_type): New member function, implementation
1544 from opencl_print_type.
1545 * p-lang.c (pascal_language_data): Delete la_print_type
1546 initializer.
1547 (pascal_language::print_type): New member function.
1548 * rust-lang.c (rust_print_type): Delete, implementation moved to
1549 rust_language::print_type.
1550 (rust_language_data): Delete la_print_type initializer.
1551 (rust_language::print_type): New member function, implementation
1552 from rust_print_type.
1553
6f827019
AB
15542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1555
1556 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1557 implementation moves to...
1558 (ada_language::sniff_from_mangled_name): ...here. Update return
1559 type.
1560 (ada_language_data): Delete la_sniff_from_mangled_name
1561 initializer.
1562 * c-lang.c (c_language_data): Likewise.
1563 (cplus_language_data): Likewise.
1564 (cplus_language::sniff_from_mangled_name): New member function,
1565 implementation taken from gdb_sniff_from_mangled_name.
1566 (asm_language_data): Delete la_sniff_from_mangled_name
1567 initializer.
1568 (minimal_language_data): Likewise.
1569 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1570 implementation moves to cplus_language::sniff_from_mangled_name.
1571 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1572 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1573 moves to...
1574 (d_language::sniff_from_mangled_name): ...here.
1575 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1576 * f-lang.c (f_language_data): Likewise.
1577 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1578 moves to...
1579 (go_language::sniff_from_mangled_name): ...here.
1580 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1581 * language.c (language_sniff_from_mangled_name): Delete.
1582 (unknown_language_data): Delete la_sniff_from_mangled_name
1583 initializer.
1584 (auto_language_data): Likewise.
1585 * language.h (language_data): Delete la_sniff_from_mangled_name
1586 field.
1587 (language_defn::sniff_from_mangled_name): New function.
1588 (language_sniff_from_mangled_name): Delete declaration.
1589 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1590 field.
1591 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1592 implementation moves to...
1593 (objc_language::sniff_from_mangled_name): ...here.
1594 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1595 * opencl-lang.c (opencl_language_data): Likewise.
1596 * p-lang.c (pascal_language_data): Likewise.
1597 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1598 implementation moves to...
1599 (rust_language::sniff_from_mangled_name): ...here.
1600 (rust_language_data): Delete la_sniff_from_mangled_name
1601 initializer.
1602 * symtab.c (symbol_find_demangled_name): Call
1603 sniff_from_mangled_name member function.
1604
fb8006fd
AB
16052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1608 initializer.
1609 * c-lang.c (c_language_data): Likewise.
1610 (cplus_language_data): Likewise.
1611 (cplus_language::search_name_hash): New member function.
1612 (asm_language_data): Delete la_search_name_hash initializer.
1613 (minimal_language_data): Likewise.
1614 * d-lang.c (d_language_data): Likewise.
1615 * dictionary.c (default_search_name_hash): Rename to...
1616 (language_defn::search_name_hash): ...this.
1617 * f-lang.c (f_language_data): Likewise.
1618 (f_language::search_name_hash): New member function.
1619 * go-lang.c (go_language_data): Delete la_search_name_hash
1620 initializer.
1621 * language.c (unknown_language_data): Likewise.
1622 (auto_language_data): Likewise.
1623 * language.h (struct language_data): Delete la_search_name_hash
1624 field.
1625 (language_defn::search_name_hash): Declare new member function.
1626 (default_search_name_hash): Delete declaration.
1627 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1628 initializer.
1629 * objc-lang.c (objc_language_data): Likewise.
1630 * opencl-lang.c (opencl_language_data): Likewise.
1631 * p-lang.c (pascal_language_data): Likewise.
1632 * rust-lang.c (rust_language_data): Likewise.
1633 * symtab.c (search_name_hash): Update call.
1634
8e25bafe
AB
16352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1638 initializer.
1639 * c-lang.c (class compile_instance): Declare.
1640 (c_language_data): Delete la_get_compile_instance initializer.
1641 (c_language::get_compile_instance): New member function.
1642 (cplus_language_data): Delete la_get_compile_instance initializer.
1643 (cplus_language::get_compile_instance): New member function.
1644 (asm_language_data): Delete la_get_compile_instance initializer.
1645 (minimal_language_data): Likewise.
1646 * c-lang.h (c_get_compile_context): Update comment.
1647 (cplus_get_compile_context): Update comment.
1648 * compile/compile.c (compile_to_object): Update calls, don't rely
1649 on function pointer being NULL.
1650 * d-lang.c (d_language_data): Delete la_get_compile_instance
1651 initializer.
1652 * f-lang.c (f_language_data): Likewise.
1653 * go-lang.c (go_language_data): Likewise.
1654 * language.c (unknown_language_data): Likewise.
1655 (auto_language_data): Likewise.
1656 * language.h (language_data): Delete la_get_compile_instance field.
1657 (language_defn::get_compile_instance): New member function.
1658 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1659 initializer.
1660 * objc-lang.c (objc_language_data): Likewise.
1661 * opencl-lang.c (opencl_language_data): Likewise.
1662 * p-lang.c (pascal_language_data): Likewise.
1663 * rust-lang.c (rust_language_data): Likewise.
1664
4009ee92
AB
16652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * ada-lang.c (ada_add_all_symbols): Update comment.
1668 (ada_iterate_over_symbols): Delete, move implementation to...
1669 (ada_language::iterate_over_symbols): ...here, a new member
1670 function, rewrite to use range based for loop.
1671 (ada_language_data): Delete la_iterate_over_symbols initializer.
1672 * c-lang.c (c_language_data): Likewise.
1673 (cplus_language_data): Likewise.
1674 (asm_language_data): Likewise.
1675 (minimal_language_data): Likewise.
1676 * d-lang.c (d_language_data): Likewise.
1677 * f-lang.c (f_language_data): Likewise.
1678 * go-lang.c (go_language_data): Likewise.
1679 * language.c (unknown_language_data): Likewise.
1680 (auto_language_data): Likewise.
1681 * language.h (language_data): Delete la_iterate_over_symbols field.
1682 (language_defn::iterate_over_symbols): New member function.
1683 (LA_ITERATE_OVER_SYMBOLS): Update.
1684 * linespec.c (iterate_over_all_matching_symtabs): Update.
1685 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1686 initializer.
1687 * objc-lang.c (objc_language_data): Likewise.
1688 * opencl-lang.c (opencl_language_data): Likewise.
1689 * p-lang.c (pascal_language_data): Likewise.
1690 * rust-lang.c (rust_language_data): Likewise.
1691
54f4ca46
AB
16922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * ada-lang.c (ada_language_data): Delete
1695 la_lookup_transparent_type initializer.
1696 * c-lang.c (c_language_data): Likewise.
1697 (cplus_language_data): Likewise.
1698 (cplus_language::lookup_transparent_type): New member function.
1699 (asm_language_data): Delete la_lookup_transparent_type
1700 initializer.
1701 (minimal_language_data): Likewise.
1702 * d-lang.c (d_language_data): Likewise.
1703 * f-lang.c (f_language_data): Likewise.
1704 * go-lang.c (go_language_data): Likewise.
1705 * language.c (unknown_language_data): Likewise.
1706 (auto_language_data): Likewise.
1707 * language.h (struct language_data): Delete
1708 la_lookup_transparent_type field.
1709 (language_defn::lookup_transparent_type): New member function.
1710 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1711 initializer.
1712 * objc-lang.c (objc_language_data): Likewise.
1713 * opencl-lang.c (opencl_language_data): Likewise.
1714 * p-lang.c (pascal_language_data): Likewise.
1715 * rust-lang.c (rust_language_data): Likewise.
1716 * symtab.c (symbol_matches_domain): Update call.
1717
1fb314aa
AB
17182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * ada-lang.c (ada_language_arch_info): Delete function, move
1721 implementation to...
1722 (ada_language::language_arch_info): ...here, a new member
1723 function.
1724 (ada_language_data): Delete la_language_arch_info.
1725 * c-lang.c (c_language_data): Likewise.
1726 (c_language::language_arch_info): New member function.
1727 (cplus_language_arch_info): Delete function, move
1728 implementation to...
1729 (cplus_language::language_arch_info): ...here, a new member
1730 function.
1731 (cplus_language_data): Delete la_language_arch_info.
1732 (asm_language_data): Likewise.
1733 (asm_language::language_arch_info): New member function.
1734 (minimal_language_data): Delete la_language_arch_info.
1735 (minimal_language::language_arch_info): New member function.
1736 * d-lang.c (d_language_arch_info): Delete function, move
1737 implementation to...
1738 (d_language::language_arch_info): ...here, a new member
1739 function.
1740 (d_language_data): Delete la_language_arch_info.
1741 * f-lang.c (f_language_arch_info): Delete function, move
1742 implementation to...
1743 (f_language::language_arch_info): ...here, a new member
1744 function.
1745 (f_language_data): Delete la_language_arch_info.
1746 * go-lang.c (go_language_arch_info): Delete function, move
1747 implementation to...
1748 (go_language::language_arch_info): ...here, a new member
1749 function.
1750 (go_language_data): Delete la_language_arch_info.
1751 * language.c (unknown_language_data): Likewise.
1752 (unknown_language::language_arch_info): New member function.
1753 (auto_language_data): Delete la_language_arch_info.
1754 (auto_language::language_arch_info): New member function.
1755 (language_gdbarch_post_init): Update call to
1756 la_language_arch_info.
1757 * language.h (language_data): Delete la_language_arch_info
1758 function pointer.
1759 (language_defn::language_arch_info): New function.
1760 * m2-lang.c (m2_language_arch_info): Delete function, move
1761 implementation to...
1762 (m2_language::language_arch_info): ...here, a new member
1763 function.
1764 (m2_language_data): Delete la_language_arch_info.
1765 * objc-lang.c (objc_language_arch_info): Delete function, move
1766 implementation to...
1767 (objc_language::language_arch_info): ...here, a new member
1768 function.
1769 (objc_language_data): Delete la_language_arch_info.
1770 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1771 implementation to...
1772 (opencl_language::language_arch_info): ...here, a new member
1773 function.
1774 (opencl_language_data): Delete la_language_arch_info.
1775 * p-lang.c (pascal_language_arch_info): Delete function, move
1776 implementation to...
1777 (pascal_language::language_arch_info): ...here, a new member
1778 function.
1779 (pascal_language_data): Delete la_language_arch_info.
1780 * rust-lang.c (rust_language_arch_info): Delete function, move
1781 implementation to...
1782 (rust_language::language_arch_info): ...here, a new member
1783 function.
1784 (rust_language_data): Delete la_language_arch_info.
1785
48448202
AB
17862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1789 initializer.
1790 * c-lang.c (c_language_data): Likewise.
1791 (cplus_language_data): Likewise.
1792 (cplus_language::pass_by_reference_info): New method.
1793 (asm_language_data): Delete la_pass_by_reference initializer.
1794 (minimal_language_data): Likewise.
1795 * cp-abi.c (cp_pass_by_reference): Remove use of
1796 default_pass_by_reference.
1797 * d-lang.c (d_language_data): Likewise.
1798 * f-lang.c (f_language_data): Likewise.
1799 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1800 default_pass_by_reference.
1801 * go-lang.c (go_language_data): Likewise.
1802 * language.c (language_pass_by_reference): Update.
1803 (default_pass_by_reference): Delete.
1804 (unknown_language_data): Delete la_pass_by_reference
1805 initializer.
1806 (auto_language_data): Likewise.
1807 * language.h (struct language_data): Delete la_pass_by_reference
1808 field.
1809 (language_defn::pass_by_reference_info): New member function.
1810 (default_pass_by_reference): Delete declaration.
1811 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1812 initializer.
1813 * objc-lang.c (objc_language_data): Likewise.
1814 * opencl-lang.c (opencl_language_data): Likewise.
1815 * p-lang.c (pascal_language_data): Likewise.
1816 * rust-lang.c (rust_language_data): Likewise.
1817
15e5fd35
AB
18182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * ada-lang.c (ada_read_var_value): Delete function, move
1821 implementation to...
1822 (ada_language::read_var_value): ...here.
1823 (ada_language_data): Delete la_read_var_value initializer.
1824 * c-lang.c (c_language_data): Likewise.
1825 (cplus_language_data): Likewise.
1826 (minimal_language_data): Likewise.
1827 * d-lang.c (d_language_data): Likewise.
1828 * f-lang.c (f_language_data): Likewise.
1829 * findvar.c (default_read_var_value): Rename to...
1830 (language_defn::read_var_value): ...this.
1831 * findvar.c (read_var_value): Update header comment, and change to
1832 call member function instead of function pointer.
1833 * go-lang.c (go_language_data): Likewise.
1834 * language.c (unknown_language_data): Delete la_read_var_value
1835 initializer.
1836 (auto_language_data): Likewise.
1837 * language.h (struct language_data): Delete la_read_var_value
1838 field.
1839 (language_defn::read_var_value): New member function.
1840 (default_read_var_value): Delete declaration.
1841 * m2-lang.c (m2_language_data): Delete la_read_var_value
1842 initializer.
1843 * objc-lang.c (objc_language_data): Likewise.
1844 * opencl-lang.c (opencl_language_data): Likewise.
1845 * p-lang.c (pascal_language_data): Likewise.
1846 * rust-lang.c (rust_language_data): Likewise.
1847 * value.h (default_read_var_value): Delete declaration.
1848
5bd40f2a
AB
18492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * ada-lang.c (ada_print_array_index): Delete function, move
1852 implementation to...
1853 (ada_language::print_array_index): ...here.
1854 (ada_language_data): Delete la_print_array_index initializer.
1855 * c-lang.c (c_language_data): Likewise.
1856 (cplus_language_data): Likewise.
1857 (minimal_language_data): Likewise.
1858 * d-lang.c (d_language_data): Likewise.
1859 * f-lang.c (f_language_data): Likewise.
1860 * go-lang.c (go_language_data): Likewise.
1861 * language.c (default_print_array_index): Delete function, move
1862 implementation to...
1863 (language_defn::print_array_index): ...here.
1864 (unknown_language_data): Delete la_print_array_index initializer.
1865 (auto_language_data): Likewise.
1866 * language.h (struct language_data): Delete la_print_array_index
1867 field.
1868 (language_defn::print_array_index): New member function.
1869 (LA_PRINT_ARRAY_INDEX): Update.
1870 (default_print_array_index): Delete declaration.
1871 * m2-lang.c (m2_language_data): Delete la_print_array_index
1872 initializer.
1873 * objc-lang.c (objc_language_data): Likewise.
1874 * opencl-lang.c (opencl_language_data): Likewise.
1875 * p-lang.c (pascal_language_data): Likewise.
1876 * rust-lang.c (rust_language_data): Likewise.
1877
0874fd07
AB
18782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * gdb/ada-lang.c (ada_language_defn): Convert to...
1881 (ada_language_data): ...this.
1882 (class ada_language): New class.
1883 (ada_language_defn): New static global.
1884 * gdb/c-lang.c (c_language_defn): Convert to...
1885 (c_language_data): ...this.
1886 (class c_language): New class.
1887 (c_language_defn): New static global.
1888 (cplus_language_defn): Convert to...
1889 (cplus_language_data): ...this.
1890 (class cplus_language): New class.
1891 (cplus_language_defn): New static global.
1892 (asm_language_defn): Convert to...
1893 (asm_language_data): ...this.
1894 (class asm_language): New class.
1895 (asm_language_defn): New static global.
1896 (minimal_language_defn): Convert to...
1897 (minimal_language_data): ...this.
1898 (class minimal_language): New class.
1899 (minimal_language_defn): New static global.
1900 * gdb/d-lang.c (d_language_defn): Convert to...
1901 (d_language_data): ...this.
1902 (class d_language): New class.
1903 (d_language_defn): New static global.
1904 * gdb/f-lang.c (f_language_defn): Convert to...
1905 (f_language_data): ...this.
1906 (class f_language): New class.
1907 (f_language_defn): New static global.
1908 * gdb/go-lang.c (go_language_defn): Convert to...
1909 (go_language_data): ...this.
1910 (class go_language): New class.
1911 (go_language_defn): New static global.
1912 * gdb/language.c (unknown_language_defn): Remove declaration.
1913 (current_language): Initialize to nullptr, real initialization is
1914 moved to _initialize_language.
1915 (languages): Delete global.
1916 (language_defn::languages): Define.
1917 (set_language_command): Use language_defn::languages.
1918 (set_language): Likewise.
1919 (range_error): Likewise.
1920 (language_enum): Likewise.
1921 (language_def): Likewise.
1922 (add_set_language_command): Use language_def::languages for the
1923 language list, and language_def to lookup language pointers.
1924 (skip_language_trampoline): Use language_defn::languages.
1925 (unknown_language_defn): Convert to...
1926 (unknown_language_data): ...this.
1927 (class unknown_language): New class.
1928 (unknown_language_defn): New static global.
1929 (auto_language_defn): Convert to...
1930 (auto_language_data): ...this.
1931 (class auto_language): New class.
1932 (auto_language_defn): New static global.
1933 (language_gdbarch_post_init): Use language_defn::languages.
1934 (_initialize_language): Initialize current_language.
1935 * gdb/language.h (struct language_defn): Rename to...
1936 (struct language_data): ...this.
1937 (struct language_defn): New.
1938 (auto_language_defn): Delete.
1939 (unknown_language_defn): Delete.
1940 (minimal_language_defn): Delete.
1941 (ada_language_defn): Delete.
1942 (asm_language_defn): Delete.
1943 (c_language_defn): Delete.
1944 (cplus_language_defn): Delete.
1945 (d_language_defn): Delete.
1946 (f_language_defn): Delete.
1947 (go_language_defn): Delete.
1948 (m2_language_defn): Delete.
1949 (objc_language_defn): Delete.
1950 (opencl_language_defn): Delete.
1951 (pascal_language_defn): Delete.
1952 (rust_language_defn): Delete.
1953 * gdb/m2-lang.c (m2_language_defn): Convert to...
1954 (m2_language_data): ...this.
1955 (class m2_language): New class.
1956 (m2_language_defn): New static global.
1957 * gdb/objc-lang.c (objc_language_defn): Convert to...
1958 (objc_language_data): ...this.
1959 (class objc_language): New class.
1960 (objc_language_defn): New static global.
1961 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
1962 (opencl_language_data): ...this.
1963 (class opencl_language): New class.
1964 (opencl_language_defn): New static global.
1965 * gdb/p-lang.c (pascal_language_defn): Convert to...
1966 (pascal_language_data): ...this.
1967 (class pascal_language): New class.
1968 (pascal_language_defn): New static global.
1969 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
1970 language pointer, update comment format.
1971 * gdb/rust-lang.c (rust_language_defn): Convert to...
1972 (rust_language_data): ...this.
1973 (class rust_language): New class.
1974 (rust_language_defn): New static global.
1975
1313c56e
AB
19762020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
1979 member variable.
1980 <m_stmt_at_address>: New member variable.
1981 (lnp_state_machine::record_line): Don't record some lines, update
1982 tracking of is_stmt at the same address.
1983 (lnp_state_machine::lnp_state_machine): Initialise new member
1984 variables.
1985
b7ed9f3d
ST
19862020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1987
1988 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
1989 "-include gnu-nat-mig.h".
1990 * gnu-nat-mig.h: New file.
1991 * gnu-nat.c: Include "gnu-nat-mig.h".
1992 (exc_server, msg_reply_server, notify_server,
1993 process_reply_server): Remove declarations.
1994
14a8ad62
ST
19952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1996
1997 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
1998 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
1999 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2000 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2001 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2002 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2003 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2004 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2005 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2006 to gnu_nat_target class.
2007 * gnu-nat.c: Likewise.
2008 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2009 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2010 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2011 object.
2012 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2013 instead of `gnu_target'.
2014
0af5e106
ST
20152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2016
2017 * i386-gnu-tdep.c: Include "gdbcore.h"
2018 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2019 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2020 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2021 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2022 i386_gnu_sigcontext_addr): New functions
2023 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2024 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2025 tdep.
2026
078f2fc9
ST
20272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2028
2029 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2030 before fork_inferior call. Avoid calling it if target_is_pushed returns
2031 true.
2032
53dff92c
ST
20332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2034
2035 * gnu-nat.h (gnu_target): New variable declaration.
2036 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2037 gnu_target.
2038 * gnu-nat.c (gnu_target): New variable.
2039 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2040 add_thread_silent, and add_thread calls.
2041 (gnu_nat_target::create_inferior): Pass gnu_target to
2042 add_thread_silent, thread_change_ptid call.
2043 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2044 call.
2045
5a8b8627
ST
20462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2047
2048 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2049 (gnu_nat_target::find_memory_regions): Remove unused
2050 `old_address' variable.
2051
366f550a
ST
20522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2053
2054 * gnu-nat.c: Include "gdbarch.h".
2055
f14871bf
ST
20562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2057
2058 * reply_mig_hack.awk (Error return): Cast function through
2059 void *, to bypass compiler function call check.
2060
c6887cfb
ST
20612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2062
2063 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2064 $(srcdir)/reply_mig_hack.awk.
2065
6930bffe
ST
20662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2067
2068 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2069
112c22ed
JG
20702020-05-30 Jonny Grant <jg@jguk.org>
2071
2072 * configure.ac (ACX_BUGURL): change bug URL to https.
2073
f68f85b5
PA
20742020-05-30 Pedro Alves <palves@redhat.com>
2075
2076 * cp-support.c (replace_typedefs_template): New.
2077 (replace_typedefs_qualified_name): Handle
2078 DEMANGLE_COMPONENT_TEMPLATE.
2079
976ca316
SM
20802020-05-29 Simon Marchi <simon.marchi@efficios.com>
2081
2082 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2083 dwarf2/index-cache.h, dwarf2/index-write.c,
2084 dwarf2/index-write.h, dwarf2/line-header.c,
2085 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2086 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2087 variables and fields from `dwarf2_per_objfile` to just
2088 `per_objfile` throughout.
2089
989ade05
SM
20902020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2091
2092 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2093 <push_dwarf_reg_entry_value>: Add comment.
2094
c47bae85
KB
20952020-05-28 Kevin Buettner <kevinb@redhat.com>
2096 Keith Seitz <keiths@redhat.com>
2097
2098 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2099 instead of PyEval_ReleaseLock.
2100 (class gdbpy_gil): Move to earlier in file.
2101 (finalize_python): Set gdb_python_initialized.
2102 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2103 when not initialized.
2104
44486dcf
SM
21052020-05-28 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2108 <push_dwarf_reg_entry_value>: Remove assert. Override
2109 per_objfile with caller_per_objfile.
2110
f030440d
TV
21112020-05-28 Tom de Vries <tdevries@suse.de>
2112
2113 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2114 PR gold/15646 workaround to symbol kind "type".
2115
f0fbb768
TT
21162020-05-27 Tom Tromey <tromey@adacore.com>
2117
2118 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2119
af0b2a3e
TT
21202020-05-27 Tom Tromey <tromey@adacore.com>
2121
2122 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2123 Use htab_find_with_hash.
2124 <add_abbrev>: Remove "abbrev_number" parameter.
2125 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2126 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2127 (hash_abbrev): Add comment.
2128 (abbrev_table::lookup_abbrev): Move to header file.
2129 (abbrev_table::read): Update.
2130
7d00ffec
TT
21312020-05-27 Tom Tromey <tromey@adacore.com>
2132
2133 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2134 method.
2135 <canonical_name>: New member.
2136 <raw_name>: Rename from "name".
2137 (partial_die_info): Initialize canonical_name.
2138 (scan_partial_symbols): Check raw_name.
2139 (partial_die_parent_scope, partial_die_full_name)
2140 (add_partial_symbol, add_partial_subprogram)
2141 (add_partial_enumeration, load_partial_dies): Use "name" method.
2142 (partial_die_info::name): New method.
2143 (partial_die_info::read, guess_partial_die_structure_name)
2144 (partial_die_info::fixup): Update.
2145
697bba18
TT
21462020-05-27 Tom Tromey <tromey@adacore.com>
2147
2148 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2149 <get_ref_die_offset>: Inline.
2150 <get_ref_die_offset_complaint>: New method.
2151 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2152 (attribute::get_ref_die_offset_complaint): Rename from
2153 get_ref_die_offset. Just issue complaint.
2154
c17ace43
HD
21552020-05-27 Hannes Domani <ssbssa@yahoo.de>
2156
2157 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2158
96445f0b
HD
21592020-05-27 Hannes Domani <ssbssa@yahoo.de>
2160
2161 * exec.c (exec_file_attach): Use errno value of first openp failure.
2162
ac637ec3
HD
21632020-05-27 Hannes Domani <ssbssa@yahoo.de>
2164
2165 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2166 Don't close thread handle.
2167
17ee85fc
TT
21682020-05-27 Tom Tromey <tom@tromey.com>
2169 Simon Marchi <simon.marchi@efficios.com>
2170
2171 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2172 shared_ptr.
2173 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2174 member.
2175 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2176 dwarf2_per_bfd_objfile_data_key>: New globals.
2177 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2178 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2179 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2180 shared.
2181 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2182 short-circuit when sharing.
2183 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2184 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2185
39b16f87
SM
21862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2187
2188 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2189 to...
2190 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2191 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2192
fcf23d5b
SM
21932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2194
2195 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2196 build_name_components, find_name_components_bounds>:
2197 Add per_objfile parameter.
2198 (struct mapped_index) <symbol_name_at>: Likewise.
2199 (struct mapped_debug_names): Remove constructor.
2200 <dwarf2_per_objfile>: Remove field.
2201 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2202 (mapped_index_base::find_name_components_bounds,
2203 mapped_index_base::build_name_components,
2204 dw2_expand_symtabs_matching_symbol): Likewise.
2205 (class mock_mapped_index) <symbol_name_at>: Likewise.
2206 (check_match): Likewise.
2207 (check_find_bounds_finds): Likewise.
2208 (test_mapped_index_find_name_component_bounds): Update.
2209 (CHECK_MATCH): Update.
2210 (dw2_expand_symtabs_matching): Update.
2211 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2212 per_objfile parameter.
2213 <find_vec_in_debug_names>: Likewise.
2214 <m_per_objfile>: New field.
2215 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2216 parameter.
2217 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2218 (dw2_debug_names_iterator::next): Update.
2219 (dw2_debug_names_lookup_symbol): Update.
2220 (dw2_debug_names_expand_symtabs_for_function): Update.
2221 (dw2_debug_names_map_matching_symbols): Update.
2222 (dw2_debug_names_expand_symtabs_matching): Update.
2223 (dwarf2_read_debug_names): Update.
2224
7188ed02
SM
22252020-05-27 Simon Marchi <simon.marchi@efficios.com>
2226
2227 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2228 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2229 move to dwarf2_per_objfile.
2230 <read_in_chain>: Remove.
2231 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2232 remove_all_cus, age_comp_units>: New methods.
2233 <m_dwarf2_cus>: New member.
2234 (struct dwarf2_per_cu_data) <cu>: Remove.
2235 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2236 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2237 moved to methods of dwarf2_per_objfile.
2238 (dwarf2_clear_marks): Remove.
2239 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2240 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2241 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2242 (dwarf2_per_objfile::remove_all_cus): New.
2243 (class free_cached_comp_units) <~free_cached_comp_units>:
2244 Update.
2245 (load_cu): Update.
2246 (dw2_do_instantiate_symtab): Adjust.
2247 (fill_in_sig_entry_from_dwo_entry): Adjust.
2248 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2249 (cutu_reader::cutu_reader): Likewise.
2250 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2251 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2252 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2253 and dwarf2_per_objfile::age_comp_units.
2254 (load_partial_comp_unit): Update.
2255 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2256 (process_queue): Likewise.
2257 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2258 backlink.
2259 (dwarf2_read_addr_index): Likewise.
2260 (follow_die_offset): Likewise.
2261 (dwarf2_fetch_die_loc_sect_off): Likewise.
2262 (dwarf2_fetch_constant_bytes): Likewise.
2263 (dwarf2_fetch_die_type_sect_off): Likewise.
2264 (follow_die_sig_1): Likewise.
2265 (load_full_type_unit): Likewise.
2266 (read_signatured_type): Likewise.
2267 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2268 (dwarf2_cu::~dwarf2_cu): Remove.
2269 (dwarf2_per_objfile::get_cu): New.
2270 (dwarf2_per_objfile::set_cu): New.
2271 (age_cached_comp_units): Rename to...
2272 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2273 to std::unordered_map.
2274 (free_one_cached_comp_unit): Rename to...
2275 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2276 to std::unordered_map.
2277 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2278 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2279 a dwarf2_per_objfile in data.
2280 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2281 (dwarf2_clear_marks): Remove.
2282
2e671100
SM
22832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2284
2285 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2286 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2287 (init_tu_and_read_dwo_dies): Likewise.
2288 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2289 (cutu_reader::cutu_reader): Likewise.
2290 (load_partial_comp_unit): Likewise.
2291 (process_psymtab_comp_unit): Update.
2292 (build_type_psymtabs_1): Update.
2293 (process_skeletonless_type_unit): Update.
2294 (load_full_comp_unit): Update.
2295 (find_partial_die): Update.
2296 (dwarf2_read_addr_index): Update.
2297 (read_signatured_type): Update.
2298
2e6a9f79
SM
22992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2300
2301 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2302 m_header_read_in>: New fields.
2303 <get_header>: New method.
2304 * dwarf2/read.c (per_cu_header_read_in): Remove.
2305 (dwarf2_per_cu_data::get_header): New.
2306 (dwarf2_per_cu_data::addr_size): Update.
2307 (dwarf2_per_cu_data::offset_size): Update.
2308 (dwarf2_per_cu_data::ref_addr_size): Update.
2309
1b555f17
SM
23102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2311
2312 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2313 (dw2_do_instantiate_symtab): Update.
2314 (queue_and_load_all_dwo_tus): Change parameter from
2315 dwarf2_per_cu_data to dwarf2_cu.
2316 (dwarf2_fetch_die_loc_sect_off): Update.
2317 (dwarf2_fetch_constant_bytes): Update.
2318 (dwarf2_fetch_die_type_sect_off): Update.
2319
8fc0b21d
SM
23202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2321
2322 * dwarf2/read.c (process_full_comp_unit,
2323 process_full_type_unit): Remove per_cu, per_objfile paramters.
2324 Add dwarf2_cu parameter.
2325 (process_queue): Update.
2326
168c9250
SM
23272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2328
2329 * dwarf2/read.c (create_cu_from_index_list): Replace
2330 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2331 (create_cus_from_index_list): Likewise.
2332 (create_cus_from_index): Likewise.
2333 (create_signatured_type_table_from_index): Likewise.
2334 (create_cus_from_debug_names_list): Likewise.
2335 (create_cus_from_debug_names): Likewise.
2336 (dwarf2_read_gdb_index): Update.
2337 (dwarf2_read_debug_names): Update.
2338
e286671b
TT
23392020-05-27 Tom Tromey <tom@tromey.com>
2340 Simon Marchi <simon.marchi@efficios.com>
2341
2342 * dwarf2/read.h (struct dwarf2_per_objfile)
2343 <get_type_for_signatured_type, set_type_for_signatured_type>:
2344 New methods.
2345 <m_type_map>: New member.
2346 (struct signatured_type) <type>: Remove.
2347 * dwarf2/read.c
2348 (dwarf2_per_objfile::get_type_for_signatured_type,
2349 dwarf2_per_objfile::set_type_for_signatured_type): New.
2350 (get_signatured_type): Use new methods.
2351
8adb8487
TT
23522020-05-27 Tom Tromey <tom@tromey.com>
2353 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2356 (struct dwarf2_per_objfile) <type_units>: New member.
2357 <get_type_unit_group_unshareable>: New method.
2358 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2359 num_symtabs, symtabs>: Remove; move to
2360 type_unit_group_unshareable.
2361 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2362 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2363 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2364
127bbf4b
SM
23652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * dwarf2/read.h (struct dwarf2_per_cu_data):
2368 <dwarf2_per_objfile>: Remove.
2369 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2370 dwarf2_per_objfile.
2371 (create_signatured_type_table_from_index): Likewise.
2372 (create_signatured_type_table_from_debug_names): Likewise.
2373 (create_debug_type_hash_table): Likewise.
2374 (fill_in_sig_entry_from_dwo_entry): Likewise.
2375 (create_type_unit_group): Likewise.
2376 (read_comp_units_from_section): Likewise.
2377 (create_cus_hash_table): Likewise.
2378
f6e649dd
SM
23792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2380
2381 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2382 dwarf2_per_cu_data::dwarf2_per_objfile.
2383 (compute_compunit_symtab_includes): Likewise.
2384 (dwarf2_cu::start_symtab): Likewise.
2385
aa66c379
SM
23862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2387
2388 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2389 parameter.
2390 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2391 (read_namespace_alias): Update.
2392 (lookup_die_type): Update.
2393 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2394 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2395 Update.
2396 (disassemble_dwarf_expression): Update.
2397
120ce1b5
SM
23982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * dwarf2/read.h (struct dwarf2_queue_item): Add
2401 dwarf2_per_objfile parameter, assign new parameter.
2402 <per_objfile>: New field.
2403 * dwarf2/read.c (free_one_cached_comp_unit): Add
2404 dwarf2_per_objfile parameter.
2405 (queue_comp_unit): Likewise.
2406 (dw2_do_instantiate_symtab): Update.
2407 (process_psymtab_comp_unit): Update.
2408 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2409 (process_imported_unit_die): Update.
2410 (queue_and_load_dwo_tu): Update.
2411 (follow_die_offset): Update.
2412 (follow_die_sig_1): Update.
2413
9f47c707
SM
24142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2417 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2418 (read_call_site_scope): Assign per_objfile.
2419 (dwarf2_per_cu_data::objfile): Remove.
2420 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2421 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2422 dwarf2_per_objfile parameter.
2423 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2424 dwarf2_per_objfile parameter.
2425 (dwarf_expr_reg_to_entry_parameter): Add output
2426 dwarf2_per_objfile parameter.
2427 (locexpr_get_frame_base): Update.
2428 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2429 <push_dwarf_reg_entry_value>: Update.
2430 <call_site_to_target_addr>: Update.
2431 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2432 parameter.
2433 (value_of_dwarf_reg_entry): Update.
2434 (rw_pieced_value): Update.
2435 (indirect_synthetic_pointer): Update.
2436 (dwarf2_evaluate_property): Update.
2437 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2438 parameter.
2439 (locexpr_read_variable): Update.
2440 (locexpr_get_symbol_read_needs): Update.
2441 (loclist_read_variable): Update.
2442
14095eb3
SM
24432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2444
2445 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2446 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2447 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2448 parameter.
2449 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2450 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2451 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2452 parameter.
2453 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2454 sect_variable_value): Add dwarf2_per_objfile parameter.
2455 (class dwarf_evaluate_loc_desc) <dwarf_call,
2456 dwarf_variable_value>: Update.
2457 (fetch_const_value_from_synthetic_pointer): Add
2458 dwarf2_per_objfile parameter.
2459 (fetch_const_value_from_synthetic_pointer): Update.
2460 (coerced_pieced_ref): Update.
2461 (class symbol_needs_eval_context) <dwarf_call,
2462 dwarf_variable_value>: Update.
2463 (dwarf2_compile_expr_to_ax): Update.
2464
3c3cd3d4
SM
24652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2466
2467 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2468 parameter.
2469 (dwarf2_evaluate_loc_desc_full): Update.
2470
82ca3f51
SM
24712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2472
2473 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2474 parameter.
2475 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2476 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2477 dwarf2_per_objfile parameter.
2478 (decode_debug_loc_dwo_addresses): Likewise.
2479 (dwarf2_find_location_expression): Update.
2480 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2481 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2482 parameter.
2483 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2484 parameter.
2485 (locexpr_describe_location_1): Likewise.
2486 (locexpr_describe_location): Update.
2487
4b167ea1
SM
24882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2489
2490 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2491 Remove.
2492 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2493 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2494 (dwarf2_compile_property_to_c): Update.
2495 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2496 use text offset from objfile.
2497 (locexpr_tracepoint_var_ref): Update.
2498 (locexpr_generate_c_location): Update.
2499 (loclist_describe_location): Update.
2500 (loclist_tracepoint_var_ref): Update.
2501 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2502 dwarf2_per_objfile parameter.
2503 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2504 use text offset from objfile.
2505 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2506
89b07335
SM
25072020-05-27 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * dwarf2/expr.h (struct dwarf_expr_context)
2510 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2511 <offset>: Remove.
2512 <per_objfile>: New member.
2513 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2514 dwarf2_per_objfile parameter. Don't set offset, set
2515 per_objfile.
2516 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2517 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2518 a dwarf2_per_objfile object instead of an offset.
2519 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2520 constructor.
2521 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2522 to dwarf2_expr_executor constructor. Don't set offset.
2523 (dwarf2_fetch_cfa_info): Update.
2524 (struct dwarf2_frame_cache) <text_offset>: Remove.
2525 <per_objfile>: New field.
2526 (dwarf2_frame_cache): Update.
2527 (dwarf2_frame_prev_register): Update.
2528 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2529 <dwarf_evaluate_loc_desc>: Add constructor.
2530 (dwarf2_evaluate_loc_desc_full): Update.
2531 (dwarf2_locexpr_baton_eval): Update.
2532 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2533 Add constructor.
2534 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2535
293e7e51
SM
25362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2537
2538 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2539 addr_sized_int_type>: Move to dwarf2_cu.
2540 <int_type>: Move to dwarf2_per_objfile.
2541 (struct dwarf2_per_objfile) <int_type>: Move here.
2542 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2543 addr_sized_int_type>: Move here.
2544 (read_func_scope): Update.
2545 (read_array_type): Update.
2546 (read_tag_string_type): Update.
2547 (attr_to_dynamic_prop): Update.
2548 (dwarf2_per_cu_data::int_type): Rename to...
2549 (dwarf2_per_objfile::int_type): ... this.
2550 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2551 (dwarf2_cu::addr_sized_int_type): ... this.
2552 (read_subrange_type): Update.
2553 (dwarf2_per_cu_data::addr_type): Rename to...
2554 (dwarf2_cu::addr_type): ... this.
2555 (set_die_type): Update.
2556
64874a40
SM
25572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2560 data through per_cu->cu.
2561
4ab09049
SM
25622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2565 dwarf2_per_cu_data parameter fo dwarf2_cu.
2566 (lookup_dwo_type_unit): Likewise.
2567 (read_cutu_die_from_dwo): Likewise.
2568 (lookup_dwo_unit): Likewise.
2569 (open_and_init_dwo_file): Likewise.
2570 (lookup_dwo_cutu): Likewise.
2571 (lookup_dwo_comp_unit): Likewise.
2572 (lookup_dwo_type_unit): Likewise.
2573 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2574 (cutu_reader::cutu_reader): Update.
2575
47b14e86
SM
25762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2577
2578 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2579 parameter.
2580 (process_full_type_unit): Likewise.
2581 (process_queue): Update.
2582
43182c09
SM
25832020-05-27 Simon Marchi <simon.marchi@efficios.com>
2584
2585 * dwarf2/read.c (recursively_compute_inclusions): Add
2586 dwarf2_per_objfile parameter.
2587 (compute_compunit_symtab_includes): Likewise.
2588 (process_cu_includes): Update.
2589
7aa104c4
SM
25902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2593 parameter.
2594 (create_type_unit_group): Update.
2595 (process_psymtab_comp_unit_reader): Update.
2596 (build_type_psymtabs_reader): Update.
2597
e3beb21d
SM
25982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2599
2600 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2601 object through m_this_cu->cu.
2602
d460f660
SM
26032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2606 the info parameter.
2607 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2608
ab432490
SM
26092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2610
2611 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2612 per_objfile parameter.
2613 (load_full_type_unit): Add per_objfile parameter.
2614 (read_signatured_type): Likewise.
2615 (load_full_comp_unit): Likewise.
2616 (load_cu): Likewise.
2617 (dw2_do_instantiate_symtab): Likewise.
2618 (dw2_get_file_names): Likewise.
2619 (dw2_map_symtabs_matching_filename): Update.
2620 (dw_expand_symtabs_matching_file_matcher): Update.
2621 (dw2_map_symbol_filenames): Update.
2622 (process_psymtab_comp_unit): Add per_objfile parameter.
2623 (build_type_psymtabs_1): Update.
2624 (process_skeletonless_type_unit): Update.
2625 (dwarf2_build_psymtabs_hard): Update.
2626 (load_partial_comp_unit): Add per_objfile parameter.
2627 (scan_partial_symbols): Update.
2628 (load_full_comp_unit): Add per_objfile parameter.
2629 (process_imported_unit_die): Update.
2630 (create_cus_hash_table): Update.
2631 (find_partial_die): Update.
2632 (dwarf2_read_addr_index): Update.
2633 (follow_die_offset): Update.
2634 (dwarf2_fetch_die_loc_sect_off): Update.
2635 (dwarf2_fetch_constant_bytes): Update.
2636 (dwarf2_fetch_die_type_sect_off): Update.
2637 (follow_die_sig_1): Update.
2638 (load_full_type_unit): Add per_objfile parameter.
2639 (read_signatured_type): Likewise.
2640
313bad1b
SM
26412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2644 of objfile_name.
2645
c3699833
SM
26462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2649 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2650 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2651 field.
2652 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2653 (create_cus_from_index): Update.
2654 (dwarf2_read_gdb_index): Update.
2655 (create_cus_from_debug_names): Update.
2656 (dwarf2_read_debug_names): Update.
2657 (get_abbrev_section_for_cu): Update.
2658 (create_all_comp_units): Update.
2659 (read_attribute_value): Update.
2660 (get_debug_line_section): Update.
2661 * dwarf2/index-cache.c (index_cache::store): Update.
2662 * dwarf2/index-write.c (save_gdb_index_command): Update.
2663 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2664
1859c670
SM
26652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2668 member.
2669 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2670 dwarf2_per_cu_data::per_bfd.
2671 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2672 (create_type_unit_group): Likewise.
2673 (queue_comp_unit): Remove reference to
2674 per_cu->dwarf2_per_objfile.
2675 (maybe_queue_comp_unit): Likewise.
2676 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2677 (create_cus_hash_table): Assign new field.
2678
5e22e966
SM
26792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * dwarf2/read.c: Replace
2682 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2683 dwarf2_cu->per_objfile throughout.
2684
97a1449a
SM
26852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2686
2687 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2688 parameter, don't use per_cu->dwarf2_per_objfile.
2689 (dw2_instantiate_symtab): Likewise.
2690 (dw2_find_last_source_symtab): Update.
2691 (dw2_map_expand_apply): Update.
2692 (dw2_lookup_symbol): Update.
2693 (dw2_expand_symtabs_for_function): Update.
2694 (dw2_expand_all_symtabs): Update.
2695 (dw2_expand_symtabs_with_fullname): Update.
2696 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2697 don't use per_cu->dwarf2_per_objfile.
2698 (dw2_expand_marked_cus): Update.
2699 (dw2_find_pc_sect_compunit_symtab): Update.
2700 (dw2_debug_names_lookup_symbol): Update.
2701 (dw2_debug_names_expand_symtabs_for_function): Update.
2702 (dw2_debug_names_map_matching_symbols): Update.
2703 (dwarf2_psymtab::expand_psymtab): Update.
2704
9e021579
SM
27052020-05-27 Simon Marchi <simon.marchi@efficios.com>
2706
2707 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2708 <per_objfile>: New member.
2709 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2710 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2711 call to dwarf2_cu.
2712 (cutu_reader::cutu_reader): Update.
2713 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2714
ae090bdb
SM
27152020-05-27 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2718 struct dwarf2_per_objfile.
2719 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2720 dwarf2_per_bfd.
2721 * dwarf2/read.c (set_die_type): Update.
2722 (get_die_type_at_offset): Update.
2723
af758d11
SM
27242020-05-27 Tom Tromey <tom@tromey.com>
2725 Simon Marchi <simon.marchi@efficios.com>
2726
2727 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2728 method.
2729 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2730 get_symtab, set_symtab>: New methods.
2731 <m_symtabs>: New field.
2732 (struct dwarf2_psymtab): Derive from partial_symtab.
2733 <readin_p, get_compunit_symtab>: Declare methods.
2734 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2735 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2736 New methods.
2737 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2738 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2739 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2740 (dw2_symtab_iter_next, dw2_print_stats)
2741 (dw2_expand_symtabs_with_fullname)
2742 (dw2_expand_symtabs_matching_one)
2743 (dw_expand_symtabs_matching_file_matcher)
2744 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2745 (dw2_debug_names_iterator::next)
2746 (dw2_debug_names_map_matching_symbols)
2747 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2748 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2749 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2750 New methods.
2751 (get_compunit_symtab, process_full_comp_unit)
2752 (process_full_type_unit): Update.
2753 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2754
5989a64e
SM
27552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2756
2757 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2758 then introduce a new dwarf2_per_objfile type.
2759 <read_line_string>: Move to the new dwarf2_per_objfile type.
2760 <objfile>: Likewise.
2761 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2762 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2763 dwarf2_per_objfile->per_bfd.
2764 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2765 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2766 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2767 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2768 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2769 (dwarf2_per_objfile::locate_sections): Rename to...
2770 (dwarf2_per_bfd::locate_sections): ... this.
2771 (dwarf2_per_objfile::get_cutu): Rename to...
2772 (dwarf2_per_bfd::get_cutu): ... this.
2773 (dwarf2_per_objfile::get_cu): Rename to...
2774 (dwarf2_per_bfd::get_cu): ... this.
2775 (dwarf2_per_objfile::get_tu): Rename to...
2776 (dwarf2_per_bfd::get_tu): ... this.
2777 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2778 (dwarf2_per_bfd::allocate_per_cu): ... this.
2779 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2780 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2781 (get_gdb_index_contents_ftype): Change parameter from
2782 dwarf2_per_objfile to dwarf2_per_bfd.
2783 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2784 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2785
a50264ba
TT
27862020-05-27 Tom Tromey <tom@tromey.com>
2787 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2790 (allocate_piece_closure): Set "per_objfile" member.
2791 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2792 (locexpr_describe_location, loclist_describe_location): Use new
2793 member.
2794 * dwarf2/read.c (read_call_site_scope)
2795 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2796 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2797 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2798 handle_data_member_location): Set per_objfile member.
2799 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2800 member.
2801 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2802
d3473f0c
TT
28032020-05-27 Tom Tromey <tom@tromey.com>
2804
2805 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2806 allocate_signatured_type>: Declare new methods.
2807 <m_num_psymtabs>: New member.
2808 (struct dwarf2_per_cu_data) <index>: New member.
2809 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2810 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2811 (create_cu_from_index_list): Use allocate_per_cu.
2812 (create_signatured_type_table_from_index)
2813 (create_signatured_type_table_from_debug_names)
2814 (create_debug_type_hash_table, add_type_unit)
2815 (read_comp_units_from_section): Use allocate_signatured_type.
2816
5717c425
TT
28172020-05-27 Tom Tromey <tom@tromey.com>
2818
2819 * psymtab.c (partial_map_expand_apply)
2820 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2821 (psym_lookup_global_symbol_language)
2822 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2823 (psym_print_stats, psym_expand_symtabs_for_function)
2824 (psym_map_symbol_filenames, psym_map_matching_symbols)
2825 (psym_expand_symtabs_matching)
2826 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2827 (maintenance_check_psymtabs): Update.
2828 * psympriv.h (struct partial_symtab) <readin_p,
2829 get_compunit_symtab>: Add objfile parameter.
2830 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2831 Likewise.
2832 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2833 get_compunit_symtab>: Likewise.
2834 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2835
45940949
TT
28362020-05-27 Tom Tromey <tom@tromey.com>
2837
2838 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2839 member.
2840 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2841 (create_cu_from_index_list)
2842 (create_signatured_type_table_from_index)
2843 (create_signatured_type_table_from_debug_names)
2844 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2845 (dwarf2_create_include_psymtab)
2846 (create_debug_type_hash_table, add_type_unit)
2847 (create_type_unit_group, read_comp_units_from_section)
2848 (dwarf2_compute_name, create_cus_hash_table)
2849 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2850 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2851 obstack.
2852 (dw2_get_real_path): Likewise. Change argument to
2853 dwarf2_per_objfile.
2854
f8c6d152
LM
28552020-05-27 Luis Machado <luis.machado@linaro.org>
2856
2857 PR tdep/26000
2858 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2859 for ldrd (immediate).
2860
e98d2e6d
PW
28612020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2862
2863 * command.h: Add comment giving the name of class_tui.
2864 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2865 create the fake command for the help for class_tui.
2866
53a47a3e
TT
28672020-05-26 Tom Tromey <tromey@adacore.com>
2868
2869 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2870 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2871 (val_atr): New function.
2872 (value_val_atr): Use it.
2873 * ada-valprint.c (print_optional_low_bound): Change low bound
2874 handling for enums.
2875 (val_print_packed_array_elements): Don't call discrete_position.
2876 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2877 discrete_position for enum types.
2878 * language.c (default_print_array_index): Change type.
2879 * language.h (struct language_defn) <la_print_array_index>: Add
2880 index_type parameter, change type of index_value.
2881 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
2882 (default_print_array_index): Update.
2883 * valprint.c (maybe_print_array_index): Don't call
2884 value_from_longest. Update.
2885 (value_print_array_elements): Don't call discrete_position.
2886
0bc2354b
TT
28872020-05-26 Tom Tromey <tromey@adacore.com>
2888
2889 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
2890 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
2891
1218a4bf
CDA
28922020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
2893
2894 PR gdb/13519
2895 * avr-tdep.c (avr_integer_to_address): Return data or code
2896 address accordingly to the second 'type' argument of the
2897 function.
2898
92651b1d
MW
28992020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2900
2901 * infcmd.c, inferior.h: (construct_inferior_arguments):
2902 Moved function from here to gdbsupport/common-inferior.{h,cc}
2903
0a4f5f8c
TT
29042020-05-23 Tom Tromey <tom@tromey.com>
2905
2906 Revert commit eca1f90c:
2907 * NEWS: Remove entry for completion styling.
2908 * completer.c (_rl_completion_prefix_display_length): Move
2909 declaration later.
2910 (gdb_fnprint): Revert.
2911 (gdb_display_match_list_1): Likewise.
2912 * cli/cli-style.c (completion_prefix_style)
2913 (completion_difference_style, completion_suffix_style): Remove.
2914 (_initialize_cli_style): Revert.
2915 * cli/cli-style.h (completion_prefix_style)
2916 (completion_difference_style, completion_suffix_style): Don't
2917 declare.
2918
e08bd6c5
PA
29192020-05-24 Pedro Alves <palves@redhat.com>
2920
2921 * symtab.c (completion_list_add_name): Return boolean indication
2922 of whether the symbol matched.
2923 (completion_list_add_symbol): Don't try to remove C++ aliases if
2924 the symbol didn't match in the first place.
2925 * symtab.h (completion_list_add_name): Return bool.
2926
ceacbf6e
SM
29272020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
2930 type::field.
2931
26f16254
JB
29322020-05-23 Joel Brobecker <brobecker@adacore.com>
2933
2934 GDB 9.2 released.
2935
eca1f90c
TT
29362020-05-23 Tom Tromey <tom@tromey.com>
2937
2938 * NEWS: Add entry for completion styling.
2939 * completer.c (_rl_completion_prefix_display_length): Move
2940 declaration earlier.
2941 (gdb_fnprint): Use completion_style.
2942 (gdb_display_match_list_1): Likewise.
2943 * cli/cli-style.c (completion_prefix_style)
2944 (completion_difference_style, completion_suffix_style): New
2945 globals.
2946 (_initialize_cli_style): Register new globals.
2947 * cli/cli-style.h (completion_prefix_style)
2948 (completion_difference_style, completion_suffix_style): Declare.
2949
51e2cfa2
PA
29502020-05-23 Pedro Alves <palves@redhat.com>
2951
2952 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
2953 (parse_escape): Use ISDIGIT instead of isdigit.
2954 (puts_debug): Use gdb_isprint instead of isprint.
2955 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
2956 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
2957 ISSPACE instead of isspace.
2958 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
2959 instead of isspace.
2960 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
2961 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
2962 instead of isxdigit and ISDIGIT instead of isdigit.
2963
80fc5e77
SM
29642020-05-22 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * gdbtypes.h (struct type) <field>: New method.
2967 (TYPE_FIELDS): Remove, replace all uses with either type::fields
2968 or type::field.
2969
3cabb6b0
SM
29702020-05-22 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
2973 (TYPE_FIELDS): Use type::fields. Change all call sites that
2974 modify the propery to use type::set_fields instead.
2975
1f704f76
SM
29762020-05-22 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
2979 type::num_fields instead.
2980
5e33d5f4
SM
29812020-05-22 Simon Marchi <simon.marchi@efficios.com>
2982
2983 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
2984 methods.
2985 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
2986 that modify the number of fields to use type::set_num_fields
2987 instead.
2988
9392ebb3
TT
29892020-05-22 Tom Tromey <tromey@adacore.com>
2990
2991 * compile/compile-object-load.h (munmap_list_free): Don't
2992 declare.
2993
7c13f4e8
AB
29942020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * annotate.c (annotate_source_line): Update return type, add call
2997 to update current symtab and line.
2998 * annotate.h (annotate_source_line): Update return type, and
2999 extend header comment.
3000 * source.c (info_line_command): Check annotation_level before
3001 calling annotate_source_line.
3002 * stack.c (print_frame_info): If calling annotate_source_line
3003 returns true, then don't print any other source line information.
3004
aa370940
SM
30052020-05-21 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3008
84d53fa9
SM
30092020-05-21 Simon Marchi <simon.marchi@efficios.com>
3010
3011 * coffread.c (patch_type): Remove NULL check before xfree.
3012 * corefile.c (set_gnutarget): Likewise.
3013 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3014 * exec.c (build_section_table): Likewise.
3015 * remote.c (remote_target::pass_signals): Likewise.
3016 * utils.c (n_spaces): Likewise.
3017 * cli/cli-script.c (document_command): Likewise.
3018 * i386-windows-tdep.c (core_process_module_section): Likewise.
3019 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3020
9d428aae
SM
30212020-05-20 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * symfile.c (reread_symbols): Clear objfile's section_offsets
3024 vector and section indices, re-compute them by calling
3025 sym_offsets.
3026
250106a7
TT
30272020-05-20 Tom Tromey <tromey@adacore.com>
3028
3029 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3030 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3031
9a0bacfb
TV
30322020-05-20 Tom de Vries <tdevries@suse.de>
3033
3034 PR symtab/25833
3035 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3036
7b958a48
AM
30372020-05-20 Alan Modra <amodra@gmail.com>
3038
3039 PR 25993
3040 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3041 bfd_set_filename.
3042 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3043 passed to bfd_set_filename.
3044 * symfile-mem.c (add_vsyscall_page): Likewise for string
3045 passed to symbol_file_add_from_memory.
3046 (symbol_file_add_from_memory): Make name param a const char* and
3047 don't strdup.
3048
c7e97679
AM
30492020-05-20 Alan Modra <amodra@gmail.com>
3050
3051 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3052 rather than accessing bfd->filename directly.
3053 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3054 and use bfd_section_name.
3055 * dwarf2/frame.c (decode_frame_entry): Likewise.
3056 * exec.c (exec_set_section_address): Likewise.
3057 * solib-aix.c (solib_aix_bfd_open): Likewise.
3058 * stap-probe.c (get_stap_base_address): Likewise.
3059 * symfile.c (reread_symbols): Likewise.
3060
563c591b
TT
30612020-05-19 Tom Tromey <tromey@adacore.com>
3062
3063 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3064
f408d82c
SM
30652020-05-19 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3068
98c59b52
PA
30692020-05-19 Pedro Alves <palves@redhat.com>
3070
3071 * NEWS (set exec-file-mismatch): Adjust entry.
3072 * exec.c: Include "build-id.h".
3073 (validate_exec_file): Try to match build IDs instead of filenames.
3074 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3075 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3076 and pass down 'warn_if_slow'.
3077 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3078 gdb_bfd_open_closure to pass it down.
3079 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3080
4111f652
PA
30812020-05-19 Pedro Alves <palves@redhat.com>
3082
3083 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3084 * target.c (target_fileio_open_1): Rename to target_fileio_open
3085 and make extern. Use bool.
3086 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3087 (target_fileio_read_alloc_1): Adjust.
3088 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3089 (target_fileio_open_warn_if_slow): Delete declaration.
3090
ad80db5b
PA
30912020-05-19 Pedro Alves <palves@redhat.com>
3092
3093 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3094 Adjust all callers.
3095
1d6ce4d3
YS
30962020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3097
3098 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3099 whether disp is negative.
3100
9005fbbb
SM
31012020-05-19 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * symfile.h (struct symfile_segment_data)
3104 <~symfile_segment_data>: Remove.
3105 <segment_info>: Change to std::vector.
3106 * symfile.c (default_symfile_segments): Update.
3107 * elfread.c (elf_symfile_segments): Update.
3108
68b888ff
SM
31092020-05-19 Simon Marchi <simon.marchi@efficios.com>
3110
3111 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3112 <segments>: New.
3113 <segment_bases, segment_sizes>: Remove.
3114 * symfile.c (default_symfile_segments): Update.
3115 * elfread.c (elf_symfile_segments): Update.
3116 * remote.c (remote_target::get_offsets): Update.
3117 * solib-target.c (solib_target_relocate_section_addresses):
3118 Update.
3119
62982abd
SM
31202020-05-19 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * symfile.h (struct symfile_segment_data): Initialize fields.
3123 <~symfile_segment_data>: Add.
3124 (symfile_segment_data_up): New.
3125 (struct sym_fns) <sym_segments>: Return a
3126 symfile_segment_data_up.
3127 (default_symfile_segments): Return a symfile_segment_data_up.
3128 (free_symfile_segment_data): Remove.
3129 (get_symfile_segment_data): Return a symfile_segment_data_up.
3130 * symfile.c (default_symfile_segments): Likewise.
3131 (get_symfile_segment_data): Likewise.
3132 (free_symfile_segment_data): Remove.
3133 (symfile_find_segment_sections): Update.
3134 * elfread.c (elf_symfile_segments): Return a
3135 symfile_segment_data_up.
3136 * remote.c (remote_target::get_offsets): Update.
3137 * solib-target.c (solib_target_relocate_section_addresses):
3138 Update.
3139 * symfile-debug.c (debug_sym_segments): Return a
3140 symfile_segment_data_up.
3141
7f204339
RO
31422020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3143
e52a0f1b
RO
3144 PR build/25981
3145 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3146 Hardcode register numbers.
3147
7f204339
RO
3148 PR build/25981
3149 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3150 procfs_find_LDT_entry): Remove.
3151 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3152 procfs_find_LDT_entry): Remove.
3153 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3154 Remove.
3155
7f32a4d5
PA
31562020-05-17 Pedro Alves <palves@redhat.com>
3157 Andrew Burgess <andrew.burgess@embecosm.com>
3158 Keno Fischer <keno@juliacomputing.com>
3159
3160 PR gdb/25741
3161 * breakpoint.c (build_target_condition_list): Update comments.
3162 (build_target_command_list): Update comments and skip matching
3163 locations.
3164 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3165 a separate function. Simplify "set breakpoint auto-hw off"
3166 handling.
3167 (insert_breakpoints): Update comment.
3168 (tracepoint_locations_match): New parameter. For breakpoints,
3169 compare location types too, if the caller wants to.
3170 (handle_automatic_hardware_breakpoints): New functions.
3171 (bp_location_is_less_than): Also sort by location type and
3172 hardware breakpoint length.
3173 (update_global_location_list): Handle "set breakpoint auto-hw on"
3174 here.
3175 (update_breakpoint_locations): Ask breakpoint_locations_match to
3176 ignore location types.
3177
7d93a1e0
SM
31782020-05-16 Simon Marchi <simon.marchi@efficios.com>
3179
3180 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3181 type::name instead.
3182
d0e39ea2
SM
31832020-05-16 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * gdbtypes.h (struct type) <name, set_name>: New methods.
3186 (TYPE_CODE): Use type::name. Change all call sites used to set
3187 the name to use type::set_name instead.
3188
2dab0c7b
TT
31892020-05-16 Tom Tromey <tom@tromey.com>
3190
3191 * top.c (quit_force): Update.
3192 * infrun.c (handle_no_resumed): Update.
3193 * top.h (all_uis): New function.
3194 (ALL_UIS): Remove.
3195
59f7bd8d
SM
31962020-05-16 Simon Marchi <simon.marchi@efficios.com>
3197
3198 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3199
9bf058f0
PA
32002020-05-16 Pedro Alves <palves@redhat.com>
3201
3202 * ia64-linux-nat.c
3203 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3204 Declare method.
3205 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3206
8f86ae1a
SM
32072020-05-15 Simon Marchi <simon.marchi@efficios.com>
3208
3209 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3210 (sparc64_adi_info): Likewise.
3211
d6bc0792
TT
32122020-05-15 Tom Tromey <tom@tromey.com>
3213
3214 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3215 block_objfile.
3216 (lookup_objfile_from_block): Remove.
3217 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3218 (lookup_global_symbol): Use block_objfile.
3219 * symtab.h (lookup_objfile_from_block): Don't declare.
3220 * printcmd.c (clear_dangling_display_expressions): Use
3221 block_objfile.
3222 * parse.c (operator_check_standard): Use block_objfile.
3223
8c14c3a3
TT
32242020-05-15 Tom Tromey <tom@tromey.com>
3225
3226 * language.c (language_alloc_type_symbol): Set
3227 SYMBOL_SECTION.
3228 * symtab.c (initialize_objfile_symbol): Remove.
3229 (allocate_symbol): Remove.
3230 (allocate_template_symbol): Remove.
3231 * dwarf2/read.c (fixup_go_packaging): Use "new".
3232 (new_symbol): Use "new".
3233 (read_variable): Don't call initialize_objfile_symbol. Use
3234 "new".
3235 (read_func_scope): Use "new".
3236 * xcoffread.c (process_xcoff_symbol): Don't call
3237 initialize_objfile_symbol.
3238 (SYMBOL_DUP): Remove.
3239 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3240 "new".
3241 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3242 (allocate_template_symbol): Don't declare.
3243 (struct symbol): Add copy constructor. Change defaults.
3244 * jit.c (finalize_symtab): Use "new".
3245 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3246 Use "new".
3247 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3248 (common_block_end): Use "new".
3249 * mdebugread.c (parse_symbol): Use "new".
3250 (new_symbol): Likewise.
3251
5b4a1a8d
PW
32522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3253
3254 * NEWS: Mention changes to help and apropos.
3255
57b4f16e
PW
32562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3257
3258 * command.h (enum command_class): Improve comments, document
3259 that class_alias is for user-defined aliases, give the class
3260 name for each class, remove unused class_xdb.
3261 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3262 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3263 by a precise class.
3264 * infcmd.c (_initialize_infcmd): Likewise.
3265 * reverse.c (_initialize_reverse): Likewise.
3266 * stack.c (_initialize_stack): Likewise.
3267 * symfile.c (_initialize_symfile): Likewise.
3268 * tracepoint.c (_initialize_tracepoint): Likewise.
3269
7c05caf7
PW
32702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3271
3272 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3273 when their aliased command is traversed.
3274 (help_cmd): Add fput_command_names_styled call to
3275 output command name and aliases when command has an alias.
3276
3b3aaacb
PW
32772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3278
3279 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3280 * cli/cli-decode.c (help_cmd_list): Declare as static,
3281 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3282 a command together with the command.
3283 (fput_command_name_styled, fput_command_names_styled): New functions.
3284 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3285 fput_command_name_styled.
3286 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3287 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3288
7aa1b46f
PW
32892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3290
3291 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3292 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3293 * command.h (cmd_show_list): Likewise.
3294 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3295 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3296
89bcba74
PW
32972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3298
3299 * unittests/command-def-selftests.c (traverse_command_structure):
3300 Verify all commands of a list have the same prefix command and
3301 that only the top cmdlist commands have a null prefix.
3302
3f4d92eb
PW
33032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3304
3305 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3306 as prefix, not one of its aliases.
3307 (set_cmd_prefix): Remove.
3308 (do_add_cmd): Centralize the setting of the prefix of a command, when
3309 command is defined after its full chain of prefix commands.
3310 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3311 (add_setshow_cmd_full): Likewise.
3312 (update_prefix_field_of_prefixed_commands): New function.
3313 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3314 update_prefix_field_of_prefixed_commands.
3315 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3316 addresses of remote_set_cmdlist and remote_show_cmdlist given
3317 as argument, not the address of an argument.
3318 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3319 * gdb/remote.c (_initialize_remote): Likewise.
3320
0605465f
PW
33212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3322
3323 * cli/cli-cmds.c (alias_command): Check for an existing alias
3324 using lookup_cmd_composition, as valid_command_p is too strict
3325 and forbids aliases that are the prefix of an existing alias
3326 or command.
3327 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3328 command is properly recognised as a valid command.
3329
58e6ac70
PW
33302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3331
3332 * unittests/help-doc-selftests.c: Rename to
3333 unittests/command-def-selftests.c
3334 * unittests/command-def-selftests.c (help_doc_tests): Update some
3335 comments.
3336 (command_structure_tests, traverse_command_structure): New namespace
3337 and function.
3338 (command_structure_invariants_tests): New function.
3339 (_initialize_command_def_selftests) Renamed from
3340 _initialize_help_doc_selftests, register command_structure_invariants
3341 selftest.
3342
a7b9ceb8
PW
33432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3344
3345 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3346 an alias of 'show'.
3347
b2188a06
JB
33482020-05-15 Joel Brobecker <brobecker@adacore.com>
3349
3350 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3351 ada_is_fixed_point_type. Update all callers.
3352 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3353 all callers.
3354 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3355 Update all callers.
3356 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3357 print_fixed_point_type. Update all callers.
3358 * ada-valprint.c (ada_value_print_num): Replace call to
3359 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3360
a51951c2
KB
33612020-05-14 Kevin Buettner <kevinb@redhat.com>
3362
3363 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3364 processors.
3365 (cpu_supports_bts): Add CV_AMD case.
3366
29d6859f
LM
33672020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3368 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * infrun.c (stop_all_threads): Collect multiple wait events at
3371 each pass.
3372
78134374
SM
33732020-05-14 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3376 type::code instead.
3377
67607e24
SM
33782020-05-14 Simon Marchi <simon.marchi@efficios.com>
3379
3380 * gdbtypes.h (struct type) <code, set_code>: New methods.
3381 (TYPE_CODE): Use type::code. Change all call sites used to set
3382 the code to use type::set_code instead.
3383
a05575d3
TBA
33842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3385 Tom de Vries <tdevries@suse.de>
3386 Pedro Alves <palves@redhat.com>
3387
3388 PR threads/25478
3389 * infrun.c (stop_all_threads): Do NOT ignore
3390 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3391 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3392 received.
3393 (handle_no_resumed): Remove code handling a live inferior with no
3394 threads.
3395 * remote.c (has_single_non_exited_thread): New.
3396 (remote_target::update_thread_list): Do not delete a thread if is
3397 the last thread of the process.
3398 * thread.c (thread_select): Call delete_exited_threads instead of
3399 prune_threads.
3400
6ad82919
TBA
34012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3402
3403 * infrun.c (stop_all_threads): Enable/disable thread events of all
3404 targets. Move a debug message denoting the end of the function
3405 into the SCOPED_EXIT block.
3406
d890404b
TBA
34072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3408
3409 * process-stratum-target.h: Include <set>.
3410 (all_non_exited_process_targets, switch_to_target_no_thread): New
3411 function declarations.
3412 * process-stratum-target.c (all_non_exited_process_targets)
3413 (switch_to_target_no_thread): New function implementations.
3414
293b3ebc
TBA
34152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3416
3417 * infrun.c (handle_inferior_event): Extract out a piece of code
3418 into...
3419 (mark_non_executing_threads): ...this new function.
3420
7ca9b62a
TBA
34212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3422
3423 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3424 use.
3425
fc75c28b
TBA
34262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3427
3428 * regcache.c (regcache_read_pc_protected): New function
3429 implementation that returns 0 if the PC cannot read via
3430 'regcache_read_pc'.
3431 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3432 instead of 'regcache_read_pc'.
3433 (keep_going_pass_signal): Ditto.
3434
a89febbd
TT
34352020-05-13 Tom Tromey <tromey@adacore.com>
3436
3437 * ada-lang.c (align_value): Remove.
3438 (ada_template_to_fixed_record_type_1): Use align_up.
3439
f7e23710
TBA
34402020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3441
3442 * async-event.c: Update the copyright year.
3443 * async-event.h: Update the copyright year.
3444
02ff80c2
SM
34452020-05-12 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * objfiles.h (is_addr_in_objfile,
3448 shared_objfile_contains_address_p): Return bool.
3449 * objfile.c (is_addr_in_objfile,
3450 shared_objfile_contains_address_p): Return bool.
3451
4fd6c7e8
TT
34522020-05-11 Tom Tromey <tromey@adacore.com>
3453
3454 * cli/cli-cmds.c (info_command): Restore.
3455 (_initialize_cli_cmds): Use add_prefix_command for "info".
3456 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3457
5eb68a39
TT
34582020-05-11 Tom Tromey <tromey@adacore.com>
3459
3460 * ada-lang.c (ada_value_primitive_field): Now public.
3461 * ada-lang.h (ada_value_primitive_field): Declare.
3462 * ada-valprint.c (print_field_values): Use
3463 ada_value_primitive_field for wrapper fields.
3464
7666722f
TV
34652020-05-11 Tom de Vries <tdevries@suse.de>
3466
3467 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3468 MODULE_DOMAIN.
3469
3ee6bb11
TV
34702020-05-11 Tom de Vries <tdevries@suse.de>
3471
3472 PR symtab/25941
3473 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3474 with length 0, if not gdb-produced.
3475 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3476
43434996
TV
34772020-05-09 Tom de Vries <tdevries@suse.de>
3478
3479 PR gdb/25955
3480 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3481 calculation.
3482
2f78cffc
TT
34832020-05-09 Tom Tromey <tom@tromey.com>
3484
3485 * top.c (server_command): Now bool.
3486 * top.h (server_command): Now bool.
3487
4f7bc5ed
TT
34882020-05-08 Tom Tromey <tromey@adacore.com>
3489
3490 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3491 already being processed.
3492
8be4b118
TT
34932020-05-08 Tom Tromey <tom@tromey.com>
3494
3495 * printcmd.c (struct display) <next>: Remove.
3496 <display>: New constructor.
3497 <exp_string>: Now a std::string.
3498 <enabled_p>: Now a bool.
3499 (display_number): Move definition earlier.
3500 (displays): Rename from display_chain. Now a std::vector.
3501 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3502 (display_command): Update.
3503 (do_one_display, disable_display)
3504 (enable_disable_display_command, do_enable_disable_display):
3505 Update.
3506 (free_display): Remove.
3507 (clear_displays): Rewrite.
3508 (delete_display): Update.
3509 (map_display_numbers): Use function_view. Remove "data"
3510 parameter. Update.
3511 (do_delete_display): Remove.
3512 (undisplay_command): Update.
3513 (do_one_display, do_displays, disable_display)
3514 (info_display_command): Update.
3515 (do_enable_disable_display): Remove.
3516 (enable_disable_display_command)
3517 (clear_dangling_display_expressions): Update.
3518
94c93c35
TT
35192020-05-08 Tom Tromey <tom@tromey.com>
3520
3521 * symtab.c (set_symbol_cache_size)
3522 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3523 (maintenance_print_symbol_cache_statistics): Update.
3524 * symmisc.c (print_symbol_bcache_statistics)
3525 (print_objfile_statistics, maintenance_print_objfiles)
3526 (maintenance_info_symtabs, maintenance_check_symtabs)
3527 (maintenance_expand_symtabs, maintenance_info_line_tables):
3528 Update.
3529 * symfile-debug.c (set_debug_symfile): Update.
3530 * source.c (forget_cached_source_info): Update.
3531 * python/python.c (gdbpy_progspaces): Update.
3532 * psymtab.c (maintenance_info_psymtabs): Update.
3533 * probe.c (parse_probes): Update.
3534 * linespec.c (iterate_over_all_matching_symtabs)
3535 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3536 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3537 * exec.c (exec_target::close): Update.
3538 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3539 * breakpoint.c (print_one_breakpoint_location)
3540 (create_longjmp_master_breakpoint)
3541 (create_std_terminate_master_breakpoint): Update.
3542 * progspace.c (program_spaces): Now a std::vector.
3543 (maybe_new_address_space): Update.
3544 (add_program_space): Remove.
3545 (program_space::program_space): Update.
3546 (remove_program_space): Update.
3547 (number_of_program_spaces): Remove.
3548 (print_program_space, update_address_spaces): Update.
3549 * progspace.h (program_spaces): Change type.
3550 (ALL_PSPACES): Remove.
3551 (number_of_program_spaces): Don't declare.
3552 (struct program_space) <next>: Remove.
3553
a1fd1ac9
TT
35542020-05-08 Tom Tromey <tom@tromey.com>
3555
3556 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3557 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3558 (enable_break): Update.
3559 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3560 (frv_fdpic_find_canonical_descriptor): Update.
3561 (frv_fetch_objfile_link_map): Update.
3562 * progspace.c (program_space::free_all_objfiles): Update.
3563 (program_space::solibs): New method.
3564 * progspace.h (struct program_space) <solibs>: New method.
3565 * solist.h (master_so_list): Don't declare.
3566 (ALL_SO_LIBS): Remove.
3567 * solib.h (so_list_head): Remove.
3568 (update_solib_list): Update comment.
3569 * solib.c (master_so_list): Remove.
3570 (solib_used, update_solib_list, solib_add)
3571 (info_sharedlibrary_command, clear_solib)
3572 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3573
38eae084
TT
35742020-05-08 Tom Tromey <tom@tromey.com>
3575
3576 * extension.c (extension_languages): Now a std::array.
3577 (ALL_EXTENSION_LANGUAGES): Remove.
3578 (get_ext_lang_defn, get_ext_lang_of_file)
3579 (eval_ext_lang_from_control_command): Update.
3580 (finish_ext_lang_initialization)
3581 (auto_load_ext_lang_scripts_for_objfile)
3582 (ext_lang_type_printers::ext_lang_type_printers)
3583 (apply_ext_lang_type_printers)
3584 (ext_lang_type_printers::~ext_lang_type_printers)
3585 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3586 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3587 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3588 (get_matching_xmethod_workers, ext_lang_colorize)
3589 (ext_lang_before_prompt): Update.
3590 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3591
596dc4ad
TT
35922020-05-08 Tom Tromey <tom@tromey.com>
3593
3594 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3595 overload.
3596 <swap_string, m_string>: Remove.
3597 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3598 Update.
3599 * stabsread.c (define_symbol, read_type): Update.
3600 * linespec.c (find_linespec_symbols): Update.
3601 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3602 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3603 * dbxread.c (read_dbx_symtab): Update.
3604 * cp-support.h (cp_canonicalize_string_full)
3605 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3606 Return unique_xmalloc_ptr.
3607 * cp-support.c (inspect_type): Update.
3608 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3609 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3610 Likewise.
3611 * c-typeprint.c (print_name_maybe_canonical): Update.
3612 * break-catch-throw.c (check_status_exception_catchpoint):
3613 Update.
3614
bf4cb9be
TV
36152020-05-08 Tom de Vries <tdevries@suse.de>
3616
3617 * infrun.c (follow_fork): Copy current_line and current_symtab to
3618 child thread.
3619
a1b68f28
SM
36202020-05-07 Simon Marchi <simon.marchi@efficios.com>
3621
3622 * async-event.c (struct async_signal_handler, struct
3623 async_event_handler): Reformat, remove typedef.
3624
98d48915
SM
36252020-05-07 Simon Marchi <simon.marchi@efficios.com>
3626
3627 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3628 access thistype->main_type->dyn_prop_list directly.
3629
7aa91313
SM
36302020-05-07 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3633 (remove_dyn_prop): Remove. Update all users to use
3634 type::remove_dyn_prop.
3635 * gdbtypes.c (remove_dyn_prop): Rename to...
3636 (type::remove_dyn_prop): ... this.
3637
5c54719c
SM
36382020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3639
3640 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3641 (add_dyn_prop): Remove. Update all users to use
3642 type::add_dyn_prop.
3643 * gdbtypes.c (add_dyn_prop): Rename to...
3644 (type::add_dyn_prop): ... this.
3645
24e99c6c
SM
36462020-05-07 Simon Marchi <simon.marchi@efficios.com>
3647
3648 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3649 (get_dyn_prop): Remove. Update all users to use
3650 type::dyn_prop.
3651 * gdbtypes.c (get_dyn_prop): Rename to...
3652 (type::dyn_prop): ... this.
3653
0d4bf016
SM
36542020-05-06 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3657
ac4a4f1c
SM
36582020-05-06 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3661 instruction, skip it if it's there.
3662
a3bbacc1
SM
36632020-05-05 Simon Marchi <simon.marchi@efficios.com>
3664
3665 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3666
c3236f84
SM
36672020-05-04 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3670 * gdbtypes.c (recursive_dump_type): Remove use of
3671 TYPE_INCOMPLETE.
3672
3b6acaee
TT
36732020-05-03 Tom Tromey <tom@tromey.com>
3674
3675 * breakpoint.c (catch_command, tcatch_command): Remove.
3676 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3677 add_show_prefix_cmd.
3678 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3679 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3680 Remove.
3681 (add_internal_problem_command): Use add_basic_prefix_cmd,
3682 add_show_prefix_cmd.
3683 * mips-tdep.c (set_mipsfpu_command): Remove.
3684 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3685 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3686 (_initialize_index_cache): Use add_basic_prefix_cmd.
3687 * memattr.c (dummy_cmd): Remove.
3688 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3689 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3690 (_initialize_tui_win): Use add_basic_prefix_cmd,
3691 add_show_prefix_cmd.
3692 * cli/cli-logging.c (set_logging_command): Remove.
3693 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3694 add_show_prefix_cmd.
3695 (show_logging_command): Remove.
3696 * target.c (target_command): Remove.
3697 (add_target): Use add_basic_prefix_cmd.
3698
a51119cd
HD
36992020-05-02 Hannes Domani <ssbssa@yahoo.de>
3700
3701 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3702
652fc23a 37032020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3704
652fc23a
PW
3705 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3706 info_command.
3707
117539e6
KR
37082020-04-30 Kamil Rytarowski <n54@gmx.com>
3709
3710 * nbsd-nat.c (nbsd_enable_proc_events)
3711 (nbsd_nat_target::post_startup_inferior): Add.
3712 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3713 (nbsd_nat_target::update_thread_list): Rewrite.
3714 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3715 "PTRACE_LWP_CREATE".
3716 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3717
102e38eb 37182020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3719
102e38eb
PW
3720 * stack.c (_initialize_stack): Remove duplicated creation
3721 of "frame" command and "f" alias.
3722
ee9d1e5f
HD
37232020-04-30 Hannes Domani <ssbssa@yahoo.de>
3724
3725 PR gdb/18706
3726 * gdbtypes.c (check_typedef): Calculate size of array of
3727 stubbed type.
3728
627c7fb8
HD
37292020-04-30 Hannes Domani <ssbssa@yahoo.de>
3730
3731 PR gdb/15559
3732 * i386-tdep.c (i386_push_dummy_call): Call
3733 i386_thiscall_push_dummy_call.
3734 (i386_thiscall_push_dummy_call): New function.
3735 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3736 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3737 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3738
ffc2844e
SM
37392020-04-29 Simon Marchi <simon.marchi@efficios.com>
3740
3741 * gdbarch.sh (do_read): Add shellcheck disable directive for
3742 warning SC2162.
3743
1207375d
SM
37442020-04-29 Simon Marchi <simon.marchi@efficios.com>
3745
3746 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3747 "referenced but not assigned" warning.
3748
9fdb2916
SM
37492020-04-29 Simon Marchi <simon.marchi@efficios.com>
3750
3751 * gdbarch.sh: Remove code that sets fallbackdefault.
3752
759cea5e
SM
37532020-04-29 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * gdbarch.sh: Use shell operators && and || instead of
3756 -a and -o.
3757
cb02ab24
SM
37582020-04-29 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * gdbarch.sh: Use $(...) instead of `...`.
3761
a6fc5ffc
SM
37622020-04-29 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * gdbarch.sh: Use double quotes around variables.
3765
8d113d13
SM
37662020-04-29 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * gdbarch.sh: Use %s with printf, instead of variables in the
3769 format string.
3770
ed6acedd
TT
37712020-04-29 Tom Tromey <tromey@adacore.com>
3772
3773 PR ada/25875:
3774 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3775 type fields here.
3776 (read_enumeration_type): Call
3777 update_enumeration_type_from_children later. Update comments.
3778 (process_enumeration_scope): Don't create type fields.
3779
b68b1b58
KR
37802020-04-29 Kamil Rytarowski <n54@gmx.com>
3781
3782 * nbsd-tdep.c: Include "xml-syscall.h".
3783 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3784
f94b2e03
KR
37852020-04-29 Kamil Rytarowski <n54@gmx.com>
3786
3787 * nbsd-nat.c: Include "sys/wait.h".
3788 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3789 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3790 (nbsd_nat_target::remove_exec_catchpoint)
3791 (nbsd_nat_target::set_syscall_catchpoint): Add.
3792 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3793 (nbsd_nat_target::insert_exec_catchpoint)
3794 (nbsd_nat_target::remove_exec_catchpoint)
3795 (nbsd_nat_target::set_syscall_catchpoint): Add.
3796 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3797 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3798 `nbsd_get_syscall_number'.
3799
fc49bc72
TT
38002020-04-29 Tom Tromey <tom@tromey.com>
3801
3802 * stack.c (print_block_frame_labels): Remove.
3803
d642b692
HD
38042020-04-29 Hannes Domani <ssbssa@yahoo.de>
3805
3806 PR gdb/17320
3807 * ada-valprint.c (val_print_packed_array_elements): Move array
3808 end bracket to new line.
3809 (ada_val_print_string): Remove extra spaces before first array
3810 element.
3811 * c-valprint.c (c_value_print_array): Likewise.
3812 * m2-valprint.c (m2_print_array_contents): Likewise.
3813 (m2_value_print_inner): Likewise.
3814 * p-valprint.c (pascal_value_print_inner): Likewise.
3815 * valprint.c (generic_val_print_array): Likewise.
3816 (value_print_array_elements): Move first array element and array
3817 end bracket to new line.
3818
ea90f227
TV
38192020-04-29 Tom de Vries <tdevries@suse.de>
3820
3821 PR symtab/25889
3822 * linespec.c (find_method): Fix ix calculation.
3823
4498ef4f
KR
38242020-04-28 Kamil Rytarowski <n54@gmx.com>
3825
3826 * syscalls/update-netbsd.sh: New file.
3827 * syscalls/netbsd.xml: Regenerate.
3828 * data-directory/Makefile.in: Register `netbsd.xml' in
3829 `SYSCALLS_FILES'.
3830
a55e30b5
SM
38312020-04-28 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * syscalls/update-freebsd.sh: Add double quotes.
3834
2b2fbab8
TT
38352020-04-28 Tom Tromey <tom@tromey.com>
3836
3837 * NEWS: Update.
3838 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3839 (cmdpy_init): Allow class_tui.
3840
a65189c9
TV
38412020-04-28 Mark Williams <mark@myosotissp.com>
3842
3843 PR gdb/24480
3844 * dwarf2read.c: Add missing assingments to list_in_scope when
3845 start_symtab was already called.
3846
1b95cdb7
SM
38472020-04-28 Simon Marchi <simon.marchi@efficios.com>
3848
3849 PR gdb/25881
3850 * dwarf2/read.c (offset_map_type): Use
3851 gdb:hash_enum<sect_offset> as hash function.
3852
15cd93d0
TV
38532020-04-28 Tom de Vries <tdevries@suse.de>
3854
3855 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3856 with DW_AT_signature.
3857
1eb39914
SM
38582020-04-27 Simon Marchi <simon.marchi@efficios.com>
3859
3860 * configure.ac: Remove check for fs_base/gs_base in
3861 user_regs_struct.
3862 * configure: Re-generate.
3863 * config.in: Re-generate.
3864 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3865 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3866 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3867
991a3e2e
LM
38682020-04-27 Luis Machado <luis.machado@linaro.org>
3869
3870 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3871 problematic inline frame unwinding situation.
3872 * frame.c (frame_id_computed_p): New function.
3873 * frame.h (frame_id_computed_p): New prototype.
3874
361ba0e8
TT
38752020-04-26 Tom Tromey <tom@tromey.com>
3876
3877 * command.h (enum command_class) <class_pseudo>: Remove.
3878
bc3609fd
PW
38792020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3880
3881 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
3882 and whitespace.
3883
b9771db7
KR
38842020-04-25 Kamil Rytarowski <n54@gmx.com>
3885
ec16513e
SM
3886 * inf-ptrace.c (inf_ptrace_target::wait): Remove
3887 `PT_GET_PROCESS_STATE' block.
b9771db7 3888
7151c1af
TT
38892020-04-24 Tom Tromey <tom@tromey.com>
3890
3891 * symtab.h (symbol_get_demangled_name): Don't declare.
3892 * symtab.c (symbol_get_demangled_name): Remove.
3893 (general_symbol_info::natural_name)
3894 (general_symbol_info::demangled_name): Update.
3895
906bb4c5
TT
38962020-04-24 Tom Tromey <tom@tromey.com>
3897
3898 PR rust/25025:
3899 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
3900
bcfe6157
TT
39012020-04-24 Tom Tromey <tom@tromey.com>
3902
3903 PR symtab/12707:
3904 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
3905 exists.
3906 (new_symbol): Likewise.
3907 * compile/compile-object-load.c (get_out_value_type): Use
3908 symbol_matches_search_name.
3909
f049a313
TT
39102020-04-24 Tom Tromey <tom@tromey.com>
3911
3912 * dwarf2/read.c (add_partial_symbol): Do not call
3913 compute_and_set_names.
3914
76e288d1
TT
39152020-04-24 Tom Tromey <tom@tromey.com>
3916
3917 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
3918 overload.
3919
2467f4f6
TT
39202020-04-24 Tom Tromey <tom@tromey.com>
3921
3922 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
3923 (add_psymbol_to_list): New overload. Make old overload call new
3924 one.
3925 * psympriv.h (add_psymbol_to_list): New overload.
3926
e61108c9
TT
39272020-04-24 Tom Tromey <tom@tromey.com>
3928
3929 * dwarf2/read.c (partial_die_info::read) <case
3930 DW_AT_linkage_name>: Use value_as_string.
3931 (dwarf2_string_attr): Use value_as_string.
3932 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3933 method.
3934 * dwarf2/attribute.c (attribute::value_as_string): New method.
3935
8c87a452
TT
39362020-04-24 Tom Tromey <tom@tromey.com>
3937
3938 * symtab.c (general_symbol_info::natural_name)
3939 (general_symbol_info::demangled_name): Check for language_rust.
3940
787de330
TT
39412020-04-24 Tom Tromey <tom@tromey.com>
3942
3943 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
3944 (dwarf2_physname): ... from here.
3945 (partial_die_info::read): Add Rust "{" hack.
3946
ff985671
TT
39472020-04-24 Tom Tromey <tom@tromey.com>
3948
3949 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
3950 method.
3951 (symbol_set_demangled_name): Don't declare.
3952 * symtab.c (general_symbol_info::set_demangled_name): Rename from
3953 symbol_set_demangled_name.
3954 (general_symbol_info::set_language)
3955 (general_symbol_info::compute_and_set_names): Update.
3956 * minsyms.c (minimal_symbol_reader::install): Update.
3957 * dwarf2/read.c (new_symbol): Update.
3958
1acda803
TT
39592020-04-24 Tom Tromey <tromey@adacore.com>
3960
3961 PR python/23662:
3962 * python/py-type.c (convert_field): Handle
3963 FIELD_LOC_KIND_DWARF_BLOCK.
3964 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
3965 (typy_get_dynamic): Nw function.
3966 (type_object_getset): Add "dynamic".
3967 * NEWS: Add entry.
3968
d656f129
TT
39692020-04-24 Tom Tromey <tromey@adacore.com>
3970
3971 * ada-typeprint.c (print_choices, print_variant_part)
3972 (print_record_field_types_dynamic): New functions.
3973 (print_record_field_types): Use print_record_field_types_dynamic.
3974
7d79de9a
TT
39752020-04-24 Tom Tromey <tromey@adacore.com>
3976
3977 * dwarf2/read.c (handle_data_member_location): New overload.
3978 (dwarf2_add_field): Use it.
3979 (decode_locdesc): Add "computed" parameter. Update comment.
3980 * gdbtypes.c (is_dynamic_type_internal): Also look for
3981 FIELD_LOC_KIND_DWARF_BLOCK.
3982 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
3983 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
3984 virtual base classes.
3985 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
3986 FIELD_LOC_KIND_DWARF_BLOCK.
3987
f8e89861
TT
39882020-04-24 Tom Tromey <tromey@adacore.com>
3989
3990 * dwarf2/read.c (read_structure_type): Handle dynamic length.
3991 * gdbtypes.c (is_dynamic_type_internal): Check
3992 TYPE_HAS_DYNAMIC_LENGTH.
3993 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
3994 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
3995 New macros.
3996 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
3997 constant.
3998
9c6a1327
TT
39992020-04-24 Tom Tromey <tromey@adacore.com>
4000
4001 * dwarf2/read.c (struct variant_field): Rewrite.
4002 (struct variant_part_builder): New.
4003 (struct nextfield): Remove "variant" field. Add "offset".
4004 (struct field_info): Add "current_variant_part" and
4005 "variant_parts".
4006 (alloc_discriminant_info): Remove.
4007 (alloc_rust_variant): New function.
4008 (quirk_rust_enum): Update.
4009 (dwarf2_add_field): Set "offset" member. Don't handle
4010 DW_TAG_variant_part.
4011 (offset_map_type): New typedef.
4012 (convert_variant_range, create_one_variant)
4013 (create_one_variant_part, create_variant_parts)
4014 (add_variant_property): New functions.
4015 (dwarf2_attach_fields_to_type): Call add_variant_property.
4016 (read_structure_type): Don't handle DW_TAG_variant_part.
4017 (handle_variant_part, handle_variant): New functions.
4018 (handle_struct_member_die): Use them.
4019 (process_structure_scope): Don't handle variant parts.
4020 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4021 (struct discriminant_info): Remove.
4022 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4023 (struct main_type) <flag_discriminated_union>: Remove.
4024 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4025 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4026 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4027 Update.
4028 * valops.c (value_union_variant): Remove.
4029 * value.h (value_union_variant): Don't declare.
4030
b249d2c2
TT
40312020-04-24 Tom Tromey <tromey@adacore.com>
4032
4033 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4034 (ada_value_primitive_packed_val): Update.
4035 * ada-valprint.c (ada_value_print_1): Update.
4036 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4037 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4038 just an address. Use evaluate_for_locexpr_baton.
4039 (dwarf2_evaluate_property): Update.
4040 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4041 array_view.
4042 * findvar.c (default_read_var_value): Update.
4043 * gdbtypes.c (compute_variant_fields_inner)
4044 (resolve_dynamic_type_internal): Update.
4045 (resolve_dynamic_type): Change type of valaddr parameter.
4046 * gdbtypes.h (resolve_dynamic_type): Update.
4047 * valarith.c (value_subscripted_rvalue): Update.
4048 * value.c (value_from_contents_and_address): Update.
4049
61122aa9
TT
40502020-04-24 Tom Tromey <tromey@adacore.com>
4051
4052 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4053 "push_initial_value" parameter.
4054 (dwarf2_evaluate_property): Likewise.
4055 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4056
ef83a141
TT
40572020-04-24 Tom Tromey <tromey@adacore.com>
4058
4059 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4060 (variant::matches, compute_variant_fields_recurse)
4061 (compute_variant_fields_inner, compute_variant_fields): New
4062 functions.
4063 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4064 Use resolved_type after type is made.
4065 (operator==): Add new cases.
4066 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4067 (struct discriminant_range, struct variant, struct variant_part):
4068 New.
4069 (union dynamic_prop_data) <variant_parts, original_type>: New
4070 members.
4071 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4072 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4073 constants.
4074 * value.c (unpack_bits_as_long): Now public.
4075 * value.h (unpack_bits_as_long): Declare.
4076
675127ec
TT
40772020-04-24 Tom Tromey <tromey@adacore.com>
4078
4079 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4080 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4081
9852ceef
HD
40822020-04-24 Hannes Domani <ssbssa@yahoo.de>
4083
4084 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4085
7632c6ce
KR
40862020-04-24 Kamil Rytarowski <n54@gmx.com>
4087
4088 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4089 (remove_fork_catchpoint, post_startup_inferior)
4090 (post_attach): Move...
4091 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4092 (remove_fork_catchpoint, post_startup_inferior)
4093 (post_attach): ...here.
4094 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4095 (remove_fork_catchpoint, post_startup_inferior)
4096 (post_attach): Move...
4097 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4098 (remove_fork_catchpoint, post_startup_inferior)
4099 (post_attach): ...here.
4100
7be2bb4f
TT
41012020-04-24 Tom Tromey <tromey@adacore.com>
4102
4103 * nat/windows-nat.h (struct windows_thread_info)
4104 <pc_adjusted>: New member.
4105 * windows-nat.c (windows_fetch_one_register): Check
4106 pc_adjusted.
4107 (windows_nat_target::get_windows_debug_event)
4108 (windows_nat_target::wait): Set pc_adjusted.
4109
f80cb3b4
TV
41102020-04-24 Tom de Vries <tdevries@suse.de>
4111
4112 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4113 Run gdb-add-index inside temp dir.
4114
29514b87
TT
41152020-04-23 Tom Tromey <tromey@adacore.com>
4116
4117 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4118 in loop.
4119
5939967b
LM
41202020-04-23 Luis Machado <luis.machado@linaro.org>
4121
4122 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4123 get_frame_register instead of gdbarch_unwind_pc.
4124
70bc38f5
TV
41252020-04-23 Tom de Vries <tdevries@suse.de>
4126
4127 * symtab.c (lookup_global_symbol): Prefer def over decl.
4128
de82891c
TV
41292020-04-23 Tom de Vries <tdevries@suse.de>
4130
4131 PR symtab/25807
4132 * block.c (best_symbol, better_symbol): Promote to external.
4133 * block.h (best_symbol, better_symbol): Declare.
4134 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4135 decl.
4136
ecc6c606
TT
41372020-04-23 Tom Tromey <tromey@adacore.com>
4138
4139 PR ada/25837:
4140 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4141 "const char *", not a "const std::string &".
4142 <name_and_matcher::operator==>: Update.
4143 * unittests/lookup_name_info-selftests.c: Change type of
4144 "result".
4145
740480b8
TT
41462020-04-23 Tom Tromey <tom@tromey.com>
4147
4148 * inferior.h (iterate_over_inferiors): Don't declare.
4149 * inferior.c (iterate_over_inferiors): Remove.
4150 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4151 Remove.
4152 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4153 use iterate_over_inferiors.
4154 (darwin_resume_inferior_it)
4155 (struct resume_inferior_threads_param)
4156 (darwin_resume_inferior_threads_it): Remove.
4157 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4158
ae3ab1f0
TV
41592020-04-23 Tom de Vries <tdevries@suse.de>
4160
4161 * blockframe.c (find_pc_partial_function): Use
4162 find_pc_sect_compunit_symtab rather than
4163 objfile->sf->qf->find_pc_sect_compunit_symtab.
4164
317d2668
TV
41652020-04-22 Tom de Vries <tdevries@suse.de>
4166
4167 PR symtab/25764
4168 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4169 in psymtabs.
4170
eea9e357
TV
41712020-04-22 Tom de Vries <tdevries@suse.de>
4172
4173 PR symtab/25801
4174 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4175 symtabs.
4176
3d5afab3
TV
41772020-04-22 Tom de Vries <tdevries@suse.de>
4178
4179 PR symtab/25700
4180 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4181 CU if already created.
4182
d43b7a2d
TBA
41832020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4184
4185 * infrun.c (displaced_step_fixup): Switch to the event_thread
4186 before calling displaced_step_restore, not after.
4187
d89edf9b
MM
41882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4189
4190 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4191 its inferior is not recorded by us.
4192 (record_btrace_target_open): Replace call to
4193 all_non_exited_threads () with call to current_inferior
4194 ()->non_exited_threads ().
4195 (record_btrace_target::stop_recording): Likewise.
4196 (record_btrace_target::close): Likewise.
4197 (record_btrace_target::wait): Likewise.
4198 (record_btrace_target::record_stop_replaying): Likewise.
4199
5897fd49
MM
42002020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4201
4202 * btrace.c (btrace_enable): Throw an error on double enables and
4203 when enabling recording fails.
4204 (btrace_disable): Throw an error if the thread is not recorded.
4205
1a476b6d
MM
42062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4207
4208 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4209 request if we do not have a thread_info.
4210
4778a5f8
TV
42112020-04-21 Tom de Vries <tdevries@suse.de>
4212
4213 PR gdb/25471
4214 * thread.c
4215 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4216 exception in get_frame_id.
4217
0fa7617d
TT
42182020-04-20 Tom Tromey <tromey@adacore.com>
4219
4220 * python/python.c (struct gdbpy_event): Mark move constructor as
4221 noexcept.
4222 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4223 constructor as noexcept.
4224 * completer.h (struct completion_result): Mark move constructor as
4225 noexcept.
4226 * completer.c (completion_result::completion_result): Use
4227 initialization style. Don't call reset_match_list.
4228
ad23bda0
MS
42292020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4230
4231 * MAINTAINERS (Write After Approval): Add myself.
4232
45e1f031
TT
42332020-04-18 Tom Tromey <tom@tromey.com>
4234
4235 * windows-tdep.c (init_w32_command_list)
4236 (w32_prefix_command_valid): Restore.
4237 (_initialize_windows_tdep): Call init_w32_command_list.
4238
08feed99
TT
42392020-04-18 Tom Tromey <tom@tromey.com>
4240
4241 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4242 * value.c (value_fn_field): Update.
4243 * valops.c (find_function_in_inferior)
4244 (value_allocate_space_in_inferior): Update.
4245 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4246 Update.
4247 * tui/tui-source.c (tui_source_window::set_contents): Update.
4248 * symtab.c (lookup_global_or_static_symbol)
4249 (find_function_start_sal_1, skip_prologue_sal)
4250 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4251 * symmisc.c (dump_msymbols, dump_symtab_1)
4252 (maintenance_print_one_line_table): Update.
4253 * symfile.c (init_entry_point_info, section_is_mapped)
4254 (list_overlays_command, simple_read_overlay_table)
4255 (simple_overlay_update_1): Update.
4256 * stap-probe.c (handle_stap_probe): Update.
4257 * stabsread.c (dbx_init_float_type, define_symbol)
4258 (read_one_struct_field, read_enum_type, read_range_type): Update.
4259 * source.c (info_line_command): Update.
4260 * python/python.c (gdbpy_source_objfile_script)
4261 (gdbpy_execute_objfile_script): Update.
4262 * python/py-type.c (save_objfile_types): Update.
4263 * python/py-objfile.c (py_free_objfile): Update.
4264 * python/py-inferior.c (python_new_objfile): Update.
4265 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4266 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4267 (maintenance_check_psymtabs): Update.
4268 * printcmd.c (info_address_command): Update.
4269 * objfiles.h (struct objfile) <arch>: New method, from
4270 get_objfile_arch.
4271 (get_objfile_arch): Don't declare.
4272 * objfiles.c (get_objfile_arch): Remove.
4273 (filter_overlapping_sections): Update.
4274 * minsyms.c (msymbol_is_function): Update.
4275 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4276 (output_nondebug_symbol): Update.
4277 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4278 (mdebug_expand_psymtab): Update.
4279 * machoread.c (macho_add_oso_symfile): Update.
4280 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4281 Update.
4282 * linux-fork.c (checkpoint_command): Update.
4283 * linespec.c (convert_linespec_to_sals): Update.
4284 * jit.c (finalize_symtab): Update.
4285 * infrun.c (insert_exception_resume_from_probe): Update.
4286 * ia64-tdep.c (ia64_find_unwind_table): Update.
4287 * hppa-tdep.c (internalize_unwinds): Update.
4288 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4289 Update.
4290 * gcore.c (call_target_sbrk): Update.
4291 * elfread.c (record_minimal_symbol, elf_symtab_read)
4292 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4293 (elf_gnu_ifunc_resolve_by_got): Update.
4294 * dwarf2/read.c (create_addrmap_from_index)
4295 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4296 (read_debug_names_from_section)
4297 (process_psymtab_comp_unit_reader, add_partial_symbol)
4298 (add_partial_subprogram, process_full_comp_unit)
4299 (read_file_scope, read_func_scope, read_lexical_block_scope)
4300 (read_call_site_scope, dwarf2_ranges_read)
4301 (dwarf2_record_block_ranges, dwarf2_add_field)
4302 (mark_common_block_symbol_computed, read_tag_pointer_type)
4303 (read_tag_string_type, dwarf2_init_float_type)
4304 (dwarf2_init_complex_target_type, read_base_type)
4305 (partial_die_info::read, partial_die_info::read)
4306 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4307 (dwarf2_fetch_die_loc_sect_off): Update.
4308 * dwarf2/loc.c (dwarf2_find_location_expression)
4309 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4310 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4311 (dwarf2_loc_desc_get_symbol_read_needs)
4312 (locexpr_describe_location_piece, locexpr_describe_location_1)
4313 (loclist_describe_location): Update.
4314 * dwarf2/index-write.c (write_debug_names): Update.
4315 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4316 * dtrace-probe.c (dtrace_process_dof): Update.
4317 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4318 (process_one_symbol): Update.
4319 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4320 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4321 (coff_read_enum_type): Update.
4322 * cli/cli-cmds.c (edit_command, list_command): Update.
4323 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4324 * breakpoint.c (create_overlay_event_breakpoint)
4325 (create_longjmp_master_breakpoint)
4326 (create_std_terminate_master_breakpoint)
4327 (create_exception_master_breakpoint, get_sal_arch): Update.
4328 * block.c (block_gdbarch): Update.
4329 * annotate.c (annotate_source_line): Update.
4330
0743fc83
TT
43312020-04-17 Tom Tromey <tromey@adacore.com>
4332
4333 * auto-load.c (show_auto_load_cmd): Remove.
4334 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4335 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4336 (maintenance_print_arc_command): Remove.
4337 * tui/tui-win.c (tui_command): Remove.
4338 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4339 * tui/tui-layout.c (tui_layout_command): Remove.
4340 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4341 * python/python.c (user_set_python, user_show_python): Remove.
4342 (_initialize_python): Use add_basic_prefix_cmd,
4343 add_show_prefix_cmd.
4344 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4345 (install_gdb_commands): Use add_basic_prefix_cmd,
4346 add_show_prefix_cmd.
4347 (info_guile_command): Remove.
4348 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4349 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4350 add_show_prefix_cmd.
4351 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4352 Remove do_set and do_show parameters.
4353 * cli/cli-style.c (set_style, show_style): Remove.
4354 (_initialize_cli_style): Use add_basic_prefix_cmd,
4355 add_show_prefix_cmd.
4356 (cli_style_option::add_setshow_commands): Remove do_set and
4357 do_show parameters.
4358 (cli_style_option::add_setshow_commands): Use
4359 add_basic_prefix_cmd, add_show_prefix_cmd.
4360 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4361 (set_style_name): Remove.
4362 * cli/cli-dump.c (dump_command, append_command): Remove.
4363 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4364 (tekhex_dump_command, binary_dump_command)
4365 (binary_append_command): Remove.
4366 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4367 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4368 (init_w32_command_list): Remove; move into ...
4369 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4370 * valprint.c (set_print, show_print, set_print_raw)
4371 (show_print_raw): Remove.
4372 (_initialize_valprint): Use add_basic_prefix_cmd,
4373 add_show_prefix_cmd.
4374 * typeprint.c (set_print_type, show_print_type): Remove.
4375 (_initialize_typeprint): Use add_basic_prefix_cmd,
4376 add_show_prefix_cmd.
4377 * record.c (set_record_command, show_record_command): Remove.
4378 (_initialize_record): Use add_basic_prefix_cmd,
4379 add_show_prefix_cmd.
4380 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4381 add_show_prefix_cmd.
4382 (info_command, show_command, set_debug, show_debug): Remove.
4383 * top.h (set_history, show_history): Don't declare.
4384 * top.c (set_history, show_history): Remove.
4385 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4386 (unset_tdesc_cmd): Remove.
4387 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4388 add_show_prefix_cmd.
4389 * symtab.c (info_module_command): Remove.
4390 (_initialize_symtab): Use add_basic_prefix_cmd.
4391 * symfile.c (overlay_command): Remove.
4392 (_initialize_symfile): Use add_basic_prefix_cmd.
4393 * sparc64-tdep.c (info_adi_command): Remove.
4394 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4395 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4396 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4397 add_show_prefix_cmd.
4398 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4399 (_initialize_serial): Use add_basic_prefix_cmd,
4400 add_show_prefix_cmd.
4401 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4402 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4403 add_show_prefix_cmd.
4404 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4405 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4406 add_show_prefix_cmd.
4407 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4408 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4409 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4410 add_show_prefix_cmd.
4411 * remote.c (remote_command, set_remote_cmd): Remove.
4412 (_initialize_remote): Use add_basic_prefix_cmd.
4413 * record-full.c (set_record_full_command)
4414 (show_record_full_command): Remove.
4415 (_initialize_record_full): Use add_basic_prefix_cmd,
4416 add_show_prefix_cmd.
4417 * record-btrace.c (cmd_set_record_btrace)
4418 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4419 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4420 (cmd_show_record_btrace_pt): Remove.
4421 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4422 add_show_prefix_cmd.
4423 * ravenscar-thread.c (set_ravenscar_command)
4424 (show_ravenscar_command): Remove.
4425 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4426 add_show_prefix_cmd.
4427 * mips-tdep.c (show_mips_command, set_mips_command)
4428 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4429 add_show_prefix_cmd.
4430 * maint.c (maintenance_command, maintenance_info_command)
4431 (maintenance_check_command, maintenance_print_command)
4432 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4433 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4434 add_show_prefix_cmd.
4435 (show_per_command_cmd): Remove.
4436 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4437 Remove.
4438 (maintenance_show_test_settings_cmd): Remove.
4439 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4440 add_show_prefix_cmd.
4441 * maint-test-options.c (maintenance_test_options_command):
4442 Remove.
4443 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4444 * macrocmd.c (macro_command): Remove
4445 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4446 * language.c (set_check, show_check): Remove.
4447 (_initialize_language): Use add_basic_prefix_cmd,
4448 add_show_prefix_cmd.
4449 * infcmd.c (unset_command): Remove.
4450 (_initialize_infcmd): Use add_basic_prefix_cmd.
4451 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4452 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4453 add_show_prefix_cmd.
4454 * go32-nat.c (go32_info_dos_command): Remove.
4455 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4456 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4457 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4458 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4459 (_initialize_frame): Use add_basic_prefix_cmd,
4460 add_show_prefix_cmd.
4461 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4462 (_initialize_dcache): Use add_basic_prefix_cmd,
4463 add_show_prefix_cmd.
4464 * cp-support.c (maint_cplus_command): Remove.
4465 (_initialize_cp_support): Use add_basic_prefix_cmd.
4466 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4467 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4468 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4469 add_basic_prefix_cmd, add_show_prefix_cmd.
4470 * breakpoint.c (save_command): Remove.
4471 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4472 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4473 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4474 add_show_prefix_cmd.
4475 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4476 (set_ada_command, show_ada_command): Remove.
4477 (_initialize_ada_language): Use add_basic_prefix_cmd,
4478 add_show_prefix_cmd.
4479 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4480
3557f442
KR
44812020-04-16 Kamil Rytarowski <n54@gmx.com>
4482
4483 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4484 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4485
16197208
SM
44862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4487
4488 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4489 warning messages.
4490
00ac85d3
SM
44912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4492
4493 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4494 import table is not at beginning of .idata section.
4495
381ce63f
PA
44962020-04-16 Pedro Alves <palves@redhat.com>
4497
4498 * inferior.c (delete_inferior): Use delete operator directly
4499 instead of delete_program_space.
4500 * progspace.c (add_program_space): New, factored out from
4501 program_space::program_space.
4502 (remove_program_space): New, factored out from
4503 delete_program_space.
4504 (program_space::program_space): Remove intro comment. Rewrite.
4505 (program_space::~program_space): Remove intro comment. Call
4506 remove_program_space.
4507 (delete_program_space): Delete.
4508 * progspace.h (program_space::program_space): Make explicit. Move
4509 intro comment here, adjusted.
4510 (program_space::~program_space): Move intro comment here,
4511 adjusted.
4512 (delete_program_space): Remove.
4513
a010605f
TT
45142020-04-16 Tom Tromey <tromey@adacore.com>
4515
4516 * windows-nat.c (windows_nat::handle_access_violation): New
4517 function.
4518 * nat/windows-nat.h (handle_access_violation): Declare.
4519 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4520 windows-nat.c. Call handle_access_violation.
4521
efba5c23
TV
45222020-04-16 Tom de Vries <tdevries@suse.de>
4523
4524 PR symtab/25791
4525 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4526 CUs without psymtab.
4527
97ed802d
KB
45282020-04-16 Kevin Buettner <kevinb@redhat.com>
4529
4530 * python/python.c (do_start_initialization): Don't call
4531 PyEval_InitThreads for Python 3.9 and beyond.
4532
c7d64809
KR
45332020-04-15 Kamil Rytarowski <n54@gmx.com>
4534
4535 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4536 thread functions.
4537 (obsd_nat_target::wait): Likewise.
4538
ce127a96
TT
45392020-04-15 Tom Tromey <tromey@adacore.com>
4540
4541 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4542 (DEBUG_EXCEPT): Use debug_printf.
4543
99f1bc6a
AB
45442020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * completer.c (class completion_tracker::completion_hash_entry)
4547 <hash_name>: New member function.
4548 (completion_tracker::discard_completions): New callback to hash a
4549 completion_hash_entry, pass this to htab_create_alloc.
4550
a0e9b532
JT
45512016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4552
4553 * windows-nat.c (windows_make_so): Warn rather than stopping with
4554 an error if realpath() fails.
4555
06ca5dd4
KR
45562020-04-14 Kamil Rytarowski <n54@gmx.com>
4557
4558 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4559 (nbsd_nat_target::info_proc): Add do_status.
4560
194d088f
TV
45612020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4562 Tom de Vries <tdevries@suse.de>
4563
4564 PR symtab/25718
4565 * psympriv.h (struct partial_symtab::read_symtab)
4566 (struct partial_symtab::expand_psymtab)
4567 (struct partial_symtab::read_dependencies): Update comments.
4568 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4569 read_symtab for includer.
4570 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4571 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4572 (struct dwarf2_include_psymtab::m_readin): Remove.
4573 (struct dwarf2_include_psymtab::includer): New member function.
4574 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4575
c1a66c06
TV
45762020-04-14 Tom de Vries <tdevries@suse.de>
4577
4578 PR symtab/25720
4579 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4580 with NULL symbol_matcher and lookup_name.
4581 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4582 and lookup_name.
4583 * dwarf2/read.c (dw2_expand_symtabs_matching)
4584 (dw2_debug_names_expand_symtabs_matching): Same.
4585 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4586 Make lookup_name a pointer. Update comment.
4587 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4588 lookup_name being a pointer.
4589 * symfile.c (expand_symtabs_matching): Same.
4590 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4591 * linespec.c (iterate_over_all_matching_symtabs): Same.
4592
400b5eca
TT
45932020-04-13 Tom Tromey <tom@tromey.com>
4594
4595 * run-on-main-thread.c: Update include.
4596 * unittests/main-thread-selftests.c: Update include.
4597 * tui/tui-win.c: Update include.
4598 * tui/tui-io.c: Update include.
4599 * tui/tui-interp.c: Update include.
4600 * tui/tui-hooks.c: Update include.
4601 * top.h: Update include.
4602 * top.c: Update include.
4603 * ser-base.c: Update include.
4604 * remote.c: Update include.
4605 * remote-notif.c: Update include.
4606 * remote-fileio.c: Update include.
4607 * record-full.c: Update include.
4608 * record-btrace.c: Update include.
4609 * python/python.c: Update include.
4610 * posix-hdep.c: Update include.
4611 * mingw-hdep.c: Update include.
4612 * mi/mi-main.c: Update include.
4613 * mi/mi-interp.c: Update include.
4614 * main.c: Update include.
4615 * linux-nat.c: Update include.
4616 * interps.c: Update include.
4617 * infrun.c: Update include.
4618 * inf-loop.c: Update include.
4619 * event-top.c: Update include.
4620 * event-loop.c: Move to ../gdbsupport/.
4621 * event-loop.h: Move to ../gdbsupport/.
4622 * async-event.h: Update include.
4623 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4624
93b54c8e
TT
46252020-04-13 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-win.c: Include async-event.h.
4628 * remote.c: Include async-event.h.
4629 * remote-notif.c: Include async-event.h.
4630 * record-full.c: Include async-event.h.
4631 * record-btrace.c: Include async-event.h.
4632 * infrun.c: Include async-event.h.
4633 * event-top.c: Include async-event.h.
4634 * event-loop.h: Move some declarations to async-event.h.
4635 * event-loop.c: Don't include ser-event.h or top.h. Move some
4636 code to async-event.c.
4637 * async-event.h: New file.
4638 * async-event.c: New file.
4639 * Makefile.in (COMMON_SFILES): Add async-event.c.
4640 (HFILES_NO_SRCDIR): Add async-event.h.
4641
c1cd3163
TT
46422020-04-13 Tom Tromey <tom@tromey.com>
4643
4644 * utils.c (flush_streams): New function.
4645 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4646
29f2bf4f
TT
46472020-04-13 Tom Tromey <tom@tromey.com>
4648
4649 * event-loop.c (handle_file_event): Use warning, not
4650 printf_unfiltered.
4651
98029d02
TT
46522020-04-13 Tom Tromey <tom@tromey.com>
4653
4654 * event-loop.c: Include <chrono>.
4655
06cc9596
TT
46562020-04-13 Tom Tromey <tom@tromey.com>
4657
4658 * gdb_select.h: Move to ../gdbsupport/.
4659 * event-loop.c: Update include path.
4660 * top.c: Update include path.
4661 * ser-base.c: Update include path.
4662 * ui-file.c: Update include path.
4663 * ser-tcp.c: Update include path.
4664 * guile/scm-ports.c: Update include path.
4665 * posix-hdep.c: Update include path.
4666 * ser-unix.c: Update include path.
4667 * gdb_usleep.c: Update include path.
4668 * mingw-hdep.c: Update include path.
4669 * inflow.c: Update include path.
4670 * infrun.c: Update include path.
4671 * event-top.c: Update include path.
4672
8ae8e197
TT
46732020-04-13 Tom Tromey <tom@tromey.com>
4674
4675 * configure: Rebuild.
4676 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4677
58cf28e8
TT
46782020-04-13 Tom Tromey <tom@tromey.com>
4679
4680 * event-loop.h (start_event_loop): Don't declare.
4681 * event-loop.c (start_event_loop): Move...
4682 * main.c (start_event_loop): ...here. Now static.
4683
b7f999ae
SDJ
46842020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4685
4686 * MAINTAINERS: Update my email address.
4687
1085dfd4
KR
46882020-04-12 Kamil Rytarowski <n54@gmx.com>
4689
4690 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4691 IP_ALL.
4692
49d1d1f5
KR
46932020-04-12 Kamil Rytarowski <n54@gmx.com>
4694
4695 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4696 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4697
b4848d2a
KR
46982020-04-12 Kamil Rytarowski <n54@gmx.com>
4699
4700 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4701 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4702
51c133d5
KR
47032020-04-12 Kamil Rytarowski <n54@gmx.com>
4704
4705 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4706
54b8cbd0
KR
47072020-04-11 Kamil Rytarowski <n54@gmx.com>
4708
4709 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4710 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4711 (nbsd_nat_target::info_proc): New functions.
4712 * nbsd-nat.c (kinfo_get_vmmap): New function.
4713 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4714 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4715 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4716 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4717 functions.
4718 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4719 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4720 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4721 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4722 (KINFO_VME_FLAG_GROWS_DOWN): New.
4723
cf83625d
AS
47242020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4725
4726 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4727 bit shift.
4728
0c4311ab
TT
47292020-04-10 Tom Tromey <tromey@adacore.com>
4730
4731 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4732
3e65b3e9
TT
47332020-04-10 Tom Tromey <tromey@adacore.com>
4734
4735 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4736 separate debug files.
4737
13302e95
HD
47382020-04-10 Hannes Domani <ssbssa@yahoo.de>
4739
4740 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4741 Move to...
4742 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4743 ... here.
4744 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4745 Check for STATUS_WX86_BREAKPOINT.
4746 (windows_nat_target::wait): Same.
4747
bdfc1e8a
TV
47482020-04-10 Tom de Vries <tdevries@suse.de>
4749
4750 PR cli/25808
4751 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4752
f4460aec
SM
47532020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4754
4755 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4756 (Write After Approval): Remove Tom de Vries.
4757
a25198bb
BE
47582020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4759
4760 revert partially:
4761 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4762
aac66a4c
SM
4763 * buildsym.c (record_line): Fix undefined behavior and preserve
4764 lines at eof.
a25198bb 4765
206c98a6
KR
47662020-04-09 Kamil Rytarowski <n54@gmx.com>
4767
4768 * auxv.h (svr4_auxv_parse): New.
4769 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4770 and generic_auxv_parse.
4771 (svr4_auxv_parse): Add.
4772 * obsd-tdep.c: Include "auxv.h".
4773 (obsd_auxv_parse): Remove.
4774 (obsd_init_abi): Remove comment.
4775 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4776 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4777 * nbsd-tdep.c: Include "auxv.h".
4778 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4779
71fbdbaf
TT
47802020-04-08 Tom Tromey <tromey@adacore.com>
4781
4782 * nat/windows-nat.h (last_wait_event): Don't declare.
4783 (wait_for_debug_event): Update comment.
4784 * nat/windows-nat.c (last_wait_event): Now static.
4785
2c1d95e8
TT
47862020-04-08 Tom Tromey <tromey@adacore.com>
4787
4788 * windows-nat.c (wait_for_debug_event): Move to
4789 nat/windows-nat.c.
4790 * nat/windows-nat.h (wait_for_debug_event): Declare.
4791 * nat/windows-nat.c (wait_for_debug_event): Move from
4792 windows-nat.c. No longer static.
4793
d2977bc4
TT
47942020-04-08 Tom Tromey <tromey@adacore.com>
4795
4796 * windows-nat.c (get_windows_debug_event): Use
4797 fetch_pending_stop.
4798 * nat/windows-nat.h (fetch_pending_stop): Declare.
4799 * nat/windows-nat.c (fetch_pending_stop): New function.
4800
e758e19c
TT
48012020-04-08 Tom Tromey <tromey@adacore.com>
4802
4803 * windows-nat.c (windows_continue): Use matching_pending_stop and
4804 continue_last_debug_event.
4805 * nat/windows-nat.h (matching_pending_stop)
4806 (continue_last_debug_event): Declare.
4807 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4808 (matching_pending_stop, continue_last_debug_event): New
4809 functions.
4810
8d30e395
TT
48112020-04-08 Tom Tromey <tromey@adacore.com>
4812
4813 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4814 (handle_exception_result): Move to nat/windows-nat.h.
4815 (DEBUG_EXCEPTION_SIMPLE): Remove.
4816 (windows_nat::handle_ms_vc_exception): New function.
4817 (handle_exception): Move to nat/windows-nat.c.
4818 (get_windows_debug_event): Update.
4819 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4820 nat/windows-nat.c.
4821 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4822 (handle_exception_result): Move from windows-nat.c.
4823 (handle_exception): Declare.
4824 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4825 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4826 windows-nat.c.
4827
29de418d
TT
48282020-04-08 Tom Tromey <tromey@adacore.com>
4829
4830 * windows-nat.c (exception_count, event_count): Remove.
4831 (handle_exception, get_windows_debug_event)
4832 (do_initial_windows_stuff): Update.
4833
a816ba18
TT
48342020-04-08 Tom Tromey <tromey@adacore.com>
4835
4836 * windows-nat.c (windows_nat::handle_load_dll)
4837 (windows_nat::handle_unload_dll): Rename. No longer static.
4838 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4839 Declare.
4840
a00caa12
TT
48412020-04-08 Tom Tromey <tromey@adacore.com>
4842
4843 * complaints.h (stop_whining): Declare at top-level.
4844 (complaint): Don't declare stop_whining.
4845
d41b524f
TT
48462020-04-08 Tom Tromey <tromey@adacore.com>
4847
4848 * windows-nat.c (windows_nat::handle_output_debug_string):
4849 Rename. No longer static.
4850 * nat/windows-nat.h (handle_output_debug_string): Declare.
4851
3c76026d
TT
48522020-04-08 Tom Tromey <tromey@adacore.com>
4853
4854 * windows-nat.c (current_process_handle, current_process_id)
4855 (main_thread_id, last_sig, current_event, last_wait_event)
4856 (current_windows_thread, desired_stop_thread_id, pending_stops)
4857 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4858 (display_selectors, fake_create_process)
4859 (get_windows_debug_event): Update.
4860 * nat/windows-nat.h (current_process_handle, current_process_id)
4861 (main_thread_id, last_sig, current_event, last_wait_event)
4862 (current_windows_thread, desired_stop_thread_id, pending_stops)
4863 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4864 * nat/windows-nat.c (current_process_handle, current_process_id)
4865 (main_thread_id, last_sig, current_event, last_wait_event)
4866 (current_windows_thread, desired_stop_thread_id, pending_stops)
4867 (siginfo_er): New globals. Move from windows-nat.c.
4868
9d8679cc
TT
48692020-04-08 Tom Tromey <tromey@adacore.com>
4870
4871 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4872 (handle_load_dll): Update.
4873 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4874
28688adf
TT
48752020-04-08 Tom Tromey <tromey@adacore.com>
4876
4877 * windows-nat.c (enum thread_disposition_type): Move to
4878 nat/windows-nat.h.
4879 (windows_nat::thread_rec): Rename from thread_rec. No longer
4880 static.
4881 (windows_add_thread, windows_nat_target::fetch_registers)
4882 (windows_nat_target::store_registers, handle_exception)
4883 (windows_nat_target::resume, get_windows_debug_event)
4884 (windows_nat_target::get_tib_address)
4885 (windows_nat_target::thread_name)
4886 (windows_nat_target::thread_alive): Update.
4887 * nat/windows-nat.h (enum thread_disposition_type): Move from
4888 windows-nat.c.
4889 (thread_rec): Declare.
4890
4834dad0
TT
48912020-04-08 Tom Tromey <tromey@adacore.com>
4892
4893 * windows-nat.c: Add "using namespace".
4894 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
4895 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
4896
65bafd5b
TT
48972020-04-08 Tom Tromey <tromey@adacore.com>
4898
4899 * nat/windows-nat.h (struct windows_thread_info): Declare
4900 destructor.
4901 * nat/windows-nat.c (~windows_thread_info): New.
4902
0a4afda3
TT
49032020-04-08 Tom Tromey <tromey@adacore.com>
4904
4905 PR gdb/22992
4906 * windows-nat.c (current_event): Update comment.
4907 (last_wait_event, desired_stop_thread_id): New globals.
4908 (struct pending_stop): New.
4909 (pending_stops): New global.
4910 (windows_nat_target) <stopped_by_sw_breakpoint>
4911 <supports_stopped_by_sw_breakpoint>: New methods.
4912 (windows_fetch_one_register): Add assertions. Adjust PC.
4913 (windows_continue): Handle pending stops. Suspend other threads
4914 when stepping. Use last_wait_event
4915 (wait_for_debug_event): New function.
4916 (get_windows_debug_event): Use wait_for_debug_event. Handle
4917 pending stops. Queue spurious stops.
4918 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
4919 (windows_nat_target::kill): Use wait_for_debug_event.
4920 * nat/windows-nat.h (struct windows_thread_info)
4921 <stopped_at_software_breakpoint>: New field.
4922 * nat/windows-nat.c (windows_thread_info::resume): Clear
4923 stopped_at_software_breakpoint.
4924
8e61ebec
TT
49252020-04-08 Tom Tromey <tromey@adacore.com>
4926
4927 * windows-nat.c (enum thread_disposition_type): New.
4928 (thread_rec): Replace "get_context" parameter with "disposition";
4929 change type.
4930 (windows_add_thread, windows_nat_target::fetch_registers)
4931 (windows_nat_target::store_registers, handle_exception)
4932 (windows_nat_target::resume, get_windows_debug_event)
4933 (windows_nat_target::get_tib_address)
4934 (windows_nat_target::thread_name)
4935 (windows_nat_target::thread_alive): Update.
4936
98a03287
TT
49372020-04-08 Tom Tromey <tromey@adacore.com>
4938
4939 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
4940 (windows_continue): Use windows_continue::resume.
4941 * nat/windows-nat.h (struct windows_thread_info) <suspend,
4942 resume>: Declare new methods.
4943 * nat/windows-nat.c: New file.
4944 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
4945
7c7411bc
TT
49462020-04-08 Tom Tromey <tromey@adacore.com>
4947
4948 * windows-nat.c (windows_add_thread, windows_delete_thread)
4949 (windows_nat_target::fetch_registers)
4950 (windows_nat_target::store_registers, fake_create_process)
4951 (windows_nat_target::resume, windows_nat_target::resume)
4952 (get_windows_debug_event, windows_nat_target::wait)
4953 (windows_nat_target::pid_to_str)
4954 (windows_nat_target::get_tib_address)
4955 (windows_nat_target::get_ada_task_ptid)
4956 (windows_nat_target::thread_name)
4957 (windows_nat_target::thread_alive): Use lwp, not tid.
4958
2950fdf7
TT
49592020-04-08 Tom Tromey <tromey@adacore.com>
4960
4961 * windows-nat.c (handle_exception)
4962 (windows_nat_target::thread_name): Update.
4963 * nat/windows-nat.h (windows_thread_info): Remove destructor.
4964 <name>: Now unique_xmalloc_ptr.
4965
62fe396b
TT
49662020-04-08 Tom Tromey <tromey@adacore.com>
4967
4968 * windows-nat.c (thread_rec)
4969 (windows_nat_target::fetch_registers): Update.
4970 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
4971 Update comment.
4972 <debug_registers_changed, reload_context>: Now bool.
4973
e9534bd2
TT
49742020-04-08 Tom Tromey <tromey@adacore.com>
4975
4976 * windows-nat.c (windows_add_thread): Use new.
4977 (windows_init_thread_list, windows_delete_thread): Use delete.
4978 (get_windows_debug_event): Update.
4979 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
4980 destructor, and initializers.
4981
ae1f8880
TT
49822020-04-08 Tom Tromey <tromey@adacore.com>
4983
4984 * windows-nat.c (struct windows_thread_info): Remove.
4985 * nat/windows-nat.h: New file.
4986
55a1e039
TT
49872020-04-08 Tom Tromey <tromey@adacore.com>
4988
4989 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
4990 (thread_rec, windows_add_thread, windows_delete_thread)
4991 (windows_continue): Update.
4992
93366324
TT
49932020-04-08 Tom Tromey <tromey@adacore.com>
4994
4995 * windows-nat.c (struct windows_thread_info): Remove typedef.
4996 (thread_head): Remove.
4997 (thread_list): New global.
4998 (thread_rec, windows_add_thread, windows_init_thread_list)
4999 (windows_delete_thread, windows_continue): Update.
5000
0f2265e2
SM
50012020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * windows-tdep.h (windows_init_abi): Add comment.
5004 (cygwin_init_abi): New declaration.
5005 * windows-tdep.c: Split signal enumeration in two, one for
5006 Windows and one for Cygwin.
5007 (windows_gdb_signal_to_target): Only deal with signal of the
5008 Windows OS ABI.
5009 (cygwin_gdb_signal_to_target): New function.
5010 (windows_init_abi): Rename to windows_init_abi_common, don't set
5011 gdb_signal_to_target gdbarch method. Add new new function with
5012 this name.
5013 (cygwin_init_abi): New function.
5014 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5015 comment. Don't call windows_init_abi.
5016 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5017 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5018 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5019 i386_windows_init_abi_common, don't call windows_init_abi. Add
5020 a new function of this name.
5021 (i386_cygwin_init_abi): New function.
5022 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5023 OS ABI Cygwin.
5024
3810f182
SM
50252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5026
5027 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5028 parameter.c.
5029 (dwarf2_read_gdb_index): Update.
5030
063f8e80
KR
50312020-04-07 Kamil Rytarowski <n54@gmx.com>
5032
5033 * nbsd-tdep.c: Include "objfiles.h".
5034 (nbsd_skip_solib_resolver): New.
5035 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5036
85a9510c 50372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5038
5039 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5040 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5041 with DW_LLE_base_addressx are being emitted in DWARFv5.
5042 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5043 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5044 unsigned integer.
5045
9fc3eaae 50462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5047
5048 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5049 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5050 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5051 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5052 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5053 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5054 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5055
5056
41144253 50572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5058
5059 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5060 (read_loclist_index): New function definition.
5061 (lookup_loclist_base): New function definition.
5062 (read_loclist_header): New function definition.
5063 (dwarf2_cu): Add loclist_base and loclist_header field.
5064 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5065 (read_full_die_1): Read the value of DW_AT_loclists_base.
5066 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5067 (read_attribute_value): Handle DW_FORM_loclistx.
5068 (skip_one_die): Handle DW_FORM_loclistx.
5069 (loclist_header): New structure declaration.
5070 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5071
9f4e76a4
SM
50722020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5073
5074 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5075 constructor. Remove `addr` parameter from other constructor and
5076 add `per_cu` parameter.
5077 * dwarf2/read.c (create_partial_symtab): Update.
5078
25c11aca
TV
50792020-04-07 Tom de Vries <tdevries@suse.de>
5080
5081 PR symtab/25796
5082 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5083 (partial_die_info::fixup): Inherit has_const_value.
5084
5707e24b
TV
50852020-04-07 Tom de Vries <tdevries@suse.de>
5086
5087 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5088 symbols without address.
5089
05f00e22
KR
50902020-04-06 Kamil Rytarowski <n54@gmx.com>
5091
5092 * nbsd-nat.h (struct thread_info): Add forward declaration.
5093 (nbsd_nat_target::thread_alive): Add.
5094 (nbsd_nat_target::thread_name): Likewise.
5095 (nbsd_nat_target::update_thread_list): Likewise.
5096 (update_thread_list::post_attach): Likewise.
5097 (post_attach::pid_to_str): Likewise.
5098 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5099 (nbsd_thread_lister): Add.
5100 (nbsd_nat_target::thread_alive): Likewise.
5101 (nbsd_nat_target::thread_name): Likewise.
5102 (nbsd_add_threads): Likewise.
5103 (update_thread_list::post_attach): Likewise.
5104 (nbsd_nat_target::update_thread_list): Likewise.
5105 (post_attach::pid_to_str): Likewise.
5106
6ee448cc
TT
51072020-04-06 Tom Tromey <tromey@adacore.com>
5108
5109 * ada-valprint.c (print_variant_part): Extract the variant field.
5110 (print_field_values): Use the field as the outer value when
5111 recursing.
5112
dea34e8c
TT
51132020-04-06 Tom Tromey <tromey@adacore.com>
5114
5115 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5116 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5117 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5118 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5119 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5120
93689ce9
TT
51212020-04-06 Tom Tromey <tromey@adacore.com>
5122
5123 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5124 TYPE_CODE_ERROR.
5125
79743962
KR
51262020-04-06 Kamil Rytarowski <n54@gmx.com>
5127
5128 * nbsd-tdep.c: Include "gdbarch.h".
5129 Define enum with NetBSD signal numbers.
5130 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5131 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5132 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5133 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5134 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5135 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5136 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5137 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5138 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5139 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5140 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5141 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5142
9e7c9a03
HD
51432020-04-03 Hannes Domani <ssbssa@yahoo.de>
5144
5145 PR gdb/25325
5146 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5147
d9e49b61
TT
51482020-04-03 Tom Tromey <tromey@adacore.com>
5149
5150 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5151 Read constant block.
5152
e0fc5c3f
SM
51532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5156 (gdb_bfd_get_full_section_contents): New declaration.
5157 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5158 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5159 gdb_bfd_get_full_section_contents.
5160
e2ff18a0
SM
51612020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5162
5163 * exec.c (build_section_table): Replace internal_error with
5164 gdb_assert.
5165 (section_table_xfer_memory_partial): Likewise.
5166 * mdebugread.c (parse_partial_symbols): Likewise.
5167 * psymtab.c (lookup_partial_symbol): Likewise.
5168 * utils.c (wrap_here): Likewise.
5169
0830d301
TT
51702020-04-02 Tom Tromey <tromey@adacore.com>
5171
5172 * f-lang.c (build_fortran_types): Use arch_type to initialize
5173 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5174
e7da7f8f
TT
51752020-04-02 Tom Tromey <tromey@adacore.com>
5176
5177 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5178 of attributes.
5179
c90d28ac
AB
51802020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5181 Bernd Edlinger <bernd.edlinger@hotmail.de>
5182 Tom Tromey <tromey@adacore.com>
5183
5184 * buildsym.c (buildsym_compunit::record_line): Remove
5185 deduplication code.
5186
1aa98955
TV
51872020-04-02 Tom de Vries <tdevries@suse.de>
5188
5189 PR ada/24671
5190 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5191
d3214198
TV
51922020-04-02 Tom de Vries <tdevries@suse.de>
5193
5194 * dwarf2/read.c (dwarf2_gdb_index_functions,
5195 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5196 NULL.
5197 * psymtab.c (psym_lookup_global_symbol_language): New function.
5198 (psym_functions): Init psym_lookup_global_symbol_language with
5199 psym_lookup_global_symbol_language.
5200 * symfile-debug.c (debug_sym_quick_functions): Init
5201 lookup_global_symbol_language with NULL.
5202 * symfile.c (set_initial_language): Remove fixme comment.
5203 * symfile.h (struct quick_symbol_functions): Add
5204 lookup_global_symbol_language.
5205 * symtab.c (find_quick_global_symbol_language): New function.
5206 (find_main_name): Use find_quick_global_symbol_language.
5207
2836752f
SM
52082020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5211
64dc2d4b
BE
52122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5213
5214 * buildsym.c (record_line): Fix undefined behavior and preserve
5215 lines at eof.
5216
bbe3dc41
BE
52172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5218
5219 * buildsym.c (record_line): Fix the resizing condition.
5220
6b4a335b
TT
52212020-04-01 Tom Tromey <tom@tromey.com>
5222
5223 * value.h (value_literal_complex): Add comment.
5224 * valops.c (value_literal_complex): Refer to value.h.
5225
3638a098
TT
52262020-04-01 Tom Tromey <tom@tromey.com>
5227
5228 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5229 (scalar_type): New rule, from typebase.
5230 (typebase): Use scalar_type. Recognize complex types.
5231 (field_name): Handle FLOAT_KEYWORD.
5232 (ident_tokens): Add _Complex and __complex__.
5233
c34e8714
TT
52342020-04-01 Tom Tromey <tom@tromey.com>
5235
5236 PR exp/25299:
5237 * valarith.c (promotion_type, complex_binop): New functions.
5238 (scalar_binop): Handle complex numbers. Use promotion_type.
5239 (value_pos, value_neg, value_complement): Handle complex numbers.
5240
fa649bb7
TT
52412020-04-01 Tom Tromey <tom@tromey.com>
5242
5243 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5244 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5245 (parse_number): Handle complex numbers.
5246
981c08ce
TT
52472020-04-01 Tom Tromey <tom@tromey.com>
5248
5249 * c-valprint.c (c_decorations): Change complex suffix to "i".
5250
4c99290d
TT
52512020-04-01 Tom Tromey <tom@tromey.com>
5252
5253 * valprint.c (generic_value_print_complex): Use accessors.
5254 * value.h (value_real_part, value_imaginary_part): Declare.
5255 * valops.c (value_real_part, value_imaginary_part): New
5256 functions.
5257 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5258
5b930b45
TT
52592020-04-01 Tom Tromey <tom@tromey.com>
5260
5261 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5262 (read_range_type): Update.
5263 * mdebugread.c (basic_type): Update.
5264 * go-lang.c (build_go_types): Use init_complex_type.
5265 * gdbtypes.h (struct main_type) <complex_type>: New member.
5266 (init_complex_type): Update.
5267 (arch_complex_type): Don't declare.
5268 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5269 Make name if none given. Use alloc_type_copy. Look for cached
5270 complex type.
5271 (arch_complex_type): Remove.
5272 (gdbtypes_post_init): Use init_complex_type.
5273 * f-lang.c (build_fortran_types): Use init_complex_type.
5274 * dwarf2/read.c (read_base_type): Update.
5275 * d-lang.c (build_d_types): Use init_complex_type.
5276 * ctfread.c (read_base_type): Update.
5277
53cccef1
TBA
52782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5279
5280 * infrun.c (stop_all_threads): Update assertion, plus when
5281 stopping threads, take into account that we might be trying
5282 to stop an all-stop target.
5283 (stop_waiting): Call 'stop_all_threads' if there exists a
5284 non-stop target.
5285
a0714d30
TBA
52862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5287
5288 * target.h (exists_non_stop_target): New function declaration.
5289 * target.c (exists_non_stop_target): New function.
5290
60e22c1e
HD
52912020-04-01 Hannes Domani <ssbssa@yahoo.de>
5292
5293 PR gdb/24789
5294 * eval.c (is_integral_or_integral_reference): New function.
5295 (evaluate_subexp_standard): Allow integer references in
5296 pointer arithmetic.
5297
e139a727
TBA
52982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5299
5300 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5301 check for no ptid in the stop reply when the target is non-stop.
5302
e0802d59
TT
53032020-04-01 Tom Tromey <tromey@adacore.com>
5304
5305 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5306 "name" parameter to rvalue reference. Initialize m_name_holder.
5307 <lookup_name_info>: New overloads.
5308 <name>: Return gdb::string_view.
5309 <c_str>: New method.
5310 <make_ignore_params>: Update.
5311 <search_name_hash>: Update.
5312 <language_lookup_name>: Return const char *.
5313 <m_name>: Change type.
5314 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5315 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5316 (lookup_name_info::match_any): Update.
5317 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5318 Update.
5319 * minsyms.c (linkage_name_str): Update.
5320 * language.c (default_symbol_name_matcher): Update.
5321 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5322 Update.
5323 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5324 (ada_lookup_name_info::ada_lookup_name_info): Update.
5325 (literal_symbol_name_matcher): Update.
5326
8c072cb6
TT
53272020-04-01 Tom Tromey <tromey@adacore.com>
5328
5329 * psymtab.c (psymtab_search_name): Remove function.
5330 (psym_lookup_symbol): Create search name and lookup name here.
5331 (lookup_partial_symbol): Remove "name" parameter; add
5332 lookup_name.
5333 (psym_expand_symtabs_for_function): Update.
5334
6f29a534
TT
53352020-03-31 Joel Jones <joelkevinjones@gmail.com>
5336
5337 PR tui/25597:
5338 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5339
af62665e
TT
53402020-03-31 Tom Tromey <tromey@adacore.com>
5341
5342 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5343 memcpy.
5344
d1a89da5
NC
53452020-03-30 Nelson Chu <nelson.chu@sifive.com>
5346
5347 * features/riscv/32bit-csr.xml: Regenerated.
5348 * features/riscv/64bit-csr.xml: Regenerated.
5349
d8af9068
TT
53502020-03-30 Tom Tromey <tromey@adacore.com>
5351
5352 * ada-valprint.c (print_variant_part): Update.
5353 * ada-lang.h (ada_which_variant_applies): Update.
5354 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5355 outer_valaddr parameters; replace with "outer" value parameter.
5356 (to_fixed_variant_branch_type): Update.
5357
227c0bf4
PFC
53582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5359
5360 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5361 <list>. Remove inclusion of observable.h.
5362 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5363 (struct arch_lwp_info): New struct.
5364 (class ppc_linux_dreg_interface): New class.
5365 (struct ppc_linux_process_info): New struct.
5366 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5367 <low_new_clone, low_forget_process, low_prepare_to_resume>
5368 <copy_thread_dreg_state, mark_thread_stale>
5369 <mark_debug_registers_changed, register_hw_breakpoint>
5370 <clear_hw_breakpoint, register_wp, clear_wp>
5371 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5372 <num_memory_accesses, get_trigger_type>
5373 <create_watchpoint_request, hwdebug_point_cmp>
5374 <init_arch_lwp_info, get_arch_lwp_info>
5375 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5376 methods.
5377 <struct ptid_hash>: New inner struct.
5378 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5379 members.
5380 (saved_dabr_value, hwdebug_info, max_slots_number)
5381 (struct hw_break_tuple, struct thread_points, ppc_threads)
5382 (have_ptrace_hwdebug_interface)
5383 (hwdebug_find_thread_points_by_tid)
5384 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5385 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5386 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5387 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5388 use m_dreg_interface.
5389 (hwdebug_point_cmp): Change to...
5390 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5391 reference arguments instead of pointers.
5392 (ppc_linux_nat_target::ranged_break_num_registers): Use
5393 m_dreg_interface.
5394 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5395 m_dreg_interface. Call register_hw_breakpoint.
5396 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5397 m_dreg_interface. Call clear_hw_breakpoint.
5398 (get_trigger_type): Change to...
5399 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5400 comment.
5401 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5402 use m_dreg_interface. Call register_hw_breakpoint.
5403 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5404 use m_dreg_interface. Call clear_hw_breakpoint.
5405 (can_use_watchpoint_cond_accel): Change to...
5406 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5407 method. Update comment, use m_dreg_interface and
5408 m_process_info.
5409 (calculate_dvc): Change to...
5410 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5411 m_dreg_interface.
5412 (num_memory_accesses): Change to...
5413 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5414 (check_condition): Change to...
5415 (ppc_linux_nat_target::check_condition): ...this method.
5416 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5417 comment, use m_dreg_interface.
5418 (create_watchpoint_request): Change to...
5419 (ppc_linux_nat_target::create_watchpoint_request): ...this
5420 method. Use m_dreg_interface.
5421 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5422 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5423 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5424 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5425 (ppc_linux_nat_target::low_forget_process)
5426 (ppc_linux_nat_target::low_new_fork)
5427 (ppc_linux_nat_target::low_new_clone)
5428 (ppc_linux_nat_target::low_delete_thread)
5429 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5430 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5431 only call mark_thread_stale.
5432 (ppc_linux_thread_exit): Remove.
5433 (ppc_linux_nat_target::stopped_data_address): Change to...
5434 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5435 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5436 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5437 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5438 comment. Call low_stopped_data_address.
5439 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5440 m_dreg_interface.
5441 (ppc_linux_nat_target::masked_watch_num_registers): Use
5442 m_dreg_interface.
5443 (ppc_linux_nat_target::copy_thread_dreg_state)
5444 (ppc_linux_nat_target::mark_thread_stale)
5445 (ppc_linux_nat_target::mark_debug_registers_changed)
5446 (ppc_linux_nat_target::register_hw_breakpoint)
5447 (ppc_linux_nat_target::clear_hw_breakpoint)
5448 (ppc_linux_nat_target::register_wp)
5449 (ppc_linux_nat_target::clear_wp)
5450 (ppc_linux_nat_target::init_arch_lwp_info)
5451 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5452 (_initialize_ppc_linux_nat): Remove observer callback.
5453
4db10d8f
PFC
54542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5455
5456 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5457 (ppc_linux_nat_target::auxv_parse)
5458 (ppc_linux_nat_target::read_description)
5459 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5460 Move up.
5461
1310c1b0
PFC
54622020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5463
5464 * linux-nat.h (low_new_clone): New method.
5465 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5466
69b037c3
SM
54672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5468
5469 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5470 (dbx_expand_psymtab): ... this.
5471 (start_psymtab): Update.
5472 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5473 (mdebug_expand_psymtab): ... this.
5474 (parse_partial_symbols): Update.
5475 (new_psymtab): Update.
5476 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5477 (xcoff_expand_psymtab): ... this.
5478 (xcoff_start_psymtab): Update.
5479
48993951
SM
54802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5481
5482 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5483 <expand_dependencies>: ... this.
5484 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5485 (partial_symtab::expand_dependencies): ... this.
5486 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5487 Update.
5488 (dwarf2_psymtab::expand_psymtab): Update.
5489 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5490 * mdebugread.c (psymtab_to_symtab_1): Update.
5491 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5492
3ad83046
SM
54932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5494
5495 * psympriv.h (discard_psymtab): Remove.
5496 * dbxread.c (dbx_end_psymtab): Update.
5497 * xcoffread.c (xcoff_end_psymtab): Update.
5498
4d1b9ab6
TT
54992020-03-28 Tom Tromey <tom@tromey.com>
5500
5501 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5502 comment.
5503
f1749218
TT
55042020-03-28 Tom Tromey <tom@tromey.com>
5505
5506 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5507
ebea7626
HD
55082020-03-27 Hannes Domani <ssbssa@yahoo.de>
5509
5510 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5511
a879b4d5
JB
55122020-03-26 John Baldwin <jhb@FreeBSD.org>
5513
5514 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5515
0826b30a
TT
55162020-03-26 Tom Tromey <tom@tromey.com>
5517
5518 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5519 (mark_common_block_symbol_computed, read_tag_string_type)
5520 (attr_to_dynamic_prop, read_subrange_type): Update.
5521 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5522 to be methods on struct attribute.
5523 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5524 (read_call_site_scope, partial_die_info::read)
5525 (partial_die_info::read, lookup_die_type, follow_die_ref):
5526 Update.
5527 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5528 from dwarf2_get_ref_die_offset.
5529 (attribute::constant_value): New method, from
5530 dwarf2_get_attr_constant_value.
5531 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5532 Declare method.
5533 <constant_value>: New method.
5534
2b2558bf
TT
55352020-03-26 Tom Tromey <tom@tromey.com>
5536
5537 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5538 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5539 (dwarf_type_encoding_name): Move to stringify.c.
5540 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5541 * dwarf2/stringify.c: New file.
5542 * dwarf2/stringify.h: New file.
5543
eeb64781
TT
55442020-03-26 Tom Tromey <tom@tromey.com>
5545
5546 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5547 Rewrite.
5548
a39fdb41
TT
55492020-03-26 Tom Tromey <tom@tromey.com>
5550
5551 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5552 methods.
5553 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5554 (lookup_ranges_base): Likewise.
5555 (read_cutu_die_from_dwo, read_full_die_1): Update.
5556
436c571c
TT
55572020-03-26 Tom Tromey <tom@tromey.com>
5558
5559 * dwarf2/read.c (read_import_statement, read_file_scope)
5560 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5561 (read_lexical_block_scope, read_call_site_scope)
5562 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5563 (handle_struct_member_die, process_structure_scope)
5564 (update_enumeration_type_from_children)
5565 (process_enumeration_scope, read_array_type, read_common_block)
5566 (read_namespace, read_module, read_subroutine_type): Update.
5567 (sibling_die): Remove.
5568
052c8bb8
TT
55692020-03-26 Tom Tromey <tom@tromey.com>
5570
5571 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5572 (build_type_psymtabs_reader, read_structure_type)
5573 (read_enumeration_type, read_full_die_1): Update.
5574 (dwarf2_attr_no_follow): Move to die.h.
5575 * dwarf2/die.h (struct die_info) <attr>: New method.
5576
2b24b6e4
TT
55772020-03-26 Tom Tromey <tom@tromey.com>
5578
5579 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5580 <base_address>: Now an optional.
5581 (dwarf2_find_base_address, dwarf2_rnglists_process)
5582 (dwarf2_ranges_process, fill_in_loclist_baton)
5583 (dwarf2_symbol_mark_computed): Update.
5584
c2d50fd0
TT
55852020-03-26 Tom Tromey <tom@tromey.com>
5586
5587 * dwarf2/read.c (struct die_info): Move to die.h.
5588 * dwarf2/die.h: New file.
5589
0df7ad3a
TT
55902020-03-26 Tom Tromey <tom@tromey.com>
5591
5592 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5593 * dwarf2/read.c
5594 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5595 Move to line-header.c.
5596 (read_checked_initial_length_and_offset, read_formatted_entries):
5597 Likewise.
5598 (dwarf_decode_line_header): Split into two.
5599 * dwarf2/line-header.c
5600 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5601 Move from read.c.
5602 (read_checked_initial_length_and_offset, read_formatted_entries):
5603 Likewise.
5604 (dwarf_decode_line_header): New function, split from read.c.
5605
86c0bb4c
TT
56062020-03-26 Tom Tromey <tom@tromey.com>
5607
5608 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5609 Declare method.
5610 * dwarf2/read.c (read_attribute_value): Update.
5611 (dwarf2_per_objfile::read_line_string): Rename from
5612 read_indirect_line_string.
5613 (read_formatted_entries): Update.
5614
2ef46c2f
TT
56152020-03-26 Tom Tromey <tom@tromey.com>
5616
5617 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5618 variable.
5619
4f9c1eda
TT
56202020-03-26 Tom Tromey <tom@tromey.com>
5621
5622 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5623 const.
5624 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5625 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5626 parameter const.
5627
5a0e026f
TT
56282020-03-26 Tom Tromey <tom@tromey.com>
5629
5630 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5631 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5632 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5633 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5634
8844c11b
TT
56352020-03-26 Tom Tromey <tom@tromey.com>
5636
5637 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5638 file_names_size, file_full_name, file_file_name>: Use const.
5639 <file_name_at, file_names>: Add const overload.
5640 * dwarf2/line-header.c (line_header::file_file_name)
5641 (line_header::file_full_name): Update.
5642
c90ec28a
TT
56432020-03-26 Tom Tromey <tom@tromey.com>
5644
5645 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5646 (macro_start_file, consume_improper_spaces)
5647 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5648 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5649 (dwarf_decode_macros): Move to macro.c.
5650 * dwarf2/macro.c: New file.
5651 * dwarf2/macro.h: New file.
5652 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5653
4f44ae6c
TT
56542020-03-26 Tom Tromey <tom@tromey.com>
5655
5656 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5657 method.
5658 * dwarf2/section.c: New method. From
5659 read_indirect_string_at_offset_from.
5660 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5661 (read_indirect_string_at_offset_from): Move to section.c.
5662 (read_indirect_string_at_offset): Rewrite.
5663 (read_indirect_line_string_at_offset): Remove.
5664 (read_indirect_string, read_indirect_line_string)
5665 (dwarf_decode_macro_bytes): Update.
5666
a0194fa8
TT
56672020-03-26 Tom Tromey <tom@tromey.com>
5668
5669 * dwarf2/section.h (struct dwarf2_section_info)
5670 <overload_complaint>: Declare.
5671 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5672 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5673 Rename from dwarf2_section_buffer_overflow_complaint.
5674 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5675 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5676
3d27bbdb
TT
56772020-03-26 Tom Tromey <tom@tromey.com>
5678
5679 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5680 Declare.
5681 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5682 Move from read.c.
5683 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5684 to section.c.
5685
9eac9650
TT
56862020-03-26 Tom Tromey <tom@tromey.com>
5687
5688 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5689
bf80d710
TT
56902020-03-26 Tom Tromey <tom@tromey.com>
5691
5692 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5693 "builder".
5694 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5695 parameter.
5696 (dwarf_decode_macros): Update.
5697
0314b390
TT
56982020-03-26 Tom Tromey <tom@tromey.com>
5699
5700 * dwarf2/read.c (read_attribute_value): Update.
5701 (read_indirect_string_from_dwz): Move to dwz.c; change into
5702 method.
5703 (dwarf_decode_macro_bytes): Update.
5704 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5705 * dwarf2/dwz.c: New file.
5706 * Makefile.in (COMMON_SFILES): Add dwz.c.
5707
9fda78b6
TT
57082020-03-26 Tom Tromey <tom@tromey.com>
5709
5710 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5711 * dwarf2/read.c: Add include.
5712 * dwarf2/index-write.c: Add include.
5713 * dwarf2/index-cache.c: Add include.
5714 * dwarf2/dwz.h: New file.
5715
33aa3c10
TT
57162020-03-25 Tom Tromey <tom@tromey.com>
5717
5718 * compile/compile-object-load.c (get_out_value_type): Mention
5719 correct symbol name in error message.
5720
d503b685
HD
57212020-03-25 Hannes Domani <ssbssa@yahoo.de>
5722
5723 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5724
7b1eff95
TV
57252020-03-25 Tom de Vries <tdevries@suse.de>
5726
5727 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5728 * symmisc.c (dump_symtab_1): Print user and includes fields.
5729 (maintenance_info_symtabs): Same.
5730
dd895392
AB
57312020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5732
5733 PR gdb/25534
5734 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5735 (riscv_regcache_cooked_write): New function.
5736 (riscv_push_dummy_call): Use new function.
5737 (riscv_return_value): Likewise.
5738
5ab2fbf1
SM
57392020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5740
5741 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5742 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5743 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5744 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5745 * infrun.c (follow_fork): Likewise.
5746 (follow_fork_inferior): Likewise.
5747 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5748 * linux-nat.h (class linux_nat_target): Likewise.
5749 * remote.c (class remote_target) <follow_fork>: Likewise.
5750 (remote_target::follow_fork): Likewise.
5751 * target-delegates.c: Re-generate.
5752 * target.c (default_follow_fork): Likewise.
5753 (target_follow_fork): Likewise.
5754 * target.h (struct target_ops) <follow_fork>: Likewise.
5755 (target_follow_fork): Likewise.
5756
a64fafb5
TV
57572020-03-24 Tom de Vries <tdevries@suse.de>
5758
5759 * psymtab.c (maintenance_info_psymtabs): Print user field.
5760
fe26d3a3
TT
57612020-03-20 Tom Tromey <tromey@adacore.com>
5762
5763 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5764 const.
5765 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5766 const.
5767
c884cc46
SM
57682020-03-20 Simon Marchi <simon.marchi@efficios.com>
5769
5770 * ptrace.m4: Don't check for ptrace declaration.
5771 * config.in: Re-generate.
5772 * configure: Re-generate.
5773 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5774 not defined.
5775
1ff700c2
KR
57762020-03-20 Kamil Rytarowski <n54@gmx.com>
5777
5778 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5779 `PTRACE_TYPE_RET'.
5780 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5781 * sparc-nat.c (gdb_ptrace): Likewise.
5782 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5783
f7d4f0b1
TT
57842020-03-20 Tom Tromey <tromey@adacore.com>
5785
5786 * c-exp.y (lex_one_token): Fix assert.
5787
f67210ff
TT
57882020-03-20 Tom Tromey <tromey@adacore.com>
5789
5790 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5791 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5792 strncpy call.
5793
1773be9e
TT
57942020-03-20 Tom Tromey <tromey@adacore.com>
5795
5796 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5797
70304be9
TT
57982020-03-20 Tom Tromey <tromey@adacore.com>
5799
5800 * ada-valprint.c (print_variant_part): Remove parameters; switch
5801 to value-based API.
5802 (print_field_values): Likewise.
5803 (ada_val_print_struct_union): Likewise.
5804 (ada_value_print_1): Update.
5805
9faa006d
KR
58062020-03-20 Kamil Rytarowski <n54@gmx.com>
5807
5808 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5809 nbsd_nat_target instead of inf_ptrace_target.
5810 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5811 nbsd_nat_target.
5812
4a90f062
KR
58132020-03-20 Kamil Rytarowski <n54@gmx.com>
5814
5815 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5816 it to the ptrace call.
5817 * (store_registers): Likewise.
5818
58192020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5820
5821 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5822 it to the ptrace call.
5823 * (store_registers): Likewise.
5824
2d07da27
LM
58252020-03-19 Luis Machado <luis.machado@linaro.org>
5826
5827 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5828 valid, fetch vg value from ptrace.
5829
f09db380
KR
58302020-03-19 Kamil Rytarowski <n54@gmx.com>
5831 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5832 * inf-ptrace.c: Likewise.
5833 * (gdb_ptrace): Add.
5834 * (inf_ptrace_target::resume): Update.
5835 * (inf_ptrace_target::xfer_partial): Likewise.
5836 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5837 * (inf_ptrace_peek_poke): Update.
5838
fcc7376e
KR
58392020-03-19 Kamil Rytarowski <n54@gmx.com>
5840
5841 * x86-bsd-nat.c (gdb_ptrace): New.
5842 * (x86bsd_dr_set): Add new argument `ptid'.
5843 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5844 x86bsd_dr_set_addr): Update.
5845
cada5fc9
AB
58462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * remote.c (remote_target::process_stop_reply): Handle events for
5849 all threads differently.
5850
19a2740f
AB
58512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5852
5853 * completer.c (completion_tracker::remove_completion): Define new
5854 function.
5855 * completer.h (completion_tracker::remove_completion): Declare new
5856 function.
5857 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5858 when adding a C++ function symbol.
5859
724fd9ba
AB
58602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5861
5862 * completer.c (completion_tracker::completion_hash_entry): Define
5863 new class.
5864 (advance_to_filename_complete_word_point): Call
5865 recompute_lowest_common_denominator.
5866 (completion_tracker::completion_tracker): Call discard_completions
5867 to setup the hash table.
5868 (completion_tracker::discard_completions): Allow for being called
5869 from the constructor, pass new equal function, and element deleter
5870 when constructing the hash table. Initialise new class member
5871 variables.
5872 (completion_tracker::maybe_add_completion): Remove use of
5873 m_entries_vec, and store more information into m_entries_hash.
5874 (completion_tracker::recompute_lcd_visitor): New function, most
5875 content taken from...
5876 (completion_tracker::recompute_lowest_common_denominator):
5877 ...here, this now just visits each item in the hash calling the
5878 above visitor.
5879 (completion_tracker::build_completion_result): Remove use of
5880 m_entries_vec, call recompute_lowest_common_denominator.
5881 * completer.h (completion_tracker::have_completions): Remove use
5882 of m_entries_vec.
5883 (completion_tracker::completion_hash_entry): Declare new class.
5884 (completion_tracker::recompute_lowest_common_denominator): Change
5885 function signature.
5886 (completion_tracker::recompute_lcd_visitor): Declare new function.
5887 (completion_tracker::m_entries_vec): Delete.
5888 (completion_tracker::m_entries_hash): Initialize to NULL.
5889 (completion_tracker::m_lowest_common_denominator_valid): New
5890 member variable.
5891 (completion_tracker::m_lowest_common_denominator_max_length): New
5892 member variable.
5893
5a82b8a1
KR
58942020-03-17 Kamil Rytarowski <n54@gmx.com>
5895
5896 * regformats/regdef.h: Put reg in gdb namespace.
5897
fb516a69
KR
58982020-03-17 Kamil Rytarowski <n54@gmx.com>
5899
5900 * i386-bsd-nat.c (gdb_ptrace): New.
5901 * (i386bsd_fetch_inferior_registers,
5902 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5903 * (i386bsd_fetch_inferior_registers,
5904 i386bsd_store_inferior_registers) Use gdb_ptrace.
5905
1c0aa1fb
KR
59062020-03-17 Kamil Rytarowski <n54@gmx.com>
5907
5908 * amd64-bsd-nat.c (gdb_ptrace): New.
5909 * (amd64bsd_fetch_inferior_registers,
5910 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5911 * (amd64bsd_fetch_inferior_registers,
5912 amd64bsd_store_inferior_registers) Use gdb_ptrace.
5913
5ccd2fb7
KR
59142020-03-17 Kamil Rytarowski <n54@gmx.com>
5915
5916 * user-regs.c (user_reg::read): Rename to...
5917 (user_reg::xread): ...this.
5918 * (append_user_reg): Rename argument `read' to `xread'.
5919 * (user_reg_add_builtin): Likewise.
5920 * (user_reg_add): Likewise.
5921 * (value_of_user_reg): Likewise.
5922
2108a63a
KR
59232020-03-17 Kamil Rytarowski <n54@gmx.com>
5924
5925 * sparc-nat.c (gdb_ptrace): New.
5926 * sparc-nat.c (sparc_fetch_inferior_registers)
5927 (sparc_store_inferior_registers) Remove obsolete comment.
5928 * sparc-nat.c (sparc_fetch_inferior_registers)
5929 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
5930 * sparc-nat.c (sparc_fetch_inferior_registers)
5931 (sparc_store_inferior_registers) Use gdb_ptrace.
5932
a225c9a8
KR
59332020-03-17 Kamil Rytarowski <n54@gmx.com>
5934
5935 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
5936 it to the ptrace call.
5937 * sh-nbsd-nat.c (store_registers): Likewise.
5938
98097623
KR
59392020-03-17 Kamil Rytarowski <n54@gmx.com>
5940
5941 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
5942 nbsd_nat_target instead of inf_ptrace_target.
5943 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5944 nbsd_nat_target.
5945
9e38d619
KR
59462020-03-17 Kamil Rytarowski <n54@gmx.com>
5947
5948 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
5949
a2ecbe9f
KR
59502020-03-17 Kamil Rytarowski <n54@gmx.com>
5951
5952 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
5953 <sys/sysctl.h>.
5954 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
5955
58990295
TV
59562020-03-17 Tom de Vries <tdevries@suse.de>
5957
5958 PR gdb/23710
5959 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
5960 fields.
5961 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
5962 fields.
5963 (process_imported_unit_die): Skip import of c++ CUs.
5964
771dd3a8
TT
59652020-03-16 Tom Tromey <tom@tromey.com>
5966
5967 * p-valprint.c (pascal_object_print_value): Initialize
5968 base_value.
5969
817a7585
AK
59702020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
5971 Shahab Vahedi <shahab@synopsys.com>
5972
5973 * Makefile.in: Add arch/arc.o
5974 * configure.tgt: Likewise.
5975 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
5976 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 5977 (arc_read_description): New function to cache target descriptions.
817a7585
AK
5978 * arc-tdep.h (arc_read_description): Add proto type.
5979 * arch/arc.c: New file.
5980 * arch/arc.h: Likewise.
5981 * features/Makefile: Replace old target descriptions with new.
5982 * features/arc-arcompact.c: Remove.
5983 * features/arc-arcompact.xml: Likewise.
5984 * features/arc-v2.c: Likewise
5985 * features/arc-v2.xml: Likewise
5986 * features/arc/aux-arcompact.xml: New file.
5987 * features/arc/aux-v2.xml: Likewise.
5988 * features/arc/core-arcompact.xml: Likewise.
5989 * features/arc/core-v2.xml: Likewise.
5990 * features/arc/aux-arcompact.c: Generate.
5991 * features/arc/aux-v2.c: Likewise.
5992 * features/arc/core-arcompact.c: Likewise.
5993 * features/arc/core-v2.c: Likewise.
5994 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
5995
67430cd0
TT
59962020-03-16 Tom Tromey <tromey@adacore.com>
5997
5998 PR gdb/25663:
5999 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6000 putting value into bcache.
6001
30efb6c7
SM
60022020-03-16 Simon Marchi <simon.marchi@efficios.com>
6003
6004 PR gdb/21500
6005 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6006 to...
6007 (amd64_windows_init_abi_common): ... this. Don't set size of
6008 long type.
6009 (amd64_windows_init_abi): New function.
6010 (amd64_cygwin_init_abi): New function.
6011 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6012 the Cygwin OS ABI.
6013 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6014 comment.
6015
8db52437
SM
60162020-03-16 Simon Marchi <simon.marchi@efficios.com>
6017
6018 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6019 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6020 (pe_import_directory_entry): New struct type.
6021 (is_linked_with_cygwin_dll): New function.
6022 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6023 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6024 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6025
5982a56a
SM
60262020-03-16 Simon Marchi <simon.marchi@efficios.com>
6027
6028 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6029 i386_cygwin_core_osabi_sniffer.
6030
7a1998df
SM
60312020-03-16 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * i386-cygwin-tdep.c: Rename to...
6034 * i386-windows-tdep.c: ... this.
6035 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6036 i386-windows-tdep.c.
6037 * configure.tgt: Likewise.
6038
053205cc
SM
60392020-03-16 Simon Marchi <simon.marchi@efficios.com>
6040
6041 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6042 * osabi.c (gdb_osabi_names): Add "Windows".
6043 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6044 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6045 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6046 i386_cygwin_osabi_sniffer.
6047 (_initialize_i386_cygwin_tdep): Register OS ABI
6048 GDB_OSABI_WINDOWS for i386.
6049 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6050 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6051 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6052 for x86-64.
6053 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6054 when the target matches '*-*-mingw*'.
6055
fe4b2ee6
SM
60562020-03-16 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * defs.h (enum gdb_osabi): Move to...
6059 * osabi.h (enum gdb_osabi): ... here.
6060 * gdbarch.sh: Include osabi.h in gdbarch.h.
6061 * gdbarch.h: Re-generate.
6062
cb9b645d
SM
60632020-03-16 Simon Marchi <simon.marchi@efficios.com>
6064
6065 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6066 function.
6067 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6068
3293bbaf
TT
60692020-03-14 Tom Tromey <tom@tromey.com>
6070
6071 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6072 for C++.
6073 (c_type_print_modifier): Likewise. Add "language" parameter.
6074 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6075 (c_type_print_base_1): Update.
6076 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6077 constants.
6078 * type-stack.c (type_stack::insert): Handle tp_atomic and
6079 tp_restrict.
6080 (type_stack::follow_type_instance_flags): Likewise.
6081 (type_stack::follow_types): Likewise. Merge type-following code.
6082 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6083 (space_identifier, cv_with_space_id)
6084 (const_or_volatile_or_space_identifier_noopt)
6085 (const_or_volatile_or_space_identifier): Remove.
6086 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6087 rules.
6088 (ptr_operator, typebase): Update.
6089 (enum token_flag) <FLAG_C>: New constant.
6090 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6091 "_Atomic".
6092 (lex_one_token): Handle FLAG_C.
6093
154151a6
KR
60942020-03-14 Kamil Rytarowski <n54@gmx.com>
6095
6096 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6097 it to the ptrace call.
6098 * m68k-bsd-nat.c (store_registers): Likewise.
6099
bc107784
KR
61002020-03-14 Kamil Rytarowski <n54@gmx.com>
6101
6102 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6103 gdb_byte *.
6104 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6105 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6106 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6107
01a80117
KR
61082020-03-14 Kamil Rytarowski <n54@gmx.com>
6109
6110 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6111 nbsd_nat_target instead of inf_ptrace_target.
6112 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6113 nbsd_nat_target.
6114
f90280ca
KR
61152020-03-14 Kamil Rytarowski <n54@gmx.com>
6116
6117 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6118 register_t.
6119
6def66f1
KR
61202020-03-14 Kamil Rytarowski <n54@gmx.com>
6121
6122 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6123 it to the ptrace call.
6124 * alpha-bsd-nat.c (store_registers): Likewise.
6125
66eaca97
KR
61262020-03-14 Kamil Rytarowski <n54@gmx.com>
6127
6128 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6129 includes.
6130 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6131 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6132 fill_fpregset): Likewise.
6133
4fed520b
KR
61342020-03-14 Kamil Rytarowski <n54@gmx.com>
6135
6136 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6137 nbsd_nat_target instead of inf_ptrace_target.
6138 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6139 nbsd_nat_target.
6140
2190cf06
KR
61412020-03-14 Kamil Rytarowski <n54@gmx.com>
6142
6143 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6144 register_t.
6145
75c56d3d
KR
61462020-03-14 Kamil Rytarowski <n54@gmx.com>
6147
6148 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6149 it to the ptrace call.
6150 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6151 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6152 * arm-nbsd-nat.c (store_register): Likewise.
6153 * arm-nbsd-nat.c (store_regs): Likewise.
6154 * arm-nbsd-nat.c (store_fp_register): Likewise.
6155 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6156
6018d381
KR
61572020-03-14 Kamil Rytarowski <n54@gmx.com>
6158
6159 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6160 nbsd_nat_target instead of inf_ptrace_target.
6161 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6162 nbsd_nat_target.
6163
013f99f0
KR
61642020-03-14 Kamil Rytarowski <n54@gmx.com>
6165
6166 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6167 it to the ptrace call.
6168 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6169
12753073
KR
61702020-03-14 Kamil Rytarowski <n54@gmx.com>
6171
6227b330
KR
6172 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6173 it to the ptrace call.
6174 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6175
61762020-03-14 Kamil Rytarowski <n54@gmx.com>
6177
6178 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6179 gdb_byte *.
12753073
KR
6180 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6181
d5be5fa4
KR
61822020-03-14 Kamil Rytarowski <n54@gmx.com>
6183
6184 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6185 instead of inf_ptrace_target.
6186 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6187 nbsd_nat_target.
6188
8110f842
KR
61892020-03-14 Kamil Rytarowski <n54@gmx.com>
6190
6191 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6192 register_t.
6193
52feded7
KR
61942020-03-14 Kamil Rytarowski <n54@gmx.com>
6195
6196 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6197 register_t.
6198
25567eee
KR
61992020-03-14 Kamil Rytarowski <n54@gmx.com>
6200
6201 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6202 register_t.
6203
426a9c18
TT
62042020-03-13 Tom Tromey <tom@tromey.com>
6205
6206 * value.h (val_print): Don't declare.
6207 * valprint.h (val_print_array_elements)
6208 (val_print_scalar_formatted, generic_val_print): Don't declare.
6209 * valprint.c (generic_val_print_array): Take a struct value.
6210 (generic_val_print_ptr, generic_val_print_memberptr)
6211 (generic_val_print_bool, generic_val_print_int)
6212 (generic_val_print_char, generic_val_print_complex)
6213 (generic_val_print): Remove.
6214 (generic_value_print): Update.
6215 (do_val_print): Remove unused parameters. Don't call
6216 la_val_print.
6217 (val_print): Remove.
6218 (common_val_print): Update. Don't call value_check_printable.
6219 (val_print_scalar_formatted, val_print_array_elements): Remove.
6220 * rust-lang.c (rust_val_print): Remove.
6221 (rust_language_defn): Update.
6222 * p-valprint.c (pascal_val_print): Remove.
6223 (pascal_value_print_inner): Update.
6224 (pascal_object_print_val_fields, pascal_object_print_val):
6225 Remove.
6226 (pascal_object_print_static_field): Update.
6227 * p-lang.h (pascal_val_print): Don't declare.
6228 * p-lang.c (pascal_language_defn): Update.
6229 * opencl-lang.c (opencl_language_defn): Update.
6230 * objc-lang.c (objc_language_defn): Update.
6231 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6232 * m2-lang.h (m2_val_print): Don't declare.
6233 * m2-lang.c (m2_language_defn): Update.
6234 * language.h (struct language_defn) <la_val_print>: Remove.
6235 * language.c (unk_lang_value_print_inner): Rename. Change
6236 argument types.
6237 (unknown_language_defn, auto_language_defn): Update.
6238 * go-valprint.c (go_val_print): Remove.
6239 * go-lang.h (go_val_print): Don't declare.
6240 * go-lang.c (go_language_defn): Update.
6241 * f-valprint.c (f_val_print): Remove.
6242 * f-lang.h (f_value_print): Don't declare.
6243 * f-lang.c (f_language_defn): Update.
6244 * d-valprint.c (d_val_print): Remove.
6245 * d-lang.h (d_value_print): Don't declare.
6246 * d-lang.c (d_language_defn): Update.
6247 * cp-valprint.c (cp_print_value_fields)
6248 (cp_print_value_fields_rtti, cp_print_value): Remove.
6249 (cp_print_static_field): Update.
6250 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6251 (c_val_print_struct, c_val_print_union, c_val_print_int)
6252 (c_val_print_memberptr, c_val_print): Remove.
6253 * c-lang.h (c_val_print_array, cp_print_value_fields)
6254 (cp_print_value_fields_rtti): Don't declare.
6255 * c-lang.c (c_language_defn, cplus_language_defn)
6256 (asm_language_defn, minimal_language_defn): Update.
6257 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6258 (ada_val_print_enum): Take a struct value.
6259 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6260 (ada_val_print): Remove.
6261 (ada_value_print_1): Update.
6262 (printable_val_type): Remove.
6263 * ada-lang.h (ada_val_print): Don't declare.
6264 * ada-lang.c (ada_language_defn): Update.
6265
42331a1e
TT
62662020-03-13 Tom Tromey <tom@tromey.com>
6267
6268 * valprint.c (do_val_print): Update.
6269 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6270 a struct value.
6271 (value_to_value_object_no_release): Declare.
6272 * python/py-value.c (value_to_value_object_no_release): New
6273 function.
6274 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6275 struct value.
6276 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6277 function.
6278 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6279 a struct value.
6280 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6281 Declare.
6282 (gdbscm_apply_val_pretty_printer): Take a struct value.
6283 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6284 value.
6285 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6286 value.
6287 * extension-priv.h (struct extension_language_ops)
6288 <apply_val_pretty_printer>: Take a struct value.
6289 * cp-valprint.c (cp_print_value): Create a struct value.
6290 (cp_print_value): Update.
6291
3a916a97
TT
62922020-03-13 Tom Tromey <tom@tromey.com>
6293
6294 * ada-valprint.c (print_field_values): Call common_val_print.
6295
b59eac37
TT
62962020-03-13 Tom Tromey <tom@tromey.com>
6297
6298 * ada-valprint.c (val_print_packed_array_elements): Remove
6299 bitoffset and val parameters. Call common_val_print.
6300 (ada_val_print_string): Remove offset, address, and original_value
6301 parameters.
6302 (ada_val_print_array): Update.
6303 (ada_value_print_array): New function.
6304 (ada_value_print_1): Call it.
6305
03371129
TT
63062020-03-13 Tom Tromey <tom@tromey.com>
6307
6308 * ada-valprint.c (ada_value_print): Use common_val_print.
6309
2e088f8b
TT
63102020-03-13 Tom Tromey <tom@tromey.com>
6311
6312 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6313
39ef85a8
TT
63142020-03-13 Tom Tromey <tom@tromey.com>
6315
6316 * ada-valprint.c (ada_value_print_num): New function.
6317 (ada_value_print_1): Use it.
6318
b9fa6e07
TT
63192020-03-13 Tom Tromey <tom@tromey.com>
6320
6321 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6322
416595d6
TT
63232020-03-13 Tom Tromey <tom@tromey.com>
6324
6325 * ada-valprint.c (ada_value_print_ptr): New function.
6326 (ada_value_print_1): Use it.
6327
5b5e15ec
TT
63282020-03-13 Tom Tromey <tom@tromey.com>
6329
6330 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6331 call common_val_print.
6332 (ada_val_print_1): Update.
6333 (ada_value_print_1): New function.
6334 (ada_value_print_inner): Rewrite.
6335
fbf54e75
TT
63362020-03-13 Tom Tromey <tom@tromey.com>
6337
6338 * cp-valprint.c (cp_print_value_fields): Update.
6339 (cp_print_value): New function.
6340
64b653ca
TT
63412020-03-13 Tom Tromey <tom@tromey.com>
6342
6343 * m2-valprint.c (m2_value_print_inner): Use
6344 cp_print_value_fields.
6345 * cp-valprint.c (cp_print_value_fields): New function.
6346 * c-valprint.c (c_value_print_struct): New function.
6347 (c_value_print_inner): Use c_value_print_struct.
6348 * c-lang.h (cp_print_value_fields): Declare.
6349
6999f067
TT
63502020-03-13 Tom Tromey <tom@tromey.com>
6351
6352 * c-valprint.c (c_value_print_array): New function.
6353 (c_value_print_inner): Use it.
6354
ce80b8bd
TT
63552020-03-13 Tom Tromey <tom@tromey.com>
6356
6357 * c-valprint.c (c_value_print_memberptr): New function.
6358 (c_value_print_inner): Use it.
6359
2faac269
TT
63602020-03-13 Tom Tromey <tom@tromey.com>
6361
6362 * c-valprint.c (c_value_print_int): New function.
6363 (c_value_print_inner): Use it.
6364
da3e2c29
TT
63652020-03-13 Tom Tromey <tom@tromey.com>
6366
6367 * c-valprint.c (c_value_print_ptr): New function.
6368 (c_value_print_inner): Use it.
6369
50836231
TT
63702020-03-13 Tom Tromey <tom@tromey.com>
6371
6372 * c-valprint.c (c_value_print_inner): Rewrite.
6373
4f412b6e
TT
63742020-03-13 Tom Tromey <tom@tromey.com>
6375
6376 * valprint.c (generic_value_print_complex): New function.
6377 (generic_value_print): Use it.
6378
f5354008
TT
63792020-03-13 Tom Tromey <tom@tromey.com>
6380
6381 * valprint.c (generic_val_print_float): Don't call
6382 val_print_scalar_formatted.
6383 (generic_val_print, generic_value_print): Update.
6384
3eec3b05
TT
63852020-03-13 Tom Tromey <tom@tromey.com>
6386
6387 * valprint.c (generic_value_print_char): New function
6388 (generic_value_print): Use it.
6389
fdddfccb
TT
63902020-03-13 Tom Tromey <tom@tromey.com>
6391
6392 * valprint.c (generic_value_print_int): New function.
6393 (generic_value_print): Use it.
6394
6dde7521
TT
63952020-03-13 Tom Tromey <tom@tromey.com>
6396
6397 * valprint.c (generic_value_print_bool): New function.
6398 (generic_value_print): Use it.
6399
4112d2e6
TT
64002020-03-13 Tom Tromey <tom@tromey.com>
6401
6402 * valprint.c (generic_val_print_func): Simplify.
6403 (generic_val_print, generic_value_print): Update.
6404
65786af6
TT
64052020-03-13 Tom Tromey <tom@tromey.com>
6406
6407 * valprint.c (generic_val_print_flags): Remove.
6408 (generic_val_print, generic_value_print): Update.
6409 (val_print_type_code_flags): Add original_value parameter.
6410
40f3ce18
TT
64112020-03-13 Tom Tromey <tom@tromey.com>
6412
6413 * valprint.c (generic_val_print): Update.
6414 (generic_value_print): Update.
6415 * valprint.c (generic_val_print_enum): Don't call
6416 val_print_scalar_formatted.
6417
2a5b130b
TT
64182020-03-13 Tom Tromey <tom@tromey.com>
6419
6420 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6421 * valprint.c (generic_value_print_ptr): New function.
6422
abc66ce9
TT
64232020-03-13 Tom Tromey <tom@tromey.com>
6424
6425 * valprint.c (generic_value_print): Rewrite.
6426
07a32858
TT
64272020-03-13 Tom Tromey <tom@tromey.com>
6428
6429 * p-valprint.c (pascal_object_print_value_fields)
6430 (pascal_object_print_value): New functions.
6431
64d64d3a
TT
64322020-03-13 Tom Tromey <tom@tromey.com>
6433
6434 * p-valprint.c (pascal_value_print_inner): Rewrite.
6435
6a95a1f5
TT
64362020-03-13 Tom Tromey <tom@tromey.com>
6437
6438 * f-valprint.c (f_value_print_innner): Rewrite.
6439
59fcdac6
TT
64402020-03-13 Tom Tromey <tom@tromey.com>
6441
6442 * m2-valprint.c (m2_print_unbounded_array): New overload.
6443 (m2_print_unbounded_array): Update.
6444 (m2_print_array_contents): Take a struct value.
6445 (m2_value_print_inner): Rewrite.
6446
d133c3e1
TT
64472020-03-13 Tom Tromey <tom@tromey.com>
6448
6449 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6450 (d_value_print_inner): New function.
6451 * d-lang.h (d_value_print_inner): Declare.
6452 * d-lang.c (d_language_defn): Use d_value_print_inner.
6453
23b0f06b
TT
64542020-03-13 Tom Tromey <tom@tromey.com>
6455
6456 * go-valprint.c (go_value_print_inner): New function.
6457 * go-lang.h (go_value_print_inner): Declare.
6458 * go-lang.c (go_language_defn): Use go_value_print_inner.
6459
5f56f7cb
TT
64602020-03-13 Tom Tromey <tom@tromey.com>
6461
6462 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6463 API.
6464 (rust_val_print): Rewrite.
6465 (rust_value_print_inner): New function, from rust_val_print.
6466 (rust_language_defn): Use rust_value_print_inner.
6467
26792ee0
TT
64682020-03-13 Tom Tromey <tom@tromey.com>
6469
6470 * ada-valprint.c (ada_value_print_inner): New function.
6471 * ada-lang.h (ada_value_print_inner): Declare.
6472 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6473
24051bbe
TT
64742020-03-13 Tom Tromey <tom@tromey.com>
6475
6476 * f-valprint.c (f_value_print_innner): New function.
6477 * f-lang.h (f_value_print_innner): Declare.
6478 * f-lang.c (f_language_defn): Use f_value_print_innner.
6479
c0941be6
TT
64802020-03-13 Tom Tromey <tom@tromey.com>
6481
6482 * p-valprint.c (pascal_value_print_inner): New function.
6483 * p-lang.h (pascal_value_print_inner): Declare.
6484 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6485
62c4663d
TT
64862020-03-13 Tom Tromey <tom@tromey.com>
6487
6488 * m2-valprint.c (m2_value_print_inner): New function.
6489 * m2-lang.h (m2_value_print_inner): Declare.
6490 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6491
62182190
TT
64922020-03-13 Tom Tromey <tom@tromey.com>
6493
6494 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6495 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6496 * c-valprint.c (c_value_print_inner): New function.
6497 * c-lang.h (c_value_print_inner): Declare.
6498 * c-lang.c (c_language_defn, cplus_language_defn)
6499 (asm_language_defn, minimal_language_defn): Use
6500 c_value_print_inner.
6501
1e592a8a
TT
65022020-03-13 Tom Tromey <tom@tromey.com>
6503
6504 * p-valprint.c (pascal_object_print_value_fields): Now static.
6505 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6506
7fe471e9
TT
65072020-03-13 Tom Tromey <tom@tromey.com>
6508
6509 * c-valprint.c (c_val_print_array): Simplify.
6510
d121c6ce
TT
65112020-03-13 Tom Tromey <tom@tromey.com>
6512
6513 * valprint.c (value_print_array_elements): New function.
6514 * valprint.h (value_print_array_elements): Declare.
6515
4dba70ee
TT
65162020-03-13 Tom Tromey <tom@tromey.com>
6517
6518 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6519 * mips-tdep.c (mips_print_register): Use
6520 value_print_scalar_formatted.
6521
4f9ae810
TT
65222020-03-13 Tom Tromey <tom@tromey.com>
6523
6524 * valprint.h (value_print_scalar_formatted): Declare.
6525 * valprint.c (value_print_scalar_formatted): New function.
6526
156bfec9
TT
65272020-03-13 Tom Tromey <tom@tromey.com>
6528
6529 * valprint.h (generic_value_print): Declare.
6530 * valprint.c (generic_value_print): New function.
6531
2b4e573d
TT
65322020-03-13 Tom Tromey <tom@tromey.com>
6533
6534 * valprint.c (do_val_print): Call la_value_print_inner, if
6535 available.
6536 * rust-lang.c (rust_language_defn): Update.
6537 * p-lang.c (pascal_language_defn): Update.
6538 * opencl-lang.c (opencl_language_defn): Update.
6539 * objc-lang.c (objc_language_defn): Update.
6540 * m2-lang.c (m2_language_defn): Update.
6541 * language.h (struct language_defn) <la_value_print_inner>: New
6542 member.
6543 * language.c (unknown_language_defn, auto_language_defn): Update.
6544 * go-lang.c (go_language_defn): Update.
6545 * f-lang.c (f_language_defn): Update.
6546 * d-lang.c (d_language_defn): Update.
6547 * c-lang.c (c_language_defn, cplus_language_defn)
6548 (asm_language_defn, minimal_language_defn): Update.
6549 * ada-lang.c (ada_language_defn): Update.
6550
a1f6a07c
TT
65512020-03-13 Tom Tromey <tom@tromey.com>
6552
6553 * c-valprint.c (c_value_print): Use common_val_print.
6554
410cf315
TT
65552020-03-13 Tom Tromey <tom@tromey.com>
6556
6557 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6558
72a45c93
TT
65592020-03-13 Tom Tromey <tom@tromey.com>
6560
6561 * f-valprint.c (f77_print_array_1, f_val_print): Use
6562 common_val_print.
6563
040f66bd
TT
65642020-03-13 Tom Tromey <tom@tromey.com>
6565
6566 * riscv-tdep.c (riscv_print_one_register_info): Use
6567 common_val_print.
6568
a6e05a6c
TT
65692020-03-13 Tom Tromey <tom@tromey.com>
6570
6571 * mi/mi-main.c (output_register): Use common_val_print.
6572
3444c526
TT
65732020-03-13 Tom Tromey <tom@tromey.com>
6574
6575 * infcmd.c (default_print_one_register_info): Use
6576 common_val_print.
6577
c2a44efe
TT
65782020-03-13 Tom Tromey <tom@tromey.com>
6579
6580 * valprint.h (common_val_print_checked): Declare.
6581 * valprint.c (common_val_print_checked): New function.
6582 * stack.c (print_frame_arg): Use common_val_print_checked.
6583
b0c26e99
TT
65842020-03-13 Tom Tromey <tom@tromey.com>
6585
6586 * valprint.c (do_val_print): New function, from val_print.
6587 (val_print): Use do_val_print.
6588 (common_val_print): Use do_val_print.
6589
ce3acbe9
TT
65902020-03-13 Tom Tromey <tom@tromey.com>
6591
6592 * valprint.c (value_print): Use scoped_value_mark.
6593
96c7f873
TV
65942020-03-13 Tom de Vries <tdevries@suse.de>
6595
6596 PR symtab/25646
6597 * psymtab.c (partial_symtab::partial_symtab): Don't set
6598 globals_offset and statics_offset. Push element onto
6599 current_global_psymbols and current_static_psymbols stacks.
6600 (concat): New function.
6601 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6602 element from current_global_psymbols and current_static_psymbols
6603 stacks. Concat popped elements to global_psymbols and
6604 static_symbols.
6605 (add_psymbol_to_list): Use current_global_psymbols and
6606 current_static_psymbols stacks.
6607 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6608 current_static_psymbols fields.
6609
6ba0a321
CB
66102020-03-12 Christian Biesinger <cbiesinger@google.com>
6611
6612 * corelow.c (sniff_core_bfd): Remove.
6613 (class core_target) <m_core_vec>: Remove.
6614 (core_target::core_target): Update.
6615 (core_file_fns): Remove.
6616 (deprecated_add_core_fns): Remove.
6617 (default_core_sniffer): Remove.
6618 (sniff_core_bfd): Remove.
6619 (default_check_format): Remove.
6620 (gdb_check_format): Remove.
6621 (core_target_open): Update.
6622 (core_target::get_core_register_section): Update.
6623 (get_core_registers_cb): Update.
6624 (core_target::fetch_registers): Update.
6625 * gdbcore.h (struct core_fns): Remove.
6626 (deprecated_add_core_fns): Remove.
6627 (default_core_sniffer): Remove.
6628 (default_check_format): Remove.
6629
227031b2
TT
66302020-03-12 Tom Tromey <tom@tromey.com>
6631
6632 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6633 CORE_ADDR.
6634 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6635
53807e9f
TT
66362020-03-12 Tom Tromey <tom@tromey.com>
6637
6638 * remote.c (remote_target::download_tracepoint)
6639 (remote_target::enable_tracepoint)
6640 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6641 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6642 sprintf_vma.
6643
64f25102
TT
66442020-03-12 Tom Tromey <tom@tromey.com>
6645
6646 * symfile-mem.c: Update CORE_ADDR size assert.
6647
272cd5a3
SM
66482020-03-12 Simon Marchi <simon.marchi@efficios.com>
6649
6650 * selftest.m4: Move to gdbsupport/.
6651 * acinclude.m4: Update path to selftest.m4.
6652
74cd3f9d
SM
66532020-03-12 Simon Marchi <simon.marchi@efficios.com>
6654
6655 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6656 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6657 gdbarch-selfselftests.c and selftest-arch.c.
6658 (SUBDIR_UNITTESTS_OBS): Rename to...
6659 (SELFTESTS_OBS): ... this.
6660 (COMMON_SFILES): Remove disasm-selftests.c and
6661 gdbarch-selftests.c.
6662 * configure.ac: Don't add selftest-arch.{c,o} to
6663 CONFIG_{SRCS,OBS}.
6664 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6665 preprocessor conditions.
6666
db6878ac
SM
66672020-03-12 Simon Marchi <simon.marchi@efficios.com>
6668
6669 * configure.ac: Don't source bfd/development.sh.
6670 * selftest.m4: Modify comment.
6671 * configure: Re-generate.
6672
4d696a5c
SM
66732020-03-12 Simon Marchi <simon.marchi@efficios.com>
6674
6675 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6676 not "true" or "false".
6677 * configure: Re-generate.
6678
8dd8e1c7
CB
66792020-03-12 Christian Biesinger <cbiesinger@google.com>
6680
6681 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6682 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6683 renamed to arm_nbsd_supply_gregset.
6684 (fetch_register): Update to call arm_nbsd_supply_gregset.
6685 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6686 (arm_netbsd_nat_target::fetch_registers): Update.
6687 (fetch_elfcore_registers): Removed.
6688 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6689 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6690 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6691 not require NetBSD system headers.
6692 (arm_nbsd_regset): New struct.
6693 (arm_nbsd_iterate_over_regset_sections): New function.
6694 (arm_netbsd_init_abi_common): Updated to call
6695 set_gdbarch_iterate_over_regset_sections.
6696 * arm-nbsd-tdep.h: New file.
6697
dd69bf7a
KB
66982020-03-11 Kevin Buettner <kevinb@redhat.com>
6699
6700 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6701 recursion.
6702
a0761e34
SM
67032020-03-11 Simon Marchi <simon.marchi@efficios.com>
6704
6705 * configure: Re-generate.
6706
e7a82140
TT
67072020-03-11 Tom Tromey <tromey@adacore.com>
6708
6709 * ada-typeprint.c (print_choices): Fix comment.
6710
dcc050c8
AB
67112020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6714 previous item in the list, when the list has no items.
6715
1c33af77
TV
67162020-03-11 Tom de Vries <tdevries@suse.de>
6717
6718 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6719 PROP_LOCLIST handling code.
6720
8c95582d
AB
67212020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6722
6723 * buildsym-legacy.c (record_line): Pass extra parameter to
6724 record_line.
6725 * buildsym.c (buildsym_compunit::record_line): Take an extra
6726 parameter, reduce duplication in the line table, and record the
6727 is_stmt flag in the line table.
6728 * buildsym.h (buildsym_compunit::record_line): Add extra
6729 parameter.
6730 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6731 non-statement lines.
6732 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6733 this to the symtab builder.
6734 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6735 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6736 through to dwarf_record_line_1.
6737 * infrun.c (process_event_stop_test): When stepping, don't stop at
6738 a non-statement instruction, and only refresh the step info when
6739 we land in the middle of a line's range. Also add an extra
6740 comment.
6741 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6742 field.
6743 * record-btrace.c (btrace_find_line_range): Only record lines
6744 marked as is-statement.
6745 * stack.c (frame_show_address): Show the frame address if we are
6746 in a non-statement sal.
6747 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6748 (maintenance_print_one_line_table): Print a header for the is_stmt
6749 column, and include is_stmt information in the output.
6750 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6751 preference to non-statements.
6752 (find_pcs_for_symtab_line): Prefer is-statement entries.
6753 (find_line_common): Likewise.
6754 * symtab.h (struct linetable_entry): Add is_stmt field.
6755 (struct symtab_and_line): Likewise.
6756 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6757 arranging the line table.
6758
e4003a34
TV
67592020-03-07 Tom de Vries <tdevries@suse.de>
6760
6761 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6762 DIE.
6763
e8932576
TT
67642020-03-07 Tom Tromey <tom@tromey.com>
6765
6766 * valops.c (value_literal_complex): Remove obsolete comment.
6767 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6768 comment.
6769
29734269
SM
67702020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * infrun.h: Forward-declare thread_info.
6773 (set_step_info): Add thread_info parameter, add doc.
6774 * infrun.c (set_step_info): Add thread_info parameter, move doc
6775 to header.
6776 * infrun.c (process_event_stop_test): Pass thread to
6777 set_step_info call.
6778 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6779 set_step_info.
6780 (prepare_one_step): Add thread_info parameter, pass it to
6781 set_step_frame and prepare_one_step (recursive) call.
6782 (step_1): Pass thread to prepare_one_step call.
6783 (step_command_fsm::should_stop): Pass thread to
6784 prepare_one_step.
6785 (until_next_fsm): Pass thread to set_step_frame call.
6786 (finish_command): Pass thread to set_step_info call.
6787
b7d64b29
HD
67882020-03-06 Hannes Domani <ssbssa@yahoo.de>
6789
6790 * windows-tdep.c (windows_solib_create_inferior_hook):
6791 Check if inferior is running.
6792
09f2921c
TV
67932020-03-06 Tom de Vries <tdevries@suse.de>
6794
6795 * NEWS: Fix "the the".
6796 * ctfread.c: Same.
6797
fd760e79
TV
67982020-03-06 Tom de Vries <tdevries@suse.de>
6799
6800 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6801
20ea4a60
AB
68022020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6803
6804 * .dir-locals.el: Add a comment referencing the other copies of
6805 this file.
6806
0afbabf0
JB
68072020-03-05 John Baldwin <jhb@FreeBSD.org>
6808
6809 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6810 psargs.
6811
842806cb
TBA
68122020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6813
6814 * .gitattributes: New file.
6815
be1e3d3e
TT
68162020-03-04 Tom Tromey <tom@tromey.com>
6817
6818 * symmisc.c (print_symbol_bcache_statistics)
6819 (print_objfile_statistics): Update.
6820 * symfile.c (allocate_symtab): Use intern.
6821 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6822 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6823 macro_cache>: Remove.
6824 <string_cache>: New member.
6825 (struct objfile) <intern>: New methods.
6826 * elfread.c (elf_symtab_read): Use intern.
6827 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6828 (dwarf2_compute_name, dwarf2_physname)
6829 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6830 names.
6831 (guess_partial_die_structure_name): Update.
6832 (partial_die_info::fixup): Intern name.
6833 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6834 name.
6835 (dwarf2_name): Intern name. Update.
6836 * buildsym.c (buildsym_compunit::get_macro_table): Use
6837 string_cache.
6838
4e7625fd
TT
68392020-03-04 Tom Tromey <tom@tromey.com>
6840
6841 * jit.c (bfd_open_from_target_memory): Make "target" const.
6842 * corefile.c (gnutarget): Now const.
6843 * gdbcore.h (gnutarget): Now const.
6844
46f9f931
HD
68452020-03-04 Hannes Domani <ssbssa@yahoo.de>
6846
6847 * NEWS: Mention support for WOW64 processes.
6848 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6849 (amd64_windows_segment_register_p): Remove static.
6850 (_initialize_amd64_windows_nat): Update.
6851 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6852 * i386-windows-nat.c (context_offset): Update.
6853 (i386_mappings): Rename and remove static.
6854 (i386_windows_segment_register_p): Remove static.
6855 (_initialize_i386_windows_nat): Update.
6856 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6857 (STATUS_WX86_SINGLE_STEP): New macro.
6858 (EnumProcessModulesEx): New macro.
6859 (Wow64SuspendThread): New macro.
6860 (Wow64GetThreadContext): New macro.
6861 (Wow64SetThreadContext): New macro.
6862 (Wow64GetThreadSelectorEntry): New macro.
6863 (windows_set_context_register_offsets): Add static.
6864 (windows_set_segment_register_p): Likewise.
6865 (windows_add_thread): Adapt for WOW64 processes.
6866 (windows_fetch_one_register): Likewise.
6867 (windows_nat_target::fetch_registers): Likewise.
6868 (windows_store_one_register): Likewise.
6869 (display_selector): Likewise.
6870 (display_selectors): Likewise.
6871 (handle_exception): Likewise.
6872 (windows_continue): Likewise.
6873 (windows_nat_target::resume): Likewise.
6874 (windows_add_all_dlls): Likewise.
6875 (do_initial_windows_stuff): Likewise.
6876 (windows_nat_target::attach): Likewise.
6877 (windows_get_exec_module_filename): Likewise.
6878 (windows_nat_target::create_inferior): Likewise.
6879 (windows_xfer_siginfo): Likewise.
6880 (_initialize_loadable): Initialize Wow64SuspendThread,
6881 Wow64GetThreadContext, Wow64SetThreadContext,
6882 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
6883 * windows-nat.h (windows_set_context_register_offsets):
6884 Remove declaration.
6885 (windows_set_segment_register_p): Likewise.
6886 (i386_windows_segment_register_p): Add declaration.
6887 (amd64_windows_segment_register_p): Likewise.
6888
440cf44e
LM
68892020-03-04 Luis Machado <luis.machado@linaro.org>
6890
6891 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
6892 in "info registers" for AArch64/ARM.
6893
6894 The change caused "info registers" to not print GPR's.
6895
6896 gdb/ChangeLog:
6897
6898 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6899
6900 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6901 when reg->group is empty and reggroup is not.
6902
1009d92f
TT
69032020-03-03 Tom Tromey <tromey@adacore.com>
6904
6905 * dwarf2/frame.c (struct dwarf2_frame_cache)
6906 <checked_tailcall_bottom, entry_cfa_sp_offset,
6907 entry_cfa_sp_offset_p>: Remove members.
6908 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
6909 (dwarf2_frame_prev_register): Don't call
6910 dwarf2_tailcall_sniffer_first.
6911 (dwarf2_append_unwinders): Don't append tailcall unwinder.
6912 * frame-unwind.c (add_unwinder): New fuction.
6913 (frame_unwind_init): Use it. Add tailcall unwinder.
6914
5e5d66b6
AB
69152020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
6916 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6917
6918 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
6919 value should be printed as true.
6920
584cf46d
HD
69212020-03-03 Hannes Domani <ssbssa@yahoo.de>
6922
6923 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
6924 (windows_init_abi): Set and use windows_so_ops.
6925
7b973adc
SDJ
69262020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
6927
6928 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
6929 when verifying if dealing with a convenience variable.
6930
bb7b70ab
LM
69312020-03-03 Luis Machado <luis.machado@linaro.org>
6932
6933 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
6934
9822cb57
SM
69352020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6936
6937 * infrun.c (gdbarch_supports_displaced_stepping): New.
6938 (use_displaced_stepping): Break up conditions in smaller pieces.
6939 Use gdbarch_supports_displaced_stepping.
6940 (displaced_step_prepare_throw): Use
6941 gdbarch_supports_displaced_stepping.
6942
63e163f2
AB
69432020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6944
6945 * NEWS: Mention new behaviour of the history filename.
6946 * top.c (write_history_p): Add comment.
6947 (show_write_history_p): Add header comment, give a different
6948 message when history writing is on, but the history filename is
6949 empty.
6950 (history_filename): Add comment.
6951 (history_filename_empty): New function.
6952 (show_history_filename): Add header comment, give a different
6953 message when the filename is empty.
6954 (init_history): Compare history_filename against nullptr, and only
6955 read history if the filename is not empty.
6956 (set_history_filename): Add header comment, and only make
6957 non-empty filenames absolute.
6958 (init_main): Make the filename argument to 'set history filename'
6959 optional.
6960
81b86b97
CB
69612020-03-02 Christian Biesinger <cbiesinger@google.com>
6962
6963 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
6964 (arm_supply_vfpregset): ...this, and update to use VFP registers.
6965 (fetch_fp_register): Update.
6966 (fetch_fp_regs): Update.
6967 (store_fp_register): Update.
6968 (store_fp_regs): Update.
6969 (arm_netbsd_nat_target::read_description): New function.
6970 (fetch_elfcore_registers): Update.
6971
24ed6739
AB
69722020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
6975 general_thread if the stop reply is missing a thread-id.
6976 (remote_target::process_stop_reply): Use the first non-exited
6977 thread if the target didn't pass a thread-id.
6978 * infrun.c (do_target_wait): Move call to
6979 switch_to_inferior_no_thread to ....
6980 (do_target_wait_1): ... here.
6981
a84bb2a0
JT
69822020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
6983
6984 * debuginfod-support.c: Include defs.h first.
6985
658dadf0
TV
69862020-02-28 Tom de Vries <tdevries@suse.de>
6987
6988 * symfile.c (set_initial_language): Use default language for lookup.
6989
4ebe4877
SM
69902020-02-28 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
6993 reader variable, pass `this` to read_cutu_die_from_dwo.
6994
e5da1139
AM
69952020-02-27 Aaron Merey <amerey@redhat.com>
6996
6997 * source.c (open_source_file): Check for nullptr when computing
6998 srcpath.
6999
317f7127
TT
70002020-02-27 Tom Tromey <tromey@adacore.com>
7001
7002 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7003 member.
7004 (dwarf2_add_field): Don't update nfields.
7005 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7006
3104d9ee
AB
70072020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7008
7009 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7010 abs.
7011
b83470bf
TT
70122020-02-26 Tom Tromey <tom@tromey.com>
7013
7014 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7015 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7016 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7017 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7018 per_cu_data.
7019
edfe0a0c
TT
70202020-02-26 Tom Tromey <tom@tromey.com>
7021
7022 * dwarf2/index-write.c (psym_index_map): Change type.
7023 (add_address_entry_worker, write_one_signatured_type)
7024 (recursively_count_psymbols, recursively_write_psymbols)
7025 (class debug_names, psyms_seen_size, write_gdbindex)
7026 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7027
0d79cdc4
AM
70282020-02-26 Aaron Merey <amerey@redhat.com>
7029
7030 * Makefile.in: Handle optional debuginfod support.
7031 * NEWS: Update.
7032 * README: Add --with-debuginfod summary.
7033 * config.in: Regenerate.
7034 * configure: Regenerate.
7035 * configure.ac: Handle optional debuginfod support.
7036 * debuginfod-support.c: debuginfod helper functions.
7037 * debuginfod-support.h: Ditto.
7038 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7039 summary.
7040 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7041 when a dwz file cannot be found.
7042 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7043 debuginfo file cannot be found.
7044 * source.c (open_source_file): Query debuginfod servers when a
7045 source file cannot be found.
7046 * top.c (print_gdb_configuration): Include
7047 --{with,without}-debuginfod in the output.
7048
b65ce565
JG
70492020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7050
7051 * thread.c (thr_try_catch_cmd): Print thread name.
7052
d4c9a4f8
SM
70532020-02-26 Simon Marchi <simon.marchi@efficios.com>
7054
7055 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7056 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7057 dwarf2_fetch_die_type_sect_off): Move to...
7058 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7059 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7060 dwarf2_fetch_die_type_sect_off): ... here.
7061 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7062 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7063 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7064
0dce4280
TV
70652020-02-26 Tom de Vries <tdevries@suse.de>
7066
7067 PR gdb/25603
7068 * symfile.c (set_initial_language): Exit-early if
7069 language_mode == language_mode_manual.
7070
450a1bfc
SM
70712020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7072
7073 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7074 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7075 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7076
9e80cfa1
AB
70772020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7078
7079 * gdbtypes.c (create_array_type_with_stride): Handle negative
7080 array strides.
7081 * valarith.c (value_subscripted_rvalue): Likewise.
7082
09624f1f
LM
70832020-02-25 Luis Machado <luis.machado@linaro.org>
7084
7085 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7086
8cb5117c
SM
70872020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7088
7089 * loc.h (dwarf2_get_die_type): Move to...
7090 * read.h (dwarf2_get_die_type): ... here.
7091 * read.c (dwarf2_get_die_type): Move doc to header.
7092
c325c44e
JB
70932020-02-25 Joel Brobecker <brobecker@adacore.com>
7094
7095 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7096 'gnulib/Makefile.in' to the list.
7097
4ac93832
TT
70982020-02-24 Tom Tromey <tom@tromey.com>
7099
7100 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7101 Remove.
7102 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7103 XOBNEWVEC.
7104
197400e8
TT
71052020-02-24 Tom Tromey <tom@tromey.com>
7106
7107 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7108 New method.
7109 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7110 (dw2_do_instantiate_symtab, dw2_get_file_names)
7111 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7112
76935768
TT
71132020-02-24 Tom Tromey <tom@tromey.com>
7114
7115 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7116 make_scoped_restore.
7117 (dwarf2_psymtab::read_symtab): Don't clear
7118 reading_partial_symbols.
7119
a88ef40d
TV
71202020-02-24 Tom de Vries <tdevries@suse.de>
7121
7122 PR gdb/25592
7123 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7124
c9af6521
TV
71252020-02-24 Tom de Vries <tdevries@suse.de>
7126
7127 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7128 commands layout next/prev/regs.
7129
5707a07a
TT
71302020-02-22 Tom Tromey <tom@tromey.com>
7131
7132 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7133 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7134
3b0fb49e
TT
71352020-02-22 Tom Tromey <tom@tromey.com>
7136
7137 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7138
283be8bf
TT
71392020-02-22 Tom Tromey <tom@tromey.com>
7140
7141 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7142 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7143 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7144 * tui/tui.c (_initialize_tui): Add usage text.
7145
ca793b96
TT
71462020-02-22 Tom Tromey <tom@tromey.com>
7147
7148 * tui/tui-win.c (tui_set_focus_command)
7149 (tui_set_win_height_command): Use error_no_arg.
7150 (_initialize_tui_win): Update help text.
7151 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7152
432b5c40
TT
71532020-02-22 Tom Tromey <tom@tromey.com>
7154
7155 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7156 * tui/tui-disasm.h (struct tui_disasm_window)
7157 <display_start_addr>: Declare.
7158 * tui/tui-source.h (struct tui_source_window)
7159 <display_start_addr>: Declare.
7160 * tui/tui-winsource.h (struct tui_source_window_base)
7161 <show_source_line, display_start_addr>: New methods.
7162 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7163 Rename and move to protected section.
7164 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7165 (tui_source_window_base::do_erase_source_content): Update.
7166 (tui_source_window_base::show_source_line): Now a method.
7167 (tui_source_window_base::show_source_content)
7168 (tui_source_window_base::tui_source_window_base)
7169 (tui_source_window_base::rerender)
7170 (tui_source_window_base::refill)
7171 (tui_source_window_base::do_scroll_horizontal)
7172 (tui_source_window_base::set_is_exec_point_at)
7173 (tui_source_window_base::update_breakpoint_info)
7174 (tui_source_window_base::update_exec_info): Update.
7175 * tui/tui-source.c (tui_source_window::set_contents)
7176 (tui_source_window::showing_source_p)
7177 (tui_source_window::do_scroll_vertical)
7178 (tui_source_window::location_matches_p)
7179 (tui_source_window::line_is_displayed): Update.
7180 (tui_source_window::display_start_addr): New method.
7181 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7182 (tui_disasm_window::do_scroll_vertical)
7183 (tui_disasm_window::location_matches_p): Update.
7184 (tui_disasm_window::display_start_addr): New method.
7185
01b1af32
TT
71862020-02-22 Tom Tromey <tom@tromey.com>
7187
7188 * NEWS: Add entry for gdb.register_window_type.
7189 * tui/tui-layout.h (window_factory): New typedef.
7190 (tui_register_window): Declare.
7191 * tui/tui-layout.c (saved_tui_windows): New global.
7192 (tui_apply_current_layout): Use it.
7193 (tui_register_window): New function.
7194 * python/python.c (do_start_initialization): Call
7195 gdbpy_initialize_tui.
7196 (python_GdbMethods): Add "register_window_type" function.
7197 * python/python-internal.h (gdbpy_register_tui_window)
7198 (gdbpy_initialize_tui): Declare.
7199 * python/py-tui.c: New file.
7200 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7201
fc96d20b
TT
72022020-02-22 Tom Tromey <tom@tromey.com>
7203
7204 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7205
935c78c0
TT
72062020-02-22 Tom Tromey <tom@tromey.com>
7207
7208 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7209 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7210 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7211 (tui_set_win_focus_to): Move from tui-win.c.
7212
0240c8f1
TT
72132020-02-22 Tom Tromey <tom@tromey.com>
7214
7215 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7216 functions.
7217 (known_window_types): New global.
7218 (tui_get_window_by_name): Reimplement.
7219 (initialize_known_windows): New function.
7220 (validate_window_name): Rewrite.
7221 (_initialize_tui_layout): Call initialize_known_windows.
7222
fdb01f0c
TT
72232020-02-22 Tom Tromey <tom@tromey.com>
7224
7225 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7226 Remove constants.
7227 * tui/tui-winsource.h (struct tui_source_window_base)
7228 <tui_source_window_base>: Remove parameter.
7229 * tui/tui-winsource.c
7230 (tui_source_window_base::tui_source_window_base): Remove
7231 parameter.
7232 (tui_source_window_base::refill): Update.
7233 * tui/tui-stack.h (struct tui_locator_window)
7234 <tui_locator_window>: Update.
7235 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7236 Default the constructor.
7237 * tui/tui-regs.h (struct tui_data_item_window)
7238 <tui_data_item_window>: Default the constructor.
7239 (struct tui_data_window) <tui_data_window>: Likewise.
7240 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7241 Default the constructor.
7242 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7243 Default the constructor.
7244 <type>: Remove.
7245 (struct tui_win_info) <tui_win_info>: Default the constructor.
7246 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7247 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7248 Default the constructor.
7249
865a5aec
TT
72502020-02-22 Tom Tromey <tom@tromey.com>
7251
7252 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7253 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7254 * tui/tui-win.c (tui_resize_all): Don't call
7255 tui_delete_invisible_windows.
7256 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7257 done.
7258 (tui_set_layout): Update.
7259 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7260 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7261 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7262
e098d18c
TT
72632020-02-22 Tom Tromey <tom@tromey.com>
7264
7265 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7266 correctly.
7267
eb9c8874
TT
72682020-02-22 Tom Tromey <tom@tromey.com>
7269
7270 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7271
7eed1a8e
TT
72722020-02-22 Tom Tromey <tom@tromey.com>
7273
7274 * tui/tui-winsource.h (struct tui_source_window_iterator)
7275 <inner_iterator>: New etytypedef.
7276 <tui_source_window_iterator>: Take "end" parameter.
7277 <tui_source_window_iterator>: Take iterator.
7278 <operator*, advance>: Update.
7279 <m_iter>: Change type.
7280 <m_end>: New field.
7281 (struct tui_source_windows) <begin, end>: Update.
7282 * tui/tui-layout.c (tui_windows): New global.
7283 (tui_apply_current_layout): Clear tui_windows.
7284 (tui_layout_window::apply): Update tui_windows.
7285 * tui/tui-data.h (tui_windows): Declare.
7286 (all_tui_windows): Now inline function.
7287 (class tui_window_iterator, struct all_tui_windows): Remove.
7288
7c043ba6
TT
72892020-02-22 Tom Tromey <tom@tromey.com>
7290
7291 PR tui/17850:
7292 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7293 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7294 "height" argument.
7295 (class tui_layout_window) <get_sizes>: Likewise.
7296 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7297 argument.
7298 <get_sizes>: Add "height" argument.
7299 <m_vertical>: New field.
7300 * tui/tui-layout.c (tui_layout_split::clone): Update.
7301 (tui_layout_split::get_sizes): Add "height" argument.
7302 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7303 (tui_new_layout_command): Parse "-horizontal".
7304 (_initialize_tui_layout): Update help string.
7305 (tui_layout_split::specification): Add "-horizontal" when needed.
7306 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7307 argument.
7308 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7309 New methods.
7310
6bc56648
TT
73112020-02-22 Tom Tromey <tom@tromey.com>
7312
7313 * tui/tui-layout.h (enum tui_adjust_result): New.
7314 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7315 (class tui_layout_window) <adjust_size>: Return
7316 tui_adjust_result. Rewrite.
7317 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7318 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7319
c22fef7e
TT
73202020-02-22 Tom Tromey <tom@tromey.com>
7321
7322 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7323 parameter and return types.
7324 (class tui_layout_base) <specification>: Add "depth".
7325 (class tui_layout_window) <specification>: Add "depth".
7326 (class tui_layout_split) <specification>: Add "depth".
7327 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7328 and return types.
7329 (tui_new_layout_command): Parse sub-layouts.
7330 (_initialize_tui_layout): Update help string.
7331 (tui_layout_window::specification): Add "depth".
7332 (add_layout_command): Update.
7333
ee325b61
TT
73342020-02-22 Tom Tromey <tom@tromey.com>
7335
7336 * NEWS: Add "tui new-layout" item.
7337 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7338 Add new-layout command to help text.
7339 (validate_window_name): New function.
7340 (tui_new_layout_command): New function.
7341 (_initialize_tui_layout): Register "new-layout".
7342 (tui_layout_window::specification): New method.
7343 (tui_layout_window::specification): New method.
7344 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7345 method.
7346 (class tui_layout_window) <specification>: New method.
7347 (class tui_layout_split) <specification>: New method.
7348
416eb92d
TT
73492020-02-22 Tom Tromey <tom@tromey.com>
7350
7351 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7352 * tui/tui-win.c (window_name_completer): Update comment.
7353 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7354 Declare method.
7355 (class tui_layout_window) <replace_window>: Likewise.
7356 (class tui_layout_split) <replace_window>: Likewise.
7357 (tui_set_layout): Don't declare.
7358 (tui_set_initial_layout): Declare function.
7359 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7360 (asm_regs_layout): New globals.
7361 (tui_current_layout, show_layout): Remove.
7362 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7363 (find_layout, tui_apply_layout): New function.
7364 (layout_completer): Remove.
7365 (tui_next_layout): Reimplement.
7366 (tui_next_layout_command): New function.
7367 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7368 (tui_regs_layout): Reimplement.
7369 (tui_regs_layout_command): New function.
7370 (extract_display_start_addr): Rewrite.
7371 (next_layout, prev_layout): Remove.
7372 (tui_layout_window::replace_window): New method.
7373 (tui_layout_split::replace_window): New method.
7374 (destroy_layout): New function.
7375 (layout_list): New global.
7376 (add_layout_command): New function.
7377 (initialize_layouts): Update.
7378 (tui_layout_command): New function.
7379 (_initialize_tui_layout): Install "layout" commands.
7380 * tui/tui-data.h (enum tui_layout_type): Remove.
7381 (tui_current_layout): Don't declare.
7382
0dbc2fc7
TT
73832020-02-22 Tom Tromey <tom@tromey.com>
7384
7385 * tui/tui-regs.c (tui_reg_layout): Remove.
7386 (tui_reg_command): Use tui_regs_layout.
7387 * tui/tui-layout.h (tui_reg_command): Declare.
7388 * tui/tui-layout.c (tui_reg_command): New function.
7389
5afe342e
TT
73902020-02-22 Tom Tromey <tom@tromey.com>
7391
7392 * tui/tui.c (tui_rl_delete_other_windows): Call
7393 tui_remove_some_windows.
7394 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7395 Declare method.
7396 (class tui_layout_window) <remove_windows>: New method.
7397 (class tui_layout_split) <remove_windows>: Declare.
7398 (tui_remove_some_windows): Declare.
7399 * tui/tui-layout.c (tui_remove_some_windows): New function.
7400 (tui_layout_split::remove_windows): New method.
7401
427326a8
TT
74022020-02-22 Tom Tromey <tom@tromey.com>
7403
7404 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7405 * tui/tui-layout.h (tui_next_layout): Declare.
7406 * tui/tui-layout.c (tui_next_layout): New function.
7407
3fe12b6d
TT
74082020-02-22 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7411 correct coordinates.
7412
59b8b5d2
TT
74132020-02-22 Tom Tromey <tom@tromey.com>
7414
7415 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7416 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7417 DATA_WIN case.
7418
2a3d458b
TT
74192020-02-22 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7422 TUI_DISASM_WIN, not tui_win_list.
7423
3f0cbb04
TT
74242020-02-22 Tom Tromey <tom@tromey.com>
7425
7426 * valprint.c (generic_val_print_enum_1)
7427 (val_print_type_code_flags): Style member names.
7428 * rust-lang.c (val_print_struct, rust_print_enum)
7429 (rust_print_struct_def, rust_internal_print_type): Style member
7430 names.
7431 * p-valprint.c (pascal_object_print_value_fields): Style member
7432 names. Only call fprintf_symbol_filtered for static members.
7433 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7434 * f-valprint.c (f_val_print): Style member names.
7435 * f-typeprint.c (f_type_print_base): Style member names.
7436 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7437 call fprintf_symbol_filtered for static members.
7438 (cp_print_class_member): Style member names.
7439 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7440 member names.
7441 * ada-valprint.c (ada_print_scalar): Style enum names.
7442 (ada_val_print_enum): Likewise.
7443 * ada-typeprint.c (print_enum_type): Style enum names.
7444
d4d947ae
TT
74452020-02-21 Tom Tromey <tom@tromey.com>
7446
7447 * psympriv.h (struct partial_symtab): Update comment.
7448
e94e944b
TT
74492020-02-21 Tom Tromey <tromey@adacore.com>
7450
7451 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7452 type is CORE_ADDR.
7453
1eb73179
TV
74542020-02-21 Tom de Vries <tdevries@suse.de>
7455
7456 PR gdb/25534
7457 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7458 if dependencies[i]->user != NULL.
7459
4f180d53
AT
74602020-02-21 Ali Tamur <tamur@google.com>
7461
7462 * dwarf2/read.c (dwarf2_name): Add null check.
7463
22b6cd70
TT
74642020-02-20 Tom Tromey <tom@tromey.com>
7465
7466 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7467 ">=", in binary search.
7468 (dwarf2_find_containing_comp_unit): New overload.
7469 (run_test): New self-test.
7470 (_initialize_dwarf2_read): Register new test.
7471
bd0cf5a6
NC
74722020-02-20 Nelson Chu <nelson.chu@sifive.com>
7473
7474 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7475 * riscv-tdep.h: Likewise.
7476 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7477 rv32-only CSR.
7478 * features/riscv/64bit-csr.xml: Regenerated.
7479
3f702acd
SDJ
74802020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7481 Tom Tromey <tom@tromey.com>
7482
7483 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7484 of 'fputc_unfiltered'.
7485 (putchar_unfiltered): Call 'fputc_unfiltered'.
7486 (fputc_unfiltered): Call 'fputs_unfiltered'.
7487
d13c7322
AB
74882020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7489
7490 * config.in: Regenerate.
7491 * configure: Regenerate.
7492 * configure.ac: Add --with-python-libdir option.
7493 * main.c: Use WITH_PYTHON_LIBDIR.
7494
869d8950
TT
74952020-02-19 Tom Tromey <tom@tromey.com>
7496
7497 * symtab.c (general_symbol_info::compute_and_set_names): Use
7498 obstack_strndup. Simplify call to symbol_set_demangled_name.
7499
298e9637
SM
75002020-02-19 Simon Marchi <simon.marchi@efficios.com>
7501
7502 * dwarf2/read.c (allocate_signatured_type_table,
7503 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7504 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7505 Remove objfile parameter, update all callers.
7506
08410482
DE
75072020-02-19 Doug Evans <dje@google.com>
7508
7509 PR rust/25535
7510 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7511 rust_enum_variant calculation.
7512
dfdeeca1
TT
75132020-02-19 Tom Tromey <tromey@adacore.com>
7514
7515 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7516
2ef5453b
TT
75172020-02-19 Tom Tromey <tromey@adacore.com>
7518
7519 * ada-lang.c (cache_symbol): Use obstack_strdup.
7520
9f1528a1
AB
75212020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7522
7523 * configure: Regenerate.
7524
d3c22fa8
TT
75252020-02-19 Tom Tromey <tromey@adacore.com>
7526
7527 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7528 NULL check.
7529
bf84f706
MR
75302020-02-19 Maciej W. Rozycki <macro@wdc.com>
7531
7532 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7533
d1c9b20f
AB
75342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7535
7536 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7537 if GDBSERVER is not defined.
7538 (riscv_tdesc_cache): Likewise, also store const target_desc.
7539 (STATIC_IN_GDB): Define.
7540 (riscv_create_target_description): Update declaration with
7541 STATIC_IN_GDB.
7542 (riscv_lookup_target_description): New function, only define if
7543 GDBSERVER is not defined.
7544 * arch/riscv.h (riscv_create_target_description): Declare only
7545 when GDBSERVER is defined.
7546 (riscv_lookup_target_description): New declaration when GDBSERVER
7547 is not defined.
7548 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7549 (riscv_linux_read_features): ...this, and return
7550 riscv_gdbarch_features instead of target_desc.
7551 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7552 (riscv_linux_read_description): Rename to...
7553 (riscv_linux_read_features): ...this.
7554 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7555 Update to use riscv_gdbarch_features and
7556 riscv_lookup_target_description.
7557 * riscv-tdep.c (riscv_find_default_target_description): Use
7558 riscv_lookup_target_description instead of
7559 riscv_create_target_description.
7560
373d7ac0
SM
75612020-02-18 Simon Marchi <simon.marchi@efficios.com>
7562
7563 * valprint.c (generic_val_print_enum_1): When printing a flag
7564 enum with value 0 and there is no enumerator with value 0, print
7565 just "0" instead of "(unknown: 0x0)".
7566
b29a2df0
SM
75672020-02-18 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * valprint.c (generic_val_print_enum_1): Print unknown part of
7570 flag enum in hex.
7571
6740f0cc
SM
75722020-02-18 Simon Marchi <simon.marchi@efficios.com>
7573
7574 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7575 flag enums to contain duplicate enumerators.
7576 * valprint.c (generic_val_print_enum_1): Update comment.
7577
edd45eb0
SM
75782020-02-18 Simon Marchi <simon.marchi@efficios.com>
7579
7580 * dwarf2/read.c: Include "count-one-bits.h".
7581 (update_enumeration_type_from_children): If an enumerator has
7582 multiple bits set, don't treat the enumeration as a "flag enum".
7583 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7584 of flag enums have 0 or 1 bit set.
7585
6d0cf446
BE
75862020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7587
7588 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7589 conversion.
7590 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7591 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7592 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7593 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7594 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7595
7001c1b7
SM
75962020-02-18 Simon Marchi <simon.marchi@efficios.com>
7597
7598 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7599
fdb61c6c
SM
76002020-02-14 Simon Marchi <simon.marchi@efficios.com>
7601
7602 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7603 displaced_step_closure_up.
7604 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7605 (struct displaced_step_closure_up):
7606 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7607 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7608 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7609 Likewise.
7610 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7611 * gdbarch.c, gdbarch.h: Re-generate.
7612 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7613 displaced_step_closure_up.
7614 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7615 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7616 * infrun.h (displaced_step_closure_up): New type alias.
7617 (struct displaced_step_inferior_state) <step_closure>: Change
7618 type to displaced_step_closure_up.
7619 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7620 displaced_step_closure_up.
7621 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7622
a4a38eb4
TT
76232020-02-14 Tom Tromey <tom@tromey.com>
7624
7625 * minidebug.c (gnu_debug_key): New global.
7626 (find_separate_debug_file_in_section): Use it.
7627
e8217e61
SM
76282020-02-14 Simon Marchi <simon.marchi@efficios.com>
7629
7630 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7631 std::unique_ptr.
7632 * gdbarch.c: Re-generate.
7633 * gdbarch.h: Re-generate.
7634 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7635 change.
7636 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7637 type to std::unique_ptr.
7638 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7639 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7640 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7641 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7642 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7643 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7644 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7645 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7646 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7647
d8d83535
SM
76482020-02-14 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7651 std::unique_ptr.
7652 (displaced_step_clear): Rename to...
7653 (displaced_step_reset): ... this. Just call displaced->reset ().
7654 (displaced_step_clear_cleanup): Rename to...
7655 (displaced_step_reset_cleanup): ... this.
7656 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7657 (displaced_step_fixup): Likewise.
7658 (resume_1): Likewise.
7659 (handle_inferior_event): Restore child's memory before calling
7660 displaced_step_fixup on the parent.
7661 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7662 to std::unique_ptr.
7663 <step_closure>: Change type to std::unique_ptr.
7664
5f661e03
SM
76652020-02-14 Simon Marchi <simon.marchi@efficios.com>
7666
7667 * arm-tdep.c: Include count-one-bits.h.
7668 (cleanup_block_store_pc): Use count_one_bits.
7669 (cleanup_block_load_pc): Use count_one_bits.
7670 (arm_copy_block_xfer): Use count_one_bits.
7671 (thumb2_copy_block_xfer): Use count_one_bits.
7672 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7673 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7674 (thumb_get_next_pcs_raw): Use count_one_bits.
7675 (arm_get_next_pcs_raw): Use count_one_bits_l.
7676 * arch/arm.c (bitcount): Remove.
7677 * arch/arm.h (bitcount): Remove.
7678
8084e579
TT
76792020-02-14 Tom Tromey <tromey@adacore.com>
7680
7681 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7682 Update.
7683 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7684 * dwarf2/loc.c (call_site_find_chain_1): Return
7685 unique_xmalloc_ptr.
7686 (call_site_find_chain): Likewise.
7687
258bf0ee
RB
76882020-02-14 Richard Biener <rguenther@suse.de>
7689
7690 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7691 on expression with division operators.
7692
f98a8458
AKS
76932020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7694
7695 * MAINTAINERS (Write After Approval): Adding myself.
7696
d1437c0e
TT
76972020-02-12 Tom Tromey <tom@tromey.com>
7698
7699 * event-loop.c (event_data, gdb_event, event_handler_func):
7700 Remove.
7701
3d4560f7
TT
77022020-02-12 Tom Tromey <tom@tromey.com>
7703
7704 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7705 (dwarf2_frame_objfile_data): Add comment.
7706 (find_comp_unit, set_comp_unit): New functions.
7707 (dwarf2_frame_find_fde): Use find_comp_unit.
7708 (dwarf2_build_frame_info): Use set_comp_unit.
7709
21982304
TT
77102020-02-12 Tom Tromey <tom@tromey.com>
7711
7712 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7713 (comp_unit): Don't initialize objfile.
7714 (execute_cfa_program): Add text_offset parameter.
7715 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7716 (dwarf2_frame_cache): Update.
7717 (dwarf2_build_frame_info): Don't set "objfile" member.
7718
4debb237
TT
77192020-02-12 Tom Tromey <tom@tromey.com>
7720
7721 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7722 (decode_frame_entry): Likewise.
7723 (dwarf2_build_frame_info): Update.
7724
0d404d44
TT
77252020-02-12 Tom Tromey <tom@tromey.com>
7726
7727 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7728 (decode_frame_entry_1): Use the comp_unit obstack.
7729
a7a3ae5c
TT
77302020-02-12 Tom Tromey <tom@tromey.com>
7731
7732 * dwarf2/frame.c (struct comp_unit): Add initializers and
7733 constructor.
7734 (dwarf2_frame_objfile_data): Store a comp_unit.
7735 (dwarf2_frame_find_fde): Update.
7736 (dwarf2_build_frame_info): Use "new".
7737
a9d65418
TT
77382020-02-12 Tom Tromey <tom@tromey.com>
7739
7740 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7741 (dwarf2_fde_table): Typedef for std::vector.
7742 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7743 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7744 (decode_frame_entry): Update.
7745 (dwarf2_build_frame_info): Use "new".
7746
7559c217
CB
77472020-02-12 Christian Biesinger <cbiesinger@google.com>
7748
7749 * arm-tdep.c (arm_gdbarch_init): Update.
7750 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7751 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7752 have_neon, is_m>: Change to bool.
7753
aeefc73c
CB
77542020-02-12 Christian Biesinger <cbiesinger@google.com>
7755
7756 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7757
d27b8e5f
TT
77582020-02-12 Tom Tromey <tom@tromey.com>
7759
7760 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7761
cd5900f3
HD
77622020-02-12 Hannes Domani <ssbssa@yahoo.de>
7763
7764 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7765 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7766
f056b22b
TT
77672020-02-11 Tom Tromey <tom@tromey.com>
7768
7769 * psymtab.h: Update comment.
7770
f92ff6b5
TT
77712020-02-11 Tom Tromey <tom@tromey.com>
7772
7773 * gdb_obstack.h (struct auto_obstack): Use
7774 DISABLE_COPY_AND_ASSIGN.
7775
3fd6912b
TT
77762020-02-11 Tom Tromey <tom@tromey.com>
7777
7778 * dwarf2/frame.h (struct objfile): Don't forward declare.
7779
69ed9b74
CB
77802020-02-11 Christian Biesinger <cbiesinger@google.com>
7781
7782 * cris-tdep.c (cris_supply_gregset): Change signature to match
7783 what struct regset expects.
7784 (cris_regset): New struct.
7785 (fetch_core_registers): Remove.
7786 (cris_iterate_over_regset_sections): New function.
7787 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7788 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7789
bda874f6
CB
77902020-02-11 Christian Biesinger <cbiesinger@google.com>
7791
7792 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7793 registers.
7794
754e1564
CB
77952020-02-11 Christian Biesinger <cbiesinger@google.com>
7796
7797 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7798
8ddd8e0e
SM
77992020-02-11 Simon Marchi <simon.marchi@efficios.com>
7800
7801 * configure: Re-generate.
7802
898e7f60
SM
78032020-02-11 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * configure: Re-generate.
7806
58df732b
SM
78072020-02-11 Simon Marchi <simon.marchi@efficios.com>
7808
7809 * acinclude: Update warning.m4 path.
7810 * warning.m4: Move to gdbsupport.
7811
da5bd37e
TT
78122020-02-11 Tom Tromey <tromey@adacore.com>
7813
7814 * remote.c (remote_console_output): Update.
7815 * printcmd.c (printf_command): Update.
7816 * event-loop.c (gdb_wait_for_event): Update.
7817 * linux-nat.c (sigchld_handler): Update.
7818 * remote-sim.c (gdb_os_write_stdout): Update.
7819 (gdb_os_flush_stdout): Update.
7820 (gdb_os_flush_stderr): Update.
7821 (gdb_os_write_stderr): Update.
7822 * exceptions.c (print_exception): Update.
7823 * remote-fileio.c (remote_fileio_func_read): Update.
7824 (remote_fileio_func_write): Update.
7825 * tui/tui.c (tui_enable): Update.
7826 * tui/tui-interp.c (tui_interp::init): Update.
7827 * utils.c (init_page_info): Update.
7828 (putchar_unfiltered, fputc_unfiltered): Update.
7829 (gdb_flush): Update.
7830 (emit_style_escape): Update.
7831 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7832 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7833 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7834 (stderr_file::write): Update.
7835 (stderr_file::puts): Update.
7836 * ui-file.h (ui_file_isatty, ui_file_write)
7837 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7838 (ui_file_puts): Don't declare.
7839
85f0dd3c
TV
78402020-02-10 Tom de Vries <tdevries@suse.de>
7841
7842 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7843 sentinel to char *.
7844
2e927613
TV
78452020-02-09 Tom de Vries <tdevries@suse.de>
7846
7847 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7848 filename if it matches "<artificial>".
7849
6bafc845
HD
78502020-02-09 Hannes Domani <ssbssa@yahoo.de>
7851
7852 * windows-tdep.c (struct enum_value_name): New struct.
7853 (create_enum): New function.
7854 (windows_get_siginfo_type): Create and use enum types.
7855
7928d571
HD
78562020-02-09 Hannes Domani <ssbssa@yahoo.de>
7857
7858 * NEWS: Mention $_siginfo support for Windows.
7859 * windows-nat.c (handle_exception): Set siginfo_er.
7860 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7861 (windows_xfer_siginfo): New function.
7862 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7863 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7864 (init_windows_gdbarch_data): New function.
7865 (get_windows_gdbarch_data): New function.
7866 (windows_get_siginfo_type): New function.
7867 (windows_init_abi): Register windows_get_siginfo_type.
7868 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7869
6751ebae
TT
78702020-02-08 Tom Tromey <tom@tromey.com>
7871
7872 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7873 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7874 <keep>: Declare method.
7875 <m_keep>: Remove member.
7876 <~cutu_reader>: Remove.
7877 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7878 (cutu_reader::cutu_reader): Update.
7879 (cutu_reader::keep): Rename from ~cutu_reader.
7880 (process_psymtab_comp_unit, build_type_psymtabs_1)
7881 (process_skeletonless_type_unit, load_partial_comp_unit)
7882 (load_full_comp_unit, dwarf2_read_addr_index)
7883 (read_signatured_type): Update.
7884
135f5437
TT
78852020-02-08 Tom Tromey <tom@tromey.com>
7886
7887 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
7888 "want_partial_unit" parameter.
7889 (process_psymtab_comp_unit): Change want_partial_unit to bool.
7890 Inline check for DW_TAG_partial_unit.
7891 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
7892
9f66ff1c
TT
78932020-02-08 Tom Tromey <tom@tromey.com>
7894
7895 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
7896 read.c.
7897 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
7898 read.c.
7899
c8a7a66f
TT
79002020-02-08 Tom Tromey <tom@tromey.com>
7901
7902 * dwarf2/read.c (read_address): Move to comp-unit.c.
7903 (dwarf2_rnglists_process, dwarf2_ranges_process)
7904 (read_attribute_value, dwarf_decode_lines_1)
7905 (var_decode_location, decode_locdesc): Update.
7906 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
7907 read.c. Remove "cu" parameter.
7908 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
7909 method.
7910
8266302d
TT
79112020-02-08 Tom Tromey <tom@tromey.com>
7912
7913 * dwarf2/read.c (read_attribute_value, read_indirect_string)
7914 (read_indirect_line_string): Update.
7915 * dwarf2/comp-unit.c (read_offset): Remove.
7916 (read_comp_unit_head): Update.
7917 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
7918 method.
7919 (read_offset): Don't declare.
7920
4057dfde
TT
79212020-02-08 Tom Tromey <tom@tromey.com>
7922
7923 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
7924 * dwarf2/read.c (struct comp_unit_head): Move to
7925 dwarf2/comp-unit.h.
7926 (enum class rcuh_kind): Move to comp-unit.h.
7927 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
7928 (read_comp_unit_head, error_check_comp_unit_head)
7929 (read_and_check_comp_unit_head): Move to comp-unit.c.
7930 (read_offset, dwarf_unit_type_name): Likewise.
7931 (create_debug_type_hash_table, read_cutu_die_from_dwo)
7932 (cutu_reader::cutu_reader, read_call_site_scope)
7933 (find_partial_die, follow_die_offset): Update.
7934 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
7935
24aa364d
TT
79362020-02-08 Tom Tromey <tom@tromey.com>
7937
7938 * dwarf2/read.c (read_offset_1): Move to leb.c.
7939 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
7940 (dwarf_decode_macro_bytes): Update.
7941 * dwarf2/leb.c (read_offset): Rename; move from read.c.
7942 * dwarf2/leb.h (read_offset): Declare.
7943
2c7d5afc
TT
79442020-02-08 Tom Tromey <tom@tromey.com>
7945
7946 * dwarf2/read.c (dwarf2_section_size): Remove.
7947 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
7948 Update.
7949 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
7950
4075cb26
TT
79512020-02-08 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/read.c (read_initial_length): Move to leb.c.
7954 * dwarf2/leb.h (read_initial_length): Declare.
7955 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
7956 handle_nonstd parameter.
7957 * dwarf2/frame.c (read_initial_length): Remove.
7958 (decode_frame_entry_1): Update.
7959
09ba997f
TT
79602020-02-08 Tom Tromey <tom@tromey.com>
7961
7962 * dwarf2/loc.c (dwarf2_find_location_expression)
7963 (dwarf_evaluate_loc_desc::get_tls_address)
7964 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
7965 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
7966 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
7967 (dwarf2_compile_property_to_c)
7968 (dwarf2_loc_desc_get_symbol_read_needs)
7969 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
7970 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
7971 (loclist_describe_location, loclist_tracepoint_var_ref)
7972 (loclist_generate_c_location): Update.
7973 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
7974 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
7975 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
7976 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
7977 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
7978 (dwarf2_per_cu_data::addr_size)
7979 (dwarf2_per_cu_data::ref_addr_size)
7980 (dwarf2_per_cu_data::text_offset)
7981 (dwarf2_per_cu_data::addr_type): Now methods.
7982 (per_cu_header_read_in): Make per_cu "const".
7983 (dwarf2_version): Remove.
7984 (dwarf2_per_cu_data::int_type): Now a method.
7985 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
7986 (set_die_type, read_array_type, read_subrange_index_type)
7987 (read_tag_string_type, read_subrange_type): Update.
7988 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
7989 offset_size, ref_addr_size, text_offset, addr_type, version,
7990 objfile, int_type, addr_sized_int_type>: Declare methods.
7991
96c738c0
TT
79922020-02-08 Tom Tromey <tom@tromey.com>
7993
7994 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
7995 Move earlier.
7996
8fdd972c
TT
79972020-02-08 Tom Tromey <tom@tromey.com>
7998
7999 * dwarf2/read.h (dwarf_line_debug): Declare.
8000 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8001 * dwarf2/read.c: Move line_header code to new files.
8002 (dwarf_line_debug): No longer static.
8003 * dwarf2/line-header.c: New file.
8004 * dwarf2/line-header.h: New file.
8005
03075812
TT
80062020-02-08 Tom Tromey <tom@tromey.com>
8007
8008 * dwarf2/read.c (struct line_header) <file_full_name,
8009 file_file_name>: Return unique_xmalloc_ptr.
8010 (line_header::file_file_name): Update.
8011 (line_header::file_full_name): Update.
8012 (dw2_get_file_names_reader): Update.
8013 (macro_start_file): Update.
8014
bb822404
TT
80152020-02-08 Tom Tromey <tom@tromey.com>
8016
8017 * dwarf2/read.c (struct line_header) <file_full_name,
8018 file_file_name>: Declare methods.
8019 (dw2_get_file_names_reader): Update.
8020 (file_file_name): Now a method.
8021 (file_full_name): Likewise.
8022 (macro_start_file): Update.
8023
009b64fc
TT
80242020-02-08 Tom Tromey <tom@tromey.com>
8025
8026 * dwarf2/read.c (dwarf_always_disassemble)
8027 (show_dwarf_always_disassemble): Move to loc.c.
8028 (_initialize_dwarf2_read): Move "always-disassemble" registration
8029 to loc.c.
8030 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8031 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8032 static.
8033 (show_dwarf_always_disassemble): Move from read.c.
8034 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8035
5895093f
TT
80362020-02-08 Tom Tromey <tom@tromey.com>
8037
8038 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8039 (create_quick_file_names_table): Return htab_up.
8040 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8041 Update.
8042 * dwarf2/read.h (struct dwarf2_per_objfile)
8043 <quick_file_names_table>: Now htab_up.
8044
b3b32279
TT
80452020-02-08 Tom Tromey <tom@tromey.com>
8046
8047 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8048
1d33d811
TT
80492020-02-08 Tom Tromey <tom@tromey.com>
8050
8051 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8052 Rewrite.
8053 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8054 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8055 (abbrev_table::abbrev_table): No longer inline.
8056 (ABBREV_HASH_SIZE): Remove.
8057 (abbrev_table::m_abbrevs): Now an htab_up.
8058
86de1d91
TT
80592020-02-08 Tom Tromey <tom@tromey.com>
8060
8061 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8062 (cutu_reader): Update.
8063 (build_type_psymtabs_1): Update.
8064 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8065 (abbrev_table::alloc_abbrev): Update.
8066 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8067 (abbrev_table::read): New static method, renamed from
8068 abbrev_table_read_table.
8069 (abbrev_table::alloc_abbrev)
8070 (abbrev_table::add_abbrev): Now private.
8071 (abbrev_table::abbrev_table): Now private.
8072 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8073
0335378b
TT
80742020-02-08 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8077 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8078 htab_up.
8079
48b490f2
TT
80802020-02-08 Tom Tromey <tom@tromey.com>
8081
8082 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8083 htab_up.
8084 (lookup_dwo_unit_in_dwp): Update.
8085 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8086 on obstack.
8087
bc68fb19
TT
80882020-02-08 Tom Tromey <tom@tromey.com>
8089
8090 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8091 obstack.
8092
d15acc42
TT
80932020-02-08 Tom Tromey <tom@tromey.com>
8094
8095 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8096 line_header_hash.
8097 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8098 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8099 Change type to htab_up.
8100
eaa5fa8b
TT
81012020-02-08 Tom Tromey <tom@tromey.com>
8102
8103 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8104 htab_up. Don't allocate on obstack.
8105 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8106 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8107 Change type to htab_up.
8108
b0b6a987
TT
81092020-02-08 Tom Tromey <tom@tromey.com>
8110
8111 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8112 Change type to htab_up.
8113 * dwarf2/read.c (create_signatured_type_table_from_index)
8114 (create_signatured_type_table_from_debug_names)
8115 (create_all_type_units, add_type_unit)
8116 (lookup_dwo_signatured_type, lookup_signatured_type)
8117 (process_skeletonless_type_unit): Update.
8118 (create_debug_type_hash_table, create_debug_types_hash_table):
8119 Change type of types_htab.
8120 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8121 htab_up. Don't allocate on obstack.
8122 (create_cus_hash_table): Change type of cus_htab parameter.
8123 (struct dwo_file) <cus, tus>: Now htab_up.
8124 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8125 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8126 (queue_and_load_all_dwo_tus): Update.
8127 * dwarf2/index-write.c (write_gdbindex): Update.
8128 (write_debug_names): Update.
8129
39856def
TT
81302020-02-08 Tom Tromey <tom@tromey.com>
8131
8132 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8133 dwarf2/read.c. Remove "next" member. Add constructor ntad
8134 destructor.
8135 (struct dwarf2_per_objfile) <queue>: New member.
8136 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8137 dwarf2/read.h.
8138 (dwarf2_queue, dwarf2_queue_tail): Remove.
8139 (class dwarf2_queue_guard): Add parameter to constructor. Use
8140 DISABLE_COPY_AND_ASSIGN.
8141 <m_per_objfile>: New member.
8142 <~dwarf2_queue_guard>: Rewrite.
8143 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8144 Update.
8145 (~dwarf2_queue_item): New.
8146
3e225074
TT
81472020-02-08 Tom Tromey <tom@tromey.com>
8148
8149 * dwarf2/read.c (struct die_info) <has_children>: New member.
8150 (dw2_get_file_names_reader): Remove has_children.
8151 (dw2_get_file_names): Update.
8152 (read_cutu_die_from_dwo): Remove has_children.
8153 (cutu_reader::init_tu_and_read_dwo_dies)
8154 (cutu_reader::cutu_reader): Update.
8155 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8156 Remove has_children.
8157 (build_type_psymtabs_1, process_skeletonless_type_unit)
8158 (load_partial_comp_unit, load_full_comp_unit): Update.
8159 (create_dwo_cu_reader): Remove has_children.
8160 (create_cus_hash_table, read_die_and_children): Update.
8161 (read_full_die_1,read_full_die): Remove has_children.
8162 (read_signatured_type): Update.
8163 (class cutu_reader) <has_children>: Remove.
8164
82ca8957
TT
81652020-02-08 Tom Tromey <tom@tromey.com>
8166
8167 * dwarf2/expr.c: Rename from dwarf2expr.c.
8168 * dwarf2/expr.h: Rename from dwarf2expr.h.
8169 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8170 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8171 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8172 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8173 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8174 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8175 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8176 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8177 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8178 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8179 * dwarf2/loc.c: Rename from dwarf2loc.c.
8180 * dwarf2/loc.h: Rename from dwarf2loc.h.
8181 * dwarf2/read.c: Rename from dwarf2read.c.
8182 * dwarf2/read.h: Rename from dwarf2read.h.
8183 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8184 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8185 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8186 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8187 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8188 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8189 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8190 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8191 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8192 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8193 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8194 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8195 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8196 Update.
8197 * Makefile.in (COMMON_SFILES): Update.
8198 (HFILES_NO_SRCDIR): Update.
8199
9e35d499
TT
82002020-02-08 Tom Tromey <tom@tromey.com>
8201
8202 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8203 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8204
1eba2311
TT
82052020-02-08 Tom Tromey <tom@tromey.com>
8206
8207 * dwarf2read.h (struct die_info): Don't declare.
8208
e41c2da2
TT
82092020-02-08 Tom Tromey <tom@tromey.com>
8210
8211 * dwarf2read.h (die_info_ptr): Remove typedef.
8212
4fc6c0d5
TT
82132020-02-08 Tom Tromey <tom@tromey.com>
8214
8215 * dwarf2read.c (read_call_site_scope)
8216 (handle_data_member_location, dwarf2_add_member_fn)
8217 (mark_common_block_symbol_computed, read_common_block)
8218 (attr_to_dynamic_prop, partial_die_info::read)
8219 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8220 (dwarf2_symbol_mark_computed, set_die_type): Update.
8221 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8222 method.
8223 (attr_form_is_block): Don't declare.
8224 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8225
cd6c91b4
TT
82262020-02-08 Tom Tromey <tom@tromey.com>
8227
8228 * dwarf2read.c (dwarf2_find_base_address, )
8229 (read_call_site_scope, rust_containing_type)
8230 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8231 (handle_data_member_location, dwarf2_add_member_fn)
8232 (get_alignment, read_structure_type, process_structure_scope)
8233 (mark_common_block_symbol_computed, read_common_block)
8234 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8235 (partial_die_info::read, read_attribute_value, new_symbol)
8236 (lookup_die_type, dwarf2_get_ref_die_offset)
8237 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8238 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8239 (dwarf2_symbol_mark_computed): Update.
8240 * dwarf2/attribute.h (struct attribute) <value_as_address,
8241 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8242 methods.
8243 (value_as_address, attr_form_is_section_offset)
8244 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8245 * dwarf2/attribute.c (attribute::value_as_address)
8246 (attribute::form_is_section_offset, attribute::form_is_constant)
8247 (attribute::form_is_ref): Now methods.
8248
162dce55
TT
82492020-02-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2read.c (struct attribute, DW_STRING)
8252 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8253 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8254 (attr_form_is_block, attr_form_is_section_offset)
8255 (attr_form_is_constant, attr_form_is_ref): Move.
8256 * dwarf2/attribute.h: New file.
8257 * dwarf2/attribute.c: New file, from dwarf2read.c.
8258 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8259
3054dd54
TT
82602020-02-08 Tom Tromey <tom@tromey.com>
8261
8262 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8263 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8264 Move.
8265 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8266 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8267 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8268 abbrev.c.
8269 * dwarf2/abbrev.h: New file.
8270 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8271 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8272
96b79293
TT
82732020-02-08 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8276 (dwarf2_section_size, dwarf2_get_section_info)
8277 (create_signatured_type_table_from_debug_names)
8278 (create_addrmap_from_aranges, read_debug_names_from_section)
8279 (get_gdb_index_contents_from_section, read_comp_unit_head)
8280 (error_check_comp_unit_head, read_abbrev_offset)
8281 (create_debug_type_hash_table, init_cu_die_reader)
8282 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8283 (read_comp_units_from_section, create_cus_hash_table)
8284 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8285 (create_dwp_v2_section, dwarf2_rnglists_process)
8286 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8287 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8288 (read_indirect_string_from_dwz, read_addr_index_1)
8289 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8290 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8291 (fill_in_loclist_baton): Update.
8292 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8293 get_containing_section, get_bfd_owner, get_bfd_section,
8294 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8295 (dwarf2_read_section, get_section_name, get_section_file_name)
8296 (get_containing_section, get_section_bfd_owner)
8297 (get_section_bfd_section, get_section_name, get_section_file_name)
8298 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8299 declare.
8300 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8301 (dwarf2_section_info::get_bfd_owner)
8302 (dwarf2_section_info::get_bfd_section)
8303 (dwarf2_section_info::get_name)
8304 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8305 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8306 (dwarf2_section_info::read): Now methods.
8307 * dwarf-index-write.c (class debug_names): Update.
8308
2c86cff9
TT
83092020-02-08 Tom Tromey <tom@tromey.com>
8310
8311 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8312 Move to dwarf2/section.h.
8313 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8314 (get_section_bfd_section, get_section_name)
8315 (get_section_file_name, get_section_id, get_section_flags)
8316 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8317 dwarf2/section.c.
8318 * dwarf2/section.h: New file.
8319 * dwarf2/section.c: New file, from dwarf2read.c.
8320 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8321
f4382c45
TT
83222020-02-08 Tom Tromey <tom@tromey.com>
8323
8324 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8325 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8326 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8327 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8328 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8329 * dwarf2/leb.h: New file, from dwarf2read.c.
8330 * dwarf2/leb.c: New file, from dwarf2read.c.
8331 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8332 Remove.
8333 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8334 (COMMON_SFILES): Add dwarf2/leb.c.
8335
01840b7a
JB
83362020-02-08 Joel Brobecker <brobecker@adacore.com>
8337
8338 GDB 9.1 released.
8339
dfcb27e4
IB
83402020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8341
8342 PR gdb/25190:
aac66a4c
SM
8343 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8344 * gdb/remote.c (remote_console_output): Update.
8345 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8346 (ui_file_puts): ...this.
8347 * gdb/ui-file.h (ui_file_puts): Add declaration.
8348 * gdb/utils.c (emit_style_escape): Update.
8349 (flush_wrap_buffer): Update.
8350 (fputs_maybe_filtered): Update.
8351 (fputs_unfiltered): Add function.
dfcb27e4 8352
faa17681
IB
83532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8354
aac66a4c
SM
8355 * gdb/event-loop.c (gdb_wait_for_event): Update.
8356 * gdb/printcmd.c (printf_command): Update.
8357 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8358 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8359 (gdb_os_flush_stderr): Update.
8360 * gdb/remote.c (remote_console_output): Update.
8361 * gdb/ui-file.c (gdb_flush): Rename to...
8362 (ui_file_flush): ...this.
8363 (stderr_file::write): Update.
8364 (stderr_file::puts): Update.
8365 * gdb/ui-file.h (gdb_flush): Rename to...
8366 (ui_file_flush): ...this.
8367 * gdb/utils.c (gdb_flush): Add function.
8368 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8369
5abbbe1d
TT
83702020-02-07 Tom Tromey <tromey@adacore.com>
8371
8372 PR breakpoints/24915:
8373 * source.c (find_and_open_source): Do not check basenames_may_differ.
8374
919adfe8
TT
83752020-02-07 Tom Tromey <tom@tromey.com>
8376
8377 * README: Update gdbserver documentation.
8378 * gdbserver: Move to top level.
8379 * configure.tgt (build_gdbserver): Remove.
8380 * configure.ac: Remove --enable-gdbserver.
8381 * configure: Rebuild.
8382 * Makefile.in (distclean): Don't mention gdbserver.
8383
1d5d29e7
SV
83842020-02-06 Shahab Vahedi <shahab@synopsys.com>
8385
8386 * source-cache.c (source_cache::ensure): Surround
8387 get_plain_source_lines with a try/catch.
8388 (source_cache::get_line_charpos): Get rid of try/catch
8389 and only check for the return value of "ensure".
8390 * tui/tui-source.c (tui_source_window::set_contents):
8391 Simplify "nlines" calculation.
8392
6eb1129c
SV
83932020-02-06 Shahab Vahedi <shahab@synopsys.com>
8394
8395 * MAINTAINERS (Write After Approval): Add myself.
8396
c6a42d11
CB
83972020-02-05 Christian Biesinger <cbiesinger@google.com>
8398
8399 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8400 function call.
8401
c8ecdda6
CB
84022020-02-05 Christian Biesinger <cbiesinger@google.com>
8403
8404 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8405
f6480e70
MR
84062020-02-05 Maciej W. Rozycki <macro@wdc.com>
8407
8408 * nat/riscv-linux-tdesc.h: New file.
8409 * nat/riscv-linux-tdesc.c: New file, taking code from...
8410 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8411 ... here.
8412 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8413 NATDEPFILES.
8414
dcc9fbc6
AB
84152020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8416
8417 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8418 we don't set the fake simulator ptid to the null_ptid.
8419
719546c4
SM
84202020-02-03 Simon Marchi <simon.marchi@efficios.com>
8421
8422 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8423 * gdbthread.h (class thread_info) <resumed>: Likewise.
8424 * infrun.c (resume_1): Likewise.
8425 (proceed): Likewise.
8426 (infrun_thread_stop_requested): Likewise.
8427 (stop_all_threads): Likewise.
8428 (handle_inferior_event): Likewise.
8429 (restart_threads): Likewise.
8430 (finish_step_over): Likewise.
8431 (keep_going_stepped_thread): Likewise.
8432 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8433 (linux_handle_extended_wait): Likewise.
8434 * record-btrace.c (get_thread_current_frame_id): Likewise.
8435 * record-full.c (record_full_wait_1): Likewise.
8436 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8437 * target.c (target_resume): Likewise.
8438 * thread.c (set_running_thread): Likewise.
8439
e409c542
AKS
84402020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8441
8442 * f-valprint.c (f77_print_array_1): Changed datatype of index
8443 variable to LONGEST from int to enable it to contain bound
8444 values correctly.
8445
ee98c0da
MR
84462020-02-03 Maciej W. Rozycki <macro@wdc.com>
8447
8448 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8449 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8450 offsets according to FLEN determined.
8451 (riscv_linux_nat_target::read_description): Determine FLEN
8452 dynamically.
8453 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8454 according to FLEN determined.
8455 (riscv_linux_nat_target::store_registers): Likewise.
8456
aa66aac4
SV
84572020-02-01 Shahab Vahedi <shahab@synopsys.com>
8458
8459 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8460 when reg->group is empty and reggroup is not.
8461
fd9faca8
TT
84622020-01-31 Tom Tromey <tromey@adacore.com>
8463
8464 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8465 Call beneath target's mourn_inferior after unpushing.
8466
42330a68
AB
84672020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8468
8469 PR tui/9765
8470 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8471 have enough lines to fill the screen, still return the lowest
8472 address we found.
8473
7a27a45b
AB
84742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8475
8476 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8477 '-', '<', and '>' commands.
8478
c47f70e2
PA
84792020-01-29 Pedro Alves <palves@redhat.com>
8480 Sergio Durigan Junior <sergiodj@redhat.com>
8481
8482 * infcmd.c (construct_inferior_arguments): Assert that
8483 'argc' is greater than 0.
8484
5133a315
LM
84852020-01-29 Luis Machado <luis.machado@linaro.org>
8486
8487 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8488 (BRK_INSN_MASK): Define to 0xd4200000.
8489 (aarch64_program_breakpoint_here_p): New function.
8490 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8491 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8492 breakpoint.c.
8493 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8494 breakpoint.h
8495 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8496 call gdbarch_program_breakpoint_here_p.
8497 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8498 default_program_breakpoint_here_p, changed return type to bool and
8499 simplified.
8500 * breakpoint.h (program_breakpoint_here): Moved prototype to
8501 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8502 return type to bool.
8503 * gdbarch.c: Regenerate.
8504 * gdbarch.h: Regenerate.
8505 * gdbarch.sh (program_breakpoint_here_p): New method.
8506 * infrun.c (handle_signal_stop): Call
8507 gdbarch_program_breakpoint_here_p.
8508
168f8c6b
TT
85092020-01-26 Tom Tromey <tom@tromey.com>
8510
8511 * ctfread.c (struct ctf_fp_info): Reindent.
8512 (_initialize_ctfread): Remove.
8513
128a391f
TT
85142020-01-26 Tom Tromey <tom@tromey.com>
8515
8516 * psymtab.c (partial_map_expand_apply)
8517 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8518 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8519 (psym_print_stats, psym_expand_symtabs_for_function)
8520 (psym_map_symbol_filenames, psym_map_matching_symbols)
8521 (psym_expand_symtabs_matching)
8522 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8523 (maintenance_check_psymtabs): Use new methods.
8524 * psympriv.h (struct partial_symtab) <readin_p,
8525 get_compunit_symtab>: New methods.
8526 <readin, compunit_symtab>: Remove members.
8527 (struct standard_psymtab): New.
8528 (struct legacy_psymtab): Derive from standard_psymtab.
8529 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8530 standard_psymtab.
8531 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8532
0494dbec
TT
85332020-01-26 Tom Tromey <tom@tromey.com>
8534
8535 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8536 read_dependencies. Add assert.
8537 * psymtab.c (partial_symtab::read_dependencies): New method.
8538 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8539 method.
8540 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8541 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8542 read_dependencies.
8543 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8544 Add assert.
8545
8566b89b
TT
85462020-01-26 Tom Tromey <tom@tromey.com>
8547
8548 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8549 Call expand_psymtab.
8550 (xcoff_read_symtab): Call expand_psymtab.
8551 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8552 legacy_expand_psymtab.
8553 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8554 method.
8555 (struct legacy_psymtab) <expand_psymtab>: Implement.
8556 <legacy_expand_psymtab>: New member.
8557 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8558 (parse_partial_symbols): Set legacy_expand_psymtab.
8559 (psymtab_to_symtab_1): Change argument order. Call
8560 expand_psymtab.
8561 (new_psymtab): Set legacy_expand_psymtab.
8562 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8563 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8564 expand_psymtab.
8565 (dwarf2_psymtab::expand_psymtab): Rename from
8566 psymtab_to_symtab_1. Call expand_psymtab.
8567 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8568 (dbx_end_psymtab): Likewise.
8569 (dbx_psymtab_to_symtab_1): Change argument order. Call
8570 expand_psymtab.
8571 (dbx_read_symtab): Call expand_psymtab.
8572 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8573 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8574 (ctf_psymtab::read_symtab): Call expand_psymtab.
8575
077cbab2
TT
85762020-01-26 Tom Tromey <tom@tromey.com>
8577
8578 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8579 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8580 messages.
8581 * mdebugread.c (mdebug_read_symtab): Remove prints.
8582 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8583 assert.
8584 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8585
891813be
TT
85862020-01-26 Tom Tromey <tom@tromey.com>
8587
8588 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8589 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8590 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8591 legacy_symtab.
8592 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8593 * psymtab.c (psymtab_to_symtab): Call method.
8594 (dump_psymtab): Update.
8595 * psympriv.h (struct partial_symtab): Add virtual destructor.
8596 <read_symtab>: New method.
8597 (struct legacy_symtab): New.
8598 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8599 (struct pst_map) <pst>: Now a legacy_psymtab.
8600 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8601 (new_psymtab): Use legacy_psymtab.
8602 * dwarf2read.h (struct dwarf2_psymtab): New.
8603 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8604 * dwarf2read.c (dwarf2_create_include_psymtab)
8605 (dwarf2_build_include_psymtabs, create_type_unit_group)
8606 (create_partial_symtab, process_psymtab_comp_unit_reader)
8607 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8608 (set_partial_user): Use dwarf2_psymtab.
8609 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8610 (psymtab_to_symtab_1, process_full_comp_unit)
8611 (process_full_type_unit, dwarf2_ranges_read)
8612 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8613 (dwarf_decode_lines): Use dwarf2_psymtab.
8614 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8615 (add_address_entry_worker, write_one_signatured_type)
8616 (recursively_count_psymbols, recursively_write_psymbols)
8617 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8618 (write_debug_names): Likewise.
8619 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8620 <pst>: Now a legacy_psymtab.
8621 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8622 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8623 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8624 * ctfread.c (struct ctf_psymtab): New.
8625 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8626 ctf_psymtab.
8627 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8628 (create_partial_symtab): Return a ctf_psymtab.
8629 (scan_partial_symbols): Update.
8630
c3693a1d
TT
86312020-01-26 Tom Tromey <tom@tromey.com>
8632
8633 * xcoffread.c (xcoff_start_psymtab): Use new.
8634 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8635 renamed from start_psymtab_common.
8636 * psympriv.h (struct partial_symtab): Add new constructor.
8637 (start_psymtab_common): Don't declare.
8638 * mdebugread.c (parse_partial_symbols): Use new.
8639 * dwarf2read.c (create_partial_symtab): Use new.
8640 * dbxread.c (start_psymtab): Use new.
8641 * ctfread.c (create_partial_symtab): Use new.
8642
32caafd0
TT
86432020-01-26 Tom Tromey <tom@tromey.com>
8644
8645 * xcoffread.c (xcoff_end_psymtab): Use new.
8646 * psymtab.c (start_psymtab_common): Use new.
8647 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8648 Update.
8649 * psympriv.h (struct partial_symtab): Add parameters to
8650 constructor. Don't inline.
8651 (allocate_psymtab): Don't declare.
8652 * mdebugread.c (new_psymtab): Use new.
8653 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8654 * dbxread.c (dbx_end_psymtab): Use new.
8655
abaa2f23
TT
86562020-01-26 Tom Tromey <tom@tromey.com>
8657
8658 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8659 allocate_psymtab. Update documentation.
8660 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8661 allocate_psymtab. Do not use new.
8662 (allocate_psymtab): Use new. Update.
8663
6d94535f
TT
86642020-01-26 Tom Tromey <tom@tromey.com>
8665
8666 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8667 * psymtab.c (psym_print_stats): Update.
8668 * psympriv.h (struct partial_symtab) <readin,
8669 psymtabs_addrmap_supported, anonymous>: Now bool.
8670 * mdebugread.c (psymtab_to_symtab_1): Update.
8671 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8672 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8673 (process_full_comp_unit, process_full_type_unit): Update.
8674 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8675 * ctfread.c (psymtab_to_symtab): Update.
8676
6f17252b
TT
86772020-01-26 Tom Tromey <tom@tromey.com>
8678
8679 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8680 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8681 * psymtab.c (psymtab_storage): Delete psymtabs.
8682 (psymtab_storage::allocate_psymtab): Use new.
8683 (psymtab_storage::discard_psymtab): Use delete.
8684 * psympriv.h (struct partial_symtab): Add constructor and
8685 initializers.
8686
f6f1cebc
TT
86872020-01-26 Tom Tromey <tom@tromey.com>
8688
8689 * machoread.c: Do not include psympriv.h.
8690
e47e48f6
PW
86912020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8692
8693 * NEWS: Mention the new option and the set/show commands.
8694
a2fedca9
PW
86952020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8696
8697 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8698 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8699 (validate_exec_file): New variables, enums, functions.
8700 (exec_file_locate_attach, print_section_info): Style the filenames.
8701 (_initialize_exec): Install show_exec_file_mismatch_command and
8702 set_exec_file_mismatch_command.
8703 * gdbcore.h (validate_exec_file): Declare.
8704 * infcmd.c (attach_command): Call validate_exec_file.
8705 * remote.c ( remote_target::remote_add_inferior): Likewise.
8706
7ffa82e1
AB
87072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * frame.c (find_frame_sal): Move call to get_next_frame into more
8710 inner scope.
8711 * inline-frame.c (inilne_state) <inline_state>: Update argument
8712 types.
8713 (inilne_state) <skipped_symbol>: Rename to...
8714 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8715 (skip_inline_frames): Build vector of skipped symbols and use this
8716 to reate the inline_state.
8717 (inline_skipped_symbol): Add a comment and some assertions, fetch
8718 skipped symbol from the list.
8719
3d92a3e3
AB
87202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * buildsym.c (lte_is_less_than): Delete.
8723 (buildsym_compunit::end_symtab_with_blockvector): Create local
8724 lambda function to sort line table entries, and use
8725 std::stable_sort instead of std::sort.
8726 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8727 markers when looking for a previous line.
8728
94a72be7
AB
87292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8730
8731 * dwarf2read.c (lnp_state_machine::record_line): Include
8732 end_sequence parameter in debug print out. Record the line if we
8733 are at an end_sequence marker even if it's not the start of a
8734 statement.
8735 * symmisc.c (maintenance_print_one_line_table): Print end of
8736 sequence markers with 'END' not '0'.
8737
53af73bf
PA
87382020-01-24 Pedro Alves <palves@redhat.com>
8739
8740 PR gdb/25410
8741 * thread.c (scoped_restore_current_thread::restore): Use
8742 switch_to_inferior_no_thread.
8743 * exec.c: Include "progspace-and-thread.h".
8744 (add_target_sections, remove_target_sections):
8745 scoped_restore_current_pspace_and_thread instead of
8746 scoped_restore_current_thread.
8747 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8748 and aspace to the inferior before calling clone_program_space.
8749 Remove stale comment.
8750
3050c6f4
CB
87512020-01-24 Christian Biesinger <cbiesinger@google.com>
8752
8753 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8754 (arm_netbsd_nat_target::fetch_registers): ...this.
8755 (arm_nbsd_nat_target::store_registers): Rename to...
8756 (arm_netbsd_nat_target::store_registers): ...this.
8757
73685c7e
CB
87582020-01-24 Christian Biesinger <cbiesinger@google.com>
8759
8760 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8761 register_t.
8762
89203d40
CB
87632020-01-24 Christian Biesinger <cbiesinger@google.com>
8764
8765 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8766 Update comment.
8767 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8768 Likewise.
8769 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8770 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8771 the correct replacement (iterate_over_regset_sections).
8772 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8773 Update comment.
8774
1ba1ac88
AB
87752020-01-24 Graham Markall <graham.markall@embecosm.com>
8776
8777 PR gdb/23718
8778 * gdb/python/python.c (execute_gdb_command): Call
8779 async_enable_stdin in catch block.
8780
f3364a6d
AB
87812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8782
8783 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8784 SWITCH_THRU_ALL_UIS.
8785
733d0a67
AB
87862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 PR tui/9765
8789 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8790 comment, add extra parameter, and update to store previous symbol
8791 when appropriate.
8792 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8793 add extra parameter.
8794 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8795 remove unneeded parameter, add try/catch around gdb_print_insn,
8796 rewrite to add items to asm_lines vector.
8797 (tui_find_backward_disassembly_start_address): New function.
8798 (tui_find_disassembly_address): Updated throughout.
8799 (tui_disasm_window::set_contents): Update for changes to
8800 tui_disassemble.
8801 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8802 number of lines to scroll.
8803
b3b3bada
SM
88042020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8805
8806 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8807 (SECT_OFF_DATA): Likewise.
8808 (SECT_OFF_RODATA): Likewise.
8809 (SECT_OFF_TEXT): Likewise.
8810 (SECT_OFF_BSS): Likewise.
8811 (struct objfile) <text_section_offset, data_section_offset>: New
8812 methods.
8813 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8814 objfile::text_section_offset.
8815 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8816 * coffread.c (coff_symtab_read): Likewise.
8817 (enter_linenos): Likewise.
8818 (process_coff_symbol): Likewise.
8819 * ctfread.c (get_objfile_text_range): Likewise.
8820 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8821 Use objfile::data_section_offset.
8822 * dwarf2-frame.c (execute_cfa_program): Use
8823 objfile::text_section_offset.
8824 (dwarf2_frame_find_fde): Likewise.
8825 * dwarf2read.c (create_addrmap_from_index): Likewise.
8826 (create_addrmap_from_aranges): Likewise.
8827 (dw2_find_pc_sect_compunit_symtab): Likewise.
8828 (process_psymtab_comp_unit_reader): Likewise.
8829 (add_partial_symbol): Likewise.
8830 (add_partial_subprogram): Likewise.
8831 (process_full_comp_unit): Likewise.
8832 (read_file_scope): Likewise.
8833 (read_func_scope): Likewise.
8834 (read_lexical_block_scope): Likewise.
8835 (read_call_site_scope): Likewise.
8836 (dwarf2_rnglists_process): Likewise.
8837 (dwarf2_ranges_process): Likewise.
8838 (dwarf2_ranges_read): Likewise.
8839 (dwarf_decode_lines_1): Likewise.
8840 (new_symbol): Likewise.
8841 (dwarf2_fetch_die_loc_sect_off): Likewise.
8842 (dwarf2_per_cu_text_offset): Likewise.
8843 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8844 * hppa-tdep.c (read_unwind_info): Likewise.
8845 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8846 * psympriv.h (struct partial_symtab): Likewise.
8847 * psymtab.c (find_pc_sect_psymtab): Likewise.
8848 * solib-svr4.c (enable_break): Likewise.
8849 * stap-probe.c (relocate_address): Use
8850 objfile::data_section_offset.
8851 * xcoffread.c (enter_line_range): Use
8852 objfile::text_section_offset.
8853 (read_xcoff_symtab): Likewise.
8854
ab53f382
SM
88552020-01-23 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8858 declaration to narrower scopes.
8859
e7eee665
SM
88602020-01-23 Simon Marchi <simon.marchi@efficios.com>
8861
8862 * darwin-nat.h (struct darwin_exception_msg, enum
8863 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8864 Move up.
8865 (class darwin_nat_target) <wait_1, check_new_threads,
8866 decode_exception_message, decode_message, stop_inferior,
8867 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8868 * darwin-nat.c (darwin_check_new_threads): Rename to...
8869 (darwin_nat_target::check_new_threads): ... this.
8870 (darwin_suspend_inferior_it): Remove.
8871 (darwin_decode_exception_message): Rename to...
8872 (darwin_nat_target::decode_exception_message): ... this.
8873 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8874 (darwin_decode_message): Rename to...
8875 (darwin_nat_target::decode_message): ... this.
8876 (cancel_breakpoint): Rename to...
8877 (darwin_nat_target::cancel_breakpoint): ... this.
8878 (darwin_wait): Rename to...
8879 (darwin_nat_target::wait_1): ... this. Use range-based for loop
8880 instead of iterate_over_inferiors.
8881 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
8882 (darwin_stop_inferior): Rename to...
8883 (darwin_nat_target::stop_inferior): ... this.
8884 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
8885 (darwin_init_thread_list): Rename to...
8886 (darwin_nat_target::init_thread_list): ... this.
8887 (darwin_ptrace_him): Rename to...
8888 (darwin_nat_target::ptrace_him): ... this.
8889 (darwin_nat_target::create_inferior): Pass lambda function to
8890 fork_inferior.
8891 (darwin_nat_target::detach): Call stop_inferior instead of
8892 darwin_stop_inferior.
8893 * fork-inferior.h (fork_inferior): Change init_trace_fun
8894 parameter to gdb::function_view.
8895 * fork-inferior.c (fork_inferior): Likewise.
8896
c162ed3e
HD
88972020-01-23 Hannes Domani <ssbssa@yahoo.de>
8898
8899 * i386-cygwin-tdep.c (core_process_module_section): Update.
8900 * windows-nat.c (struct lm_info_windows): Add text_offset.
8901 (windows_xfer_shared_libraries): Update.
8902 * windows-tdep.c (windows_xfer_shared_library):
8903 Add text_offset_cached argument.
8904 * windows-tdep.h (windows_xfer_shared_library): Update.
8905
a1237872
SM
89062020-01-21 Simon Marchi <simon.marchi@efficios.com>
8907
8908 * gdbarch.sh: Add declaration for _initialize_gdbarch.
8909
b3ee6dd9
SM
89102020-01-21 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
8913 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
8914 replace with range-based for.
8915 (gdbsim_interrupt_inferior): Remove.
8916 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
8917 with a range-based for. Inline code from
8918 gdbsim_interrupt_inferior.
8919
f9fac3c8
SM
89202020-01-21 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * infrun.c (proceed): Fix indentation.
8923
f6474de9
TT
89242020-01-21 Tom Tromey <tromey@adacore.com>
8925
8926 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
8927 * python/python.c (python_extension_ops): Update.
8928 (gdbpy_colorize): New function.
8929 * python/lib/gdb/__init__.py (colorize): New function.
8930 * extension.h (ext_lang_colorize): Declare.
8931 * extension.c (ext_lang_colorize): New function.
8932 * extension-priv.h (struct extension_language_ops) <colorize>: New
8933 member.
8934 * cli/cli-style.c (_initialize_cli_style): Update help text.
8935
f0c702d4
LM
89362020-01-21 Luis Machado <luis.machado@linaro.org>
8937
8938 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
8939 <cond>: Change type to bool.
8940 (aarch64_displaced_step_b_cond): Update cond to use bool type.
8941 (aarch64_displaced_step_cb): Likewise.
8942 (aarch64_displaced_step_tb): Likewise.
8943
1ab139e5
LM
89442020-01-21 Luis Machado <luis.machado@linaro.org>
8945
8946 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
8947 output.
8948
0c271889
LM
89492020-01-21 Luis Machado <luis.machado@linaro.org>
8950
8951 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
8952 <pc_adjust>: Adjust the documentation.
8953 (aarch64_displaced_step_fixup): Check if PC really moved before
8954 adjusting it.
8955
4d89c1c7
TT
89562020-01-19 Tom Tromey <tom@tromey.com>
8957
8958 * disasm.c (~gdb_disassembler): New destructor.
8959 (gdb_buffered_insn_length): Call disassemble_free_target.
8960 * disasm.h (class gdb_disassembler): Declare destructor. Use
8961 DISABLE_COPY_AND_ASSIGN.
8962
c0ab21c2
TT
89632020-01-19 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
8966 (die_reader_func_ftype): Remove.
8967 (cutu_reader): New class.
8968 (dw2_get_file_names_reader): Remove "data" parameter.
8969 (dw2_get_file_names): Use cutu_reader.
8970 (create_debug_type_hash_table): Update.
8971 (read_cutu_die_from_dwo): Update comment.
8972 (lookup_dwo_unit): Add dwo_name parameter.
8973 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
8974 die_reader_func_ftype and data parameters.
8975 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
8976 Remove die_reader_func_ftype and data parameters.
8977 (~cutu_reader): New; from init_cutu_and_read_dies.
8978 (cutu_reader::cutu_reader): Rename from
8979 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
8980 and data parameters.
8981 (init_cutu_and_read_dies_simple): Remove.
8982 (struct process_psymtab_comp_unit_data): Remove.
8983 (process_psymtab_comp_unit_reader): Remove data parameter; add
8984 want_partial_unit and pretend_language parameters.
8985 (process_psymtab_comp_unit): Use cutu_reader.
8986 (build_type_psymtabs_reader): Remove data parameter.
8987 (build_type_psymtabs_1): Use cutu_reader.
8988 (process_skeletonless_type_unit): Likewise.
8989 (load_partial_comp_unit_reader): Remove.
8990 (load_partial_comp_unit): Use cutu_reader.
8991 (load_full_comp_unit_reader): Remove.
8992 (load_full_comp_unit): Use cutu_reader.
8993 (struct create_dwo_cu_data): Remove.
8994 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
8995 dwo_unit parameters.
8996 (create_cus_hash_table): Use cutu_reader.
8997 (struct dwarf2_read_addr_index_data): Remove.
8998 (dwarf2_read_addr_index_reader): Remove.
8999 (dwarf2_read_addr_index): Use cutu_reader.
9000 (read_signatured_type_reader): Remove.
9001 (read_signatured_type): Use cutu_reader.
9002
45bbae5c
TT
90032020-01-19 Tom Tromey <tom@tromey.com>
9004
9005 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9006 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9007 (tui_wrefresh): Declare.
9008 * tui/tui-wingeneral.c (suppress_output): New global.
9009 (tui_suppress_output, ~tui_suppress_output): New constructor and
9010 destructor.
9011 (tui_wrefresh): New function.
9012 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9013 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9014 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9015 method.
9016 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9017 tui_wrefresh.
9018 (tui_data_window::no_refresh): New method.
9019 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9020 (tui_reg_command): Use tui_suppress_output
9021 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9022 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9023 method.
9024 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9025
4f13c1c0
TT
90262020-01-19 Tom Tromey <tom@tromey.com>
9027
9028 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9029 Handle case where symtab is null.
9030
fa47e446
SM
90312020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9032
9033 * linux-fork.c (one_fork_p): Simplify.
9034
26f42329
SM
90352020-01-17 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * top.c (struct qt_args): Remove.
9038 (kill_or_detach): Change return type to void, replace `void *`
9039 parameter with a proper one.
9040 (print_inferior_quit_action): Likewise.
9041 (quit_confirm): Use range-based for loop to iterate over inferiors.
9042 (quit_force): Likewise.
9043
a9ac81b1
SM
90442020-01-17 Simon Marchi <simon.marchi@efficios.com>
9045
9046 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9047 `void *` parameter with proper parameters.
9048 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9049 (print_one_inferior): Change return type to void, replace `void *`
9050 parameter with proper parameters.
9051 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9052 inferiors.
9053 (get_other_inferior): Remove.
9054 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9055 inferiors.
9056
788eca49
SM
90572020-01-17 Simon Marchi <simon.marchi@efficios.com>
9058
9059 * mi/mi-interp.c (report_initial_inferior): Remove.
9060 (mi_interp::init): Use range-based for to iterate over inferiors.
9061
d9bc85b6
SM
90622020-01-17 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * python/py-inferior.c (build_inferior_list): Remove.
9065 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9066
40c94099
CB
90672020-01-16 Christian Biesinger <cbiesinger@google.com>
9068
9069 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9070 (btrace_stitch_trace): Likewise.
9071 * charset.c (intermediate_encoding): Likewise (vaild).
9072 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9073 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9074 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9075
e0cdfe3c
HD
90762020-01-16 Hannes Domani <ssbssa@yahoo.de>
9077
9078 * windows-tdep.c (windows_get_tlb_type):
9079 Add rtl_user_process_parameters type.
9080
790f1718 90812020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9082 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9083
9084 PR build/24805
9085 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9086 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9087 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9088 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9089 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9090 (ps_plog): Redeclare exported functions with default visibility.
9091
3112ed97
NA
90922020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9093
9094 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9095 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9096
8dc3273e
SM
90972020-01-15 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * infcmd.c (post_create_inferior): Use get_thread_regcache
9100 instead of get_current_regcache.
9101
ff47f4f0
TT
91022020-01-14 Tom Tromey <tom@tromey.com>
9103
9104 PR symtab/12535:
9105 * python/python.c (gdbpy_decode_line): Treat empty string the same
9106 as no argument.
9107
975f45b7
TT
91082020-01-14 Tom Tromey <tom@tromey.com>
9109
9110 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9111
25e57356
TT
91122020-01-14 Tom Tromey <tom@tromey.com>
9113
9114 * nat/linux-btrace.c: Don't include <config.h>.
9115 * nat/linux-ptrace.c: Don't include <config.h>.
9116 * nat/x86-linux-dregs.c: Don't include <config.h>.
9117
05ea2a05
TT
91182020-01-14 Tom Tromey <tom@tromey.com>
9119
9120 * configure: Rebuild.
9121 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9122
01027315
TT
91232020-01-14 Tom Tromey <tom@tromey.com>
9124
9125 * nat/x86-linux-dregs.c: Include configh.h.
9126 * nat/linux-ptrace.c: Include configh.h.
9127 * nat/linux-btrace.c: Include configh.h.
9128 * defs.h: Include config.h, bfd.h.
9129 * configure.ac: Don't source common.host.
9130 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9131 * configure: Rebuild.
9132 * acinclude.m4: Update path.
9133 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9134 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9135 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9136 (CLIBS): Add LIBSUPPORT.
9137 (CDEPS): Likewise.
9138 (COMMON_SFILES): Remove gdbsupport files.
9139 (HFILES_NO_SRCDIR): Likewise.
9140 (stamp-version): Update path to create-version.sh.
9141 (ALLDEPFILES): Remove gdbsupport files.
9142
b2ceabe8
TT
91432020-01-14 Tom Tromey <tom@tromey.com>
9144
9145 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9146 USE_WIN32API when needed.
9147 * configure.ac (USE_WIN32API): Don't define.
9148 (WIN32LIBS): Use WIN32APILIBS.
9149 * configure: Rebuild.
9150
25c51f71
TT
91512020-01-14 Tom Tromey <tom@tromey.com>
9152
9153 * configure: Rebuild.
9154 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9155
717c684d
BE
91562020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9157
9158 * skip.c (skip_function_command): Make skip w/o arguments use the
9159 name of the inlined function if pc is inside any inlined function.
9160
7da6a5b9
LM
91612020-01-14 Luis Machado <luis.machado@linaro.org>
9162
9163 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9164 * infrun.c (resume_1): Likewise.
9165 (handle_inferior_event): Remove stale comment.
9166 * linux-nat.c (linux_nat_target::resume): Update comments.
9167 (save_stop_reason): Likewise.
9168 (linux_nat_filter_event): Likewise.
9169 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9170
44e4c775
AB
91712020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9172
9173 * elfread.c (record_minimal_symbol): Set section index to 0 for
9174 non-allocatable sections.
9175
18a8505e
AT
9176
91772020-01-13 Ali Tamur <tamur@google.com>
9178
9179 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9180 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9181 to gdb::optional. Update comments.
9182 (dwo_file): Update comments.
9183 (read_attribute): Update API to take an additional out parameter,
9184 need_reprocess. This is used to mark attributes that need other
9185 attributes (e.g. str_offsets_base) for correct computation which may not
9186 have been read yet.
9187 (read_attribute_reprocess): New function declaration.
9188 (read_addr_index): Likewise.
9189 (read_dwo_str_index): Likewise.
9190 (read_stub_str_index): Likewise.
9191 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9192 (lookup_addr_base): New function definition.
9193 (lookup_ranges_base): Likewise.
9194 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9195 lookup_ranges_base.
9196 (init_cutu_and_read_dies): Update comments.
9197 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9198 unit. This is used to inherit parent's str_offsets_base and addr_base.
9199 Update comments.
9200 (init_cutu_and_read_dies_simple): Reflect API changes.
9201 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9202 (create_cus_hash_table): Change API to take parent compile unit.
9203 Reflect API changes.
9204 (open_and_init_dwo_file): Reflect API changes.
9205 (dwarf2_get_pc_bounds): Update comments.
9206 (dwarf2_record_block_ranges): Likewise.
9207 (read_full_die_1): Change implementation to reprocess attributes that
9208 need str_offsets_base and addr_base.
9209 (partial_die_info::read): Likewise.
9210 (read_attribute_reprocess): New function definition.
9211 (read_attribute_value): Change API to take an additional out parameter,
9212 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9213 when a non-dwo compile unit has index based attributes.
9214 (read_attribute): Reflect API changes.
9215 (read_addr_index_1): Reflect API changes. Update comments.
9216 (dwarf2_read_addr_index_data): Reflect API changes.
9217 (dwarf2_read_addr_index): Likewise.
9218 (read_str_index): Change API and implementation. This becomes a helper
9219 to be used by the new string index related methods. Update error
9220 message and comments.
9221 (read_dwo_str_index): New function definition.
9222 (read_stub_str_index): Likewise.
9223 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9224 * symfile.h (dwarf2_debug_sections): Likewise.
9225 * xcoffread.c (dwarf2_debug_sections): Likewise.
9226
0cac9354
SM
92272020-01-13 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9230 core_reg_sect type to gdb_byte *.
9231 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9232 * cris-tdep.c (fetch_core_registers): Likewise.
9233 * corelow.c (core_target::get_core_register_section): Change
9234 type of `contents` to gdb::byte_vector.
9235
9a6d629c
AB
92362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9237
9238 * tui/tui-wingeneral.c (box_win): Position the title in the center
9239 of the border.
9240
d8b2f9e3
SM
92412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9242
9243 * corelow.c (core_target::get_core_register_section): Use
9244 std::vector instead of alloca.
9245
bb564c58
SM
92462020-01-13 Simon Marchi <simon.marchi@efficios.com>
9247
9248 * warning.m4: Add -Wmissing-declarations to build_warnings.
9249 * configure: Re-generate.
9250
6b366111
SM
92512020-01-13 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * python/python.c (init__gdb_module): Add declaration.
9254
6c265988
SM
92552020-01-13 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9258 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9259 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9260 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9261 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9262 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9263 * ada-exp.y (_initialize_ada_exp): Add declaration.
9264 * ada-lang.c (_initialize_ada_language): Add declaration.
9265 * ada-tasks.c (_initialize_tasks): Add declaration.
9266 * agent.c (_initialize_agent): Add declaration.
9267 * aix-thread.c (_initialize_aix_thread): Add declaration.
9268 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9269 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9270 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9271 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9272 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9273 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9274 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9275 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9276 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9277 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9278 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9279 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9280 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9281 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9282 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9283 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9284 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9285 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9286 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9287 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9288 * annotate.c (_initialize_annotate): Add declaration.
9289 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9290 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9291 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9292 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9293 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9294 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9295 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9296 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9297 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9298 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9299 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9300 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9301 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9302 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9303 * auto-load.c (_initialize_auto_load): Add declaration.
9304 * auxv.c (_initialize_auxv): Add declaration.
9305 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9306 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9307 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9308 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9309 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9310 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9311 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9312 * breakpoint.c (_initialize_breakpoint): Add declaration.
9313 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9314 * btrace.c (_initialize_btrace): Add declaration.
9315 * charset.c (_initialize_charset): Add declaration.
9316 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9317 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9318 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9319 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9320 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9321 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9322 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9323 * coffread.c (_initialize_coffread): Add declaration.
9324 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9325 * compile/compile.c (_initialize_compile): Add declaration.
9326 * complaints.c (_initialize_complaints): Add declaration.
9327 * completer.c (_initialize_completer): Add declaration.
9328 * copying.c (_initialize_copying): Add declaration.
9329 * corefile.c (_initialize_core): Add declaration.
9330 * corelow.c (_initialize_corelow): Add declaration.
9331 * cp-abi.c (_initialize_cp_abi): Add declaration.
9332 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9333 * cp-support.c (_initialize_cp_support): Add declaration.
9334 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9335 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9336 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9337 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9338 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9339 * ctfread.c (_initialize_ctfread): Add declaration.
9340 * d-lang.c (_initialize_d_language): Add declaration.
9341 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9342 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9343 * dbxread.c (_initialize_dbxread): Add declaration.
9344 * dcache.c (_initialize_dcache): Add declaration.
9345 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9346 * disasm.c (_initialize_disasm): Add declaration.
9347 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9348 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9349 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9350 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9351 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9352 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9353 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9354 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9355 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9356 * elfread.c (_initialize_elfread): Add declaration.
9357 * exec.c (_initialize_exec): Add declaration.
9358 * extension.c (_initialize_extension): Add declaration.
9359 * f-lang.c (_initialize_f_language): Add declaration.
9360 * f-valprint.c (_initialize_f_valprint): Add declaration.
9361 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9362 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9363 * filesystem.c (_initialize_filesystem): Add declaration.
9364 * findcmd.c (_initialize_mem_search): Add declaration.
9365 * findvar.c (_initialize_findvar): Add declaration.
9366 * fork-child.c (_initialize_fork_child): Add declaration.
9367 * frame-base.c (_initialize_frame_base): Add declaration.
9368 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9369 * frame.c (_initialize_frame): Add declaration.
9370 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9371 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9372 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9373 * gcore.c (_initialize_gcore): Add declaration.
9374 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9375 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9376 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9377 * gdbarch.c (_initialize_gdbarch): Add declaration.
9378 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9379 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9380 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9381 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9382 * go-lang.c (_initialize_go_language): Add declaration.
9383 * go32-nat.c (_initialize_go32_nat): Add declaration.
9384 * guile/guile.c (_initialize_guile): Add declaration.
9385 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9386 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9387 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9388 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9389 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9390 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9391 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9392 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9393 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9394 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9395 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9396 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9397 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9398 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9399 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9400 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9401 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9402 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9403 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9404 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9405 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9406 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9407 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9408 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9409 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9410 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9411 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9412 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9413 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9414 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9415 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9416 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9417 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9418 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9419 * infcall.c (_initialize_infcall): Add declaration.
9420 * infcmd.c (_initialize_infcmd): Add declaration.
9421 * inflow.c (_initialize_inflow): Add declaration.
9422 * infrun.c (_initialize_infrun): Add declaration.
9423 * interps.c (_initialize_interpreter): Add declaration.
9424 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9425 * jit.c (_initialize_jit): Add declaration.
9426 * language.c (_initialize_language): Add declaration.
9427 * linux-fork.c (_initialize_linux_fork): Add declaration.
9428 * linux-nat.c (_initialize_linux_nat): Add declaration.
9429 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9430 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9431 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9432 * m2-lang.c (_initialize_m2_language): Add declaration.
9433 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9434 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9435 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9436 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9437 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9438 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9439 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9440 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9441 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9442 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9443 * machoread.c (_initialize_machoread): Add declaration.
9444 * macrocmd.c (_initialize_macrocmd): Add declaration.
9445 * macroscope.c (_initialize_macroscope): Add declaration.
9446 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9447 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9448 * maint.c (_initialize_maint_cmds): Add declaration.
9449 * mdebugread.c (_initialize_mdebugread): Add declaration.
9450 * memattr.c (_initialize_mem): Add declaration.
9451 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9452 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9453 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9454 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9455 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9456 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9457 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9458 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9459 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9460 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9461 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9462 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9463 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9464 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9465 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9466 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9467 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9468 * mipsread.c (_initialize_mipsread): Add declaration.
9469 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9470 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9471 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9472 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9473 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9474 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9475 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9476 * nto-procfs.c (_initialize_procfs): Add declaration.
9477 * objc-lang.c (_initialize_objc_language): Add declaration.
9478 * observable.c (_initialize_observer): Add declaration.
9479 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9480 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9481 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9482 * osabi.c (_initialize_gdb_osabi): Add declaration.
9483 * osdata.c (_initialize_osdata): Add declaration.
9484 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9485 * parse.c (_initialize_parse): Add declaration.
9486 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9487 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9488 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9489 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9490 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9491 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9492 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9493 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9494 * printcmd.c (_initialize_printcmd): Add declaration.
9495 * probe.c (_initialize_probe): Add declaration.
9496 * proc-api.c (_initialize_proc_api): Add declaration.
9497 * proc-events.c (_initialize_proc_events): Add declaration.
9498 * proc-service.c (_initialize_proc_service): Add declaration.
9499 * procfs.c (_initialize_procfs): Add declaration.
9500 * producer.c (_initialize_producer): Add declaration.
9501 * psymtab.c (_initialize_psymtab): Add declaration.
9502 * python/python.c (_initialize_python): Add declaration.
9503 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9504 * record-btrace.c (_initialize_record_btrace): Add declaration.
9505 * record-full.c (_initialize_record_full): Add declaration.
9506 * record.c (_initialize_record): Add declaration.
9507 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9508 * regcache.c (_initialize_regcache): Add declaration.
9509 * reggroups.c (_initialize_reggroup): Add declaration.
9510 * remote-notif.c (_initialize_notif): Add declaration.
9511 * remote-sim.c (_initialize_remote_sim): Add declaration.
9512 * remote.c (_initialize_remote): Add declaration.
9513 * reverse.c (_initialize_reverse): Add declaration.
9514 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9515 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9516 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9517 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9518 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9519 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9520 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9521 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9522 Add declaration.
9523 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9524 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9525 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9526 * rust-exp.y (_initialize_rust_exp): Add declaration.
9527 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9528 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9529 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9530 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9531 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9532 * score-tdep.c (_initialize_score_tdep): Add declaration.
9533 * ser-go32.c (_initialize_ser_dos): Add declaration.
9534 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9535 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9536 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9537 * ser-uds.c (_initialize_ser_socket): Add declaration.
9538 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9539 * serial.c (_initialize_serial): Add declaration.
9540 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9541 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9542 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9543 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9544 * skip.c (_initialize_step_skip): Add declaration.
9545 * sol-thread.c (_initialize_sol_thread): Add declaration.
9546 * solib-aix.c (_initialize_solib_aix): Add declaration.
9547 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9548 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9549 * solib-frv.c (_initialize_frv_solib): Add declaration.
9550 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9551 * solib-target.c (_initialize_solib_target): Add declaration.
9552 * solib.c (_initialize_solib): Add declaration.
9553 * source-cache.c (_initialize_source_cache): Add declaration.
9554 * source.c (_initialize_source): Add declaration.
9555 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9556 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9557 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9558 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9559 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9560 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9561 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9562 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9563 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9564 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9565 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9566 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9567 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9568 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9569 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9570 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9571 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9572 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9573 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9574 * stabsread.c (_initialize_stabsread): Add declaration.
9575 * stack.c (_initialize_stack): Add declaration.
9576 * stap-probe.c (_initialize_stap_probe): Add declaration.
9577 * std-regs.c (_initialize_frame_reg): Add declaration.
9578 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9579 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9580 * symfile.c (_initialize_symfile): Add declaration.
9581 * symmisc.c (_initialize_symmisc): Add declaration.
9582 * symtab.c (_initialize_symtab): Add declaration.
9583 * target.c (_initialize_target): Add declaration.
9584 * target-connection.c (_initialize_target_connection): Add
9585 declaration.
9586 * target-dcache.c (_initialize_target_dcache): Add declaration.
9587 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9588 * thread.c (_initialize_thread): Add declaration.
9589 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9590 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9591 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9592 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9593 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9594 * tracectf.c (_initialize_ctf): Add declaration.
9595 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9596 * tracefile.c (_initialize_tracefile): Add declaration.
9597 * tracepoint.c (_initialize_tracepoint): Add declaration.
9598 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9599 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9600 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9601 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9602 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9603 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9604 * tui/tui.c (_initialize_tui): Add declaration.
9605 * typeprint.c (_initialize_typeprint): Add declaration.
9606 * ui-style.c (_initialize_ui_style): Add declaration.
9607 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9608 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9609 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9610 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9611 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9612 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9613 * unittests/filtered_iterator-selftests.c
9614 (_initialize_filtered_iterator_selftests): Add declaration.
9615 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9616 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9617 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9618 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9619 * unittests/main-thread-selftests.c
9620 (_initialize_main_thread_selftests): Add declaration.
9621 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9622 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9623 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9624 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9625 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9626 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9627 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9628 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9629 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9630 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9631 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9632 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9633 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9634 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9635 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9636 declaration.
9637 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9638 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9639 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9640 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9641 * user-regs.c (_initialize_user_regs): Add declaration.
9642 * utils.c (_initialize_utils): Add declaration.
9643 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9644 * valops.c (_initialize_valops): Add declaration.
9645 * valprint.c (_initialize_valprint): Add declaration.
9646 * value.c (_initialize_values): Add declaration.
9647 * varobj.c (_initialize_varobj): Add declaration.
9648 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9649 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9650 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9651 * windows-nat.c (_initialize_windows_nat): Add declaration.
9652 (_initialize_check_for_gdb_ini): Add declaration.
9653 (_initialize_loadable): Add declaration.
9654 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9655 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9656 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9657 * xcoffread.c (_initialize_xcoffread): Add declaration.
9658 * xml-support.c (_initialize_xml_support): Add declaration.
9659 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9660 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9661 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9662 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9663
e2de1eec
SM
96642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9665
9666 * regformats/regdat.sh: Generate declaration for init function.
9667
e0037b4c
SM
96682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9669
9670 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9671 up.
9672 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9673 close_one_inferior>: New methods.
9674 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9675 pass down target to find_inferior_pid.
9676 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9677 Pass down target to find_inferior_ptid.
9678 (gdbsim_target::create_inferior): Pass down target to
9679 add_thread_silent.
9680 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9681 target down to find_inferior_ptid and switch_to_thread.
9682 (gdbsim_target::close): Update to call close_one_inferior.
9683 (struct resume_data): Remove.
9684 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9685 directly, rather than through a void pointer.
9686 (gdbsim_target::resume): Update to call resume_one_inferior.
9687
58920b5b
SM
96882020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9689
9690 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9691
4ec89149
PA
96922020-01-12 Pedro Alves <palves@redhat.com>
9693
9694 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9695 directly for the current inferior instead of
9696 discard_all_inferiors.
9697 (discard_all_inferiors): Delete.
9698
7c392d1d
TT
96992020-01-11 Tom Tromey <tom@tromey.com>
9700
9701 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9702 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9703 deprecated_safe_get_selected_frame.
9704
d9ebdab7
TBA
97052020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9706
9707 * inferior.c (print_inferior): Switch inferior before printing it.
9708
f3c469b9
PA
97092020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9710 Pedro Alves <palves@redhat.com>
9711
9712 * progspace-and-thread.c (switch_to_program_space_and_thread):
9713 Assert there's an inferior for PSPACE. Use
9714 switch_to_inferior_no_thread to switch the inferior too.
9715 * progspace.c (program_space::~program_space): Call
9716 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9717 (program_space::free_all_objfiles): Don't call clear_symtab_users
9718 here.
9719 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9720
65c574f6
PA
97212020-01-10 Pedro Alves <palves@redhat.com>
9722
9723 * NEWS: Mention multi-target debugging, "info connections", and
9724 "add-inferior -no-connection".
9725
2f4fcf00
PA
97262020-01-10 Pedro Alves <palves@redhat.com>
9727
9728 * infrun.c: Include "target-connection.h".
9729 (check_multi_target_resumption): New.
9730 (proceed): Call it.
9731 * target-connection.c (make_target_connection_string): Make
9732 extern.
9733 * target-connection.h (make_target_connection_string): Declare.
9734
121b3efd
PA
97352020-01-10 Pedro Alves <palves@redhat.com>
9736
9737 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9738 * inferior.c (uiout_field_connection): New function.
9739 (print_inferior): Add new "connection-id" column.
9740 (add_inferior_command): Show connection number/string of added
9741 inferior.
9742 * process-stratum-target.h
9743 (process_stratum_target::connection_string): New virtual method.
9744 (process_stratum_target::connection_number): New field.
9745 * remote.c (remote_target::connection_string): New override.
9746 * target-connection.c: New file.
9747 * target-connection.h: New file.
9748 * target.c (decref_target): Remove process_stratum targets from
9749 the connection list.
9750 (target_stack::push): Add process_stratum targets to the
9751 connection list.
9752
4f837581
PA
97532020-01-10 Pedro Alves <palves@redhat.com>
9754
9755 Revert:
9756 2016-04-12 Pedro Alves <palves@redhat.com>
9757 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9758 Remove references to name.
9759 * serial.h (struct serial) <name>: Delete.
9760
f4ec508e
PA
97612020-01-10 Pedro Alves <palves@redhat.com>
9762
9763 * gdbarch-selftests.c (register_to_value_test): Remove "target
9764 already pushed" check.
9765
5b6d1e4f
PA
97662020-01-10 Pedro Alves <palves@redhat.com>
9767 John Baldwin <jhb@FreeBSD.org>
9768
9769 * aarch64-linux-nat.c
9770 (aarch64_linux_nat_target::thread_architecture): Adjust.
9771 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9772 (task_command_1): Likewise.
9773 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9774 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9775 (aix_thread_target::store_registers)
9776 (aix_thread_target::thread_alive): Adjust.
9777 * amd64-fbsd-tdep.c: Include "inferior.h".
9778 (amd64fbsd_get_thread_local_address): Pass down target.
9779 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9780 thread's gdbarch instead of target_gdbarch.
9781 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9782 get_last_target_status.
9783 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9784 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9785 inferiors.
9786 (update_inserted_breakpoint_locations): Skip if inferiors with no
9787 execution.
9788 (update_global_location_list): When handling moribund locations,
9789 find representative inferior for location's pspace, and use thread
9790 count of its process_stratum target.
9791 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9792 * bsd-uthread.c (bsd_uthread_target::wait): Use
9793 as_process_stratum_target and adjust thread_change_ptid and
9794 add_thread calls.
9795 (bsd_uthread_target::update_thread_list): Use
9796 as_process_stratum_target and adjust find_thread_ptid,
9797 thread_change_ptid and add_thread calls.
9798 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9799 find_thread_ptid call.
9800 * corelow.c (add_to_thread_list): Adjust add_thread call.
9801 (core_target_open): Adjust add_thread_silent and thread_count
9802 calls.
9803 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9804 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9805 * event-top.c (async_disconnect): Pop targets from all inferiors.
9806 * exec.c (add_target_sections): Push exec target on all inferiors
9807 sharing the program space.
9808 (remove_target_sections): Remove the exec target from all
9809 inferiors sharing the program space.
9810 (exec_on_vfork): New.
9811 * exec.h (exec_on_vfork): Declare.
9812 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9813 Pass it down.
9814 (fbsd_nat_target::update_thread_list): Adjust.
9815 (fbsd_nat_target::resume): Adjust.
9816 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9817 down.
9818 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9819 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9820 get_thread_arch_regcache call.
9821 * fork-child.c (gdb_startup_inferior): Pass target down to
9822 startup_inferior and set_executing.
9823 * gdbthread.h (struct process_stratum_target): Forward declare.
9824 (add_thread, add_thread_silent, add_thread_with_info)
9825 (in_thread_list): Add process_stratum_target parameter.
9826 (find_thread_ptid(inferior*, ptid_t)): New overload.
9827 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9828 parameter.
9829 (all_threads()): Delete overload.
9830 (all_threads, all_non_exited_threads): Add process_stratum_target
9831 parameter.
9832 (all_threads_safe): Use brace initialization.
9833 (thread_count): Add process_stratum_target parameter.
9834 (set_resumed, set_running, set_stop_requested, set_executing)
9835 (threads_are_executing, finish_thread_state): Add
9836 process_stratum_target parameter.
9837 (switch_to_thread): Use is_current_thread.
9838 * i386-fbsd-tdep.c: Include "inferior.h".
9839 (i386fbsd_get_thread_local_address): Pass down target.
9840 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9841 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9842 have_inferiors check.
9843 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9844 (inf_ptrace_target::attach): Adjust.
9845 * infcall.c (run_inferior_call): Adjust.
9846 * infcmd.c (run_command_1): Pass target to
9847 scoped_finish_thread_state.
9848 (proceed_thread_callback): Skip inferiors with no execution.
9849 (continue_command): Rename 'all_threads' local to avoid hiding
9850 'all_threads' function. Adjust get_last_target_status call.
9851 (prepare_one_step): Adjust set_running call.
9852 (signal_command): Use user_visible_resume_target. Compare thread
9853 pointers instead of inferior_ptid.
9854 (info_program_command): Adjust to pass down target.
9855 (attach_command): Mark target's 'thread_executing' flag.
9856 (stop_current_target_threads_ns): New, factored out from ...
9857 (interrupt_target_1): ... this. Switch inferior before making
9858 target calls.
9859 * inferior-iter.h
9860 (struct all_inferiors_iterator, struct all_inferiors_range)
9861 (struct all_inferiors_safe_range)
9862 (struct all_non_exited_inferiors_range): Filter on
9863 process_stratum_target too. Remove explicit.
9864 * inferior.c (inferior::inferior): Push dummy target on target
9865 stack.
9866 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9867 Add process_stratum_target parameter, and pass it down.
9868 (have_live_inferiors): Adjust.
9869 (switch_to_inferior_and_push_target): New.
9870 (add_inferior_command, clone_inferior_command): Handle
9871 "-no-connection" parameter. Use
9872 switch_to_inferior_and_push_target.
9873 (_initialize_inferior): Mention "-no-connection" option in
9874 the help of "add-inferior" and "clone-inferior" commands.
9875 * inferior.h: Include "process-stratum-target.h".
9876 (interrupt_target_1): Use bool.
9877 (struct inferior) <push_target, unpush_target, target_is_pushed,
9878 find_target_beneath, top_target, process_target, target_at,
9879 m_stack>: New.
9880 (discard_all_inferiors): Delete.
9881 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
9882 (all_inferiors, all_non_exited_inferiors): Add
9883 process_stratum_target parameter.
9884 * infrun.c: Include "gdb_select.h" and <unordered_map>.
9885 (target_last_proc_target): New global.
9886 (follow_fork_inferior): Push target on new inferior. Pass target
9887 to add_thread_silent. Call exec_on_vfork. Handle target's
9888 reference count.
9889 (follow_fork): Adjust get_last_target_status call. Also consider
9890 target.
9891 (follow_exec): Push target on new inferior.
9892 (struct execution_control_state) <target>: New field.
9893 (user_visible_resume_target): New.
9894 (do_target_resume): Call target_async.
9895 (resume_1): Set target's threads_executing flag. Consider resume
9896 target.
9897 (commit_resume_all_targets): New.
9898 (proceed): Also consider resume target. Skip threads of inferiors
9899 with no execution. Commit resumtion in all targets.
9900 (start_remote): Pass current inferior to wait_for_inferior.
9901 (infrun_thread_stop_requested): Consider target as well. Pass
9902 thread_info pointer to clear_inline_frame_state instead of ptid.
9903 (infrun_thread_thread_exit): Consider target as well.
9904 (random_pending_event_thread): New inferior parameter. Use it.
9905 (do_target_wait): Rename to ...
9906 (do_target_wait_1): ... this. Add inferior parameter, and pass it
9907 down.
9908 (threads_are_resumed_pending_p, do_target_wait): New.
9909 (prepare_for_detach): Adjust calls.
9910 (wait_for_inferior): New inferior parameter. Handle it. Use
9911 do_target_wait_1 instead of do_target_wait.
9912 (fetch_inferior_event): Adjust. Switch to representative
9913 inferior. Pass target down.
9914 (set_last_target_status): Add process_stratum_target parameter.
9915 Save target in global.
9916 (get_last_target_status): Add process_stratum_target parameter and
9917 handle it.
9918 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
9919 (context_switch): Check inferior_ptid == null_ptid before calling
9920 inferior_thread().
9921 (get_inferior_stop_soon): Pass down target.
9922 (wait_one): Rename to ...
9923 (poll_one_curr_target): ... this.
9924 (struct wait_one_event): New.
9925 (wait_one): New.
9926 (stop_all_threads): Adjust.
9927 (handle_no_resumed, handle_inferior_event): Adjust to consider the
9928 event's target.
9929 (switch_back_to_stepped_thread): Also consider target.
9930 (print_stop_event): Update.
9931 (normal_stop): Update. Also consider the resume target.
9932 * infrun.h (wait_for_inferior): Remove declaration.
9933 (user_visible_resume_target): New declaration.
9934 (get_last_target_status, set_last_target_status): New
9935 process_stratum_target parameter.
9936 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9937 process_stratum_target parameter, and use it.
9938 (clear_inline_frame_state (thread_info*)): New.
9939 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9940 process_stratum_target parameter.
9941 (clear_inline_frame_state (thread_info*)): Declare.
9942 * linux-fork.c (delete_checkpoint_command): Pass target down to
9943 find_thread_ptid.
9944 (checkpoint_command): Adjust.
9945 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
9946 instead of just tweaking inferior_ptid.
9947 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
9948 (exit_lwp): Pass target down to find_thread_ptid.
9949 (attach_proc_task_lwp_callback): Pass target down to
9950 add_thread/set_running/set_executing.
9951 (linux_nat_target::attach): Pass target down to
9952 thread_change_ptid.
9953 (get_detach_signal): Pass target down to find_thread_ptid.
9954 Consider last target status's target.
9955 (linux_resume_one_lwp_throw, resume_lwp)
9956 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
9957 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
9958 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
9959 (linux_nat_target::async_wait_fd): New.
9960 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
9961 target down.
9962 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
9963 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
9964 * linux-thread-db.c (struct thread_db_info::process_target): New
9965 field.
9966 (add_thread_db_info): Save target.
9967 (get_thread_db_info): New process_stratum_target parameter. Also
9968 match target.
9969 (delete_thread_db_info): New process_stratum_target parameter.
9970 Also match target.
9971 (thread_from_lwp): Adjust to pass down target.
9972 (thread_db_notice_clone): Pass down target.
9973 (check_thread_db_callback): Pass down target.
9974 (try_thread_db_load_1): Always push the thread_db target.
9975 (try_thread_db_load, record_thread): Pass target down.
9976 (thread_db_target::detach): Pass target down. Always unpush the
9977 thread_db target.
9978 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
9979 target down. Always unpush the thread_db target.
9980 (find_new_threads_callback, thread_db_find_new_threads_2)
9981 (thread_db_target::update_thread_list): Pass target down.
9982 (thread_db_target::pid_to_str): Pass current inferior down.
9983 (thread_db_target::get_thread_local_address): Pass target down.
9984 (thread_db_target::resume, maintenance_check_libthread_db): Pass
9985 target down.
9986 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
9987 * procfs.c (procfs_target::procfs_init_inferior): Declare.
9988 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
9989 (procfs_init_inferior): Rename to ...
9990 (procfs_target::procfs_init_inferior): ... this and adjust.
9991 (procfs_target::create_inferior, procfs_notice_thread)
9992 (procfs_do_thread_registers): Adjust.
9993 * ppc-fbsd-tdep.c: Include "inferior.h".
9994 (ppcfbsd_get_thread_local_address): Pass down target.
9995 * proc-service.c (ps_xfer_memory): Switch current inferior and
9996 program space as well.
9997 (get_ps_regcache): Pass target down.
9998 * process-stratum-target.c
9999 (process_stratum_target::thread_address_space)
10000 (process_stratum_target::thread_architecture): Pass target down.
10001 * process-stratum-target.h
10002 (process_stratum_target::threads_executing): New field.
10003 (as_process_stratum_target): New.
10004 * ravenscar-thread.c
10005 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10006 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10007 down.
10008 * record-btrace.c (record_btrace_target::info_record): Adjust.
10009 (record_btrace_target::record_method)
10010 (record_btrace_target::record_is_replaying)
10011 (record_btrace_target::fetch_registers)
10012 (get_thread_current_frame_id, record_btrace_target::resume)
10013 (record_btrace_target::wait, record_btrace_target::stop): Pass
10014 target down.
10015 * record-full.c (record_full_wait_1): Switch to event thread.
10016 Pass target down.
10017 * regcache.c (regcache::regcache)
10018 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10019 process_stratum_target parameter and handle it.
10020 (current_thread_target): New global.
10021 (get_thread_regcache): Add process_stratum_target parameter and
10022 handle it. Switch inferior before calling target method.
10023 (get_thread_regcache): Pass target down.
10024 (get_thread_regcache_for_ptid): Pass target down.
10025 (registers_changed_ptid): Add process_stratum_target parameter and
10026 handle it.
10027 (registers_changed_thread, registers_changed): Pass target down.
10028 (test_get_thread_arch_aspace_regcache): New.
10029 (current_regcache_test): Define a couple local test_target_ops
10030 instances and use them for testing.
10031 (readwrite_regcache): Pass process_stratum_target parameter.
10032 (cooked_read_test, cooked_write_test): Pass mock_target down.
10033 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10034 (get_thread_arch_aspace_regcache): Add process_stratum_target
10035 parameter.
10036 (regcache::target): New method.
10037 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10038 (regcache::registers_changed_ptid): Add process_stratum_target
10039 parameter.
10040 (regcache::m_target): New field.
10041 (registers_changed_ptid): Add process_stratum_target parameter.
10042 * remote.c (remote_state::supports_vCont_probed): New field.
10043 (remote_target::async_wait_fd): New method.
10044 (remote_unpush_and_throw): Add remote_target parameter.
10045 (get_current_remote_target): Adjust.
10046 (remote_target::remote_add_inferior): Push target.
10047 (remote_target::remote_add_thread)
10048 (remote_target::remote_notice_new_inferior)
10049 (get_remote_thread_info): Pass target down.
10050 (remote_target::update_thread_list): Skip threads of inferiors
10051 bound to other targets. (remote_target::close): Don't discard
10052 inferiors. (remote_target::add_current_inferior_and_thread)
10053 (remote_target::process_initial_stop_replies)
10054 (remote_target::start_remote)
10055 (remote_target::remote_serial_quit_handler): Pass down target.
10056 (remote_target::remote_unpush_target): New remote_target
10057 parameter. Unpush the target from all inferiors.
10058 (remote_target::remote_unpush_and_throw): New remote_target
10059 parameter. Pass it down.
10060 (remote_target::open_1): Check whether the current inferior has
10061 execution instead of checking whether any inferior is live. Pass
10062 target down.
10063 (remote_target::remote_detach_1): Pass down target. Use
10064 remote_unpush_target.
10065 (extended_remote_target::attach): Pass down target.
10066 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10067 (remote_target::append_resumption): Pass down target.
10068 (remote_target::append_pending_thread_resumptions)
10069 (remote_target::remote_resume_with_hc, remote_target::resume)
10070 (remote_target::commit_resume): Pass down target.
10071 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10072 (remote_target::interrupt_query)
10073 (remote_target::remove_new_fork_children)
10074 (remote_target::check_pending_events_prevent_wildcard_vcont)
10075 (remote_target::remote_parse_stop_reply)
10076 (remote_target::process_stop_reply): Pass down target.
10077 (first_remote_resumed_thread): New remote_target parameter. Pass
10078 it down.
10079 (remote_target::wait_as): Pass down target.
10080 (unpush_and_perror): New remote_target parameter. Pass it down.
10081 (remote_target::readchar, remote_target::remote_serial_write)
10082 (remote_target::getpkt_or_notif_sane_1)
10083 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10084 down target.
10085 (remote_target::mourn_inferior): Pass down target. Use
10086 remote_unpush_target.
10087 (remote_target::core_of_thread)
10088 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10089 (remote_target::pid_to_exec_file)
10090 (remote_target::thread_handle_to_thread_info): Pass down target.
10091 (remote_target::async_wait_fd): New.
10092 * riscv-fbsd-tdep.c: Include "inferior.h".
10093 (riscv_fbsd_get_thread_local_address): Pass down target.
10094 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10095 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10096 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10097 Adjust.
10098 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10099 * solib-svr4.c (enable_break): Pass down target.
10100 * spu-multiarch.c (parse_spufs_run): Pass down target.
10101 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10102 * target-delegates.c: Regenerate.
10103 * target.c (g_target_stack): Delete.
10104 (current_top_target): Return the current inferior's top target.
10105 (target_has_execution_1): Refer to the passed-in inferior's top
10106 target.
10107 (target_supports_terminal_ours): Check whether the initial
10108 inferior was already created.
10109 (decref_target): New.
10110 (target_stack::push): Incref/decref the target.
10111 (push_target, push_target, unpush_target): Adjust.
10112 (target_stack::unpush): Defref target.
10113 (target_is_pushed): Return bool. Adjust to refer to the current
10114 inferior's target stack.
10115 (dispose_inferior): Delete, and inline parts ...
10116 (target_preopen): ... here. Only dispose of the current inferior.
10117 (target_detach): Hold strong target reference while detaching.
10118 Pass target down.
10119 (target_thread_name): Add assertion.
10120 (target_resume): Pass down target.
10121 (target_ops::beneath, find_target_at): Adjust to refer to the
10122 current inferior's target stack.
10123 (get_dummy_target): New.
10124 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10125 has a thread running.
10126 (initialize_targets): Rename to ...
10127 (_initialize_target): ... this.
10128 * target.h: Include "gdbsupport/refcounted-object.h".
10129 (struct target_ops): Inherit refcounted_object.
10130 (target_ops::shortname, target_ops::longname): Make const.
10131 (target_ops::async_wait_fd): New method.
10132 (decref_target): Declare.
10133 (struct target_ops_ref_policy): New.
10134 (target_ops_ref): New typedef.
10135 (get_dummy_target): Declare function.
10136 (target_is_pushed): Return bool.
10137 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10138 (all_matching_threads_iterator::all_matching_threads_iterator):
10139 Handle filter target.
10140 * thread-iter.h (struct all_matching_threads_iterator, struct
10141 all_matching_threads_range, class all_non_exited_threads_range):
10142 Filter by target too. Remove explicit.
10143 * thread.c (threads_executing): Delete.
10144 (inferior_thread): Pass down current inferior.
10145 (clear_thread_inferior_resources): Pass down thread pointer
10146 instead of ptid_t.
10147 (add_thread_silent, add_thread_with_info, add_thread): Add
10148 process_stratum_target parameter. Use it for thread and inferior
10149 searches.
10150 (is_current_thread): New.
10151 (thread_info::deletable): Use it.
10152 (find_thread_ptid, thread_count, in_thread_list)
10153 (thread_change_ptid, set_resumed, set_running): New
10154 process_stratum_target parameter. Pass it down.
10155 (set_executing): New process_stratum_target parameter. Pass it
10156 down. Adjust reference to 'threads_executing'.
10157 (threads_are_executing): New process_stratum_target parameter.
10158 Adjust reference to 'threads_executing'.
10159 (set_stop_requested, finish_thread_state): New
10160 process_stratum_target parameter. Pass it down.
10161 (switch_to_thread): Also match inferior.
10162 (switch_to_thread): New process_stratum_target parameter. Pass it
10163 down.
10164 (update_threads_executing): Reimplement.
10165 * top.c (quit_force): Pop targets from all inferior.
10166 (gdb_init): Don't call initialize_targets.
10167 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10168 Declare.
10169 (windows_add_thread, windows_delete_thread): Adjust.
10170 (get_windows_debug_event): Rename to ...
10171 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10172 * tracefile-tfile.c (tfile_target_open): Pass down target.
10173 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10174 Forward declare.
10175 (switch_to_thread): Add process_stratum_target parameter.
10176 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10177 parameter. Use it.
10178 (mi_on_resume): Pass target down.
10179 * nat/fork-inferior.c (startup_inferior): Add
10180 process_stratum_target parameter. Pass it down.
10181 * nat/fork-inferior.h (startup_inferior): Add
10182 process_stratum_target parameter.
10183 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10184
75c6c844
PA
101852020-01-10 Pedro Alves <palves@redhat.com>
10186
10187 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10188 directly. Instead find the first thread in the thread list and
10189 use switch_to_thread.
10190
78f2c40a
PA
101912020-01-10 Pedro Alves <palves@redhat.com>
10192
10193 * remote.c (remote_target::remote_add_inferior): Don't bind a
10194 process to the current inferior if the current inferior is already
10195 bound to a process.
10196
e7af6c70
TBA
101972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10198 Pedro Alves <palves@redhat.com>
10199
10200 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10201 If no process is specified, return null_ptid instead of
10202 inferior_ptid.
10203 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10204 TARGET_WAITKIND_SIGNALLED with no pid.
10205
31ba933e
PA
102062020-01-10 Pedro Alves <palves@redhat.com>
10207
10208 * remote.c (first_remote_resumed_thread): New.
10209 (remote_target::wait_as): Use it as default event_ptid instead of
10210 inferior_ptid.
10211
735fc2ca
PA
102122020-01-10 Pedro Alves <palves@redhat.com>
10213
10214 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10215
c17e02e1
PA
102162020-01-10 Pedro Alves <palves@redhat.com>
10217
10218 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10219 not -1.
10220
ab1ddbcf
PA
102212020-01-10 Pedro Alves <palves@redhat.com>
10222
10223 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10224 ptid to get_last_target_status.
10225 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10226 ptid to get_last_target_status.
10227 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10228 get_last_target_status.
10229 (info_program_command): Don't pass a target_waitstatus to
10230 get_last_target_status.
10231 * infrun.c (init_wait_for_inferior): Use
10232 nullify_last_target_wait_ptid.
10233 (get_last_target_status): Handle nullptr arguments.
10234 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10235 (print_stop_event): Don't pass a ptid to get_last_target_status.
10236 (normal_stop): Don't pass a ptid to get_last_target_status.
10237 * infrun.h (get_last_target_status, set_last_target_status): Move
10238 comments here and update.
10239 (nullify_last_target_wait_ptid): Declare.
10240 * linux-fork.c (fork_load_infrun_state): Remove local extern
10241 declaration of nullify_last_target_wait_ptid.
10242 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10243 to get_last_target_status.
10244
f3f8ece4
PA
102452020-01-10 Pedro Alves <palves@redhat.com>
10246
10247 * gdbthread.h (scoped_restore_current_thread)
10248 <dont_restore, restore, m_dont_restore>: Declare.
10249 * thread.c (thread_alive): Add assertion. Return bool.
10250 (switch_to_thread_if_alive): New.
10251 (prune_threads): Switch inferior/thread.
10252 (print_thread_info_1): Switch thread before calling target methods.
10253 (scoped_restore_current_thread::restore): New, factored out from
10254 ...
10255 (scoped_restore_current_thread::~scoped_restore_current_thread):
10256 ... this.
10257 (scoped_restore_current_thread::scoped_restore_current_thread):
10258 Add assertion.
10259 (thread_apply_all_command, thread_select): Use
10260 switch_to_thread_if_alive.
10261 * infrun.c (proceed, restart_threads, handle_signal_stop)
10262 (switch_back_to_stepped_thread): Switch current thread before
10263 calling target methods.
10264
db2d40f7
PA
102652020-01-10 Pedro Alves <palves@redhat.com>
10266
10267 * inferior.c (switch_to_inferior_no_thread): New function,
10268 factored out from ...
10269 (inferior_command): ... here.
10270 * inferior.h (switch_to_inferior_no_thread): Declare.
10271 * mi/mi-main.c (run_one_inferior): Use
10272 switch_to_inferior_no_thread.
10273
bd420a2d
PA
102742020-01-10 Pedro Alves <palves@redhat.com>
10275
10276 * infcmd.c (kill_command): Remove dead code.
10277
ddf5db90
PA
102782020-01-10 Pedro Alves <palves@redhat.com>
10279
10280 * remote.c (remote_target::mourn_inferior): No longer check
10281 whether the target is running.
10282
5018ce90
PA
102832020-01-10 Pedro Alves <palves@redhat.com>
10284
10285 * corelow.c (core_target::has_execution): Change parameter type to
10286 inferior pointer.
10287 * inferior.c (number_of_live_inferiors): Use
10288 inferior::has_execution instead of target_has_execution_1.
10289 * inferior.h (inferior::has_execution): New.
10290 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10291 inferior::has_execution instead of target_has_execution_1.
10292 * process-stratum-target.c
10293 (process_stratum_target::has_execution): Change parameter type to
10294 inferior pointer. Check the inferior's PID instead of
10295 inferior_ptid.
10296 * process-stratum-target.h
10297 (process_stratum_target::has_execution): Change parameter type to
10298 inferior pointer.
10299 * record-full.c (record_full_core_target::has_execution): Change
10300 parameter type to inferior pointer.
10301 * target.c (target_has_execution_1): Change parameter type to
10302 inferior pointer.
10303 (target_has_execution_current): Adjust.
10304 * target.h (target_ops::has_execution): Change parameter type to
10305 inferior pointer.
10306 (target_has_execution_1): Change parameter type to inferior
10307 pointer. Change return type to bool.
10308 * tracefile.h (tracefile_target::has_execution): Change parameter
10309 type to inferior pointer.
10310
74375d18
PA
103112020-01-10 Pedro Alves <palves@redhat.com>
10312
10313 * exceptions.c (print_flush): Remove current_top_target() check.
10314
acdf84a6
PA
103152020-01-10 Pedro Alves <palves@redhat.com>
10316
10317 * remote.c (show_remote_exec_file): Show the current inferior's
10318 exec-file instead of the command variable's value.
10319
ec506636
PA
103202020-01-10 Pedro Alves <palves@redhat.com>
10321
10322 * record-full.c (record_full_resume_ptid): New global.
10323 (record_full_target::resume): Set it.
10324 (record_full_wait_1): Use record_full_resume_ptid instead of
10325 inferior_ptid.
10326
873657b9
PA
103272020-01-10 Pedro Alves <palves@redhat.com>
10328
10329 * gdbthread.h (scoped_restore_current_thread)
10330 <dont_restore, restore, m_dont_restore>: Declare.
10331 * thread.c (thread_alive): Add assertion. Return bool.
10332 (switch_to_thread_if_alive): New.
10333 (prune_threads): Switch inferior/thread.
10334 (print_thread_info_1): Switch thread before calling target methods.
10335 (scoped_restore_current_thread::restore): New, factored out from
10336 ...
10337 (scoped_restore_current_thread::~scoped_restore_current_thread):
10338 ... this.
10339 (scoped_restore_current_thread::scoped_restore_current_thread):
10340 Add assertion.
10341 (thread_apply_all_command, thread_select): Use
10342 switch_to_thread_if_alive.
10343
7f0ae84c
GB
103442020-01-10 George Barrett <bob@bob131.so>
10345
10346 * stap-probe.c (stap_modify_semaphore): Don't check for null
10347 semaphores.
10348 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10349 for null semaphores.
10350
f5a7c406
AB
103512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10352
10353 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10354 all source windows, and maintain horizontal scroll status while
10355 doing so.
10356
9ae6bf64
TT
103572020-01-09 Tom Tromey <tom@tromey.com>
10358
10359 PR tui/18932:
10360 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10361 update_source_window, not print_source_lines.
10362
b2efe70c
AB
103632020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10364
10365 * tui/tui.c (tui_enable): Register tui hooks after calling
10366 tui_display_main.
10367
5f23a082
CB
103682020-01-09 Christian Biesinger <cbiesinger@google.com>
10369
10370 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10371
3061113b
SM
103722020-01-08 Simon Marchi <simon.marchi@efficios.com>
10373
10374 * thread.c (print_thread_info_1): Fix indentation.
10375
57d75002
CB
103762020-01-09 Christian Biesinger <cbiesinger@google.com>
10377
10378 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10379 unique_xmalloc_ptr outside the if to always free the demangled name.
10380
6a053cb1
TT
103812020-01-08 Tom Tromey <tromey@adacore.com>
10382
10383 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10384 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10385 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10386 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10387 Remove.
10388 (section_offsets): New typedef.
10389 * symtab.c (fixup_section, get_msymbol_address): Update.
10390 * symmisc.c (dump_msymbols): Update.
10391 * symfile.h (relative_addr_info_to_section_offsets)
10392 (symfile_map_offsets_to_segments): Update.
10393 * symfile.c (build_section_addr_info_from_objfile)
10394 (init_objfile_sect_indices): Update.
10395 (struct place_section_arg): Change type of "offsets".
10396 (place_section): Update.
10397 (relative_addr_info_to_section_offsets): Change type of
10398 "section_offsets". Remove "num_sections" parameter.
10399 (default_symfile_offsets, syms_from_objfile_1)
10400 (set_objfile_default_section_offset): Update.
10401 (reread_symbols): No need to preserve section offsets by hand.
10402 (symfile_map_offsets_to_segments): Change type of "offsets".
10403 * stap-probe.c (relocate_address): Update.
10404 * stabsread.h (process_one_symbol): Update.
10405 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10406 (solib_target_relocate_section_addresses): Update.
10407 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10408 Update.
10409 * solib-frv.c (frv_relocate_main_executable): Update.
10410 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10411 * solib-aix.c (solib_aix_get_section_offsets): Change return
10412 type.
10413 (solib_aix_solib_create_inferior_hook): Update.
10414 * remote.c (remote_target::get_offsets): Update.
10415 * psymtab.c (find_pc_sect_psymtab): Update.
10416 * psympriv.h (struct partial_symbol) <address, text_low,
10417 text_high>: Update.
10418 * objfiles.h (obj_section_offset): Update.
10419 (struct objfile) <section_offsets>: Change type.
10420 <num_sections>: Remove.
10421 (objfile_relocate): Update.
10422 * objfiles.c (entry_point_address_query): Update
10423 (relocate_one_symbol): Change type of "section_offsets".
10424 (objfile_relocate1, objfile_relocate1): Change type of
10425 "new_offsets".
10426 (objfile_rebase1): Update.
10427 * mipsread.c (mipscoff_symfile_read): Update.
10428 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10429 parameter.
10430 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10431 (parse_external, psymtab_to_symtab_1): Update.
10432 * machoread.c (macho_symfile_offsets): Update.
10433 * ia64-tdep.c (ia64_find_unwind_table): Update.
10434 * hppa-tdep.c (read_unwind_info): Update.
10435 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10436 * dwarf2read.c (create_addrmap_from_index)
10437 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10438 (process_psymtab_comp_unit_reader, add_partial_symbol)
10439 (add_partial_subprogram, process_full_comp_unit)
10440 (read_file_scope, read_func_scope, read_lexical_block_scope)
10441 (read_call_site_scope, dwarf2_rnglists_process)
10442 (dwarf2_ranges_process, dwarf2_ranges_read)
10443 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10444 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10445 Update.
10446 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10447 Update.
10448 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10449 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10450 (process_one_symbol): Change type of "section_offsets".
10451 * ctfread.c (get_objfile_text_range): Update.
10452 * coffread.c (coff_symtab_read, enter_linenos)
10453 (process_coff_symbol): Update.
10454 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10455 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10456
456e800a
TT
104572020-01-08 Tom Tromey <tromey@adacore.com>
10458
10459 * dwarf2read.c (parse_macro_definition): Use std::string.
10460 (parse_macro_definition): Likewise.
10461
6dfa2fc2
TT
104622020-01-08 Tom Tromey <tromey@adacore.com>
10463
10464 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10465 (ATTR_ALLOC_CHUNK): Remove.
10466
421d1616
TT
104672020-01-08 Tom Tromey <tromey@adacore.com>
10468
10469 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10470
43816ebc
TT
104712020-01-08 Tom Tromey <tromey@adacore.com>
10472
10473 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10474 (dwarf2_compute_name, open_dwo_file): Likewise.
10475 (process_enumeration_scope): Use std::vector.
10476 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10477 (partial_die_info::fixup, dwarf2_start_subfile)
10478 (guess_full_die_structure_name, dwarf2_name): Likewise.
10479 (determine_prefix): Update.
10480 (guess_full_die_structure_name): Make return type const.
10481 (partial_die_full_name): Return unique_xmalloc_ptr.
10482 (DW_FIELD_ALLOC_CHUNK): Remove.
10483
4212d509
TT
104842020-01-07 Tom Tromey <tromey@adacore.com>
10485
10486 PR build/24937:
10487 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10488
06a6207a
JT
104892020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10490
10491 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10492
153d79c4
AB
104932020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10494
10495 * stack.c (print_frame_info): Move disassemble_next_line code
10496 inside source_print block.
10497
66182876
EZ
104982020-01-06 Eli Zaretskii <eliz@gnu.org>
10499
10500 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10501 gdb/signals.h, as we are now using native signal symbols.
10502
cbfa8581
SV
105032020-01-06 Shahab Vahedi <shahab@synopsys.com>
10504
10505 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10506 overflow by an early check of content vs threshold.
aac66a4c 10507 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10508 Likewise.
10509
3f602821
EZ
105102020-01-06 Eli Zaretskii <eliz@gnu.org>
10511
10512 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10513
a08c904d
JT
105142020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10515
10516 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10517 export table if no section contains it's RVA.
10518
89a65580
EZ
105192020-01-06 Eli Zaretskii <eliz@gnu.org>
10520
10521 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10522
8b7fcda2
HD
105232020-01-06 Hannes Domani <ssbssa@yahoo.de>
10524
10525 * source.c (print_source_lines_base): Set last_line_listed.
10526
a61b4f69
SV
105272020-01-06 Shahab Vahedi <shahab@synopsys.com>
10528
10529 * tui/tui-disasm.c: Remove trailing spaces.
10530
559e7e50
EZ
105312020-01-06 Eli Zaretskii <eliz@gnu.org>
10532 Pedro Alves <palves@redhat.com>
10533
10534 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10535 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10536 (windows_gdb_signal_to_target): New function, uses the above
10537 enumeration to convert GDB internal signal codes to equivalent
10538 Windows codes.
10539 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10540 * windows-nat.c: Include "gdb_wait.h".
10541 (get_windows_debug_event): Extract the fatal exception from the
10542 exit status and convert to the equivalent Posix signal number.
10543 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10544 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10545 * gdbsupport/gdb_wait.c: New file, implements
10546 windows_status_to_termsig.
10547 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10548 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10549
f2302a34
AB
105502020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10551
10552 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10553 show_layout.
10554
6a5206eb
LM
105552020-01-05 Luis Machado <luis.machado@linaro.org>
10556
10557 * aarch64-linux-nat.c
10558 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10559 and bfd_mach_aarch64.
10560
6ec1d75e
PW
105612020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10562
10563 * ui-file.c (stdio_file::can_emit_style_escape)
10564 (tee_file::can_emit_style_escape): Ensure style is used also on
10565 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10566 to gdb_stdout.
10567 * main.c (set_gdb_data_directory): Use file style to output the
10568 warning that the given pathname is not a directory.
10569 * top.c (show_history_filename, gdb_safe_append_history)
10570 (show_gdb_datadir): Use file style.
10571
44f81a76
HD
105722020-01-03 Hannes Domani <ssbssa@yahoo.de>
10573
10574 * solib-target.c (struct lm_info_target):
10575 Change offsets to be a unique_xmalloc_ptr.
10576 (solib_target_relocate_section_addresses): Update.
10577
25057eb0
HD
105782020-01-03 Hannes Domani <ssbssa@yahoo.de>
10579
10580 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10581
6e2118f5
BE
105822020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10583
10584 * MAINTAINERS (Write After Approval): Add myself.
10585
8133c7dc
LM
105862020-01-02 Luis Machado <luis.machado@linaro.org>
10587
10588 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10589 Cell BE architecture.
10590 * target.h (struct target_ops) <thread_architecture>: Likewise.
10591
48189bec
HD
105922020-01-01 Hannes Domani <ssbssa@yahoo.de>
10593
10594 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10595
ead1063b
HD
105962020-01-01 Hannes Domani <ssbssa@yahoo.de>
10597
10598 * MAINTAINERS (Write After Approval): Add myself.
10599
e5d78223
JB
106002020-01-01 Joel Brobecker <brobecker@adacore.com>
10601
10602 * gdbarch.sh: Update copyright year range of generated files.
10603
b811d2c2
JB
106042020-01-01 Joel Brobecker <brobecker@adacore.com>
10605
10606 Update copyright year range in all GDB files.
10607
5f4def5c
JB
106082020-01-01 Joel Brobecker <brobecker@adacore.com>
10609
10610 * copyright.py: Convert to Python 3.
10611
51fd4002
JB
106122020-01-01 Joel Brobecker <brobecker@adacore.com>
10613
10614 * copyright.py: Adapt after move of gnulib directory from gdb
10615 directory to toplevel directory.
10616
5fb651f2
JB
106172020-01-01 Joel Brobecker <brobecker@adacore.com>
10618
10619 * copyright.py (main): Exit if run from the wrong directory.
10620
5dd8bf88
JB
106212020-01-01 Joel Brobecker <brobecker@adacore.com>
10622
10623 * top.c (print_gdb_version): Change copyright year to 2020.
10624
9f71dacb 106252020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10626
9f71dacb 10627 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10628
9f71dacb 10629For older changes see ChangeLog-2019.
c906108c
SS
10630\f
10631Local Variables:
10632mode: change-log
10633left-margin: 8
10634fill-column: 74
10635version-control: never
57da7796 10636coding: utf-8
c906108c 10637End: