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