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