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