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