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