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