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