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