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