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