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