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