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