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