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