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