]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e08bd6c5
PA
12020-05-24 Pedro Alves <palves@redhat.com>
2
3 * symtab.c (completion_list_add_name): Return boolean indication
4 of whether the symbol matched.
5 (completion_list_add_symbol): Don't try to remove C++ aliases if
6 the symbol didn't match in the first place.
7 * symtab.h (completion_list_add_name): Return bool.
8
ceacbf6e
SM
92020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
12 type::field.
13
26f16254
JB
142020-05-23 Joel Brobecker <brobecker@adacore.com>
15
16 GDB 9.2 released.
17
eca1f90c
TT
182020-05-23 Tom Tromey <tom@tromey.com>
19
20 * NEWS: Add entry for completion styling.
21 * completer.c (_rl_completion_prefix_display_length): Move
22 declaration earlier.
23 (gdb_fnprint): Use completion_style.
24 (gdb_display_match_list_1): Likewise.
25 * cli/cli-style.c (completion_prefix_style)
26 (completion_difference_style, completion_suffix_style): New
27 globals.
28 (_initialize_cli_style): Register new globals.
29 * cli/cli-style.h (completion_prefix_style)
30 (completion_difference_style, completion_suffix_style): Declare.
31
51e2cfa2
PA
322020-05-23 Pedro Alves <palves@redhat.com>
33
34 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
35 (parse_escape): Use ISDIGIT instead of isdigit.
36 (puts_debug): Use gdb_isprint instead of isprint.
37 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
38 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
39 ISSPACE instead of isspace.
40 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
41 instead of isspace.
42 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
43 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
44 instead of isxdigit and ISDIGIT instead of isdigit.
45
80fc5e77
SM
462020-05-22 Simon Marchi <simon.marchi@efficios.com>
47
48 * gdbtypes.h (struct type) <field>: New method.
49 (TYPE_FIELDS): Remove, replace all uses with either type::fields
50 or type::field.
51
3cabb6b0
SM
522020-05-22 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
55 (TYPE_FIELDS): Use type::fields. Change all call sites that
56 modify the propery to use type::set_fields instead.
57
1f704f76
SM
582020-05-22 Simon Marchi <simon.marchi@efficios.com>
59
60 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
61 type::num_fields instead.
62
5e33d5f4
SM
632020-05-22 Simon Marchi <simon.marchi@efficios.com>
64
65 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
66 methods.
67 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
68 that modify the number of fields to use type::set_num_fields
69 instead.
70
9392ebb3
TT
712020-05-22 Tom Tromey <tromey@adacore.com>
72
73 * compile/compile-object-load.h (munmap_list_free): Don't
74 declare.
75
7c13f4e8
AB
762020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
77
78 * annotate.c (annotate_source_line): Update return type, add call
79 to update current symtab and line.
80 * annotate.h (annotate_source_line): Update return type, and
81 extend header comment.
82 * source.c (info_line_command): Check annotation_level before
83 calling annotate_source_line.
84 * stack.c (print_frame_info): If calling annotate_source_line
85 returns true, then don't print any other source line information.
86
aa370940
SM
872020-05-21 Simon Marchi <simon.marchi@efficios.com>
88
89 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
90
84d53fa9
SM
912020-05-21 Simon Marchi <simon.marchi@efficios.com>
92
93 * coffread.c (patch_type): Remove NULL check before xfree.
94 * corefile.c (set_gnutarget): Likewise.
95 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
96 * exec.c (build_section_table): Likewise.
97 * remote.c (remote_target::pass_signals): Likewise.
98 * utils.c (n_spaces): Likewise.
99 * cli/cli-script.c (document_command): Likewise.
100 * i386-windows-tdep.c (core_process_module_section): Likewise.
101 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
102
9d428aae
SM
1032020-05-20 Simon Marchi <simon.marchi@efficios.com>
104
105 * symfile.c (reread_symbols): Clear objfile's section_offsets
106 vector and section indices, re-compute them by calling
107 sym_offsets.
108
250106a7
TT
1092020-05-20 Tom Tromey <tromey@adacore.com>
110
111 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
112 (desc_one_bound, desc_index_type): Compute field name.
113
9a0bacfb
TV
1142020-05-20 Tom de Vries <tdevries@suse.de>
115
116 PR symtab/25833
117 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
118
7b958a48
AM
1192020-05-20 Alan Modra <amodra@gmail.com>
120
121 PR 25993
122 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
123 bfd_set_filename.
124 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
125 passed to bfd_set_filename.
126 * symfile-mem.c (add_vsyscall_page): Likewise for string
127 passed to symbol_file_add_from_memory.
128 (symbol_file_add_from_memory): Make name param a const char* and
129 don't strdup.
130
c7e97679
AM
1312020-05-20 Alan Modra <amodra@gmail.com>
132
133 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
134 rather than accessing bfd->filename directly.
135 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
136 and use bfd_section_name.
137 * dwarf2/frame.c (decode_frame_entry): Likewise.
138 * exec.c (exec_set_section_address): Likewise.
139 * solib-aix.c (solib_aix_bfd_open): Likewise.
140 * stap-probe.c (get_stap_base_address): Likewise.
141 * symfile.c (reread_symbols): Likewise.
142
563c591b
TT
1432020-05-19 Tom Tromey <tromey@adacore.com>
144
145 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
146
f408d82c
SM
1472020-05-19 Simon Marchi <simon.marchi@efficios.com>
148
149 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
150
98c59b52
PA
1512020-05-19 Pedro Alves <palves@redhat.com>
152
153 * NEWS (set exec-file-mismatch): Adjust entry.
154 * exec.c: Include "build-id.h".
155 (validate_exec_file): Try to match build IDs instead of filenames.
156 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
157 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
158 and pass down 'warn_if_slow'.
159 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
160 gdb_bfd_open_closure to pass it down.
161 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
162
4111f652
PA
1632020-05-19 Pedro Alves <palves@redhat.com>
164
165 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
166 * target.c (target_fileio_open_1): Rename to target_fileio_open
167 and make extern. Use bool.
168 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
169 (target_fileio_read_alloc_1): Adjust.
170 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
171 (target_fileio_open_warn_if_slow): Delete declaration.
172
ad80db5b
PA
1732020-05-19 Pedro Alves <palves@redhat.com>
174
175 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
176 Adjust all callers.
177
1d6ce4d3
YS
1782020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
179
180 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
181 whether disp is negative.
182
9005fbbb
SM
1832020-05-19 Simon Marchi <simon.marchi@efficios.com>
184
185 * symfile.h (struct symfile_segment_data)
186 <~symfile_segment_data>: Remove.
187 <segment_info>: Change to std::vector.
188 * symfile.c (default_symfile_segments): Update.
189 * elfread.c (elf_symfile_segments): Update.
190
68b888ff
SM
1912020-05-19 Simon Marchi <simon.marchi@efficios.com>
192
193 * symfile.h (struct symfile_segment_data) <struct segment>: New.
194 <segments>: New.
195 <segment_bases, segment_sizes>: Remove.
196 * symfile.c (default_symfile_segments): Update.
197 * elfread.c (elf_symfile_segments): Update.
198 * remote.c (remote_target::get_offsets): Update.
199 * solib-target.c (solib_target_relocate_section_addresses):
200 Update.
201
62982abd
SM
2022020-05-19 Simon Marchi <simon.marchi@efficios.com>
203
204 * symfile.h (struct symfile_segment_data): Initialize fields.
205 <~symfile_segment_data>: Add.
206 (symfile_segment_data_up): New.
207 (struct sym_fns) <sym_segments>: Return a
208 symfile_segment_data_up.
209 (default_symfile_segments): Return a symfile_segment_data_up.
210 (free_symfile_segment_data): Remove.
211 (get_symfile_segment_data): Return a symfile_segment_data_up.
212 * symfile.c (default_symfile_segments): Likewise.
213 (get_symfile_segment_data): Likewise.
214 (free_symfile_segment_data): Remove.
215 (symfile_find_segment_sections): Update.
216 * elfread.c (elf_symfile_segments): Return a
217 symfile_segment_data_up.
218 * remote.c (remote_target::get_offsets): Update.
219 * solib-target.c (solib_target_relocate_section_addresses):
220 Update.
221 * symfile-debug.c (debug_sym_segments): Return a
222 symfile_segment_data_up.
223
7f204339
RO
2242020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
225
e52a0f1b
RO
226 PR build/25981
227 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
228 Hardcode register numbers.
229
7f204339
RO
230 PR build/25981
231 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
232 procfs_find_LDT_entry): Remove.
233 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
234 procfs_find_LDT_entry): Remove.
235 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
236 Remove.
237
7f32a4d5
PA
2382020-05-17 Pedro Alves <palves@redhat.com>
239 Andrew Burgess <andrew.burgess@embecosm.com>
240 Keno Fischer <keno@juliacomputing.com>
241
242 PR gdb/25741
243 * breakpoint.c (build_target_condition_list): Update comments.
244 (build_target_command_list): Update comments and skip matching
245 locations.
246 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
247 a separate function. Simplify "set breakpoint auto-hw off"
248 handling.
249 (insert_breakpoints): Update comment.
250 (tracepoint_locations_match): New parameter. For breakpoints,
251 compare location types too, if the caller wants to.
252 (handle_automatic_hardware_breakpoints): New functions.
253 (bp_location_is_less_than): Also sort by location type and
254 hardware breakpoint length.
255 (update_global_location_list): Handle "set breakpoint auto-hw on"
256 here.
257 (update_breakpoint_locations): Ask breakpoint_locations_match to
258 ignore location types.
259
7d93a1e0
SM
2602020-05-16 Simon Marchi <simon.marchi@efficios.com>
261
262 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
263 type::name instead.
264
d0e39ea2
SM
2652020-05-16 Simon Marchi <simon.marchi@efficios.com>
266
267 * gdbtypes.h (struct type) <name, set_name>: New methods.
268 (TYPE_CODE): Use type::name. Change all call sites used to set
269 the name to use type::set_name instead.
270
2dab0c7b
TT
2712020-05-16 Tom Tromey <tom@tromey.com>
272
273 * top.c (quit_force): Update.
274 * infrun.c (handle_no_resumed): Update.
275 * top.h (all_uis): New function.
276 (ALL_UIS): Remove.
277
59f7bd8d
SM
2782020-05-16 Simon Marchi <simon.marchi@efficios.com>
279
280 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
281
9bf058f0
PA
2822020-05-16 Pedro Alves <palves@redhat.com>
283
284 * ia64-linux-nat.c
285 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
286 Declare method.
287 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
288
8f86ae1a
SM
2892020-05-15 Simon Marchi <simon.marchi@efficios.com>
290
291 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
292 (sparc64_adi_info): Likewise.
293
d6bc0792
TT
2942020-05-15 Tom Tromey <tom@tromey.com>
295
296 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
297 block_objfile.
298 (lookup_objfile_from_block): Remove.
299 (lookup_symbol_in_block, lookup_symbol_in_static_block)
300 (lookup_global_symbol): Use block_objfile.
301 * symtab.h (lookup_objfile_from_block): Don't declare.
302 * printcmd.c (clear_dangling_display_expressions): Use
303 block_objfile.
304 * parse.c (operator_check_standard): Use block_objfile.
305
8c14c3a3
TT
3062020-05-15 Tom Tromey <tom@tromey.com>
307
308 * language.c (language_alloc_type_symbol): Set
309 SYMBOL_SECTION.
310 * symtab.c (initialize_objfile_symbol): Remove.
311 (allocate_symbol): Remove.
312 (allocate_template_symbol): Remove.
313 * dwarf2/read.c (fixup_go_packaging): Use "new".
314 (new_symbol): Use "new".
315 (read_variable): Don't call initialize_objfile_symbol. Use
316 "new".
317 (read_func_scope): Use "new".
318 * xcoffread.c (process_xcoff_symbol): Don't call
319 initialize_objfile_symbol.
320 (SYMBOL_DUP): Remove.
321 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
322 "new".
323 * symtab.h (allocate_symbol, initialize_objfile_symbol)
324 (allocate_template_symbol): Don't declare.
325 (struct symbol): Add copy constructor. Change defaults.
326 * jit.c (finalize_symtab): Use "new".
327 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
328 Use "new".
329 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
330 (common_block_end): Use "new".
331 * mdebugread.c (parse_symbol): Use "new".
332 (new_symbol): Likewise.
333
5b4a1a8d
PW
3342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
335
336 * NEWS: Mention changes to help and apropos.
337
57b4f16e
PW
3382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
339
340 * command.h (enum command_class): Improve comments, document
341 that class_alias is for user-defined aliases, give the class
342 name for each class, remove unused class_xdb.
343 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
344 * breakpoint.c (_initialize_breakpoint): Replace class_alias
345 by a precise class.
346 * infcmd.c (_initialize_infcmd): Likewise.
347 * reverse.c (_initialize_reverse): Likewise.
348 * stack.c (_initialize_stack): Likewise.
349 * symfile.c (_initialize_symfile): Likewise.
350 * tracepoint.c (_initialize_tracepoint): Likewise.
351
7c05caf7
PW
3522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
353
354 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
355 when their aliased command is traversed.
356 (help_cmd): Add fput_command_names_styled call to
357 output command name and aliases when command has an alias.
358
3b3aaacb
PW
3592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
360
361 * cli/cli-decode.h (help_cmd_list): Remove declaration.
362 * cli/cli-decode.c (help_cmd_list): Declare as static,
363 remove prefix argument, use bool for recurse arg, rework to show the aliases of
364 a command together with the command.
365 (fput_command_name_styled, fput_command_names_styled): New functions.
366 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
367 fput_command_name_styled.
368 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
369 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
370
7aa1b46f
PW
3712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
372
373 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
374 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
375 * command.h (cmd_show_list): Likewise.
376 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
377 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
378
89bcba74
PW
3792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
380
381 * unittests/command-def-selftests.c (traverse_command_structure):
382 Verify all commands of a list have the same prefix command and
383 that only the top cmdlist commands have a null prefix.
384
3f4d92eb
PW
3852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
386
387 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
388 as prefix, not one of its aliases.
389 (set_cmd_prefix): Remove.
390 (do_add_cmd): Centralize the setting of the prefix of a command, when
391 command is defined after its full chain of prefix commands.
392 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
393 (add_setshow_cmd_full): Likewise.
394 (update_prefix_field_of_prefixed_commands): New function.
395 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
396 update_prefix_field_of_prefixed_commands.
397 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
398 addresses of remote_set_cmdlist and remote_show_cmdlist given
399 as argument, not the address of an argument.
400 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
401 * gdb/remote.c (_initialize_remote): Likewise.
402
0605465f
PW
4032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
404
405 * cli/cli-cmds.c (alias_command): Check for an existing alias
406 using lookup_cmd_composition, as valid_command_p is too strict
407 and forbids aliases that are the prefix of an existing alias
408 or command.
409 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
410 command is properly recognised as a valid command.
411
58e6ac70
PW
4122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
413
414 * unittests/help-doc-selftests.c: Rename to
415 unittests/command-def-selftests.c
416 * unittests/command-def-selftests.c (help_doc_tests): Update some
417 comments.
418 (command_structure_tests, traverse_command_structure): New namespace
419 and function.
420 (command_structure_invariants_tests): New function.
421 (_initialize_command_def_selftests) Renamed from
422 _initialize_help_doc_selftests, register command_structure_invariants
423 selftest.
424
a7b9ceb8
PW
4252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
426
427 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
428 an alias of 'show'.
429
b2188a06
JB
4302020-05-15 Joel Brobecker <brobecker@adacore.com>
431
432 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
433 ada_is_fixed_point_type. Update all callers.
434 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
435 all callers.
436 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
437 Update all callers.
438 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
439 print_fixed_point_type. Update all callers.
440 * ada-valprint.c (ada_value_print_num): Replace call to
441 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
442
a51951c2
KB
4432020-05-14 Kevin Buettner <kevinb@redhat.com>
444
445 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
446 processors.
447 (cpu_supports_bts): Add CV_AMD case.
448
29d6859f
LM
4492020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
450 Simon Marchi <simon.marchi@efficios.com>
451
452 * infrun.c (stop_all_threads): Collect multiple wait events at
453 each pass.
454
78134374
SM
4552020-05-14 Simon Marchi <simon.marchi@efficios.com>
456
457 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
458 type::code instead.
459
67607e24
SM
4602020-05-14 Simon Marchi <simon.marchi@efficios.com>
461
462 * gdbtypes.h (struct type) <code, set_code>: New methods.
463 (TYPE_CODE): Use type::code. Change all call sites used to set
464 the code to use type::set_code instead.
465
a05575d3
TBA
4662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
467 Tom de Vries <tdevries@suse.de>
468 Pedro Alves <palves@redhat.com>
469
470 PR threads/25478
471 * infrun.c (stop_all_threads): Do NOT ignore
472 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
473 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
474 received.
475 (handle_no_resumed): Remove code handling a live inferior with no
476 threads.
477 * remote.c (has_single_non_exited_thread): New.
478 (remote_target::update_thread_list): Do not delete a thread if is
479 the last thread of the process.
480 * thread.c (thread_select): Call delete_exited_threads instead of
481 prune_threads.
482
6ad82919
TBA
4832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
484
485 * infrun.c (stop_all_threads): Enable/disable thread events of all
486 targets. Move a debug message denoting the end of the function
487 into the SCOPED_EXIT block.
488
d890404b
TBA
4892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
490
491 * process-stratum-target.h: Include <set>.
492 (all_non_exited_process_targets, switch_to_target_no_thread): New
493 function declarations.
494 * process-stratum-target.c (all_non_exited_process_targets)
495 (switch_to_target_no_thread): New function implementations.
496
293b3ebc
TBA
4972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
498
499 * infrun.c (handle_inferior_event): Extract out a piece of code
500 into...
501 (mark_non_executing_threads): ...this new function.
502
7ca9b62a
TBA
5032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504
505 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
506 use.
507
fc75c28b
TBA
5082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
509
510 * regcache.c (regcache_read_pc_protected): New function
511 implementation that returns 0 if the PC cannot read via
512 'regcache_read_pc'.
513 * infrun.c (proceed): Call 'regcache_read_pc_protected'
514 instead of 'regcache_read_pc'.
515 (keep_going_pass_signal): Ditto.
516
a89febbd
TT
5172020-05-13 Tom Tromey <tromey@adacore.com>
518
519 * ada-lang.c (align_value): Remove.
520 (ada_template_to_fixed_record_type_1): Use align_up.
521
f7e23710
TBA
5222020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * async-event.c: Update the copyright year.
525 * async-event.h: Update the copyright year.
526
02ff80c2
SM
5272020-05-12 Simon Marchi <simon.marchi@efficios.com>
528
529 * objfiles.h (is_addr_in_objfile,
530 shared_objfile_contains_address_p): Return bool.
531 * objfile.c (is_addr_in_objfile,
532 shared_objfile_contains_address_p): Return bool.
533
4fd6c7e8
TT
5342020-05-11 Tom Tromey <tromey@adacore.com>
535
536 * cli/cli-cmds.c (info_command): Restore.
537 (_initialize_cli_cmds): Use add_prefix_command for "info".
538 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
539
5eb68a39
TT
5402020-05-11 Tom Tromey <tromey@adacore.com>
541
542 * ada-lang.c (ada_value_primitive_field): Now public.
543 * ada-lang.h (ada_value_primitive_field): Declare.
544 * ada-valprint.c (print_field_values): Use
545 ada_value_primitive_field for wrapper fields.
546
7666722f
TV
5472020-05-11 Tom de Vries <tdevries@suse.de>
548
549 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
550 MODULE_DOMAIN.
551
3ee6bb11
TV
5522020-05-11 Tom de Vries <tdevries@suse.de>
553
554 PR symtab/25941
555 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
556 with length 0, if not gdb-produced.
557 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
558
43434996
TV
5592020-05-09 Tom de Vries <tdevries@suse.de>
560
561 PR gdb/25955
562 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
563 calculation.
564
2f78cffc
TT
5652020-05-09 Tom Tromey <tom@tromey.com>
566
567 * top.c (server_command): Now bool.
568 * top.h (server_command): Now bool.
569
4f7bc5ed
TT
5702020-05-08 Tom Tromey <tromey@adacore.com>
571
572 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
573 already being processed.
574
8be4b118
TT
5752020-05-08 Tom Tromey <tom@tromey.com>
576
577 * printcmd.c (struct display) <next>: Remove.
578 <display>: New constructor.
579 <exp_string>: Now a std::string.
580 <enabled_p>: Now a bool.
581 (display_number): Move definition earlier.
582 (displays): Rename from display_chain. Now a std::vector.
583 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
584 (display_command): Update.
585 (do_one_display, disable_display)
586 (enable_disable_display_command, do_enable_disable_display):
587 Update.
588 (free_display): Remove.
589 (clear_displays): Rewrite.
590 (delete_display): Update.
591 (map_display_numbers): Use function_view. Remove "data"
592 parameter. Update.
593 (do_delete_display): Remove.
594 (undisplay_command): Update.
595 (do_one_display, do_displays, disable_display)
596 (info_display_command): Update.
597 (do_enable_disable_display): Remove.
598 (enable_disable_display_command)
599 (clear_dangling_display_expressions): Update.
600
94c93c35
TT
6012020-05-08 Tom Tromey <tom@tromey.com>
602
603 * symtab.c (set_symbol_cache_size)
604 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
605 (maintenance_print_symbol_cache_statistics): Update.
606 * symmisc.c (print_symbol_bcache_statistics)
607 (print_objfile_statistics, maintenance_print_objfiles)
608 (maintenance_info_symtabs, maintenance_check_symtabs)
609 (maintenance_expand_symtabs, maintenance_info_line_tables):
610 Update.
611 * symfile-debug.c (set_debug_symfile): Update.
612 * source.c (forget_cached_source_info): Update.
613 * python/python.c (gdbpy_progspaces): Update.
614 * psymtab.c (maintenance_info_psymtabs): Update.
615 * probe.c (parse_probes): Update.
616 * linespec.c (iterate_over_all_matching_symtabs)
617 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
618 * guile/scm-progspace.c (gdbscm_progspaces): Update.
619 * exec.c (exec_target::close): Update.
620 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
621 * breakpoint.c (print_one_breakpoint_location)
622 (create_longjmp_master_breakpoint)
623 (create_std_terminate_master_breakpoint): Update.
624 * progspace.c (program_spaces): Now a std::vector.
625 (maybe_new_address_space): Update.
626 (add_program_space): Remove.
627 (program_space::program_space): Update.
628 (remove_program_space): Update.
629 (number_of_program_spaces): Remove.
630 (print_program_space, update_address_spaces): Update.
631 * progspace.h (program_spaces): Change type.
632 (ALL_PSPACES): Remove.
633 (number_of_program_spaces): Don't declare.
634 (struct program_space) <next>: Remove.
635
a1fd1ac9
TT
6362020-05-08 Tom Tromey <tom@tromey.com>
637
638 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
639 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
640 (enable_break): Update.
641 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
642 (frv_fdpic_find_canonical_descriptor): Update.
643 (frv_fetch_objfile_link_map): Update.
644 * progspace.c (program_space::free_all_objfiles): Update.
645 (program_space::solibs): New method.
646 * progspace.h (struct program_space) <solibs>: New method.
647 * solist.h (master_so_list): Don't declare.
648 (ALL_SO_LIBS): Remove.
649 * solib.h (so_list_head): Remove.
650 (update_solib_list): Update comment.
651 * solib.c (master_so_list): Remove.
652 (solib_used, update_solib_list, solib_add)
653 (info_sharedlibrary_command, clear_solib)
654 (reload_shared_libraries_1, remove_user_added_objfile): Update.
655
38eae084
TT
6562020-05-08 Tom Tromey <tom@tromey.com>
657
658 * extension.c (extension_languages): Now a std::array.
659 (ALL_EXTENSION_LANGUAGES): Remove.
660 (get_ext_lang_defn, get_ext_lang_of_file)
661 (eval_ext_lang_from_control_command): Update.
662 (finish_ext_lang_initialization)
663 (auto_load_ext_lang_scripts_for_objfile)
664 (ext_lang_type_printers::ext_lang_type_printers)
665 (apply_ext_lang_type_printers)
666 (ext_lang_type_printers::~ext_lang_type_printers)
667 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
668 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
669 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
670 (get_matching_xmethod_workers, ext_lang_colorize)
671 (ext_lang_before_prompt): Update.
672 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
673
596dc4ad
TT
6742020-05-08 Tom Tromey <tom@tromey.com>
675
676 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
677 overload.
678 <swap_string, m_string>: Remove.
679 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
680 Update.
681 * stabsread.c (define_symbol, read_type): Update.
682 * linespec.c (find_linespec_symbols): Update.
683 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
684 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
685 * dbxread.c (read_dbx_symtab): Update.
686 * cp-support.h (cp_canonicalize_string_full)
687 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
688 Return unique_xmalloc_ptr.
689 * cp-support.c (inspect_type): Update.
690 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
691 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
692 Likewise.
693 * c-typeprint.c (print_name_maybe_canonical): Update.
694 * break-catch-throw.c (check_status_exception_catchpoint):
695 Update.
696
bf4cb9be
TV
6972020-05-08 Tom de Vries <tdevries@suse.de>
698
699 * infrun.c (follow_fork): Copy current_line and current_symtab to
700 child thread.
701
a1b68f28
SM
7022020-05-07 Simon Marchi <simon.marchi@efficios.com>
703
704 * async-event.c (struct async_signal_handler, struct
705 async_event_handler): Reformat, remove typedef.
706
98d48915
SM
7072020-05-07 Simon Marchi <simon.marchi@efficios.com>
708
709 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
710 access thistype->main_type->dyn_prop_list directly.
711
7aa91313
SM
7122020-05-07 Simon Marchi <simon.marchi@efficios.com>
713
714 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
715 (remove_dyn_prop): Remove. Update all users to use
716 type::remove_dyn_prop.
717 * gdbtypes.c (remove_dyn_prop): Rename to...
718 (type::remove_dyn_prop): ... this.
719
5c54719c
SM
7202020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
721
722 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
723 (add_dyn_prop): Remove. Update all users to use
724 type::add_dyn_prop.
725 * gdbtypes.c (add_dyn_prop): Rename to...
726 (type::add_dyn_prop): ... this.
727
24e99c6c
SM
7282020-05-07 Simon Marchi <simon.marchi@efficios.com>
729
730 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
731 (get_dyn_prop): Remove. Update all users to use
732 type::dyn_prop.
733 * gdbtypes.c (get_dyn_prop): Rename to...
734 (type::dyn_prop): ... this.
735
0d4bf016
SM
7362020-05-06 Simon Marchi <simon.marchi@efficios.com>
737
738 * gdbtypes.h (struct main_type) <flag_static>: Remove.
739
ac4a4f1c
SM
7402020-05-06 Simon Marchi <simon.marchi@efficios.com>
741
742 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
743 instruction, skip it if it's there.
744
a3bbacc1
SM
7452020-05-05 Simon Marchi <simon.marchi@efficios.com>
746
747 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
748
c3236f84
SM
7492020-05-04 Simon Marchi <simon.marchi@efficios.com>
750
751 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
752 * gdbtypes.c (recursive_dump_type): Remove use of
753 TYPE_INCOMPLETE.
754
3b6acaee
TT
7552020-05-03 Tom Tromey <tom@tromey.com>
756
757 * breakpoint.c (catch_command, tcatch_command): Remove.
758 (_initialize_breakpoint): Use add_basic_prefix_cmd,
759 add_show_prefix_cmd.
760 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
761 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
762 Remove.
763 (add_internal_problem_command): Use add_basic_prefix_cmd,
764 add_show_prefix_cmd.
765 * mips-tdep.c (set_mipsfpu_command): Remove.
766 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
767 * dwarf2/index-cache.c (set_index_cache_command): Remove.
768 (_initialize_index_cache): Use add_basic_prefix_cmd.
769 * memattr.c (dummy_cmd): Remove.
770 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
771 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
772 (_initialize_tui_win): Use add_basic_prefix_cmd,
773 add_show_prefix_cmd.
774 * cli/cli-logging.c (set_logging_command): Remove.
775 (_initialize_cli_logging): Use add_basic_prefix_cmd,
776 add_show_prefix_cmd.
777 (show_logging_command): Remove.
778 * target.c (target_command): Remove.
779 (add_target): Use add_basic_prefix_cmd.
780
a51119cd
HD
7812020-05-02 Hannes Domani <ssbssa@yahoo.de>
782
783 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
784
652fc23a 7852020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 786
652fc23a
PW
787 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
788 info_command.
789
117539e6
KR
7902020-04-30 Kamil Rytarowski <n54@gmx.com>
791
792 * nbsd-nat.c (nbsd_enable_proc_events)
793 (nbsd_nat_target::post_startup_inferior): Add.
794 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
795 (nbsd_nat_target::update_thread_list): Rewrite.
796 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
797 "PTRACE_LWP_CREATE".
798 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
799
102e38eb 8002020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 801
102e38eb
PW
802 * stack.c (_initialize_stack): Remove duplicated creation
803 of "frame" command and "f" alias.
804
ee9d1e5f
HD
8052020-04-30 Hannes Domani <ssbssa@yahoo.de>
806
807 PR gdb/18706
808 * gdbtypes.c (check_typedef): Calculate size of array of
809 stubbed type.
810
627c7fb8
HD
8112020-04-30 Hannes Domani <ssbssa@yahoo.de>
812
813 PR gdb/15559
814 * i386-tdep.c (i386_push_dummy_call): Call
815 i386_thiscall_push_dummy_call.
816 (i386_thiscall_push_dummy_call): New function.
817 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
818 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
819 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
820
ffc2844e
SM
8212020-04-29 Simon Marchi <simon.marchi@efficios.com>
822
823 * gdbarch.sh (do_read): Add shellcheck disable directive for
824 warning SC2162.
825
1207375d
SM
8262020-04-29 Simon Marchi <simon.marchi@efficios.com>
827
828 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
829 "referenced but not assigned" warning.
830
9fdb2916
SM
8312020-04-29 Simon Marchi <simon.marchi@efficios.com>
832
833 * gdbarch.sh: Remove code that sets fallbackdefault.
834
759cea5e
SM
8352020-04-29 Simon Marchi <simon.marchi@efficios.com>
836
837 * gdbarch.sh: Use shell operators && and || instead of
838 -a and -o.
839
cb02ab24
SM
8402020-04-29 Simon Marchi <simon.marchi@efficios.com>
841
842 * gdbarch.sh: Use $(...) instead of `...`.
843
a6fc5ffc
SM
8442020-04-29 Simon Marchi <simon.marchi@efficios.com>
845
846 * gdbarch.sh: Use double quotes around variables.
847
8d113d13
SM
8482020-04-29 Simon Marchi <simon.marchi@efficios.com>
849
850 * gdbarch.sh: Use %s with printf, instead of variables in the
851 format string.
852
ed6acedd
TT
8532020-04-29 Tom Tromey <tromey@adacore.com>
854
855 PR ada/25875:
856 * dwarf2/read.c (update_enumeration_type_from_children): Compute
857 type fields here.
858 (read_enumeration_type): Call
859 update_enumeration_type_from_children later. Update comments.
860 (process_enumeration_scope): Don't create type fields.
861
b68b1b58
KR
8622020-04-29 Kamil Rytarowski <n54@gmx.com>
863
864 * nbsd-tdep.c: Include "xml-syscall.h".
865 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
866
f94b2e03
KR
8672020-04-29 Kamil Rytarowski <n54@gmx.com>
868
869 * nbsd-nat.c: Include "sys/wait.h".
870 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
871 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
872 (nbsd_nat_target::remove_exec_catchpoint)
873 (nbsd_nat_target::set_syscall_catchpoint): Add.
874 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
875 (nbsd_nat_target::insert_exec_catchpoint)
876 (nbsd_nat_target::remove_exec_catchpoint)
877 (nbsd_nat_target::set_syscall_catchpoint): Add.
878 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
879 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
880 `nbsd_get_syscall_number'.
881
fc49bc72
TT
8822020-04-29 Tom Tromey <tom@tromey.com>
883
884 * stack.c (print_block_frame_labels): Remove.
885
d642b692
HD
8862020-04-29 Hannes Domani <ssbssa@yahoo.de>
887
888 PR gdb/17320
889 * ada-valprint.c (val_print_packed_array_elements): Move array
890 end bracket to new line.
891 (ada_val_print_string): Remove extra spaces before first array
892 element.
893 * c-valprint.c (c_value_print_array): Likewise.
894 * m2-valprint.c (m2_print_array_contents): Likewise.
895 (m2_value_print_inner): Likewise.
896 * p-valprint.c (pascal_value_print_inner): Likewise.
897 * valprint.c (generic_val_print_array): Likewise.
898 (value_print_array_elements): Move first array element and array
899 end bracket to new line.
900
ea90f227
TV
9012020-04-29 Tom de Vries <tdevries@suse.de>
902
903 PR symtab/25889
904 * linespec.c (find_method): Fix ix calculation.
905
4498ef4f
KR
9062020-04-28 Kamil Rytarowski <n54@gmx.com>
907
908 * syscalls/update-netbsd.sh: New file.
909 * syscalls/netbsd.xml: Regenerate.
910 * data-directory/Makefile.in: Register `netbsd.xml' in
911 `SYSCALLS_FILES'.
912
a55e30b5
SM
9132020-04-28 Simon Marchi <simon.marchi@efficios.com>
914
915 * syscalls/update-freebsd.sh: Add double quotes.
916
2b2fbab8
TT
9172020-04-28 Tom Tromey <tom@tromey.com>
918
919 * NEWS: Update.
920 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
921 (cmdpy_init): Allow class_tui.
922
a65189c9
TV
9232020-04-28 Mark Williams <mark@myosotissp.com>
924
925 PR gdb/24480
926 * dwarf2read.c: Add missing assingments to list_in_scope when
927 start_symtab was already called.
928
1b95cdb7
SM
9292020-04-28 Simon Marchi <simon.marchi@efficios.com>
930
931 PR gdb/25881
932 * dwarf2/read.c (offset_map_type): Use
933 gdb:hash_enum<sect_offset> as hash function.
934
15cd93d0
TV
9352020-04-28 Tom de Vries <tdevries@suse.de>
936
937 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
938 with DW_AT_signature.
939
1eb39914
SM
9402020-04-27 Simon Marchi <simon.marchi@efficios.com>
941
942 * configure.ac: Remove check for fs_base/gs_base in
943 user_regs_struct.
944 * configure: Re-generate.
945 * config.in: Re-generate.
946 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
947 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
948 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
949
991a3e2e
LM
9502020-04-27 Luis Machado <luis.machado@linaro.org>
951
952 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
953 problematic inline frame unwinding situation.
954 * frame.c (frame_id_computed_p): New function.
955 * frame.h (frame_id_computed_p): New prototype.
956
361ba0e8
TT
9572020-04-26 Tom Tromey <tom@tromey.com>
958
959 * command.h (enum command_class) <class_pseudo>: Remove.
960
bc3609fd
PW
9612020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
962
963 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
964 and whitespace.
965
b9771db7
KR
9662020-04-25 Kamil Rytarowski <n54@gmx.com>
967
968 * inf-ptrace.c (inf_ptrace_target::wait): Remove
969 `PT_GET_PROCESS_STATE' block.
970
7151c1af
TT
9712020-04-24 Tom Tromey <tom@tromey.com>
972
973 * symtab.h (symbol_get_demangled_name): Don't declare.
974 * symtab.c (symbol_get_demangled_name): Remove.
975 (general_symbol_info::natural_name)
976 (general_symbol_info::demangled_name): Update.
977
906bb4c5
TT
9782020-04-24 Tom Tromey <tom@tromey.com>
979
980 PR rust/25025:
981 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
982
bcfe6157
TT
9832020-04-24 Tom Tromey <tom@tromey.com>
984
985 PR symtab/12707:
986 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
987 exists.
988 (new_symbol): Likewise.
989 * compile/compile-object-load.c (get_out_value_type): Use
990 symbol_matches_search_name.
991
f049a313
TT
9922020-04-24 Tom Tromey <tom@tromey.com>
993
994 * dwarf2/read.c (add_partial_symbol): Do not call
995 compute_and_set_names.
996
76e288d1
TT
9972020-04-24 Tom Tromey <tom@tromey.com>
998
999 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
1000 overload.
1001
2467f4f6
TT
10022020-04-24 Tom Tromey <tom@tromey.com>
1003
1004 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
1005 (add_psymbol_to_list): New overload. Make old overload call new
1006 one.
1007 * psympriv.h (add_psymbol_to_list): New overload.
1008
e61108c9
TT
10092020-04-24 Tom Tromey <tom@tromey.com>
1010
1011 * dwarf2/read.c (partial_die_info::read) <case
1012 DW_AT_linkage_name>: Use value_as_string.
1013 (dwarf2_string_attr): Use value_as_string.
1014 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1015 method.
1016 * dwarf2/attribute.c (attribute::value_as_string): New method.
1017
8c87a452
TT
10182020-04-24 Tom Tromey <tom@tromey.com>
1019
1020 * symtab.c (general_symbol_info::natural_name)
1021 (general_symbol_info::demangled_name): Check for language_rust.
1022
787de330
TT
10232020-04-24 Tom Tromey <tom@tromey.com>
1024
1025 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
1026 (dwarf2_physname): ... from here.
1027 (partial_die_info::read): Add Rust "{" hack.
1028
ff985671
TT
10292020-04-24 Tom Tromey <tom@tromey.com>
1030
1031 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
1032 method.
1033 (symbol_set_demangled_name): Don't declare.
1034 * symtab.c (general_symbol_info::set_demangled_name): Rename from
1035 symbol_set_demangled_name.
1036 (general_symbol_info::set_language)
1037 (general_symbol_info::compute_and_set_names): Update.
1038 * minsyms.c (minimal_symbol_reader::install): Update.
1039 * dwarf2/read.c (new_symbol): Update.
1040
1acda803
TT
10412020-04-24 Tom Tromey <tromey@adacore.com>
1042
1043 PR python/23662:
1044 * python/py-type.c (convert_field): Handle
1045 FIELD_LOC_KIND_DWARF_BLOCK.
1046 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
1047 (typy_get_dynamic): Nw function.
1048 (type_object_getset): Add "dynamic".
1049 * NEWS: Add entry.
1050
d656f129
TT
10512020-04-24 Tom Tromey <tromey@adacore.com>
1052
1053 * ada-typeprint.c (print_choices, print_variant_part)
1054 (print_record_field_types_dynamic): New functions.
1055 (print_record_field_types): Use print_record_field_types_dynamic.
1056
7d79de9a
TT
10572020-04-24 Tom Tromey <tromey@adacore.com>
1058
1059 * dwarf2/read.c (handle_data_member_location): New overload.
1060 (dwarf2_add_field): Use it.
1061 (decode_locdesc): Add "computed" parameter. Update comment.
1062 * gdbtypes.c (is_dynamic_type_internal): Also look for
1063 FIELD_LOC_KIND_DWARF_BLOCK.
1064 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
1065 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
1066 virtual base classes.
1067 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
1068 FIELD_LOC_KIND_DWARF_BLOCK.
1069
f8e89861
TT
10702020-04-24 Tom Tromey <tromey@adacore.com>
1071
1072 * dwarf2/read.c (read_structure_type): Handle dynamic length.
1073 * gdbtypes.c (is_dynamic_type_internal): Check
1074 TYPE_HAS_DYNAMIC_LENGTH.
1075 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
1076 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
1077 New macros.
1078 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
1079 constant.
1080
9c6a1327
TT
10812020-04-24 Tom Tromey <tromey@adacore.com>
1082
1083 * dwarf2/read.c (struct variant_field): Rewrite.
1084 (struct variant_part_builder): New.
1085 (struct nextfield): Remove "variant" field. Add "offset".
1086 (struct field_info): Add "current_variant_part" and
1087 "variant_parts".
1088 (alloc_discriminant_info): Remove.
1089 (alloc_rust_variant): New function.
1090 (quirk_rust_enum): Update.
1091 (dwarf2_add_field): Set "offset" member. Don't handle
1092 DW_TAG_variant_part.
1093 (offset_map_type): New typedef.
1094 (convert_variant_range, create_one_variant)
1095 (create_one_variant_part, create_variant_parts)
1096 (add_variant_property): New functions.
1097 (dwarf2_attach_fields_to_type): Call add_variant_property.
1098 (read_structure_type): Don't handle DW_TAG_variant_part.
1099 (handle_variant_part, handle_variant): New functions.
1100 (handle_struct_member_die): Use them.
1101 (process_structure_scope): Don't handle variant parts.
1102 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
1103 (struct discriminant_info): Remove.
1104 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
1105 (struct main_type) <flag_discriminated_union>: Remove.
1106 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
1107 (rust_enum_variant): Return int. Remove "contents". Rewrite.
1108 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
1109 Update.
1110 * valops.c (value_union_variant): Remove.
1111 * value.h (value_union_variant): Don't declare.
1112
b249d2c2
TT
11132020-04-24 Tom Tromey <tromey@adacore.com>
1114
1115 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
1116 (ada_value_primitive_packed_val): Update.
1117 * ada-valprint.c (ada_value_print_1): Update.
1118 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
1119 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
1120 just an address. Use evaluate_for_locexpr_baton.
1121 (dwarf2_evaluate_property): Update.
1122 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
1123 array_view.
1124 * findvar.c (default_read_var_value): Update.
1125 * gdbtypes.c (compute_variant_fields_inner)
1126 (resolve_dynamic_type_internal): Update.
1127 (resolve_dynamic_type): Change type of valaddr parameter.
1128 * gdbtypes.h (resolve_dynamic_type): Update.
1129 * valarith.c (value_subscripted_rvalue): Update.
1130 * value.c (value_from_contents_and_address): Update.
1131
61122aa9
TT
11322020-04-24 Tom Tromey <tromey@adacore.com>
1133
1134 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
1135 "push_initial_value" parameter.
1136 (dwarf2_evaluate_property): Likewise.
1137 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
1138
ef83a141
TT
11392020-04-24 Tom Tromey <tromey@adacore.com>
1140
1141 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
1142 (variant::matches, compute_variant_fields_recurse)
1143 (compute_variant_fields_inner, compute_variant_fields): New
1144 functions.
1145 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
1146 Use resolved_type after type is made.
1147 (operator==): Add new cases.
1148 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
1149 (struct discriminant_range, struct variant, struct variant_part):
1150 New.
1151 (union dynamic_prop_data) <variant_parts, original_type>: New
1152 members.
1153 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
1154 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
1155 constants.
1156 * value.c (unpack_bits_as_long): Now public.
1157 * value.h (unpack_bits_as_long): Declare.
1158
675127ec
TT
11592020-04-24 Tom Tromey <tromey@adacore.com>
1160
1161 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
1162 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
1163
9852ceef
HD
11642020-04-24 Hannes Domani <ssbssa@yahoo.de>
1165
1166 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
1167
7632c6ce
KR
11682020-04-24 Kamil Rytarowski <n54@gmx.com>
1169
1170 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
1171 (remove_fork_catchpoint, post_startup_inferior)
1172 (post_attach): Move...
1173 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
1174 (remove_fork_catchpoint, post_startup_inferior)
1175 (post_attach): ...here.
1176 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
1177 (remove_fork_catchpoint, post_startup_inferior)
1178 (post_attach): Move...
1179 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
1180 (remove_fork_catchpoint, post_startup_inferior)
1181 (post_attach): ...here.
1182
7be2bb4f
TT
11832020-04-24 Tom Tromey <tromey@adacore.com>
1184
1185 * nat/windows-nat.h (struct windows_thread_info)
1186 <pc_adjusted>: New member.
1187 * windows-nat.c (windows_fetch_one_register): Check
1188 pc_adjusted.
1189 (windows_nat_target::get_windows_debug_event)
1190 (windows_nat_target::wait): Set pc_adjusted.
1191
f80cb3b4
TV
11922020-04-24 Tom de Vries <tdevries@suse.de>
1193
1194 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
1195 Run gdb-add-index inside temp dir.
1196
29514b87
TT
11972020-04-23 Tom Tromey <tromey@adacore.com>
1198
1199 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
1200 in loop.
1201
5939967b
LM
12022020-04-23 Luis Machado <luis.machado@linaro.org>
1203
1204 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
1205 get_frame_register instead of gdbarch_unwind_pc.
1206
70bc38f5
TV
12072020-04-23 Tom de Vries <tdevries@suse.de>
1208
1209 * symtab.c (lookup_global_symbol): Prefer def over decl.
1210
de82891c
TV
12112020-04-23 Tom de Vries <tdevries@suse.de>
1212
1213 PR symtab/25807
1214 * block.c (best_symbol, better_symbol): Promote to external.
1215 * block.h (best_symbol, better_symbol): Declare.
1216 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
1217 decl.
1218
ecc6c606
TT
12192020-04-23 Tom Tromey <tromey@adacore.com>
1220
1221 PR ada/25837:
1222 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
1223 "const char *", not a "const std::string &".
1224 <name_and_matcher::operator==>: Update.
1225 * unittests/lookup_name_info-selftests.c: Change type of
1226 "result".
1227
740480b8
TT
12282020-04-23 Tom Tromey <tom@tromey.com>
1229
1230 * inferior.h (iterate_over_inferiors): Don't declare.
1231 * inferior.c (iterate_over_inferiors): Remove.
1232 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
1233 Remove.
1234 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
1235 use iterate_over_inferiors.
1236 (darwin_resume_inferior_it)
1237 (struct resume_inferior_threads_param)
1238 (darwin_resume_inferior_threads_it): Remove.
1239 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
1240
ae3ab1f0
TV
12412020-04-23 Tom de Vries <tdevries@suse.de>
1242
1243 * blockframe.c (find_pc_partial_function): Use
1244 find_pc_sect_compunit_symtab rather than
1245 objfile->sf->qf->find_pc_sect_compunit_symtab.
1246
317d2668
TV
12472020-04-22 Tom de Vries <tdevries@suse.de>
1248
1249 PR symtab/25764
1250 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
1251 in psymtabs.
1252
eea9e357
TV
12532020-04-22 Tom de Vries <tdevries@suse.de>
1254
1255 PR symtab/25801
1256 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
1257 symtabs.
1258
3d5afab3
TV
12592020-04-22 Tom de Vries <tdevries@suse.de>
1260
1261 PR symtab/25700
1262 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
1263 CU if already created.
1264
d43b7a2d
TBA
12652020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1266
1267 * infrun.c (displaced_step_fixup): Switch to the event_thread
1268 before calling displaced_step_restore, not after.
1269
d89edf9b
MM
12702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1271
1272 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
1273 its inferior is not recorded by us.
1274 (record_btrace_target_open): Replace call to
1275 all_non_exited_threads () with call to current_inferior
1276 ()->non_exited_threads ().
1277 (record_btrace_target::stop_recording): Likewise.
1278 (record_btrace_target::close): Likewise.
1279 (record_btrace_target::wait): Likewise.
1280 (record_btrace_target::record_stop_replaying): Likewise.
1281
5897fd49
MM
12822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1283
1284 * btrace.c (btrace_enable): Throw an error on double enables and
1285 when enabling recording fails.
1286 (btrace_disable): Throw an error if the thread is not recorded.
1287
1a476b6d
MM
12882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1289
1290 * record-btrace.c (record_btrace_target::fetch_registers): Forward
1291 request if we do not have a thread_info.
1292
4778a5f8
TV
12932020-04-21 Tom de Vries <tdevries@suse.de>
1294
1295 PR gdb/25471
1296 * thread.c
1297 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
1298 exception in get_frame_id.
1299
0fa7617d
TT
13002020-04-20 Tom Tromey <tromey@adacore.com>
1301
1302 * python/python.c (struct gdbpy_event): Mark move constructor as
1303 noexcept.
1304 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
1305 constructor as noexcept.
1306 * completer.h (struct completion_result): Mark move constructor as
1307 noexcept.
1308 * completer.c (completion_result::completion_result): Use
1309 initialization style. Don't call reset_match_list.
1310
ad23bda0
MS
13112020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
1312
1313 * MAINTAINERS (Write After Approval): Add myself.
1314
45e1f031
TT
13152020-04-18 Tom Tromey <tom@tromey.com>
1316
1317 * windows-tdep.c (init_w32_command_list)
1318 (w32_prefix_command_valid): Restore.
1319 (_initialize_windows_tdep): Call init_w32_command_list.
1320
08feed99
TT
13212020-04-18 Tom Tromey <tom@tromey.com>
1322
1323 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
1324 * value.c (value_fn_field): Update.
1325 * valops.c (find_function_in_inferior)
1326 (value_allocate_space_in_inferior): Update.
1327 * tui/tui-winsource.c (tui_update_source_windows_with_line):
1328 Update.
1329 * tui/tui-source.c (tui_source_window::set_contents): Update.
1330 * symtab.c (lookup_global_or_static_symbol)
1331 (find_function_start_sal_1, skip_prologue_sal)
1332 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
1333 * symmisc.c (dump_msymbols, dump_symtab_1)
1334 (maintenance_print_one_line_table): Update.
1335 * symfile.c (init_entry_point_info, section_is_mapped)
1336 (list_overlays_command, simple_read_overlay_table)
1337 (simple_overlay_update_1): Update.
1338 * stap-probe.c (handle_stap_probe): Update.
1339 * stabsread.c (dbx_init_float_type, define_symbol)
1340 (read_one_struct_field, read_enum_type, read_range_type): Update.
1341 * source.c (info_line_command): Update.
1342 * python/python.c (gdbpy_source_objfile_script)
1343 (gdbpy_execute_objfile_script): Update.
1344 * python/py-type.c (save_objfile_types): Update.
1345 * python/py-objfile.c (py_free_objfile): Update.
1346 * python/py-inferior.c (python_new_objfile): Update.
1347 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
1348 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
1349 (maintenance_check_psymtabs): Update.
1350 * printcmd.c (info_address_command): Update.
1351 * objfiles.h (struct objfile) <arch>: New method, from
1352 get_objfile_arch.
1353 (get_objfile_arch): Don't declare.
1354 * objfiles.c (get_objfile_arch): Remove.
1355 (filter_overlapping_sections): Update.
1356 * minsyms.c (msymbol_is_function): Update.
1357 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
1358 (output_nondebug_symbol): Update.
1359 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
1360 (mdebug_expand_psymtab): Update.
1361 * machoread.c (macho_add_oso_symfile): Update.
1362 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
1363 Update.
1364 * linux-fork.c (checkpoint_command): Update.
1365 * linespec.c (convert_linespec_to_sals): Update.
1366 * jit.c (finalize_symtab): Update.
1367 * infrun.c (insert_exception_resume_from_probe): Update.
1368 * ia64-tdep.c (ia64_find_unwind_table): Update.
1369 * hppa-tdep.c (internalize_unwinds): Update.
1370 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
1371 Update.
1372 * gcore.c (call_target_sbrk): Update.
1373 * elfread.c (record_minimal_symbol, elf_symtab_read)
1374 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1375 (elf_gnu_ifunc_resolve_by_got): Update.
1376 * dwarf2/read.c (create_addrmap_from_index)
1377 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
1378 (read_debug_names_from_section)
1379 (process_psymtab_comp_unit_reader, add_partial_symbol)
1380 (add_partial_subprogram, process_full_comp_unit)
1381 (read_file_scope, read_func_scope, read_lexical_block_scope)
1382 (read_call_site_scope, dwarf2_ranges_read)
1383 (dwarf2_record_block_ranges, dwarf2_add_field)
1384 (mark_common_block_symbol_computed, read_tag_pointer_type)
1385 (read_tag_string_type, dwarf2_init_float_type)
1386 (dwarf2_init_complex_target_type, read_base_type)
1387 (partial_die_info::read, partial_die_info::read)
1388 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
1389 (dwarf2_fetch_die_loc_sect_off): Update.
1390 * dwarf2/loc.c (dwarf2_find_location_expression)
1391 (class dwarf_evaluate_loc_desc, rw_pieced_value)
1392 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
1393 (dwarf2_loc_desc_get_symbol_read_needs)
1394 (locexpr_describe_location_piece, locexpr_describe_location_1)
1395 (loclist_describe_location): Update.
1396 * dwarf2/index-write.c (write_debug_names): Update.
1397 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
1398 * dtrace-probe.c (dtrace_process_dof): Update.
1399 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
1400 (process_one_symbol): Update.
1401 * ctfread.c (ctf_init_float_type, read_base_type): Update.
1402 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
1403 (coff_read_enum_type): Update.
1404 * cli/cli-cmds.c (edit_command, list_command): Update.
1405 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
1406 * breakpoint.c (create_overlay_event_breakpoint)
1407 (create_longjmp_master_breakpoint)
1408 (create_std_terminate_master_breakpoint)
1409 (create_exception_master_breakpoint, get_sal_arch): Update.
1410 * block.c (block_gdbarch): Update.
1411 * annotate.c (annotate_source_line): Update.
1412
0743fc83
TT
14132020-04-17 Tom Tromey <tromey@adacore.com>
1414
1415 * auto-load.c (show_auto_load_cmd): Remove.
1416 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
1417 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
1418 (maintenance_print_arc_command): Remove.
1419 * tui/tui-win.c (tui_command): Remove.
1420 (tui_get_cmd_list): Use add_basic_prefix_cmd.
1421 * tui/tui-layout.c (tui_layout_command): Remove.
1422 (_initialize_tui_layout): Use add_basic_prefix_cmd.
1423 * python/python.c (user_set_python, user_show_python): Remove.
1424 (_initialize_python): Use add_basic_prefix_cmd,
1425 add_show_prefix_cmd.
1426 * guile/guile.c (set_guile_command, show_guile_command): Remove.
1427 (install_gdb_commands): Use add_basic_prefix_cmd,
1428 add_show_prefix_cmd.
1429 (info_guile_command): Remove.
1430 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
1431 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
1432 add_show_prefix_cmd.
1433 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1434 Remove do_set and do_show parameters.
1435 * cli/cli-style.c (set_style, show_style): Remove.
1436 (_initialize_cli_style): Use add_basic_prefix_cmd,
1437 add_show_prefix_cmd.
1438 (cli_style_option::add_setshow_commands): Remove do_set and
1439 do_show parameters.
1440 (cli_style_option::add_setshow_commands): Use
1441 add_basic_prefix_cmd, add_show_prefix_cmd.
1442 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
1443 (set_style_name): Remove.
1444 * cli/cli-dump.c (dump_command, append_command): Remove.
1445 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1446 (tekhex_dump_command, binary_dump_command)
1447 (binary_append_command): Remove.
1448 (_initialize_cli_dump): Use add_basic_prefix_cmd.
1449 * windows-tdep.c (w32_prefix_command_valid): Remove global.
1450 (init_w32_command_list): Remove; move into ...
1451 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
1452 * valprint.c (set_print, show_print, set_print_raw)
1453 (show_print_raw): Remove.
1454 (_initialize_valprint): Use add_basic_prefix_cmd,
1455 add_show_prefix_cmd.
1456 * typeprint.c (set_print_type, show_print_type): Remove.
1457 (_initialize_typeprint): Use add_basic_prefix_cmd,
1458 add_show_prefix_cmd.
1459 * record.c (set_record_command, show_record_command): Remove.
1460 (_initialize_record): Use add_basic_prefix_cmd,
1461 add_show_prefix_cmd.
1462 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
1463 add_show_prefix_cmd.
1464 (info_command, show_command, set_debug, show_debug): Remove.
1465 * top.h (set_history, show_history): Don't declare.
1466 * top.c (set_history, show_history): Remove.
1467 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1468 (unset_tdesc_cmd): Remove.
1469 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
1470 add_show_prefix_cmd.
1471 * symtab.c (info_module_command): Remove.
1472 (_initialize_symtab): Use add_basic_prefix_cmd.
1473 * symfile.c (overlay_command): Remove.
1474 (_initialize_symfile): Use add_basic_prefix_cmd.
1475 * sparc64-tdep.c (info_adi_command): Remove.
1476 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
1477 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
1478 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
1479 add_show_prefix_cmd.
1480 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
1481 (_initialize_serial): Use add_basic_prefix_cmd,
1482 add_show_prefix_cmd.
1483 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
1484 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
1485 add_show_prefix_cmd.
1486 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
1487 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
1488 add_show_prefix_cmd.
1489 * riscv-tdep.c (show_riscv_command, set_riscv_command)
1490 (show_debug_riscv_command, set_debug_riscv_command): Remove.
1491 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
1492 add_show_prefix_cmd.
1493 * remote.c (remote_command, set_remote_cmd): Remove.
1494 (_initialize_remote): Use add_basic_prefix_cmd.
1495 * record-full.c (set_record_full_command)
1496 (show_record_full_command): Remove.
1497 (_initialize_record_full): Use add_basic_prefix_cmd,
1498 add_show_prefix_cmd.
1499 * record-btrace.c (cmd_set_record_btrace)
1500 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
1501 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
1502 (cmd_show_record_btrace_pt): Remove.
1503 (_initialize_record_btrace): Use add_basic_prefix_cmd,
1504 add_show_prefix_cmd.
1505 * ravenscar-thread.c (set_ravenscar_command)
1506 (show_ravenscar_command): Remove.
1507 (_initialize_ravenscar): Use add_basic_prefix_cmd,
1508 add_show_prefix_cmd.
1509 * mips-tdep.c (show_mips_command, set_mips_command)
1510 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
1511 add_show_prefix_cmd.
1512 * maint.c (maintenance_command, maintenance_info_command)
1513 (maintenance_check_command, maintenance_print_command)
1514 (maintenance_set_cmd, maintenance_show_cmd): Remove.
1515 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
1516 add_show_prefix_cmd.
1517 (show_per_command_cmd): Remove.
1518 * maint-test-settings.c (maintenance_set_test_settings_cmd):
1519 Remove.
1520 (maintenance_show_test_settings_cmd): Remove.
1521 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
1522 add_show_prefix_cmd.
1523 * maint-test-options.c (maintenance_test_options_command):
1524 Remove.
1525 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
1526 * macrocmd.c (macro_command): Remove
1527 (_initialize_macrocmd): Use add_basic_prefix_cmd.
1528 * language.c (set_check, show_check): Remove.
1529 (_initialize_language): Use add_basic_prefix_cmd,
1530 add_show_prefix_cmd.
1531 * infcmd.c (unset_command): Remove.
1532 (_initialize_infcmd): Use add_basic_prefix_cmd.
1533 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
1534 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
1535 add_show_prefix_cmd.
1536 * go32-nat.c (go32_info_dos_command): Remove.
1537 (_initialize_go32_nat): Use add_basic_prefix_cmd.
1538 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
1539 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
1540 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
1541 (_initialize_frame): Use add_basic_prefix_cmd,
1542 add_show_prefix_cmd.
1543 * dcache.c (set_dcache_command, show_dcache_command): Remove.
1544 (_initialize_dcache): Use add_basic_prefix_cmd,
1545 add_show_prefix_cmd.
1546 * cp-support.c (maint_cplus_command): Remove.
1547 (_initialize_cp_support): Use add_basic_prefix_cmd.
1548 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1549 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1550 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
1551 add_basic_prefix_cmd, add_show_prefix_cmd.
1552 * breakpoint.c (save_command): Remove.
1553 (_initialize_breakpoint): Use add_basic_prefix_cmd.
1554 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
1555 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
1556 add_show_prefix_cmd.
1557 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
1558 (set_ada_command, show_ada_command): Remove.
1559 (_initialize_ada_language): Use add_basic_prefix_cmd,
1560 add_show_prefix_cmd.
1561 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
1562
3557f442
KR
15632020-04-16 Kamil Rytarowski <n54@gmx.com>
1564
1565 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
1566 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
1567
16197208
SM
15682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1569
1570 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
1571 warning messages.
1572
00ac85d3
SM
15732020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1574
1575 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
1576 import table is not at beginning of .idata section.
1577
381ce63f
PA
15782020-04-16 Pedro Alves <palves@redhat.com>
1579
1580 * inferior.c (delete_inferior): Use delete operator directly
1581 instead of delete_program_space.
1582 * progspace.c (add_program_space): New, factored out from
1583 program_space::program_space.
1584 (remove_program_space): New, factored out from
1585 delete_program_space.
1586 (program_space::program_space): Remove intro comment. Rewrite.
1587 (program_space::~program_space): Remove intro comment. Call
1588 remove_program_space.
1589 (delete_program_space): Delete.
1590 * progspace.h (program_space::program_space): Make explicit. Move
1591 intro comment here, adjusted.
1592 (program_space::~program_space): Move intro comment here,
1593 adjusted.
1594 (delete_program_space): Remove.
1595
a010605f
TT
15962020-04-16 Tom Tromey <tromey@adacore.com>
1597
1598 * windows-nat.c (windows_nat::handle_access_violation): New
1599 function.
1600 * nat/windows-nat.h (handle_access_violation): Declare.
1601 * nat/windows-nat.c (handle_exception): Move Cygwin code to
1602 windows-nat.c. Call handle_access_violation.
1603
efba5c23
TV
16042020-04-16 Tom de Vries <tdevries@suse.de>
1605
1606 PR symtab/25791
1607 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
1608 CUs without psymtab.
1609
97ed802d
KB
16102020-04-16 Kevin Buettner <kevinb@redhat.com>
1611
1612 * python/python.c (do_start_initialization): Don't call
1613 PyEval_InitThreads for Python 3.9 and beyond.
1614
c7d64809
KR
16152020-04-15 Kamil Rytarowski <n54@gmx.com>
1616
1617 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
1618 thread functions.
1619 (obsd_nat_target::wait): Likewise.
1620
ce127a96
TT
16212020-04-15 Tom Tromey <tromey@adacore.com>
1622
1623 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1624 (DEBUG_EXCEPT): Use debug_printf.
1625
99f1bc6a
AB
16262020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1627
1628 * completer.c (class completion_tracker::completion_hash_entry)
1629 <hash_name>: New member function.
1630 (completion_tracker::discard_completions): New callback to hash a
1631 completion_hash_entry, pass this to htab_create_alloc.
1632
a0e9b532
JT
16332016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
1634
1635 * windows-nat.c (windows_make_so): Warn rather than stopping with
1636 an error if realpath() fails.
1637
06ca5dd4
KR
16382020-04-14 Kamil Rytarowski <n54@gmx.com>
1639
1640 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
1641 (nbsd_nat_target::info_proc): Add do_status.
1642
194d088f
TV
16432020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
1644 Tom de Vries <tdevries@suse.de>
1645
1646 PR symtab/25718
1647 * psympriv.h (struct partial_symtab::read_symtab)
1648 (struct partial_symtab::expand_psymtab)
1649 (struct partial_symtab::read_dependencies): Update comments.
1650 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
1651 read_symtab for includer.
1652 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
1653 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
1654 (struct dwarf2_include_psymtab::m_readin): Remove.
1655 (struct dwarf2_include_psymtab::includer): New member function.
1656 (dwarf2_psymtab::expand_psymtab): Assert !readin.
1657
c1a66c06
TV
16582020-04-14 Tom de Vries <tdevries@suse.de>
1659
1660 PR symtab/25720
1661 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
1662 with NULL symbol_matcher and lookup_name.
1663 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
1664 and lookup_name.
1665 * dwarf2/read.c (dw2_expand_symtabs_matching)
1666 (dw2_debug_names_expand_symtabs_matching): Same.
1667 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
1668 Make lookup_name a pointer. Update comment.
1669 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
1670 lookup_name being a pointer.
1671 * symfile.c (expand_symtabs_matching): Same.
1672 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
1673 * linespec.c (iterate_over_all_matching_symtabs): Same.
1674
400b5eca
TT
16752020-04-13 Tom Tromey <tom@tromey.com>
1676
1677 * run-on-main-thread.c: Update include.
1678 * unittests/main-thread-selftests.c: Update include.
1679 * tui/tui-win.c: Update include.
1680 * tui/tui-io.c: Update include.
1681 * tui/tui-interp.c: Update include.
1682 * tui/tui-hooks.c: Update include.
1683 * top.h: Update include.
1684 * top.c: Update include.
1685 * ser-base.c: Update include.
1686 * remote.c: Update include.
1687 * remote-notif.c: Update include.
1688 * remote-fileio.c: Update include.
1689 * record-full.c: Update include.
1690 * record-btrace.c: Update include.
1691 * python/python.c: Update include.
1692 * posix-hdep.c: Update include.
1693 * mingw-hdep.c: Update include.
1694 * mi/mi-main.c: Update include.
1695 * mi/mi-interp.c: Update include.
1696 * main.c: Update include.
1697 * linux-nat.c: Update include.
1698 * interps.c: Update include.
1699 * infrun.c: Update include.
1700 * inf-loop.c: Update include.
1701 * event-top.c: Update include.
1702 * event-loop.c: Move to ../gdbsupport/.
1703 * event-loop.h: Move to ../gdbsupport/.
1704 * async-event.h: Update include.
1705 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
1706
93b54c8e
TT
17072020-04-13 Tom Tromey <tom@tromey.com>
1708
1709 * tui/tui-win.c: Include async-event.h.
1710 * remote.c: Include async-event.h.
1711 * remote-notif.c: Include async-event.h.
1712 * record-full.c: Include async-event.h.
1713 * record-btrace.c: Include async-event.h.
1714 * infrun.c: Include async-event.h.
1715 * event-top.c: Include async-event.h.
1716 * event-loop.h: Move some declarations to async-event.h.
1717 * event-loop.c: Don't include ser-event.h or top.h. Move some
1718 code to async-event.c.
1719 * async-event.h: New file.
1720 * async-event.c: New file.
1721 * Makefile.in (COMMON_SFILES): Add async-event.c.
1722 (HFILES_NO_SRCDIR): Add async-event.h.
1723
c1cd3163
TT
17242020-04-13 Tom Tromey <tom@tromey.com>
1725
1726 * utils.c (flush_streams): New function.
1727 * event-loop.c (gdb_wait_for_event): Call flush_streams.
1728
29f2bf4f
TT
17292020-04-13 Tom Tromey <tom@tromey.com>
1730
1731 * event-loop.c (handle_file_event): Use warning, not
1732 printf_unfiltered.
1733
98029d02
TT
17342020-04-13 Tom Tromey <tom@tromey.com>
1735
1736 * event-loop.c: Include <chrono>.
1737
06cc9596
TT
17382020-04-13 Tom Tromey <tom@tromey.com>
1739
1740 * gdb_select.h: Move to ../gdbsupport/.
1741 * event-loop.c: Update include path.
1742 * top.c: Update include path.
1743 * ser-base.c: Update include path.
1744 * ui-file.c: Update include path.
1745 * ser-tcp.c: Update include path.
1746 * guile/scm-ports.c: Update include path.
1747 * posix-hdep.c: Update include path.
1748 * ser-unix.c: Update include path.
1749 * gdb_usleep.c: Update include path.
1750 * mingw-hdep.c: Update include path.
1751 * inflow.c: Update include path.
1752 * infrun.c: Update include path.
1753 * event-top.c: Update include path.
1754
8ae8e197
TT
17552020-04-13 Tom Tromey <tom@tromey.com>
1756
1757 * configure: Rebuild.
1758 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
1759
58cf28e8
TT
17602020-04-13 Tom Tromey <tom@tromey.com>
1761
1762 * event-loop.h (start_event_loop): Don't declare.
1763 * event-loop.c (start_event_loop): Move...
1764 * main.c (start_event_loop): ...here. Now static.
1765
b7f999ae
SDJ
17662020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
1767
1768 * MAINTAINERS: Update my email address.
1769
1085dfd4
KR
17702020-04-12 Kamil Rytarowski <n54@gmx.com>
1771
1772 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
1773 IP_ALL.
1774
49d1d1f5
KR
17752020-04-12 Kamil Rytarowski <n54@gmx.com>
1776
1777 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 1778 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 1779
b4848d2a
KR
17802020-04-12 Kamil Rytarowski <n54@gmx.com>
1781
1782 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 1783 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 1784
51c133d5
KR
17852020-04-12 Kamil Rytarowski <n54@gmx.com>
1786
1787 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
1788
54b8cbd0
KR
17892020-04-11 Kamil Rytarowski <n54@gmx.com>
1790
1791 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
1792 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
1793 (nbsd_nat_target::info_proc): New functions.
1794 * nbsd-nat.c (kinfo_get_vmmap): New function.
1795 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
1796 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
1797 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
1798 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
1799 functions.
1800 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
1801 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1802 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1803 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
1804 (KINFO_VME_FLAG_GROWS_DOWN): New.
1805
cf83625d
AS
18062020-04-10 Artur Shepilko <nomadbyte@gmail.com>
1807
1808 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
1809 bit shift.
1810
0c4311ab
TT
18112020-04-10 Tom Tromey <tromey@adacore.com>
1812
1813 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
1814
3e65b3e9
TT
18152020-04-10 Tom Tromey <tromey@adacore.com>
1816
1817 * symtab.c (get_symbol_address, get_msymbol_address): Skip
1818 separate debug files.
1819
13302e95
HD
18202020-04-10 Hannes Domani <ssbssa@yahoo.de>
1821
1822 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1823 Move to...
1824 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1825 ... here.
1826 * windows-nat.c (windows_nat_target::get_windows_debug_event):
1827 Check for STATUS_WX86_BREAKPOINT.
1828 (windows_nat_target::wait): Same.
1829
bdfc1e8a
TV
18302020-04-10 Tom de Vries <tdevries@suse.de>
1831
1832 PR cli/25808
1833 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
1834
f4460aec
SM
18352020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
1838 (Write After Approval): Remove Tom de Vries.
1839
a25198bb
BE
18402020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
1841
1842 revert partially:
1843 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1844
aac66a4c
SM
1845 * buildsym.c (record_line): Fix undefined behavior and preserve
1846 lines at eof.
a25198bb 1847
206c98a6
KR
18482020-04-09 Kamil Rytarowski <n54@gmx.com>
1849
1850 * auxv.h (svr4_auxv_parse): New.
1851 * auxv.c (default_auxv_parse): Split into default_auxv_parse
1852 and generic_auxv_parse.
1853 (svr4_auxv_parse): Add.
1854 * obsd-tdep.c: Include "auxv.h".
1855 (obsd_auxv_parse): Remove.
1856 (obsd_init_abi): Remove comment.
1857 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
1858 from `obsd_auxv_parse' to `svr4_auxv_parse'.
1859 * nbsd-tdep.c: Include "auxv.h".
1860 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
1861
71fbdbaf
TT
18622020-04-08 Tom Tromey <tromey@adacore.com>
1863
1864 * nat/windows-nat.h (last_wait_event): Don't declare.
1865 (wait_for_debug_event): Update comment.
1866 * nat/windows-nat.c (last_wait_event): Now static.
1867
2c1d95e8
TT
18682020-04-08 Tom Tromey <tromey@adacore.com>
1869
1870 * windows-nat.c (wait_for_debug_event): Move to
1871 nat/windows-nat.c.
1872 * nat/windows-nat.h (wait_for_debug_event): Declare.
1873 * nat/windows-nat.c (wait_for_debug_event): Move from
1874 windows-nat.c. No longer static.
1875
d2977bc4
TT
18762020-04-08 Tom Tromey <tromey@adacore.com>
1877
1878 * windows-nat.c (get_windows_debug_event): Use
1879 fetch_pending_stop.
1880 * nat/windows-nat.h (fetch_pending_stop): Declare.
1881 * nat/windows-nat.c (fetch_pending_stop): New function.
1882
e758e19c
TT
18832020-04-08 Tom Tromey <tromey@adacore.com>
1884
1885 * windows-nat.c (windows_continue): Use matching_pending_stop and
1886 continue_last_debug_event.
1887 * nat/windows-nat.h (matching_pending_stop)
1888 (continue_last_debug_event): Declare.
1889 * nat/windows-nat.c (DEBUG_EVENTS): New define.
1890 (matching_pending_stop, continue_last_debug_event): New
1891 functions.
1892
8d30e395
TT
18932020-04-08 Tom Tromey <tromey@adacore.com>
1894
1895 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
1896 (handle_exception_result): Move to nat/windows-nat.h.
1897 (DEBUG_EXCEPTION_SIMPLE): Remove.
1898 (windows_nat::handle_ms_vc_exception): New function.
1899 (handle_exception): Move to nat/windows-nat.c.
1900 (get_windows_debug_event): Update.
1901 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
1902 nat/windows-nat.c.
1903 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
1904 (handle_exception_result): Move from windows-nat.c.
1905 (handle_exception): Declare.
1906 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
1907 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
1908 windows-nat.c.
1909
29de418d
TT
19102020-04-08 Tom Tromey <tromey@adacore.com>
1911
1912 * windows-nat.c (exception_count, event_count): Remove.
1913 (handle_exception, get_windows_debug_event)
1914 (do_initial_windows_stuff): Update.
1915
a816ba18
TT
19162020-04-08 Tom Tromey <tromey@adacore.com>
1917
1918 * windows-nat.c (windows_nat::handle_load_dll)
1919 (windows_nat::handle_unload_dll): Rename. No longer static.
1920 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
1921 Declare.
1922
a00caa12
TT
19232020-04-08 Tom Tromey <tromey@adacore.com>
1924
1925 * complaints.h (stop_whining): Declare at top-level.
1926 (complaint): Don't declare stop_whining.
1927
d41b524f
TT
19282020-04-08 Tom Tromey <tromey@adacore.com>
1929
1930 * windows-nat.c (windows_nat::handle_output_debug_string):
1931 Rename. No longer static.
1932 * nat/windows-nat.h (handle_output_debug_string): Declare.
1933
3c76026d
TT
19342020-04-08 Tom Tromey <tromey@adacore.com>
1935
1936 * windows-nat.c (current_process_handle, current_process_id)
1937 (main_thread_id, last_sig, current_event, last_wait_event)
1938 (current_windows_thread, desired_stop_thread_id, pending_stops)
1939 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
1940 (display_selectors, fake_create_process)
1941 (get_windows_debug_event): Update.
1942 * nat/windows-nat.h (current_process_handle, current_process_id)
1943 (main_thread_id, last_sig, current_event, last_wait_event)
1944 (current_windows_thread, desired_stop_thread_id, pending_stops)
1945 (struct pending_stop, siginfo_er): Move from windows-nat.c.
1946 * nat/windows-nat.c (current_process_handle, current_process_id)
1947 (main_thread_id, last_sig, current_event, last_wait_event)
1948 (current_windows_thread, desired_stop_thread_id, pending_stops)
1949 (siginfo_er): New globals. Move from windows-nat.c.
1950
9d8679cc
TT
19512020-04-08 Tom Tromey <tromey@adacore.com>
1952
1953 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
1954 (handle_load_dll): Update.
1955 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
1956
28688adf
TT
19572020-04-08 Tom Tromey <tromey@adacore.com>
1958
1959 * windows-nat.c (enum thread_disposition_type): Move to
1960 nat/windows-nat.h.
1961 (windows_nat::thread_rec): Rename from thread_rec. No longer
1962 static.
1963 (windows_add_thread, windows_nat_target::fetch_registers)
1964 (windows_nat_target::store_registers, handle_exception)
1965 (windows_nat_target::resume, get_windows_debug_event)
1966 (windows_nat_target::get_tib_address)
1967 (windows_nat_target::thread_name)
1968 (windows_nat_target::thread_alive): Update.
1969 * nat/windows-nat.h (enum thread_disposition_type): Move from
1970 windows-nat.c.
1971 (thread_rec): Declare.
1972
4834dad0
TT
19732020-04-08 Tom Tromey <tromey@adacore.com>
1974
1975 * windows-nat.c: Add "using namespace".
1976 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
1977 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
1978
65bafd5b
TT
19792020-04-08 Tom Tromey <tromey@adacore.com>
1980
1981 * nat/windows-nat.h (struct windows_thread_info): Declare
1982 destructor.
1983 * nat/windows-nat.c (~windows_thread_info): New.
1984
0a4afda3
TT
19852020-04-08 Tom Tromey <tromey@adacore.com>
1986
1987 PR gdb/22992
1988 * windows-nat.c (current_event): Update comment.
1989 (last_wait_event, desired_stop_thread_id): New globals.
1990 (struct pending_stop): New.
1991 (pending_stops): New global.
1992 (windows_nat_target) <stopped_by_sw_breakpoint>
1993 <supports_stopped_by_sw_breakpoint>: New methods.
1994 (windows_fetch_one_register): Add assertions. Adjust PC.
1995 (windows_continue): Handle pending stops. Suspend other threads
1996 when stepping. Use last_wait_event
1997 (wait_for_debug_event): New function.
1998 (get_windows_debug_event): Use wait_for_debug_event. Handle
1999 pending stops. Queue spurious stops.
2000 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
2001 (windows_nat_target::kill): Use wait_for_debug_event.
2002 * nat/windows-nat.h (struct windows_thread_info)
2003 <stopped_at_software_breakpoint>: New field.
2004 * nat/windows-nat.c (windows_thread_info::resume): Clear
2005 stopped_at_software_breakpoint.
2006
8e61ebec
TT
20072020-04-08 Tom Tromey <tromey@adacore.com>
2008
2009 * windows-nat.c (enum thread_disposition_type): New.
2010 (thread_rec): Replace "get_context" parameter with "disposition";
2011 change type.
2012 (windows_add_thread, windows_nat_target::fetch_registers)
2013 (windows_nat_target::store_registers, handle_exception)
2014 (windows_nat_target::resume, get_windows_debug_event)
2015 (windows_nat_target::get_tib_address)
2016 (windows_nat_target::thread_name)
2017 (windows_nat_target::thread_alive): Update.
2018
98a03287
TT
20192020-04-08 Tom Tromey <tromey@adacore.com>
2020
2021 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
2022 (windows_continue): Use windows_continue::resume.
2023 * nat/windows-nat.h (struct windows_thread_info) <suspend,
2024 resume>: Declare new methods.
2025 * nat/windows-nat.c: New file.
2026 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
2027
7c7411bc
TT
20282020-04-08 Tom Tromey <tromey@adacore.com>
2029
2030 * windows-nat.c (windows_add_thread, windows_delete_thread)
2031 (windows_nat_target::fetch_registers)
2032 (windows_nat_target::store_registers, fake_create_process)
2033 (windows_nat_target::resume, windows_nat_target::resume)
2034 (get_windows_debug_event, windows_nat_target::wait)
2035 (windows_nat_target::pid_to_str)
2036 (windows_nat_target::get_tib_address)
2037 (windows_nat_target::get_ada_task_ptid)
2038 (windows_nat_target::thread_name)
2039 (windows_nat_target::thread_alive): Use lwp, not tid.
2040
2950fdf7
TT
20412020-04-08 Tom Tromey <tromey@adacore.com>
2042
2043 * windows-nat.c (handle_exception)
2044 (windows_nat_target::thread_name): Update.
2045 * nat/windows-nat.h (windows_thread_info): Remove destructor.
2046 <name>: Now unique_xmalloc_ptr.
2047
62fe396b
TT
20482020-04-08 Tom Tromey <tromey@adacore.com>
2049
2050 * windows-nat.c (thread_rec)
2051 (windows_nat_target::fetch_registers): Update.
2052 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
2053 Update comment.
2054 <debug_registers_changed, reload_context>: Now bool.
2055
e9534bd2
TT
20562020-04-08 Tom Tromey <tromey@adacore.com>
2057
2058 * windows-nat.c (windows_add_thread): Use new.
2059 (windows_init_thread_list, windows_delete_thread): Use delete.
2060 (get_windows_debug_event): Update.
2061 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
2062 destructor, and initializers.
2063
ae1f8880
TT
20642020-04-08 Tom Tromey <tromey@adacore.com>
2065
2066 * windows-nat.c (struct windows_thread_info): Remove.
2067 * nat/windows-nat.h: New file.
2068
55a1e039
TT
20692020-04-08 Tom Tromey <tromey@adacore.com>
2070
2071 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
2072 (thread_rec, windows_add_thread, windows_delete_thread)
2073 (windows_continue): Update.
2074
93366324
TT
20752020-04-08 Tom Tromey <tromey@adacore.com>
2076
2077 * windows-nat.c (struct windows_thread_info): Remove typedef.
2078 (thread_head): Remove.
2079 (thread_list): New global.
2080 (thread_rec, windows_add_thread, windows_init_thread_list)
2081 (windows_delete_thread, windows_continue): Update.
2082
0f2265e2
SM
20832020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * windows-tdep.h (windows_init_abi): Add comment.
2086 (cygwin_init_abi): New declaration.
2087 * windows-tdep.c: Split signal enumeration in two, one for
2088 Windows and one for Cygwin.
2089 (windows_gdb_signal_to_target): Only deal with signal of the
2090 Windows OS ABI.
2091 (cygwin_gdb_signal_to_target): New function.
2092 (windows_init_abi): Rename to windows_init_abi_common, don't set
2093 gdb_signal_to_target gdbarch method. Add new new function with
2094 this name.
2095 (cygwin_init_abi): New function.
2096 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
2097 comment. Don't call windows_init_abi.
2098 (amd64_windows_init_abi): Add comment, call windows_init_abi.
2099 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
2100 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
2101 i386_windows_init_abi_common, don't call windows_init_abi. Add
2102 a new function of this name.
2103 (i386_cygwin_init_abi): New function.
2104 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
2105 OS ABI Cygwin.
2106
3810f182
SM
21072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
2108
2109 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
2110 parameter.c.
2111 (dwarf2_read_gdb_index): Update.
2112
063f8e80
KR
21132020-04-07 Kamil Rytarowski <n54@gmx.com>
2114
2115 * nbsd-tdep.c: Include "objfiles.h".
2116 (nbsd_skip_solib_resolver): New.
2117 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
2118
85a9510c 21192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
2120
2121 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
2122 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
2123 with DW_LLE_base_addressx are being emitted in DWARFv5.
2124 Add the newly added kind DW_LOC_OFFSET_PAIR also.
2125 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
2126 unsigned integer.
2127
9fc3eaae 21282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
2129
2130 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
2131 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
2132 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
2133 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
2134 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
2135 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
2136 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
2137
2138
41144253 21392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
2140
2141 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
2142 (read_loclist_index): New function definition.
2143 (lookup_loclist_base): New function definition.
2144 (read_loclist_header): New function definition.
2145 (dwarf2_cu): Add loclist_base and loclist_header field.
2146 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
2147 (read_full_die_1): Read the value of DW_AT_loclists_base.
2148 (read_attribute_reprocess): Handle DW_FORM_loclistx.
2149 (read_attribute_value): Handle DW_FORM_loclistx.
2150 (skip_one_die): Handle DW_FORM_loclistx.
2151 (loclist_header): New structure declaration.
2152 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
2153
9f4e76a4
SM
21542020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2155
2156 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
2157 constructor. Remove `addr` parameter from other constructor and
2158 add `per_cu` parameter.
2159 * dwarf2/read.c (create_partial_symtab): Update.
2160
25c11aca
TV
21612020-04-07 Tom de Vries <tdevries@suse.de>
2162
2163 PR symtab/25796
2164 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
2165 (partial_die_info::fixup): Inherit has_const_value.
2166
5707e24b
TV
21672020-04-07 Tom de Vries <tdevries@suse.de>
2168
2169 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
2170 symbols without address.
2171
05f00e22
KR
21722020-04-06 Kamil Rytarowski <n54@gmx.com>
2173
2174 * nbsd-nat.h (struct thread_info): Add forward declaration.
2175 (nbsd_nat_target::thread_alive): Add.
2176 (nbsd_nat_target::thread_name): Likewise.
2177 (nbsd_nat_target::update_thread_list): Likewise.
2178 (update_thread_list::post_attach): Likewise.
2179 (post_attach::pid_to_str): Likewise.
2180 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
2181 (nbsd_thread_lister): Add.
2182 (nbsd_nat_target::thread_alive): Likewise.
2183 (nbsd_nat_target::thread_name): Likewise.
2184 (nbsd_add_threads): Likewise.
2185 (update_thread_list::post_attach): Likewise.
2186 (nbsd_nat_target::update_thread_list): Likewise.
2187 (post_attach::pid_to_str): Likewise.
2188
6ee448cc
TT
21892020-04-06 Tom Tromey <tromey@adacore.com>
2190
2191 * ada-valprint.c (print_variant_part): Extract the variant field.
2192 (print_field_values): Use the field as the outer value when
2193 recursing.
2194
dea34e8c
TT
21952020-04-06 Tom Tromey <tromey@adacore.com>
2196
2197 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
2198 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
2199 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
2200 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
2201 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
2202
93689ce9
TT
22032020-04-06 Tom Tromey <tromey@adacore.com>
2204
2205 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
2206 TYPE_CODE_ERROR.
2207
79743962
KR
22082020-04-06 Kamil Rytarowski <n54@gmx.com>
2209
2210 * nbsd-tdep.c: Include "gdbarch.h".
2211 Define enum with NetBSD signal numbers.
2212 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
2213 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
2214 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2215 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
2216 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
2217 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
2218 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
2219 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2220 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
2221 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
2222 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
2223 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
2224
9e7c9a03
HD
22252020-04-03 Hannes Domani <ssbssa@yahoo.de>
2226
2227 PR gdb/25325
2228 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
2229
d9e49b61
TT
22302020-04-03 Tom Tromey <tromey@adacore.com>
2231
2232 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
2233 Read constant block.
2234
e0fc5c3f
SM
22352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2236
2237 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
2238 (gdb_bfd_get_full_section_contents): New declaration.
2239 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
2240 * windows-tdep.c (is_linked_with_cygwin_dll): Use
2241 gdb_bfd_get_full_section_contents.
2242
e2ff18a0
SM
22432020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2244
2245 * exec.c (build_section_table): Replace internal_error with
2246 gdb_assert.
2247 (section_table_xfer_memory_partial): Likewise.
2248 * mdebugread.c (parse_partial_symbols): Likewise.
2249 * psymtab.c (lookup_partial_symbol): Likewise.
2250 * utils.c (wrap_here): Likewise.
2251
0830d301
TT
22522020-04-02 Tom Tromey <tromey@adacore.com>
2253
2254 * f-lang.c (build_fortran_types): Use arch_type to initialize
2255 builtin_complex_s32 in the TYPE_CODE_ERROR case.
2256
e7da7f8f
TT
22572020-04-02 Tom Tromey <tromey@adacore.com>
2258
2259 * dwarf2/read.c (partial_die_info::read): Do not create a vector
2260 of attributes.
2261
c90d28ac
AB
22622020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
2263 Bernd Edlinger <bernd.edlinger@hotmail.de>
2264 Tom Tromey <tromey@adacore.com>
2265
2266 * buildsym.c (buildsym_compunit::record_line): Remove
2267 deduplication code.
2268
1aa98955
TV
22692020-04-02 Tom de Vries <tdevries@suse.de>
2270
2271 PR ada/24671
2272 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
2273
d3214198
TV
22742020-04-02 Tom de Vries <tdevries@suse.de>
2275
2276 * dwarf2/read.c (dwarf2_gdb_index_functions,
2277 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
2278 NULL.
2279 * psymtab.c (psym_lookup_global_symbol_language): New function.
2280 (psym_functions): Init psym_lookup_global_symbol_language with
2281 psym_lookup_global_symbol_language.
2282 * symfile-debug.c (debug_sym_quick_functions): Init
2283 lookup_global_symbol_language with NULL.
2284 * symfile.c (set_initial_language): Remove fixme comment.
2285 * symfile.h (struct quick_symbol_functions): Add
2286 lookup_global_symbol_language.
2287 * symtab.c (find_quick_global_symbol_language): New function.
2288 (find_main_name): Use find_quick_global_symbol_language.
2289
2836752f
SM
22902020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
2293
64dc2d4b
BE
22942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2295
2296 * buildsym.c (record_line): Fix undefined behavior and preserve
2297 lines at eof.
2298
bbe3dc41
BE
22992020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2300
2301 * buildsym.c (record_line): Fix the resizing condition.
2302
6b4a335b
TT
23032020-04-01 Tom Tromey <tom@tromey.com>
2304
2305 * value.h (value_literal_complex): Add comment.
2306 * valops.c (value_literal_complex): Refer to value.h.
2307
3638a098
TT
23082020-04-01 Tom Tromey <tom@tromey.com>
2309
2310 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
2311 (scalar_type): New rule, from typebase.
2312 (typebase): Use scalar_type. Recognize complex types.
2313 (field_name): Handle FLOAT_KEYWORD.
2314 (ident_tokens): Add _Complex and __complex__.
2315
c34e8714
TT
23162020-04-01 Tom Tromey <tom@tromey.com>
2317
2318 PR exp/25299:
2319 * valarith.c (promotion_type, complex_binop): New functions.
2320 (scalar_binop): Handle complex numbers. Use promotion_type.
2321 (value_pos, value_neg, value_complement): Handle complex numbers.
2322
fa649bb7
TT
23232020-04-01 Tom Tromey <tom@tromey.com>
2324
2325 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
2326 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
2327 (parse_number): Handle complex numbers.
2328
981c08ce
TT
23292020-04-01 Tom Tromey <tom@tromey.com>
2330
2331 * c-valprint.c (c_decorations): Change complex suffix to "i".
2332
4c99290d
TT
23332020-04-01 Tom Tromey <tom@tromey.com>
2334
2335 * valprint.c (generic_value_print_complex): Use accessors.
2336 * value.h (value_real_part, value_imaginary_part): Declare.
2337 * valops.c (value_real_part, value_imaginary_part): New
2338 functions.
2339 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
2340
5b930b45
TT
23412020-04-01 Tom Tromey <tom@tromey.com>
2342
2343 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
2344 (read_range_type): Update.
2345 * mdebugread.c (basic_type): Update.
2346 * go-lang.c (build_go_types): Use init_complex_type.
2347 * gdbtypes.h (struct main_type) <complex_type>: New member.
2348 (init_complex_type): Update.
2349 (arch_complex_type): Don't declare.
2350 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
2351 Make name if none given. Use alloc_type_copy. Look for cached
2352 complex type.
2353 (arch_complex_type): Remove.
2354 (gdbtypes_post_init): Use init_complex_type.
2355 * f-lang.c (build_fortran_types): Use init_complex_type.
2356 * dwarf2/read.c (read_base_type): Update.
2357 * d-lang.c (build_d_types): Use init_complex_type.
2358 * ctfread.c (read_base_type): Update.
2359
53cccef1
TBA
23602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2361
2362 * infrun.c (stop_all_threads): Update assertion, plus when
2363 stopping threads, take into account that we might be trying
2364 to stop an all-stop target.
2365 (stop_waiting): Call 'stop_all_threads' if there exists a
2366 non-stop target.
2367
a0714d30
TBA
23682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2369
2370 * target.h (exists_non_stop_target): New function declaration.
2371 * target.c (exists_non_stop_target): New function.
2372
60e22c1e
HD
23732020-04-01 Hannes Domani <ssbssa@yahoo.de>
2374
2375 PR gdb/24789
2376 * eval.c (is_integral_or_integral_reference): New function.
2377 (evaluate_subexp_standard): Allow integer references in
2378 pointer arithmetic.
2379
e139a727
TBA
23802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2381
2382 * remote.c (remote_target::remote_parse_stop_reply): Remove the
2383 check for no ptid in the stop reply when the target is non-stop.
2384
e0802d59
TT
23852020-04-01 Tom Tromey <tromey@adacore.com>
2386
2387 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
2388 "name" parameter to rvalue reference. Initialize m_name_holder.
2389 <lookup_name_info>: New overloads.
2390 <name>: Return gdb::string_view.
2391 <c_str>: New method.
2392 <make_ignore_params>: Update.
2393 <search_name_hash>: Update.
2394 <language_lookup_name>: Return const char *.
2395 <m_name>: Change type.
2396 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
2397 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
2398 (lookup_name_info::match_any): Update.
2399 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
2400 Update.
2401 * minsyms.c (linkage_name_str): Update.
2402 * language.c (default_symbol_name_matcher): Update.
2403 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
2404 Update.
2405 * ada-lang.c (ada_fold_name): Change parameter to string_view.
2406 (ada_lookup_name_info::ada_lookup_name_info): Update.
2407 (literal_symbol_name_matcher): Update.
2408
8c072cb6
TT
24092020-04-01 Tom Tromey <tromey@adacore.com>
2410
2411 * psymtab.c (psymtab_search_name): Remove function.
2412 (psym_lookup_symbol): Create search name and lookup name here.
2413 (lookup_partial_symbol): Remove "name" parameter; add
2414 lookup_name.
2415 (psym_expand_symtabs_for_function): Update.
2416
6f29a534
TT
24172020-03-31 Joel Jones <joelkevinjones@gmail.com>
2418
2419 PR tui/25597:
2420 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
2421
af62665e
TT
24222020-03-31 Tom Tromey <tromey@adacore.com>
2423
2424 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
2425 memcpy.
2426
d1a89da5
NC
24272020-03-30 Nelson Chu <nelson.chu@sifive.com>
2428
2429 * features/riscv/32bit-csr.xml: Regenerated.
2430 * features/riscv/64bit-csr.xml: Regenerated.
2431
d8af9068
TT
24322020-03-30 Tom Tromey <tromey@adacore.com>
2433
2434 * ada-valprint.c (print_variant_part): Update.
2435 * ada-lang.h (ada_which_variant_applies): Update.
2436 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
2437 outer_valaddr parameters; replace with "outer" value parameter.
2438 (to_fixed_variant_branch_type): Update.
2439
227c0bf4
PFC
24402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2441
2442 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
2443 <list>. Remove inclusion of observable.h.
2444 (PPC_DEBUG_CURRENT_VERSION): Move up define.
2445 (struct arch_lwp_info): New struct.
2446 (class ppc_linux_dreg_interface): New class.
2447 (struct ppc_linux_process_info): New struct.
2448 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
2449 <low_new_clone, low_forget_process, low_prepare_to_resume>
2450 <copy_thread_dreg_state, mark_thread_stale>
2451 <mark_debug_registers_changed, register_hw_breakpoint>
2452 <clear_hw_breakpoint, register_wp, clear_wp>
2453 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
2454 <num_memory_accesses, get_trigger_type>
2455 <create_watchpoint_request, hwdebug_point_cmp>
2456 <init_arch_lwp_info, get_arch_lwp_info>
2457 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
2458 methods.
2459 <struct ptid_hash>: New inner struct.
2460 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
2461 members.
2462 (saved_dabr_value, hwdebug_info, max_slots_number)
2463 (struct hw_break_tuple, struct thread_points, ppc_threads)
2464 (have_ptrace_hwdebug_interface)
2465 (hwdebug_find_thread_points_by_tid)
2466 (hwdebug_insert_point, hwdebug_remove_point): Remove.
2467 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
2468 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
2469 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
2470 use m_dreg_interface.
2471 (hwdebug_point_cmp): Change to...
2472 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
2473 reference arguments instead of pointers.
2474 (ppc_linux_nat_target::ranged_break_num_registers): Use
2475 m_dreg_interface.
2476 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
2477 m_dreg_interface. Call register_hw_breakpoint.
2478 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
2479 m_dreg_interface. Call clear_hw_breakpoint.
2480 (get_trigger_type): Change to...
2481 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
2482 comment.
2483 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
2484 use m_dreg_interface. Call register_hw_breakpoint.
2485 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
2486 use m_dreg_interface. Call clear_hw_breakpoint.
2487 (can_use_watchpoint_cond_accel): Change to...
2488 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
2489 method. Update comment, use m_dreg_interface and
2490 m_process_info.
2491 (calculate_dvc): Change to...
2492 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
2493 m_dreg_interface.
2494 (num_memory_accesses): Change to...
2495 (ppc_linux_nat_target::num_memory_accesses): ...this method.
2496 (check_condition): Change to...
2497 (ppc_linux_nat_target::check_condition): ...this method.
2498 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
2499 comment, use m_dreg_interface.
2500 (create_watchpoint_request): Change to...
2501 (ppc_linux_nat_target::create_watchpoint_request): ...this
2502 method. Use m_dreg_interface.
2503 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
2504 m_dreg_interface. Call register_hw_breakpoint or register_wp.
2505 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
2506 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
2507 (ppc_linux_nat_target::low_forget_process)
2508 (ppc_linux_nat_target::low_new_fork)
2509 (ppc_linux_nat_target::low_new_clone)
2510 (ppc_linux_nat_target::low_delete_thread)
2511 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
2512 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
2513 only call mark_thread_stale.
2514 (ppc_linux_thread_exit): Remove.
2515 (ppc_linux_nat_target::stopped_data_address): Change to...
2516 (ppc_linux_nat_target::low_stopped_data_address): This. Add
2517 comment, use m_dreg_interface and m_thread_hw_breakpoints.
2518 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
2519 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
2520 comment. Call low_stopped_data_address.
2521 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
2522 m_dreg_interface.
2523 (ppc_linux_nat_target::masked_watch_num_registers): Use
2524 m_dreg_interface.
2525 (ppc_linux_nat_target::copy_thread_dreg_state)
2526 (ppc_linux_nat_target::mark_thread_stale)
2527 (ppc_linux_nat_target::mark_debug_registers_changed)
2528 (ppc_linux_nat_target::register_hw_breakpoint)
2529 (ppc_linux_nat_target::clear_hw_breakpoint)
2530 (ppc_linux_nat_target::register_wp)
2531 (ppc_linux_nat_target::clear_wp)
2532 (ppc_linux_nat_target::init_arch_lwp_info)
2533 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
2534 (_initialize_ppc_linux_nat): Remove observer callback.
2535
4db10d8f
PFC
25362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2537
2538 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
2539 (ppc_linux_nat_target::auxv_parse)
2540 (ppc_linux_nat_target::read_description)
2541 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2542 Move up.
2543
1310c1b0
PFC
25442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2545
2546 * linux-nat.h (low_new_clone): New method.
2547 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
2548
69b037c3
SM
25492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
2552 (dbx_expand_psymtab): ... this.
2553 (start_psymtab): Update.
2554 * mdebugread.c (psymtab_to_symtab_1): Rename to...
2555 (mdebug_expand_psymtab): ... this.
2556 (parse_partial_symbols): Update.
2557 (new_psymtab): Update.
2558 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
2559 (xcoff_expand_psymtab): ... this.
2560 (xcoff_start_psymtab): Update.
2561
48993951
SM
25622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
2565 <expand_dependencies>: ... this.
2566 * psymtab.c (partial_symtab::read_dependencies): Rename to...
2567 (partial_symtab::expand_dependencies): ... this.
2568 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
2569 Update.
2570 (dwarf2_psymtab::expand_psymtab): Update.
2571 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2572 * mdebugread.c (psymtab_to_symtab_1): Update.
2573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2574
3ad83046
SM
25752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2576
2577 * psympriv.h (discard_psymtab): Remove.
2578 * dbxread.c (dbx_end_psymtab): Update.
2579 * xcoffread.c (xcoff_end_psymtab): Update.
2580
4d1b9ab6
TT
25812020-03-28 Tom Tromey <tom@tromey.com>
2582
2583 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
2584 comment.
2585
f1749218
TT
25862020-03-28 Tom Tromey <tom@tromey.com>
2587
2588 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
2589
ebea7626
HD
25902020-03-27 Hannes Domani <ssbssa@yahoo.de>
2591
2592 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2593
a879b4d5
JB
25942020-03-26 John Baldwin <jhb@FreeBSD.org>
2595
2596 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
2597
0826b30a
TT
25982020-03-26 Tom Tromey <tom@tromey.com>
2599
2600 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
2601 (mark_common_block_symbol_computed, read_tag_string_type)
2602 (attr_to_dynamic_prop, read_subrange_type): Update.
2603 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
2604 to be methods on struct attribute.
2605 (skip_one_die, process_imported_unit_die, read_namespace_alias)
2606 (read_call_site_scope, partial_die_info::read)
2607 (partial_die_info::read, lookup_die_type, follow_die_ref):
2608 Update.
2609 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
2610 from dwarf2_get_ref_die_offset.
2611 (attribute::constant_value): New method, from
2612 dwarf2_get_attr_constant_value.
2613 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
2614 Declare method.
2615 <constant_value>: New method.
2616
2b2558bf
TT
26172020-03-26 Tom Tromey <tom@tromey.com>
2618
2619 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
2620 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
2621 (dwarf_type_encoding_name): Move to stringify.c.
2622 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
2623 * dwarf2/stringify.c: New file.
2624 * dwarf2/stringify.h: New file.
2625
eeb64781
TT
26262020-03-26 Tom Tromey <tom@tromey.com>
2627
2628 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
2629 Rewrite.
2630
a39fdb41
TT
26312020-03-26 Tom Tromey <tom@tromey.com>
2632
2633 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
2634 methods.
2635 * dwarf2/read.c (lookup_addr_base): Move to die.h.
2636 (lookup_ranges_base): Likewise.
2637 (read_cutu_die_from_dwo, read_full_die_1): Update.
2638
436c571c
TT
26392020-03-26 Tom Tromey <tom@tromey.com>
2640
2641 * dwarf2/read.c (read_import_statement, read_file_scope)
2642 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
2643 (read_lexical_block_scope, read_call_site_scope)
2644 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
2645 (handle_struct_member_die, process_structure_scope)
2646 (update_enumeration_type_from_children)
2647 (process_enumeration_scope, read_array_type, read_common_block)
2648 (read_namespace, read_module, read_subroutine_type): Update.
2649 (sibling_die): Remove.
2650
052c8bb8
TT
26512020-03-26 Tom Tromey <tom@tromey.com>
2652
2653 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
2654 (build_type_psymtabs_reader, read_structure_type)
2655 (read_enumeration_type, read_full_die_1): Update.
2656 (dwarf2_attr_no_follow): Move to die.h.
2657 * dwarf2/die.h (struct die_info) <attr>: New method.
2658
2b24b6e4
TT
26592020-03-26 Tom Tromey <tom@tromey.com>
2660
2661 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
2662 <base_address>: Now an optional.
2663 (dwarf2_find_base_address, dwarf2_rnglists_process)
2664 (dwarf2_ranges_process, fill_in_loclist_baton)
2665 (dwarf2_symbol_mark_computed): Update.
2666
c2d50fd0
TT
26672020-03-26 Tom Tromey <tom@tromey.com>
2668
2669 * dwarf2/read.c (struct die_info): Move to die.h.
2670 * dwarf2/die.h: New file.
2671
0df7ad3a
TT
26722020-03-26 Tom Tromey <tom@tromey.com>
2673
2674 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
2675 * dwarf2/read.c
2676 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2677 Move to line-header.c.
2678 (read_checked_initial_length_and_offset, read_formatted_entries):
2679 Likewise.
2680 (dwarf_decode_line_header): Split into two.
2681 * dwarf2/line-header.c
2682 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2683 Move from read.c.
2684 (read_checked_initial_length_and_offset, read_formatted_entries):
2685 Likewise.
2686 (dwarf_decode_line_header): New function, split from read.c.
2687
86c0bb4c
TT
26882020-03-26 Tom Tromey <tom@tromey.com>
2689
2690 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
2691 Declare method.
2692 * dwarf2/read.c (read_attribute_value): Update.
2693 (dwarf2_per_objfile::read_line_string): Rename from
2694 read_indirect_line_string.
2695 (read_formatted_entries): Update.
2696
2ef46c2f
TT
26972020-03-26 Tom Tromey <tom@tromey.com>
2698
2699 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
2700 variable.
2701
4f9c1eda
TT
27022020-03-26 Tom Tromey <tom@tromey.com>
2703
2704 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
2705 const.
2706 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
2707 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
2708 parameter const.
2709
5a0e026f
TT
27102020-03-26 Tom Tromey <tom@tromey.com>
2711
2712 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
2713 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
2714 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
2715 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
2716
8844c11b
TT
27172020-03-26 Tom Tromey <tom@tromey.com>
2718
2719 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
2720 file_names_size, file_full_name, file_file_name>: Use const.
2721 <file_name_at, file_names>: Add const overload.
2722 * dwarf2/line-header.c (line_header::file_file_name)
2723 (line_header::file_full_name): Update.
2724
c90ec28a
TT
27252020-03-26 Tom Tromey <tom@tromey.com>
2726
2727 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
2728 (macro_start_file, consume_improper_spaces)
2729 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
2730 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
2731 (dwarf_decode_macros): Move to macro.c.
2732 * dwarf2/macro.c: New file.
2733 * dwarf2/macro.h: New file.
2734 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
2735
4f44ae6c
TT
27362020-03-26 Tom Tromey <tom@tromey.com>
2737
2738 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
2739 method.
2740 * dwarf2/section.c: New method. From
2741 read_indirect_string_at_offset_from.
2742 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
2743 (read_indirect_string_at_offset_from): Move to section.c.
2744 (read_indirect_string_at_offset): Rewrite.
2745 (read_indirect_line_string_at_offset): Remove.
2746 (read_indirect_string, read_indirect_line_string)
2747 (dwarf_decode_macro_bytes): Update.
2748
a0194fa8
TT
27492020-03-26 Tom Tromey <tom@tromey.com>
2750
2751 * dwarf2/section.h (struct dwarf2_section_info)
2752 <overload_complaint>: Declare.
2753 (dwarf2_section_buffer_overflow_complaint): Don't declare.
2754 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
2755 Rename from dwarf2_section_buffer_overflow_complaint.
2756 * dwarf2/read.c (skip_one_die, partial_die_info::read)
2757 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
2758
3d27bbdb
TT
27592020-03-26 Tom Tromey <tom@tromey.com>
2760
2761 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
2762 Declare.
2763 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
2764 Move from read.c.
2765 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
2766 to section.c.
2767
9eac9650
TT
27682020-03-26 Tom Tromey <tom@tromey.com>
2769
2770 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
2771
bf80d710
TT
27722020-03-26 Tom Tromey <tom@tromey.com>
2773
2774 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
2775 "builder".
2776 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
2777 parameter.
2778 (dwarf_decode_macros): Update.
2779
0314b390
TT
27802020-03-26 Tom Tromey <tom@tromey.com>
2781
2782 * dwarf2/read.c (read_attribute_value): Update.
2783 (read_indirect_string_from_dwz): Move to dwz.c; change into
2784 method.
2785 (dwarf_decode_macro_bytes): Update.
2786 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
2787 * dwarf2/dwz.c: New file.
2788 * Makefile.in (COMMON_SFILES): Add dwz.c.
2789
9fda78b6
TT
27902020-03-26 Tom Tromey <tom@tromey.com>
2791
2792 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
2793 * dwarf2/read.c: Add include.
2794 * dwarf2/index-write.c: Add include.
2795 * dwarf2/index-cache.c: Add include.
2796 * dwarf2/dwz.h: New file.
2797
33aa3c10
TT
27982020-03-25 Tom Tromey <tom@tromey.com>
2799
2800 * compile/compile-object-load.c (get_out_value_type): Mention
2801 correct symbol name in error message.
2802
d503b685
HD
28032020-03-25 Hannes Domani <ssbssa@yahoo.de>
2804
2805 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2806
7b1eff95
TV
28072020-03-25 Tom de Vries <tdevries@suse.de>
2808
2809 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
2810 * symmisc.c (dump_symtab_1): Print user and includes fields.
2811 (maintenance_info_symtabs): Same.
2812
dd895392
AB
28132020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 PR gdb/25534
2816 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
2817 (riscv_regcache_cooked_write): New function.
2818 (riscv_push_dummy_call): Use new function.
2819 (riscv_return_value): Likewise.
2820
5ab2fbf1
SM
28212020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2822
2823 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
2824 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
2825 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
2826 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
2827 * infrun.c (follow_fork): Likewise.
2828 (follow_fork_inferior): Likewise.
2829 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
2830 * linux-nat.h (class linux_nat_target): Likewise.
2831 * remote.c (class remote_target) <follow_fork>: Likewise.
2832 (remote_target::follow_fork): Likewise.
2833 * target-delegates.c: Re-generate.
2834 * target.c (default_follow_fork): Likewise.
2835 (target_follow_fork): Likewise.
2836 * target.h (struct target_ops) <follow_fork>: Likewise.
2837 (target_follow_fork): Likewise.
2838
a64fafb5
TV
28392020-03-24 Tom de Vries <tdevries@suse.de>
2840
2841 * psymtab.c (maintenance_info_psymtabs): Print user field.
2842
fe26d3a3
TT
28432020-03-20 Tom Tromey <tromey@adacore.com>
2844
2845 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
2846 const.
2847 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
2848 const.
2849
c884cc46
SM
28502020-03-20 Simon Marchi <simon.marchi@efficios.com>
2851
2852 * ptrace.m4: Don't check for ptrace declaration.
2853 * config.in: Re-generate.
2854 * configure: Re-generate.
2855 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
2856 not defined.
2857
1ff700c2
KR
28582020-03-20 Kamil Rytarowski <n54@gmx.com>
2859
2860 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
2861 `PTRACE_TYPE_RET'.
2862 * i386-bsd-nat.c (gdb_ptrace): Likewise.
2863 * sparc-nat.c (gdb_ptrace): Likewise.
2864 * x86-bsd-nat.c (gdb_ptrace): Likewise.
2865
f7d4f0b1
TT
28662020-03-20 Tom Tromey <tromey@adacore.com>
2867
2868 * c-exp.y (lex_one_token): Fix assert.
2869
f67210ff
TT
28702020-03-20 Tom Tromey <tromey@adacore.com>
2871
2872 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
2873 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
2874 strncpy call.
2875
1773be9e
TT
28762020-03-20 Tom Tromey <tromey@adacore.com>
2877
2878 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
2879
70304be9
TT
28802020-03-20 Tom Tromey <tromey@adacore.com>
2881
2882 * ada-valprint.c (print_variant_part): Remove parameters; switch
2883 to value-based API.
2884 (print_field_values): Likewise.
2885 (ada_val_print_struct_union): Likewise.
2886 (ada_value_print_1): Update.
2887
9faa006d
KR
28882020-03-20 Kamil Rytarowski <n54@gmx.com>
2889
2890 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
2891 nbsd_nat_target instead of inf_ptrace_target.
2892 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2893 nbsd_nat_target.
2894
4a90f062
KR
28952020-03-20 Kamil Rytarowski <n54@gmx.com>
2896
2897 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
2898 it to the ptrace call.
2899 * (store_registers): Likewise.
2900
29012020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
2902
2903 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
2904 it to the ptrace call.
2905 * (store_registers): Likewise.
2906
2d07da27
LM
29072020-03-19 Luis Machado <luis.machado@linaro.org>
2908
2909 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
2910 valid, fetch vg value from ptrace.
2911
f09db380
KR
29122020-03-19 Kamil Rytarowski <n54@gmx.com>
2913 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
2914 * inf-ptrace.c: Likewise.
2915 * (gdb_ptrace): Add.
2916 * (inf_ptrace_target::resume): Update.
2917 * (inf_ptrace_target::xfer_partial): Likewise.
2918 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
2919 * (inf_ptrace_peek_poke): Update.
2920
fcc7376e
KR
29212020-03-19 Kamil Rytarowski <n54@gmx.com>
2922
2923 * x86-bsd-nat.c (gdb_ptrace): New.
2924 * (x86bsd_dr_set): Add new argument `ptid'.
2925 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
2926 x86bsd_dr_set_addr): Update.
2927
cada5fc9
AB
29282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2929
2930 * remote.c (remote_target::process_stop_reply): Handle events for
2931 all threads differently.
2932
19a2740f
AB
29332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2934
2935 * completer.c (completion_tracker::remove_completion): Define new
2936 function.
2937 * completer.h (completion_tracker::remove_completion): Declare new
2938 function.
2939 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
2940 when adding a C++ function symbol.
2941
724fd9ba
AB
29422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * completer.c (completion_tracker::completion_hash_entry): Define
2945 new class.
2946 (advance_to_filename_complete_word_point): Call
2947 recompute_lowest_common_denominator.
2948 (completion_tracker::completion_tracker): Call discard_completions
2949 to setup the hash table.
2950 (completion_tracker::discard_completions): Allow for being called
2951 from the constructor, pass new equal function, and element deleter
2952 when constructing the hash table. Initialise new class member
2953 variables.
2954 (completion_tracker::maybe_add_completion): Remove use of
2955 m_entries_vec, and store more information into m_entries_hash.
2956 (completion_tracker::recompute_lcd_visitor): New function, most
2957 content taken from...
2958 (completion_tracker::recompute_lowest_common_denominator):
2959 ...here, this now just visits each item in the hash calling the
2960 above visitor.
2961 (completion_tracker::build_completion_result): Remove use of
2962 m_entries_vec, call recompute_lowest_common_denominator.
2963 * completer.h (completion_tracker::have_completions): Remove use
2964 of m_entries_vec.
2965 (completion_tracker::completion_hash_entry): Declare new class.
2966 (completion_tracker::recompute_lowest_common_denominator): Change
2967 function signature.
2968 (completion_tracker::recompute_lcd_visitor): Declare new function.
2969 (completion_tracker::m_entries_vec): Delete.
2970 (completion_tracker::m_entries_hash): Initialize to NULL.
2971 (completion_tracker::m_lowest_common_denominator_valid): New
2972 member variable.
2973 (completion_tracker::m_lowest_common_denominator_max_length): New
2974 member variable.
2975
5a82b8a1
KR
29762020-03-17 Kamil Rytarowski <n54@gmx.com>
2977
2978 * regformats/regdef.h: Put reg in gdb namespace.
2979
fb516a69
KR
29802020-03-17 Kamil Rytarowski <n54@gmx.com>
2981
2982 * i386-bsd-nat.c (gdb_ptrace): New.
2983 * (i386bsd_fetch_inferior_registers,
2984 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2985 * (i386bsd_fetch_inferior_registers,
2986 i386bsd_store_inferior_registers) Use gdb_ptrace.
2987
1c0aa1fb
KR
29882020-03-17 Kamil Rytarowski <n54@gmx.com>
2989
2990 * amd64-bsd-nat.c (gdb_ptrace): New.
2991 * (amd64bsd_fetch_inferior_registers,
2992 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2993 * (amd64bsd_fetch_inferior_registers,
2994 amd64bsd_store_inferior_registers) Use gdb_ptrace.
2995
5ccd2fb7
KR
29962020-03-17 Kamil Rytarowski <n54@gmx.com>
2997
2998 * user-regs.c (user_reg::read): Rename to...
2999 (user_reg::xread): ...this.
3000 * (append_user_reg): Rename argument `read' to `xread'.
3001 * (user_reg_add_builtin): Likewise.
3002 * (user_reg_add): Likewise.
3003 * (value_of_user_reg): Likewise.
3004
2108a63a
KR
30052020-03-17 Kamil Rytarowski <n54@gmx.com>
3006
3007 * sparc-nat.c (gdb_ptrace): New.
3008 * sparc-nat.c (sparc_fetch_inferior_registers)
3009 (sparc_store_inferior_registers) Remove obsolete comment.
3010 * sparc-nat.c (sparc_fetch_inferior_registers)
3011 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
3012 * sparc-nat.c (sparc_fetch_inferior_registers)
3013 (sparc_store_inferior_registers) Use gdb_ptrace.
3014
a225c9a8
KR
30152020-03-17 Kamil Rytarowski <n54@gmx.com>
3016
3017 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
3018 it to the ptrace call.
3019 * sh-nbsd-nat.c (store_registers): Likewise.
3020
98097623
KR
30212020-03-17 Kamil Rytarowski <n54@gmx.com>
3022
3023 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
3024 nbsd_nat_target instead of inf_ptrace_target.
3025 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3026 nbsd_nat_target.
3027
9e38d619
KR
30282020-03-17 Kamil Rytarowski <n54@gmx.com>
3029
3030 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
3031
a2ecbe9f
KR
30322020-03-17 Kamil Rytarowski <n54@gmx.com>
3033
3034 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
3035 <sys/sysctl.h>.
3036 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
3037
58990295
TV
30382020-03-17 Tom de Vries <tdevries@suse.de>
3039
3040 PR gdb/23710
3041 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
3042 fields.
3043 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
3044 fields.
3045 (process_imported_unit_die): Skip import of c++ CUs.
3046
771dd3a8
TT
30472020-03-16 Tom Tromey <tom@tromey.com>
3048
3049 * p-valprint.c (pascal_object_print_value): Initialize
3050 base_value.
3051
817a7585
AK
30522020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
3053 Shahab Vahedi <shahab@synopsys.com>
3054
3055 * Makefile.in: Add arch/arc.o
3056 * configure.tgt: Likewise.
3057 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
3058 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 3059 (arc_read_description): New function to cache target descriptions.
817a7585
AK
3060 * arc-tdep.h (arc_read_description): Add proto type.
3061 * arch/arc.c: New file.
3062 * arch/arc.h: Likewise.
3063 * features/Makefile: Replace old target descriptions with new.
3064 * features/arc-arcompact.c: Remove.
3065 * features/arc-arcompact.xml: Likewise.
3066 * features/arc-v2.c: Likewise
3067 * features/arc-v2.xml: Likewise
3068 * features/arc/aux-arcompact.xml: New file.
3069 * features/arc/aux-v2.xml: Likewise.
3070 * features/arc/core-arcompact.xml: Likewise.
3071 * features/arc/core-v2.xml: Likewise.
3072 * features/arc/aux-arcompact.c: Generate.
3073 * features/arc/aux-v2.c: Likewise.
3074 * features/arc/core-arcompact.c: Likewise.
3075 * features/arc/core-v2.c: Likewise.
3076 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
3077
67430cd0
TT
30782020-03-16 Tom Tromey <tromey@adacore.com>
3079
3080 PR gdb/25663:
3081 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
3082 putting value into bcache.
3083
30efb6c7
SM
30842020-03-16 Simon Marchi <simon.marchi@efficios.com>
3085
3086 PR gdb/21500
3087 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
3088 to...
3089 (amd64_windows_init_abi_common): ... this. Don't set size of
3090 long type.
3091 (amd64_windows_init_abi): New function.
3092 (amd64_cygwin_init_abi): New function.
3093 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
3094 the Cygwin OS ABI.
3095 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
3096 comment.
3097
8db52437
SM
30982020-03-16 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
3101 * windows-tdep.c (CYGWIN_DLL_NAME): New.
3102 (pe_import_directory_entry): New struct type.
3103 (is_linked_with_cygwin_dll): New function.
3104 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
3105 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
3106 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
3107
5982a56a
SM
31082020-03-16 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
3111 i386_cygwin_core_osabi_sniffer.
3112
7a1998df
SM
31132020-03-16 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * i386-cygwin-tdep.c: Rename to...
3116 * i386-windows-tdep.c: ... this.
3117 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
3118 i386-windows-tdep.c.
3119 * configure.tgt: Likewise.
3120
053205cc
SM
31212020-03-16 Simon Marchi <simon.marchi@efficios.com>
3122
3123 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
3124 * osabi.c (gdb_osabi_names): Add "Windows".
3125 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
3126 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
3127 (i386_cygwin_core_osabi_sniffer): New function, extracted from
3128 i386_cygwin_osabi_sniffer.
3129 (_initialize_i386_cygwin_tdep): Register OS ABI
3130 GDB_OSABI_WINDOWS for i386.
3131 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
3132 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
3133 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
3134 for x86-64.
3135 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
3136 when the target matches '*-*-mingw*'.
3137
fe4b2ee6
SM
31382020-03-16 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * defs.h (enum gdb_osabi): Move to...
3141 * osabi.h (enum gdb_osabi): ... here.
3142 * gdbarch.sh: Include osabi.h in gdbarch.h.
3143 * gdbarch.h: Re-generate.
3144
cb9b645d
SM
31452020-03-16 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
3148 function.
3149 (_initialize_amd64_windows_tdep): Register osabi sniffer.
3150
3293bbaf
TT
31512020-03-14 Tom Tromey <tom@tromey.com>
3152
3153 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
3154 for C++.
3155 (c_type_print_modifier): Likewise. Add "language" parameter.
3156 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
3157 (c_type_print_base_1): Update.
3158 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
3159 constants.
3160 * type-stack.c (type_stack::insert): Handle tp_atomic and
3161 tp_restrict.
3162 (type_stack::follow_type_instance_flags): Likewise.
3163 (type_stack::follow_types): Likewise. Merge type-following code.
3164 * c-exp.y (RESTRICT, ATOMIC): New tokens.
3165 (space_identifier, cv_with_space_id)
3166 (const_or_volatile_or_space_identifier_noopt)
3167 (const_or_volatile_or_space_identifier): Remove.
3168 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
3169 rules.
3170 (ptr_operator, typebase): Update.
3171 (enum token_flag) <FLAG_C>: New constant.
3172 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
3173 "_Atomic".
3174 (lex_one_token): Handle FLAG_C.
3175
154151a6
KR
31762020-03-14 Kamil Rytarowski <n54@gmx.com>
3177
3178 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
3179 it to the ptrace call.
3180 * m68k-bsd-nat.c (store_registers): Likewise.
3181
bc107784
KR
31822020-03-14 Kamil Rytarowski <n54@gmx.com>
3183
3184 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
3185 gdb_byte *.
3186 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3187 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
3188 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
3189
01a80117
KR
31902020-03-14 Kamil Rytarowski <n54@gmx.com>
3191
3192 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
3193 nbsd_nat_target instead of inf_ptrace_target.
3194 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
3195 nbsd_nat_target.
3196
f90280ca
KR
31972020-03-14 Kamil Rytarowski <n54@gmx.com>
3198
3199 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
3200 register_t.
3201
6def66f1
KR
32022020-03-14 Kamil Rytarowski <n54@gmx.com>
3203
3204 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
3205 it to the ptrace call.
3206 * alpha-bsd-nat.c (store_registers): Likewise.
3207
66eaca97
KR
32082020-03-14 Kamil Rytarowski <n54@gmx.com>
3209
3210 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
3211 includes.
3212 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
3213 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
3214 fill_fpregset): Likewise.
3215
4fed520b
KR
32162020-03-14 Kamil Rytarowski <n54@gmx.com>
3217
3218 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
3219 nbsd_nat_target instead of inf_ptrace_target.
3220 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
3221 nbsd_nat_target.
3222
2190cf06
KR
32232020-03-14 Kamil Rytarowski <n54@gmx.com>
3224
3225 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
3226 register_t.
3227
75c56d3d
KR
32282020-03-14 Kamil Rytarowski <n54@gmx.com>
3229
3230 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
3231 it to the ptrace call.
3232 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
3233 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
3234 * arm-nbsd-nat.c (store_register): Likewise.
3235 * arm-nbsd-nat.c (store_regs): Likewise.
3236 * arm-nbsd-nat.c (store_fp_register): Likewise.
3237 * arm-nbsd-nat.c (store_fp_regs): Likewise.
3238
6018d381
KR
32392020-03-14 Kamil Rytarowski <n54@gmx.com>
3240
3241 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
3242 nbsd_nat_target instead of inf_ptrace_target.
3243 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3244 nbsd_nat_target.
3245
013f99f0
KR
32462020-03-14 Kamil Rytarowski <n54@gmx.com>
3247
3248 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
3249 it to the ptrace call.
3250 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
3251
12753073
KR
32522020-03-14 Kamil Rytarowski <n54@gmx.com>
3253
6227b330
KR
3254 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
3255 it to the ptrace call.
3256 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
3257
32582020-03-14 Kamil Rytarowski <n54@gmx.com>
3259
3260 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
3261 gdb_byte *.
12753073
KR
3262 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
3263
d5be5fa4
KR
32642020-03-14 Kamil Rytarowski <n54@gmx.com>
3265
3266 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
3267 instead of inf_ptrace_target.
3268 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
3269 nbsd_nat_target.
3270
8110f842
KR
32712020-03-14 Kamil Rytarowski <n54@gmx.com>
3272
3273 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3274 register_t.
3275
52feded7
KR
32762020-03-14 Kamil Rytarowski <n54@gmx.com>
3277
3278 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3279 register_t.
3280
25567eee
KR
32812020-03-14 Kamil Rytarowski <n54@gmx.com>
3282
3283 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
3284 register_t.
3285
426a9c18
TT
32862020-03-13 Tom Tromey <tom@tromey.com>
3287
3288 * value.h (val_print): Don't declare.
3289 * valprint.h (val_print_array_elements)
3290 (val_print_scalar_formatted, generic_val_print): Don't declare.
3291 * valprint.c (generic_val_print_array): Take a struct value.
3292 (generic_val_print_ptr, generic_val_print_memberptr)
3293 (generic_val_print_bool, generic_val_print_int)
3294 (generic_val_print_char, generic_val_print_complex)
3295 (generic_val_print): Remove.
3296 (generic_value_print): Update.
3297 (do_val_print): Remove unused parameters. Don't call
3298 la_val_print.
3299 (val_print): Remove.
3300 (common_val_print): Update. Don't call value_check_printable.
3301 (val_print_scalar_formatted, val_print_array_elements): Remove.
3302 * rust-lang.c (rust_val_print): Remove.
3303 (rust_language_defn): Update.
3304 * p-valprint.c (pascal_val_print): Remove.
3305 (pascal_value_print_inner): Update.
3306 (pascal_object_print_val_fields, pascal_object_print_val):
3307 Remove.
3308 (pascal_object_print_static_field): Update.
3309 * p-lang.h (pascal_val_print): Don't declare.
3310 * p-lang.c (pascal_language_defn): Update.
3311 * opencl-lang.c (opencl_language_defn): Update.
3312 * objc-lang.c (objc_language_defn): Update.
3313 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
3314 * m2-lang.h (m2_val_print): Don't declare.
3315 * m2-lang.c (m2_language_defn): Update.
3316 * language.h (struct language_defn) <la_val_print>: Remove.
3317 * language.c (unk_lang_value_print_inner): Rename. Change
3318 argument types.
3319 (unknown_language_defn, auto_language_defn): Update.
3320 * go-valprint.c (go_val_print): Remove.
3321 * go-lang.h (go_val_print): Don't declare.
3322 * go-lang.c (go_language_defn): Update.
3323 * f-valprint.c (f_val_print): Remove.
3324 * f-lang.h (f_value_print): Don't declare.
3325 * f-lang.c (f_language_defn): Update.
3326 * d-valprint.c (d_val_print): Remove.
3327 * d-lang.h (d_value_print): Don't declare.
3328 * d-lang.c (d_language_defn): Update.
3329 * cp-valprint.c (cp_print_value_fields)
3330 (cp_print_value_fields_rtti, cp_print_value): Remove.
3331 (cp_print_static_field): Update.
3332 * c-valprint.c (c_val_print_array, c_val_print_ptr)
3333 (c_val_print_struct, c_val_print_union, c_val_print_int)
3334 (c_val_print_memberptr, c_val_print): Remove.
3335 * c-lang.h (c_val_print_array, cp_print_value_fields)
3336 (cp_print_value_fields_rtti): Don't declare.
3337 * c-lang.c (c_language_defn, cplus_language_defn)
3338 (asm_language_defn, minimal_language_defn): Update.
3339 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
3340 (ada_val_print_enum): Take a struct value.
3341 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
3342 (ada_val_print): Remove.
3343 (ada_value_print_1): Update.
3344 (printable_val_type): Remove.
3345 * ada-lang.h (ada_val_print): Don't declare.
3346 * ada-lang.c (ada_language_defn): Update.
3347
42331a1e
TT
33482020-03-13 Tom Tromey <tom@tromey.com>
3349
3350 * valprint.c (do_val_print): Update.
3351 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
3352 a struct value.
3353 (value_to_value_object_no_release): Declare.
3354 * python/py-value.c (value_to_value_object_no_release): New
3355 function.
3356 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
3357 struct value.
3358 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
3359 function.
3360 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
3361 a struct value.
3362 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
3363 Declare.
3364 (gdbscm_apply_val_pretty_printer): Take a struct value.
3365 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
3366 value.
3367 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
3368 value.
3369 * extension-priv.h (struct extension_language_ops)
3370 <apply_val_pretty_printer>: Take a struct value.
3371 * cp-valprint.c (cp_print_value): Create a struct value.
3372 (cp_print_value): Update.
3373
3a916a97
TT
33742020-03-13 Tom Tromey <tom@tromey.com>
3375
3376 * ada-valprint.c (print_field_values): Call common_val_print.
3377
b59eac37
TT
33782020-03-13 Tom Tromey <tom@tromey.com>
3379
3380 * ada-valprint.c (val_print_packed_array_elements): Remove
3381 bitoffset and val parameters. Call common_val_print.
3382 (ada_val_print_string): Remove offset, address, and original_value
3383 parameters.
3384 (ada_val_print_array): Update.
3385 (ada_value_print_array): New function.
3386 (ada_value_print_1): Call it.
3387
03371129
TT
33882020-03-13 Tom Tromey <tom@tromey.com>
3389
3390 * ada-valprint.c (ada_value_print): Use common_val_print.
3391
2e088f8b
TT
33922020-03-13 Tom Tromey <tom@tromey.com>
3393
3394 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
3395
39ef85a8
TT
33962020-03-13 Tom Tromey <tom@tromey.com>
3397
3398 * ada-valprint.c (ada_value_print_num): New function.
3399 (ada_value_print_1): Use it.
3400
b9fa6e07
TT
34012020-03-13 Tom Tromey <tom@tromey.com>
3402
3403 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
3404
416595d6
TT
34052020-03-13 Tom Tromey <tom@tromey.com>
3406
3407 * ada-valprint.c (ada_value_print_ptr): New function.
3408 (ada_value_print_1): Use it.
3409
5b5e15ec
TT
34102020-03-13 Tom Tromey <tom@tromey.com>
3411
3412 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
3413 call common_val_print.
3414 (ada_val_print_1): Update.
3415 (ada_value_print_1): New function.
3416 (ada_value_print_inner): Rewrite.
3417
fbf54e75
TT
34182020-03-13 Tom Tromey <tom@tromey.com>
3419
3420 * cp-valprint.c (cp_print_value_fields): Update.
3421 (cp_print_value): New function.
3422
64b653ca
TT
34232020-03-13 Tom Tromey <tom@tromey.com>
3424
3425 * m2-valprint.c (m2_value_print_inner): Use
3426 cp_print_value_fields.
3427 * cp-valprint.c (cp_print_value_fields): New function.
3428 * c-valprint.c (c_value_print_struct): New function.
3429 (c_value_print_inner): Use c_value_print_struct.
3430 * c-lang.h (cp_print_value_fields): Declare.
3431
6999f067
TT
34322020-03-13 Tom Tromey <tom@tromey.com>
3433
3434 * c-valprint.c (c_value_print_array): New function.
3435 (c_value_print_inner): Use it.
3436
ce80b8bd
TT
34372020-03-13 Tom Tromey <tom@tromey.com>
3438
3439 * c-valprint.c (c_value_print_memberptr): New function.
3440 (c_value_print_inner): Use it.
3441
2faac269
TT
34422020-03-13 Tom Tromey <tom@tromey.com>
3443
3444 * c-valprint.c (c_value_print_int): New function.
3445 (c_value_print_inner): Use it.
3446
da3e2c29
TT
34472020-03-13 Tom Tromey <tom@tromey.com>
3448
3449 * c-valprint.c (c_value_print_ptr): New function.
3450 (c_value_print_inner): Use it.
3451
50836231
TT
34522020-03-13 Tom Tromey <tom@tromey.com>
3453
3454 * c-valprint.c (c_value_print_inner): Rewrite.
3455
4f412b6e
TT
34562020-03-13 Tom Tromey <tom@tromey.com>
3457
3458 * valprint.c (generic_value_print_complex): New function.
3459 (generic_value_print): Use it.
3460
f5354008
TT
34612020-03-13 Tom Tromey <tom@tromey.com>
3462
3463 * valprint.c (generic_val_print_float): Don't call
3464 val_print_scalar_formatted.
3465 (generic_val_print, generic_value_print): Update.
3466
3eec3b05
TT
34672020-03-13 Tom Tromey <tom@tromey.com>
3468
3469 * valprint.c (generic_value_print_char): New function
3470 (generic_value_print): Use it.
3471
fdddfccb
TT
34722020-03-13 Tom Tromey <tom@tromey.com>
3473
3474 * valprint.c (generic_value_print_int): New function.
3475 (generic_value_print): Use it.
3476
6dde7521
TT
34772020-03-13 Tom Tromey <tom@tromey.com>
3478
3479 * valprint.c (generic_value_print_bool): New function.
3480 (generic_value_print): Use it.
3481
4112d2e6
TT
34822020-03-13 Tom Tromey <tom@tromey.com>
3483
3484 * valprint.c (generic_val_print_func): Simplify.
3485 (generic_val_print, generic_value_print): Update.
3486
65786af6
TT
34872020-03-13 Tom Tromey <tom@tromey.com>
3488
3489 * valprint.c (generic_val_print_flags): Remove.
3490 (generic_val_print, generic_value_print): Update.
3491 (val_print_type_code_flags): Add original_value parameter.
3492
40f3ce18
TT
34932020-03-13 Tom Tromey <tom@tromey.com>
3494
3495 * valprint.c (generic_val_print): Update.
3496 (generic_value_print): Update.
3497 * valprint.c (generic_val_print_enum): Don't call
3498 val_print_scalar_formatted.
3499
2a5b130b
TT
35002020-03-13 Tom Tromey <tom@tromey.com>
3501
3502 * valprint.c (generic_value_print): Call generic_value_print_ptr.
3503 * valprint.c (generic_value_print_ptr): New function.
3504
abc66ce9
TT
35052020-03-13 Tom Tromey <tom@tromey.com>
3506
3507 * valprint.c (generic_value_print): Rewrite.
3508
07a32858
TT
35092020-03-13 Tom Tromey <tom@tromey.com>
3510
3511 * p-valprint.c (pascal_object_print_value_fields)
3512 (pascal_object_print_value): New functions.
3513
64d64d3a
TT
35142020-03-13 Tom Tromey <tom@tromey.com>
3515
3516 * p-valprint.c (pascal_value_print_inner): Rewrite.
3517
6a95a1f5
TT
35182020-03-13 Tom Tromey <tom@tromey.com>
3519
3520 * f-valprint.c (f_value_print_innner): Rewrite.
3521
59fcdac6
TT
35222020-03-13 Tom Tromey <tom@tromey.com>
3523
3524 * m2-valprint.c (m2_print_unbounded_array): New overload.
3525 (m2_print_unbounded_array): Update.
3526 (m2_print_array_contents): Take a struct value.
3527 (m2_value_print_inner): Rewrite.
3528
d133c3e1
TT
35292020-03-13 Tom Tromey <tom@tromey.com>
3530
3531 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
3532 (d_value_print_inner): New function.
3533 * d-lang.h (d_value_print_inner): Declare.
3534 * d-lang.c (d_language_defn): Use d_value_print_inner.
3535
23b0f06b
TT
35362020-03-13 Tom Tromey <tom@tromey.com>
3537
3538 * go-valprint.c (go_value_print_inner): New function.
3539 * go-lang.h (go_value_print_inner): Declare.
3540 * go-lang.c (go_language_defn): Use go_value_print_inner.
3541
5f56f7cb
TT
35422020-03-13 Tom Tromey <tom@tromey.com>
3543
3544 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
3545 API.
3546 (rust_val_print): Rewrite.
3547 (rust_value_print_inner): New function, from rust_val_print.
3548 (rust_language_defn): Use rust_value_print_inner.
3549
26792ee0
TT
35502020-03-13 Tom Tromey <tom@tromey.com>
3551
3552 * ada-valprint.c (ada_value_print_inner): New function.
3553 * ada-lang.h (ada_value_print_inner): Declare.
3554 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
3555
24051bbe
TT
35562020-03-13 Tom Tromey <tom@tromey.com>
3557
3558 * f-valprint.c (f_value_print_innner): New function.
3559 * f-lang.h (f_value_print_innner): Declare.
3560 * f-lang.c (f_language_defn): Use f_value_print_innner.
3561
c0941be6
TT
35622020-03-13 Tom Tromey <tom@tromey.com>
3563
3564 * p-valprint.c (pascal_value_print_inner): New function.
3565 * p-lang.h (pascal_value_print_inner): Declare.
3566 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
3567
62c4663d
TT
35682020-03-13 Tom Tromey <tom@tromey.com>
3569
3570 * m2-valprint.c (m2_value_print_inner): New function.
3571 * m2-lang.h (m2_value_print_inner): Declare.
3572 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
3573
62182190
TT
35742020-03-13 Tom Tromey <tom@tromey.com>
3575
3576 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
3577 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
3578 * c-valprint.c (c_value_print_inner): New function.
3579 * c-lang.h (c_value_print_inner): Declare.
3580 * c-lang.c (c_language_defn, cplus_language_defn)
3581 (asm_language_defn, minimal_language_defn): Use
3582 c_value_print_inner.
3583
1e592a8a
TT
35842020-03-13 Tom Tromey <tom@tromey.com>
3585
3586 * p-valprint.c (pascal_object_print_value_fields): Now static.
3587 * p-lang.h (pascal_object_print_value_fields): Don't declare.
3588
7fe471e9
TT
35892020-03-13 Tom Tromey <tom@tromey.com>
3590
3591 * c-valprint.c (c_val_print_array): Simplify.
3592
d121c6ce
TT
35932020-03-13 Tom Tromey <tom@tromey.com>
3594
3595 * valprint.c (value_print_array_elements): New function.
3596 * valprint.h (value_print_array_elements): Declare.
3597
4dba70ee
TT
35982020-03-13 Tom Tromey <tom@tromey.com>
3599
3600 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
3601 * mips-tdep.c (mips_print_register): Use
3602 value_print_scalar_formatted.
3603
4f9ae810
TT
36042020-03-13 Tom Tromey <tom@tromey.com>
3605
3606 * valprint.h (value_print_scalar_formatted): Declare.
3607 * valprint.c (value_print_scalar_formatted): New function.
3608
156bfec9
TT
36092020-03-13 Tom Tromey <tom@tromey.com>
3610
3611 * valprint.h (generic_value_print): Declare.
3612 * valprint.c (generic_value_print): New function.
3613
2b4e573d
TT
36142020-03-13 Tom Tromey <tom@tromey.com>
3615
3616 * valprint.c (do_val_print): Call la_value_print_inner, if
3617 available.
3618 * rust-lang.c (rust_language_defn): Update.
3619 * p-lang.c (pascal_language_defn): Update.
3620 * opencl-lang.c (opencl_language_defn): Update.
3621 * objc-lang.c (objc_language_defn): Update.
3622 * m2-lang.c (m2_language_defn): Update.
3623 * language.h (struct language_defn) <la_value_print_inner>: New
3624 member.
3625 * language.c (unknown_language_defn, auto_language_defn): Update.
3626 * go-lang.c (go_language_defn): Update.
3627 * f-lang.c (f_language_defn): Update.
3628 * d-lang.c (d_language_defn): Update.
3629 * c-lang.c (c_language_defn, cplus_language_defn)
3630 (asm_language_defn, minimal_language_defn): Update.
3631 * ada-lang.c (ada_language_defn): Update.
3632
a1f6a07c
TT
36332020-03-13 Tom Tromey <tom@tromey.com>
3634
3635 * c-valprint.c (c_value_print): Use common_val_print.
3636
410cf315
TT
36372020-03-13 Tom Tromey <tom@tromey.com>
3638
3639 * cp-valprint.c (cp_print_static_field): Use common_val_print.
3640
72a45c93
TT
36412020-03-13 Tom Tromey <tom@tromey.com>
3642
3643 * f-valprint.c (f77_print_array_1, f_val_print): Use
3644 common_val_print.
3645
040f66bd
TT
36462020-03-13 Tom Tromey <tom@tromey.com>
3647
3648 * riscv-tdep.c (riscv_print_one_register_info): Use
3649 common_val_print.
3650
a6e05a6c
TT
36512020-03-13 Tom Tromey <tom@tromey.com>
3652
3653 * mi/mi-main.c (output_register): Use common_val_print.
3654
3444c526
TT
36552020-03-13 Tom Tromey <tom@tromey.com>
3656
3657 * infcmd.c (default_print_one_register_info): Use
3658 common_val_print.
3659
c2a44efe
TT
36602020-03-13 Tom Tromey <tom@tromey.com>
3661
3662 * valprint.h (common_val_print_checked): Declare.
3663 * valprint.c (common_val_print_checked): New function.
3664 * stack.c (print_frame_arg): Use common_val_print_checked.
3665
b0c26e99
TT
36662020-03-13 Tom Tromey <tom@tromey.com>
3667
3668 * valprint.c (do_val_print): New function, from val_print.
3669 (val_print): Use do_val_print.
3670 (common_val_print): Use do_val_print.
3671
ce3acbe9
TT
36722020-03-13 Tom Tromey <tom@tromey.com>
3673
3674 * valprint.c (value_print): Use scoped_value_mark.
3675
96c7f873
TV
36762020-03-13 Tom de Vries <tdevries@suse.de>
3677
3678 PR symtab/25646
3679 * psymtab.c (partial_symtab::partial_symtab): Don't set
3680 globals_offset and statics_offset. Push element onto
3681 current_global_psymbols and current_static_psymbols stacks.
3682 (concat): New function.
3683 (end_psymtab_common): Set globals_offset and statics_offset. Pop
3684 element from current_global_psymbols and current_static_psymbols
3685 stacks. Concat popped elements to global_psymbols and
3686 static_symbols.
3687 (add_psymbol_to_list): Use current_global_psymbols and
3688 current_static_psymbols stacks.
3689 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
3690 current_static_psymbols fields.
3691
6ba0a321
CB
36922020-03-12 Christian Biesinger <cbiesinger@google.com>
3693
3694 * corelow.c (sniff_core_bfd): Remove.
3695 (class core_target) <m_core_vec>: Remove.
3696 (core_target::core_target): Update.
3697 (core_file_fns): Remove.
3698 (deprecated_add_core_fns): Remove.
3699 (default_core_sniffer): Remove.
3700 (sniff_core_bfd): Remove.
3701 (default_check_format): Remove.
3702 (gdb_check_format): Remove.
3703 (core_target_open): Update.
3704 (core_target::get_core_register_section): Update.
3705 (get_core_registers_cb): Update.
3706 (core_target::fetch_registers): Update.
3707 * gdbcore.h (struct core_fns): Remove.
3708 (deprecated_add_core_fns): Remove.
3709 (default_core_sniffer): Remove.
3710 (default_check_format): Remove.
3711
227031b2
TT
37122020-03-12 Tom Tromey <tom@tromey.com>
3713
3714 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
3715 CORE_ADDR.
3716 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
3717
53807e9f
TT
37182020-03-12 Tom Tromey <tom@tromey.com>
3719
3720 * remote.c (remote_target::download_tracepoint)
3721 (remote_target::enable_tracepoint)
3722 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
3723 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
3724 sprintf_vma.
3725
64f25102
TT
37262020-03-12 Tom Tromey <tom@tromey.com>
3727
3728 * symfile-mem.c: Update CORE_ADDR size assert.
3729
272cd5a3
SM
37302020-03-12 Simon Marchi <simon.marchi@efficios.com>
3731
3732 * selftest.m4: Move to gdbsupport/.
3733 * acinclude.m4: Update path to selftest.m4.
3734
74cd3f9d
SM
37352020-03-12 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
3738 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
3739 gdbarch-selfselftests.c and selftest-arch.c.
3740 (SUBDIR_UNITTESTS_OBS): Rename to...
3741 (SELFTESTS_OBS): ... this.
3742 (COMMON_SFILES): Remove disasm-selftests.c and
3743 gdbarch-selftests.c.
3744 * configure.ac: Don't add selftest-arch.{c,o} to
3745 CONFIG_{SRCS,OBS}.
3746 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
3747 preprocessor conditions.
3748
db6878ac
SM
37492020-03-12 Simon Marchi <simon.marchi@efficios.com>
3750
3751 * configure.ac: Don't source bfd/development.sh.
3752 * selftest.m4: Modify comment.
3753 * configure: Re-generate.
3754
4d696a5c
SM
37552020-03-12 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
3758 not "true" or "false".
3759 * configure: Re-generate.
3760
8dd8e1c7
CB
37612020-03-12 Christian Biesinger <cbiesinger@google.com>
3762
3763 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
3764 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
3765 renamed to arm_nbsd_supply_gregset.
3766 (fetch_register): Update to call arm_nbsd_supply_gregset.
3767 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
3768 (arm_netbsd_nat_target::fetch_registers): Update.
3769 (fetch_elfcore_registers): Removed.
3770 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
3771 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
3772 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
3773 not require NetBSD system headers.
3774 (arm_nbsd_regset): New struct.
3775 (arm_nbsd_iterate_over_regset_sections): New function.
3776 (arm_netbsd_init_abi_common): Updated to call
3777 set_gdbarch_iterate_over_regset_sections.
3778 * arm-nbsd-tdep.h: New file.
3779
dd69bf7a
KB
37802020-03-11 Kevin Buettner <kevinb@redhat.com>
3781
3782 * symtab.c (find_pc_sect_line): Add check which prevents infinite
3783 recursion.
3784
a0761e34
SM
37852020-03-11 Simon Marchi <simon.marchi@efficios.com>
3786
3787 * configure: Re-generate.
3788
e7a82140
TT
37892020-03-11 Tom Tromey <tromey@adacore.com>
3790
3791 * ada-typeprint.c (print_choices): Fix comment.
3792
dcc050c8
AB
37932020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
3796 previous item in the list, when the list has no items.
3797
1c33af77
TV
37982020-03-11 Tom de Vries <tdevries@suse.de>
3799
3800 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
3801 PROP_LOCLIST handling code.
3802
8c95582d
AB
38032020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * buildsym-legacy.c (record_line): Pass extra parameter to
3806 record_line.
3807 * buildsym.c (buildsym_compunit::record_line): Take an extra
3808 parameter, reduce duplication in the line table, and record the
3809 is_stmt flag in the line table.
3810 * buildsym.h (buildsym_compunit::record_line): Add extra
3811 parameter.
3812 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
3813 non-statement lines.
3814 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
3815 this to the symtab builder.
3816 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
3817 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
3818 through to dwarf_record_line_1.
3819 * infrun.c (process_event_stop_test): When stepping, don't stop at
3820 a non-statement instruction, and only refresh the step info when
3821 we land in the middle of a line's range. Also add an extra
3822 comment.
3823 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
3824 field.
3825 * record-btrace.c (btrace_find_line_range): Only record lines
3826 marked as is-statement.
3827 * stack.c (frame_show_address): Show the frame address if we are
3828 in a non-statement sal.
3829 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
3830 (maintenance_print_one_line_table): Print a header for the is_stmt
3831 column, and include is_stmt information in the output.
3832 * symtab.c (find_pc_sect_line): Find lines marked as statements in
3833 preference to non-statements.
3834 (find_pcs_for_symtab_line): Prefer is-statement entries.
3835 (find_line_common): Likewise.
3836 * symtab.h (struct linetable_entry): Add is_stmt field.
3837 (struct symtab_and_line): Likewise.
3838 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
3839 arranging the line table.
3840
e4003a34
TV
38412020-03-07 Tom de Vries <tdevries@suse.de>
3842
3843 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
3844 DIE.
3845
e8932576
TT
38462020-03-07 Tom Tromey <tom@tromey.com>
3847
3848 * valops.c (value_literal_complex): Remove obsolete comment.
3849 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
3850 comment.
3851
29734269
SM
38522020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3853
3854 * infrun.h: Forward-declare thread_info.
3855 (set_step_info): Add thread_info parameter, add doc.
3856 * infrun.c (set_step_info): Add thread_info parameter, move doc
3857 to header.
3858 * infrun.c (process_event_stop_test): Pass thread to
3859 set_step_info call.
3860 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
3861 set_step_info.
3862 (prepare_one_step): Add thread_info parameter, pass it to
3863 set_step_frame and prepare_one_step (recursive) call.
3864 (step_1): Pass thread to prepare_one_step call.
3865 (step_command_fsm::should_stop): Pass thread to
3866 prepare_one_step.
3867 (until_next_fsm): Pass thread to set_step_frame call.
3868 (finish_command): Pass thread to set_step_info call.
3869
b7d64b29
HD
38702020-03-06 Hannes Domani <ssbssa@yahoo.de>
3871
3872 * windows-tdep.c (windows_solib_create_inferior_hook):
3873 Check if inferior is running.
3874
09f2921c
TV
38752020-03-06 Tom de Vries <tdevries@suse.de>
3876
3877 * NEWS: Fix "the the".
3878 * ctfread.c: Same.
3879
fd760e79
TV
38802020-03-06 Tom de Vries <tdevries@suse.de>
3881
3882 * psymtab.c (psymtab_to_symtab): Don't print "done.".
3883
20ea4a60
AB
38842020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3885
3886 * .dir-locals.el: Add a comment referencing the other copies of
3887 this file.
3888
0afbabf0
JB
38892020-03-05 John Baldwin <jhb@FreeBSD.org>
3890
3891 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
3892 psargs.
3893
842806cb
TBA
38942020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3895
3896 * .gitattributes: New file.
3897
be1e3d3e
TT
38982020-03-04 Tom Tromey <tom@tromey.com>
3899
3900 * symmisc.c (print_symbol_bcache_statistics)
3901 (print_objfile_statistics): Update.
3902 * symfile.c (allocate_symtab): Use intern.
3903 * psymtab.c (partial_symtab::partial_symtab): Use intern.
3904 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3905 macro_cache>: Remove.
3906 <string_cache>: New member.
3907 (struct objfile) <intern>: New methods.
3908 * elfread.c (elf_symtab_read): Use intern.
3909 * dwarf2/read.c (fixup_go_packaging): Intern package name.
3910 (dwarf2_compute_name, dwarf2_physname)
3911 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
3912 names.
3913 (guess_partial_die_structure_name): Update.
3914 (partial_die_info::fixup): Intern name.
3915 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
3916 name.
3917 (dwarf2_name): Intern name. Update.
3918 * buildsym.c (buildsym_compunit::get_macro_table): Use
3919 string_cache.
3920
4e7625fd
TT
39212020-03-04 Tom Tromey <tom@tromey.com>
3922
3923 * jit.c (bfd_open_from_target_memory): Make "target" const.
3924 * corefile.c (gnutarget): Now const.
3925 * gdbcore.h (gnutarget): Now const.
3926
46f9f931
HD
39272020-03-04 Hannes Domani <ssbssa@yahoo.de>
3928
3929 * NEWS: Mention support for WOW64 processes.
3930 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
3931 (amd64_windows_segment_register_p): Remove static.
3932 (_initialize_amd64_windows_nat): Update.
3933 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
3934 * i386-windows-nat.c (context_offset): Update.
3935 (i386_mappings): Rename and remove static.
3936 (i386_windows_segment_register_p): Remove static.
3937 (_initialize_i386_windows_nat): Update.
3938 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
3939 (STATUS_WX86_SINGLE_STEP): New macro.
3940 (EnumProcessModulesEx): New macro.
3941 (Wow64SuspendThread): New macro.
3942 (Wow64GetThreadContext): New macro.
3943 (Wow64SetThreadContext): New macro.
3944 (Wow64GetThreadSelectorEntry): New macro.
3945 (windows_set_context_register_offsets): Add static.
3946 (windows_set_segment_register_p): Likewise.
3947 (windows_add_thread): Adapt for WOW64 processes.
3948 (windows_fetch_one_register): Likewise.
3949 (windows_nat_target::fetch_registers): Likewise.
3950 (windows_store_one_register): Likewise.
3951 (display_selector): Likewise.
3952 (display_selectors): Likewise.
3953 (handle_exception): Likewise.
3954 (windows_continue): Likewise.
3955 (windows_nat_target::resume): Likewise.
3956 (windows_add_all_dlls): Likewise.
3957 (do_initial_windows_stuff): Likewise.
3958 (windows_nat_target::attach): Likewise.
3959 (windows_get_exec_module_filename): Likewise.
3960 (windows_nat_target::create_inferior): Likewise.
3961 (windows_xfer_siginfo): Likewise.
3962 (_initialize_loadable): Initialize Wow64SuspendThread,
3963 Wow64GetThreadContext, Wow64SetThreadContext,
3964 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
3965 * windows-nat.h (windows_set_context_register_offsets):
3966 Remove declaration.
3967 (windows_set_segment_register_p): Likewise.
3968 (i386_windows_segment_register_p): Add declaration.
3969 (amd64_windows_segment_register_p): Likewise.
3970
440cf44e
LM
39712020-03-04 Luis Machado <luis.machado@linaro.org>
3972
3973 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
3974 in "info registers" for AArch64/ARM.
3975
3976 The change caused "info registers" to not print GPR's.
3977
3978 gdb/ChangeLog:
3979
3980 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
3981
3982 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3983 when reg->group is empty and reggroup is not.
3984
1009d92f
TT
39852020-03-03 Tom Tromey <tromey@adacore.com>
3986
3987 * dwarf2/frame.c (struct dwarf2_frame_cache)
3988 <checked_tailcall_bottom, entry_cfa_sp_offset,
3989 entry_cfa_sp_offset_p>: Remove members.
3990 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
3991 (dwarf2_frame_prev_register): Don't call
3992 dwarf2_tailcall_sniffer_first.
3993 (dwarf2_append_unwinders): Don't append tailcall unwinder.
3994 * frame-unwind.c (add_unwinder): New fuction.
3995 (frame_unwind_init): Use it. Add tailcall unwinder.
3996
5e5d66b6
AB
39972020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
3998 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3999
4000 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
4001 value should be printed as true.
4002
584cf46d
HD
40032020-03-03 Hannes Domani <ssbssa@yahoo.de>
4004
4005 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
4006 (windows_init_abi): Set and use windows_so_ops.
4007
7b973adc
SDJ
40082020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
4009
4010 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
4011 when verifying if dealing with a convenience variable.
4012
bb7b70ab
LM
40132020-03-03 Luis Machado <luis.machado@linaro.org>
4014
4015 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
4016
9822cb57
SM
40172020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4018
4019 * infrun.c (gdbarch_supports_displaced_stepping): New.
4020 (use_displaced_stepping): Break up conditions in smaller pieces.
4021 Use gdbarch_supports_displaced_stepping.
4022 (displaced_step_prepare_throw): Use
4023 gdbarch_supports_displaced_stepping.
4024
63e163f2
AB
40252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * NEWS: Mention new behaviour of the history filename.
4028 * top.c (write_history_p): Add comment.
4029 (show_write_history_p): Add header comment, give a different
4030 message when history writing is on, but the history filename is
4031 empty.
4032 (history_filename): Add comment.
4033 (history_filename_empty): New function.
4034 (show_history_filename): Add header comment, give a different
4035 message when the filename is empty.
4036 (init_history): Compare history_filename against nullptr, and only
4037 read history if the filename is not empty.
4038 (set_history_filename): Add header comment, and only make
4039 non-empty filenames absolute.
4040 (init_main): Make the filename argument to 'set history filename'
4041 optional.
4042
81b86b97
CB
40432020-03-02 Christian Biesinger <cbiesinger@google.com>
4044
4045 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
4046 (arm_supply_vfpregset): ...this, and update to use VFP registers.
4047 (fetch_fp_register): Update.
4048 (fetch_fp_regs): Update.
4049 (store_fp_register): Update.
4050 (store_fp_regs): Update.
4051 (arm_netbsd_nat_target::read_description): New function.
4052 (fetch_elfcore_registers): Update.
4053
24ed6739
AB
40542020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
4055
4056 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
4057 general_thread if the stop reply is missing a thread-id.
4058 (remote_target::process_stop_reply): Use the first non-exited
4059 thread if the target didn't pass a thread-id.
4060 * infrun.c (do_target_wait): Move call to
4061 switch_to_inferior_no_thread to ....
4062 (do_target_wait_1): ... here.
4063
a84bb2a0
JT
40642020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
4065
4066 * debuginfod-support.c: Include defs.h first.
4067
658dadf0
TV
40682020-02-28 Tom de Vries <tdevries@suse.de>
4069
4070 * symfile.c (set_initial_language): Use default language for lookup.
4071
4ebe4877
SM
40722020-02-28 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
4075 reader variable, pass `this` to read_cutu_die_from_dwo.
4076
e5da1139
AM
40772020-02-27 Aaron Merey <amerey@redhat.com>
4078
4079 * source.c (open_source_file): Check for nullptr when computing
4080 srcpath.
4081
317f7127
TT
40822020-02-27 Tom Tromey <tromey@adacore.com>
4083
4084 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
4085 member.
4086 (dwarf2_add_field): Don't update nfields.
4087 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
4088
3104d9ee
AB
40892020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4090
4091 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
4092 abs.
4093
b83470bf
TT
40942020-02-26 Tom Tromey <tom@tromey.com>
4095
4096 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
4097 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
4098 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
4099 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
4100 per_cu_data.
4101
edfe0a0c
TT
41022020-02-26 Tom Tromey <tom@tromey.com>
4103
4104 * dwarf2/index-write.c (psym_index_map): Change type.
4105 (add_address_entry_worker, write_one_signatured_type)
4106 (recursively_count_psymbols, recursively_write_psymbols)
4107 (class debug_names, psyms_seen_size, write_gdbindex)
4108 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
4109
0d79cdc4
AM
41102020-02-26 Aaron Merey <amerey@redhat.com>
4111
4112 * Makefile.in: Handle optional debuginfod support.
4113 * NEWS: Update.
4114 * README: Add --with-debuginfod summary.
4115 * config.in: Regenerate.
4116 * configure: Regenerate.
4117 * configure.ac: Handle optional debuginfod support.
4118 * debuginfod-support.c: debuginfod helper functions.
4119 * debuginfod-support.h: Ditto.
4120 * doc/gdb.texinfo: Add --with-debuginfod to configure options
4121 summary.
4122 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
4123 when a dwz file cannot be found.
4124 * elfread.c (elf_symfile_read): Query debuginfod servers when a
4125 debuginfo file cannot be found.
4126 * source.c (open_source_file): Query debuginfod servers when a
4127 source file cannot be found.
4128 * top.c (print_gdb_configuration): Include
4129 --{with,without}-debuginfod in the output.
4130
b65ce565
JG
41312020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4132
4133 * thread.c (thr_try_catch_cmd): Print thread name.
4134
d4c9a4f8
SM
41352020-02-26 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
4138 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4139 dwarf2_fetch_die_type_sect_off): Move to...
4140 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4142 dwarf2_fetch_die_type_sect_off): ... here.
4143 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4144 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4145 dwarf2_fetch_die_type_sect_off): Move doc to header file.
4146
0dce4280
TV
41472020-02-26 Tom de Vries <tdevries@suse.de>
4148
4149 PR gdb/25603
4150 * symfile.c (set_initial_language): Exit-early if
4151 language_mode == language_mode_manual.
4152
450a1bfc
SM
41532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4154
4155 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
4156 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
4157 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
4158
9e80cfa1
AB
41592020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4160
4161 * gdbtypes.c (create_array_type_with_stride): Handle negative
4162 array strides.
4163 * valarith.c (value_subscripted_rvalue): Likewise.
4164
09624f1f
LM
41652020-02-25 Luis Machado <luis.machado@linaro.org>
4166
4167 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
4168
8cb5117c
SM
41692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4170
4171 * loc.h (dwarf2_get_die_type): Move to...
4172 * read.h (dwarf2_get_die_type): ... here.
4173 * read.c (dwarf2_get_die_type): Move doc to header.
4174
c325c44e
JB
41752020-02-25 Joel Brobecker <brobecker@adacore.com>
4176
4177 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
4178 'gnulib/Makefile.in' to the list.
4179
4ac93832
TT
41802020-02-24 Tom Tromey <tom@tromey.com>
4181
4182 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
4183 Remove.
4184 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
4185 XOBNEWVEC.
4186
197400e8
TT
41872020-02-24 Tom Tromey <tom@tromey.com>
4188
4189 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
4190 New method.
4191 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
4192 (dw2_do_instantiate_symtab, dw2_get_file_names)
4193 (build_type_psymtab_dependencies, load_full_type_unit): Update.
4194
76935768
TT
41952020-02-24 Tom Tromey <tom@tromey.com>
4196
4197 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
4198 make_scoped_restore.
4199 (dwarf2_psymtab::read_symtab): Don't clear
4200 reading_partial_symbols.
4201
a88ef40d
TV
42022020-02-24 Tom de Vries <tdevries@suse.de>
4203
4204 PR gdb/25592
4205 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
4206
c9af6521
TV
42072020-02-24 Tom de Vries <tdevries@suse.de>
4208
4209 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
4210 commands layout next/prev/regs.
4211
5707a07a
TT
42122020-02-22 Tom Tromey <tom@tromey.com>
4213
4214 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
4215 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
4216
3b0fb49e
TT
42172020-02-22 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
4220
283be8bf
TT
42212020-02-22 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-win.c (_initialize_tui_win): Add usage text.
4224 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
4225 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
4226 * tui/tui.c (_initialize_tui): Add usage text.
4227
ca793b96
TT
42282020-02-22 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-win.c (tui_set_focus_command)
4231 (tui_set_win_height_command): Use error_no_arg.
4232 (_initialize_tui_win): Update help text.
4233 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
4234
432b5c40
TT
42352020-02-22 Tom Tromey <tom@tromey.com>
4236
4237 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
4238 * tui/tui-disasm.h (struct tui_disasm_window)
4239 <display_start_addr>: Declare.
4240 * tui/tui-source.h (struct tui_source_window)
4241 <display_start_addr>: Declare.
4242 * tui/tui-winsource.h (struct tui_source_window_base)
4243 <show_source_line, display_start_addr>: New methods.
4244 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
4245 Rename and move to protected section.
4246 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
4247 (tui_source_window_base::do_erase_source_content): Update.
4248 (tui_source_window_base::show_source_line): Now a method.
4249 (tui_source_window_base::show_source_content)
4250 (tui_source_window_base::tui_source_window_base)
4251 (tui_source_window_base::rerender)
4252 (tui_source_window_base::refill)
4253 (tui_source_window_base::do_scroll_horizontal)
4254 (tui_source_window_base::set_is_exec_point_at)
4255 (tui_source_window_base::update_breakpoint_info)
4256 (tui_source_window_base::update_exec_info): Update.
4257 * tui/tui-source.c (tui_source_window::set_contents)
4258 (tui_source_window::showing_source_p)
4259 (tui_source_window::do_scroll_vertical)
4260 (tui_source_window::location_matches_p)
4261 (tui_source_window::line_is_displayed): Update.
4262 (tui_source_window::display_start_addr): New method.
4263 * tui/tui-disasm.c (tui_disasm_window::set_contents)
4264 (tui_disasm_window::do_scroll_vertical)
4265 (tui_disasm_window::location_matches_p): Update.
4266 (tui_disasm_window::display_start_addr): New method.
4267
01b1af32
TT
42682020-02-22 Tom Tromey <tom@tromey.com>
4269
4270 * NEWS: Add entry for gdb.register_window_type.
4271 * tui/tui-layout.h (window_factory): New typedef.
4272 (tui_register_window): Declare.
4273 * tui/tui-layout.c (saved_tui_windows): New global.
4274 (tui_apply_current_layout): Use it.
4275 (tui_register_window): New function.
4276 * python/python.c (do_start_initialization): Call
4277 gdbpy_initialize_tui.
4278 (python_GdbMethods): Add "register_window_type" function.
4279 * python/python-internal.h (gdbpy_register_tui_window)
4280 (gdbpy_initialize_tui): Declare.
4281 * python/py-tui.c: New file.
4282 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
4283
fc96d20b
TT
42842020-02-22 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
4287
935c78c0
TT
42882020-02-22 Tom Tromey <tom@tromey.com>
4289
4290 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
4291 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
4292 * tui/tui-data.c (tui_set_win_with_focus): Remove.
4293 (tui_set_win_focus_to): Move from tui-win.c.
4294
0240c8f1
TT
42952020-02-22 Tom Tromey <tom@tromey.com>
4296
4297 * tui/tui-layout.c (make_standard_window, get_locator_window): New
4298 functions.
4299 (known_window_types): New global.
4300 (tui_get_window_by_name): Reimplement.
4301 (initialize_known_windows): New function.
4302 (validate_window_name): Rewrite.
4303 (_initialize_tui_layout): Call initialize_known_windows.
4304
fdb01f0c
TT
43052020-02-22 Tom Tromey <tom@tromey.com>
4306
4307 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
4308 Remove constants.
4309 * tui/tui-winsource.h (struct tui_source_window_base)
4310 <tui_source_window_base>: Remove parameter.
4311 * tui/tui-winsource.c
4312 (tui_source_window_base::tui_source_window_base): Remove
4313 parameter.
4314 (tui_source_window_base::refill): Update.
4315 * tui/tui-stack.h (struct tui_locator_window)
4316 <tui_locator_window>: Update.
4317 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
4318 Default the constructor.
4319 * tui/tui-regs.h (struct tui_data_item_window)
4320 <tui_data_item_window>: Default the constructor.
4321 (struct tui_data_window) <tui_data_window>: Likewise.
4322 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
4323 Default the constructor.
4324 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
4325 Default the constructor.
4326 <type>: Remove.
4327 (struct tui_win_info) <tui_win_info>: Default the constructor.
4328 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
4329 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
4330 Default the constructor.
4331
865a5aec
TT
43322020-02-22 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
4335 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
4336 * tui/tui-win.c (tui_resize_all): Don't call
4337 tui_delete_invisible_windows.
4338 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
4339 done.
4340 (tui_set_layout): Update.
4341 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
4342 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
4343 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
4344
e098d18c
TT
43452020-02-22 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
4348 correctly.
4349
eb9c8874
TT
43502020-02-22 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
4353
7eed1a8e
TT
43542020-02-22 Tom Tromey <tom@tromey.com>
4355
4356 * tui/tui-winsource.h (struct tui_source_window_iterator)
4357 <inner_iterator>: New etytypedef.
4358 <tui_source_window_iterator>: Take "end" parameter.
4359 <tui_source_window_iterator>: Take iterator.
4360 <operator*, advance>: Update.
4361 <m_iter>: Change type.
4362 <m_end>: New field.
4363 (struct tui_source_windows) <begin, end>: Update.
4364 * tui/tui-layout.c (tui_windows): New global.
4365 (tui_apply_current_layout): Clear tui_windows.
4366 (tui_layout_window::apply): Update tui_windows.
4367 * tui/tui-data.h (tui_windows): Declare.
4368 (all_tui_windows): Now inline function.
4369 (class tui_window_iterator, struct all_tui_windows): Remove.
4370
7c043ba6
TT
43712020-02-22 Tom Tromey <tom@tromey.com>
4372
4373 PR tui/17850:
4374 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
4375 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
4376 "height" argument.
4377 (class tui_layout_window) <get_sizes>: Likewise.
4378 (class tui_layout_split) <tui_layout_split>: Add "vertical"
4379 argument.
4380 <get_sizes>: Add "height" argument.
4381 <m_vertical>: New field.
4382 * tui/tui-layout.c (tui_layout_split::clone): Update.
4383 (tui_layout_split::get_sizes): Add "height" argument.
4384 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
4385 (tui_new_layout_command): Parse "-horizontal".
4386 (_initialize_tui_layout): Update help string.
4387 (tui_layout_split::specification): Add "-horizontal" when needed.
4388 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
4389 argument.
4390 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
4391 New methods.
4392
6bc56648
TT
43932020-02-22 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-layout.h (enum tui_adjust_result): New.
4396 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
4397 (class tui_layout_window) <adjust_size>: Return
4398 tui_adjust_result. Rewrite.
4399 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
4400 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
4401
c22fef7e
TT
44022020-02-22 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
4405 parameter and return types.
4406 (class tui_layout_base) <specification>: Add "depth".
4407 (class tui_layout_window) <specification>: Add "depth".
4408 (class tui_layout_split) <specification>: Add "depth".
4409 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
4410 and return types.
4411 (tui_new_layout_command): Parse sub-layouts.
4412 (_initialize_tui_layout): Update help string.
4413 (tui_layout_window::specification): Add "depth".
4414 (add_layout_command): Update.
4415
ee325b61
TT
44162020-02-22 Tom Tromey <tom@tromey.com>
4417
4418 * NEWS: Add "tui new-layout" item.
4419 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
4420 Add new-layout command to help text.
4421 (validate_window_name): New function.
4422 (tui_new_layout_command): New function.
4423 (_initialize_tui_layout): Register "new-layout".
4424 (tui_layout_window::specification): New method.
4425 (tui_layout_window::specification): New method.
4426 * tui/tui-layout.h (class tui_layout_base) <specification>: New
4427 method.
4428 (class tui_layout_window) <specification>: New method.
4429 (class tui_layout_split) <specification>: New method.
4430
416eb92d
TT
44312020-02-22 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
4434 * tui/tui-win.c (window_name_completer): Update comment.
4435 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
4436 Declare method.
4437 (class tui_layout_window) <replace_window>: Likewise.
4438 (class tui_layout_split) <replace_window>: Likewise.
4439 (tui_set_layout): Don't declare.
4440 (tui_set_initial_layout): Declare function.
4441 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
4442 (asm_regs_layout): New globals.
4443 (tui_current_layout, show_layout): Remove.
4444 (tui_set_layout, tui_add_win_to_layout): Rewrite.
4445 (find_layout, tui_apply_layout): New function.
4446 (layout_completer): Remove.
4447 (tui_next_layout): Reimplement.
4448 (tui_next_layout_command): New function.
4449 (tui_set_initial_layout, tui_prev_layout_command): New functions.
4450 (tui_regs_layout): Reimplement.
4451 (tui_regs_layout_command): New function.
4452 (extract_display_start_addr): Rewrite.
4453 (next_layout, prev_layout): Remove.
4454 (tui_layout_window::replace_window): New method.
4455 (tui_layout_split::replace_window): New method.
4456 (destroy_layout): New function.
4457 (layout_list): New global.
4458 (add_layout_command): New function.
4459 (initialize_layouts): Update.
4460 (tui_layout_command): New function.
4461 (_initialize_tui_layout): Install "layout" commands.
4462 * tui/tui-data.h (enum tui_layout_type): Remove.
4463 (tui_current_layout): Don't declare.
4464
0dbc2fc7
TT
44652020-02-22 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-regs.c (tui_reg_layout): Remove.
4468 (tui_reg_command): Use tui_regs_layout.
4469 * tui/tui-layout.h (tui_reg_command): Declare.
4470 * tui/tui-layout.c (tui_reg_command): New function.
4471
5afe342e
TT
44722020-02-22 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui.c (tui_rl_delete_other_windows): Call
4475 tui_remove_some_windows.
4476 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
4477 Declare method.
4478 (class tui_layout_window) <remove_windows>: New method.
4479 (class tui_layout_split) <remove_windows>: Declare.
4480 (tui_remove_some_windows): Declare.
4481 * tui/tui-layout.c (tui_remove_some_windows): New function.
4482 (tui_layout_split::remove_windows): New method.
4483
427326a8
TT
44842020-02-22 Tom Tromey <tom@tromey.com>
4485
4486 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
4487 * tui/tui-layout.h (tui_next_layout): Declare.
4488 * tui/tui-layout.c (tui_next_layout): New function.
4489
3fe12b6d
TT
44902020-02-22 Tom Tromey <tom@tromey.com>
4491
4492 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
4493 correct coordinates.
4494
59b8b5d2
TT
44952020-02-22 Tom Tromey <tom@tromey.com>
4496
4497 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
4498 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
4499 DATA_WIN case.
4500
2a3d458b
TT
45012020-02-22 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
4504 TUI_DISASM_WIN, not tui_win_list.
4505
3f0cbb04
TT
45062020-02-22 Tom Tromey <tom@tromey.com>
4507
4508 * valprint.c (generic_val_print_enum_1)
4509 (val_print_type_code_flags): Style member names.
4510 * rust-lang.c (val_print_struct, rust_print_enum)
4511 (rust_print_struct_def, rust_internal_print_type): Style member
4512 names.
4513 * p-valprint.c (pascal_object_print_value_fields): Style member
4514 names. Only call fprintf_symbol_filtered for static members.
4515 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
4516 * f-valprint.c (f_val_print): Style member names.
4517 * f-typeprint.c (f_type_print_base): Style member names.
4518 * cp-valprint.c (cp_print_value_fields): Style member names. Only
4519 call fprintf_symbol_filtered for static members.
4520 (cp_print_class_member): Style member names.
4521 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
4522 member names.
4523 * ada-valprint.c (ada_print_scalar): Style enum names.
4524 (ada_val_print_enum): Likewise.
4525 * ada-typeprint.c (print_enum_type): Style enum names.
4526
d4d947ae
TT
45272020-02-21 Tom Tromey <tom@tromey.com>
4528
4529 * psympriv.h (struct partial_symtab): Update comment.
4530
e94e944b
TT
45312020-02-21 Tom Tromey <tromey@adacore.com>
4532
4533 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
4534 type is CORE_ADDR.
4535
1eb73179
TV
45362020-02-21 Tom de Vries <tdevries@suse.de>
4537
4538 PR gdb/25534
4539 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
4540 if dependencies[i]->user != NULL.
4541
4f180d53
AT
45422020-02-21 Ali Tamur <tamur@google.com>
4543
4544 * dwarf2/read.c (dwarf2_name): Add null check.
4545
22b6cd70
TT
45462020-02-20 Tom Tromey <tom@tromey.com>
4547
4548 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
4549 ">=", in binary search.
4550 (dwarf2_find_containing_comp_unit): New overload.
4551 (run_test): New self-test.
4552 (_initialize_dwarf2_read): Register new test.
4553
bd0cf5a6
NC
45542020-02-20 Nelson Chu <nelson.chu@sifive.com>
4555
4556 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
4557 * riscv-tdep.h: Likewise.
4558 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
4559 rv32-only CSR.
4560 * features/riscv/64bit-csr.xml: Regenerated.
4561
3f702acd
SDJ
45622020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4563 Tom Tromey <tom@tromey.com>
4564
4565 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
4566 of 'fputc_unfiltered'.
4567 (putchar_unfiltered): Call 'fputc_unfiltered'.
4568 (fputc_unfiltered): Call 'fputs_unfiltered'.
4569
d13c7322
AB
45702020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * config.in: Regenerate.
4573 * configure: Regenerate.
4574 * configure.ac: Add --with-python-libdir option.
4575 * main.c: Use WITH_PYTHON_LIBDIR.
4576
869d8950
TT
45772020-02-19 Tom Tromey <tom@tromey.com>
4578
4579 * symtab.c (general_symbol_info::compute_and_set_names): Use
4580 obstack_strndup. Simplify call to symbol_set_demangled_name.
4581
298e9637
SM
45822020-02-19 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * dwarf2/read.c (allocate_signatured_type_table,
4585 allocate_dwo_unit_table, allocate_type_unit_groups_table,
4586 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
4587 Remove objfile parameter, update all callers.
4588
08410482
DE
45892020-02-19 Doug Evans <dje@google.com>
4590
4591 PR rust/25535
4592 * rust-lang.c (rust_print_enum): Apply embedded_offset to
4593 rust_enum_variant calculation.
4594
dfdeeca1
TT
45952020-02-19 Tom Tromey <tromey@adacore.com>
4596
4597 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
4598
2ef5453b
TT
45992020-02-19 Tom Tromey <tromey@adacore.com>
4600
4601 * ada-lang.c (cache_symbol): Use obstack_strdup.
4602
9f1528a1
AB
46032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * configure: Regenerate.
4606
d3c22fa8
TT
46072020-02-19 Tom Tromey <tromey@adacore.com>
4608
4609 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
4610 NULL check.
4611
bf84f706
MR
46122020-02-19 Maciej W. Rozycki <macro@wdc.com>
4613
4614 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
4615
d1c9b20f
AB
46162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4617
4618 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
4619 if GDBSERVER is not defined.
4620 (riscv_tdesc_cache): Likewise, also store const target_desc.
4621 (STATIC_IN_GDB): Define.
4622 (riscv_create_target_description): Update declaration with
4623 STATIC_IN_GDB.
4624 (riscv_lookup_target_description): New function, only define if
4625 GDBSERVER is not defined.
4626 * arch/riscv.h (riscv_create_target_description): Declare only
4627 when GDBSERVER is defined.
4628 (riscv_lookup_target_description): New declaration when GDBSERVER
4629 is not defined.
4630 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
4631 (riscv_linux_read_features): ...this, and return
4632 riscv_gdbarch_features instead of target_desc.
4633 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
4634 (riscv_linux_read_description): Rename to...
4635 (riscv_linux_read_features): ...this.
4636 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4637 Update to use riscv_gdbarch_features and
4638 riscv_lookup_target_description.
4639 * riscv-tdep.c (riscv_find_default_target_description): Use
4640 riscv_lookup_target_description instead of
4641 riscv_create_target_description.
4642
373d7ac0
SM
46432020-02-18 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * valprint.c (generic_val_print_enum_1): When printing a flag
4646 enum with value 0 and there is no enumerator with value 0, print
4647 just "0" instead of "(unknown: 0x0)".
4648
b29a2df0
SM
46492020-02-18 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * valprint.c (generic_val_print_enum_1): Print unknown part of
4652 flag enum in hex.
4653
6740f0cc
SM
46542020-02-18 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * dwarf2/read.c (update_enumeration_type_from_children): Allow
4657 flag enums to contain duplicate enumerators.
4658 * valprint.c (generic_val_print_enum_1): Update comment.
4659
edd45eb0
SM
46602020-02-18 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * dwarf2/read.c: Include "count-one-bits.h".
4663 (update_enumeration_type_from_children): If an enumerator has
4664 multiple bits set, don't treat the enumeration as a "flag enum".
4665 * valprint.c (generic_val_print_enum_1): Assert that enumerators
4666 of flag enums have 0 or 1 bit set.
4667
6d0cf446
BE
46682020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4669
4670 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
4671 conversion.
4672 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4673 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4674 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4675 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4676 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4677
7001c1b7
SM
46782020-02-18 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
4681
fdb61c6c
SM
46822020-02-14 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
4685 displaced_step_closure_up.
4686 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4687 (struct displaced_step_closure_up):
4688 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4689 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4690 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
4691 Likewise.
4692 * gdbarch.sh (displaced_step_copy_insn): Likewise.
4693 * gdbarch.c, gdbarch.h: Re-generate.
4694 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
4695 displaced_step_closure_up.
4696 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4697 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4698 * infrun.h (displaced_step_closure_up): New type alias.
4699 (struct displaced_step_inferior_state) <step_closure>: Change
4700 type to displaced_step_closure_up.
4701 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
4702 displaced_step_closure_up.
4703 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4704
a4a38eb4
TT
47052020-02-14 Tom Tromey <tom@tromey.com>
4706
4707 * minidebug.c (gnu_debug_key): New global.
4708 (find_separate_debug_file_in_section): Use it.
4709
e8217e61
SM
47102020-02-14 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
4713 std::unique_ptr.
4714 * gdbarch.c: Re-generate.
4715 * gdbarch.h: Re-generate.
4716 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
4717 change.
4718 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
4719 type to std::unique_ptr.
4720 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4721 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4722 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4723 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4724 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
4725 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4726 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4727 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4728 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4729
d8d83535
SM
47302020-02-14 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
4733 std::unique_ptr.
4734 (displaced_step_clear): Rename to...
4735 (displaced_step_reset): ... this. Just call displaced->reset ().
4736 (displaced_step_clear_cleanup): Rename to...
4737 (displaced_step_reset_cleanup): ... this.
4738 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
4739 (displaced_step_fixup): Likewise.
4740 (resume_1): Likewise.
4741 (handle_inferior_event): Restore child's memory before calling
4742 displaced_step_fixup on the parent.
4743 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
4744 to std::unique_ptr.
4745 <step_closure>: Change type to std::unique_ptr.
4746
5f661e03
SM
47472020-02-14 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * arm-tdep.c: Include count-one-bits.h.
4750 (cleanup_block_store_pc): Use count_one_bits.
4751 (cleanup_block_load_pc): Use count_one_bits.
4752 (arm_copy_block_xfer): Use count_one_bits.
4753 (thumb2_copy_block_xfer): Use count_one_bits.
4754 (thumb_copy_pop_pc_16bit): Use count_one_bits.
4755 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
4756 (thumb_get_next_pcs_raw): Use count_one_bits.
4757 (arm_get_next_pcs_raw): Use count_one_bits_l.
4758 * arch/arm.c (bitcount): Remove.
4759 * arch/arm.h (bitcount): Remove.
4760
8084e579
TT
47612020-02-14 Tom Tromey <tromey@adacore.com>
4762
4763 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
4764 Update.
4765 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
4766 * dwarf2/loc.c (call_site_find_chain_1): Return
4767 unique_xmalloc_ptr.
4768 (call_site_find_chain): Likewise.
4769
258bf0ee
RB
47702020-02-14 Richard Biener <rguenther@suse.de>
4771
4772 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
4773 on expression with division operators.
4774
f98a8458
AKS
47752020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4776
4777 * MAINTAINERS (Write After Approval): Adding myself.
4778
d1437c0e
TT
47792020-02-12 Tom Tromey <tom@tromey.com>
4780
4781 * event-loop.c (event_data, gdb_event, event_handler_func):
4782 Remove.
4783
3d4560f7
TT
47842020-02-12 Tom Tromey <tom@tromey.com>
4785
4786 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
4787 (dwarf2_frame_objfile_data): Add comment.
4788 (find_comp_unit, set_comp_unit): New functions.
4789 (dwarf2_frame_find_fde): Use find_comp_unit.
4790 (dwarf2_build_frame_info): Use set_comp_unit.
4791
21982304
TT
47922020-02-12 Tom Tromey <tom@tromey.com>
4793
4794 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
4795 (comp_unit): Don't initialize objfile.
4796 (execute_cfa_program): Add text_offset parameter.
4797 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
4798 (dwarf2_frame_cache): Update.
4799 (dwarf2_build_frame_info): Don't set "objfile" member.
4800
4debb237
TT
48012020-02-12 Tom Tromey <tom@tromey.com>
4802
4803 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
4804 (decode_frame_entry): Likewise.
4805 (dwarf2_build_frame_info): Update.
4806
0d404d44
TT
48072020-02-12 Tom Tromey <tom@tromey.com>
4808
4809 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
4810 (decode_frame_entry_1): Use the comp_unit obstack.
4811
a7a3ae5c
TT
48122020-02-12 Tom Tromey <tom@tromey.com>
4813
4814 * dwarf2/frame.c (struct comp_unit): Add initializers and
4815 constructor.
4816 (dwarf2_frame_objfile_data): Store a comp_unit.
4817 (dwarf2_frame_find_fde): Update.
4818 (dwarf2_build_frame_info): Use "new".
4819
a9d65418
TT
48202020-02-12 Tom Tromey <tom@tromey.com>
4821
4822 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
4823 (dwarf2_fde_table): Typedef for std::vector.
4824 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
4825 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
4826 (decode_frame_entry): Update.
4827 (dwarf2_build_frame_info): Use "new".
4828
7559c217
CB
48292020-02-12 Christian Biesinger <cbiesinger@google.com>
4830
4831 * arm-tdep.c (arm_gdbarch_init): Update.
4832 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
4833 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
4834 have_neon, is_m>: Change to bool.
4835
aeefc73c
CB
48362020-02-12 Christian Biesinger <cbiesinger@google.com>
4837
4838 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
4839
d27b8e5f
TT
48402020-02-12 Tom Tromey <tom@tromey.com>
4841
4842 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
4843
cd5900f3
HD
48442020-02-12 Hannes Domani <ssbssa@yahoo.de>
4845
4846 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
4847 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
4848
f056b22b
TT
48492020-02-11 Tom Tromey <tom@tromey.com>
4850
4851 * psymtab.h: Update comment.
4852
f92ff6b5
TT
48532020-02-11 Tom Tromey <tom@tromey.com>
4854
4855 * gdb_obstack.h (struct auto_obstack): Use
4856 DISABLE_COPY_AND_ASSIGN.
4857
3fd6912b
TT
48582020-02-11 Tom Tromey <tom@tromey.com>
4859
4860 * dwarf2/frame.h (struct objfile): Don't forward declare.
4861
69ed9b74
CB
48622020-02-11 Christian Biesinger <cbiesinger@google.com>
4863
4864 * cris-tdep.c (cris_supply_gregset): Change signature to match
4865 what struct regset expects.
4866 (cris_regset): New struct.
4867 (fetch_core_registers): Remove.
4868 (cris_iterate_over_regset_sections): New function.
4869 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
4870 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
4871
bda874f6
CB
48722020-02-11 Christian Biesinger <cbiesinger@google.com>
4873
4874 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
4875 registers.
4876
754e1564
CB
48772020-02-11 Christian Biesinger <cbiesinger@google.com>
4878
4879 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
4880
8ddd8e0e
SM
48812020-02-11 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * configure: Re-generate.
4884
898e7f60
SM
48852020-02-11 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * configure: Re-generate.
4888
58df732b
SM
48892020-02-11 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * acinclude: Update warning.m4 path.
4892 * warning.m4: Move to gdbsupport.
4893
da5bd37e
TT
48942020-02-11 Tom Tromey <tromey@adacore.com>
4895
4896 * remote.c (remote_console_output): Update.
4897 * printcmd.c (printf_command): Update.
4898 * event-loop.c (gdb_wait_for_event): Update.
4899 * linux-nat.c (sigchld_handler): Update.
4900 * remote-sim.c (gdb_os_write_stdout): Update.
4901 (gdb_os_flush_stdout): Update.
4902 (gdb_os_flush_stderr): Update.
4903 (gdb_os_write_stderr): Update.
4904 * exceptions.c (print_exception): Update.
4905 * remote-fileio.c (remote_fileio_func_read): Update.
4906 (remote_fileio_func_write): Update.
4907 * tui/tui.c (tui_enable): Update.
4908 * tui/tui-interp.c (tui_interp::init): Update.
4909 * utils.c (init_page_info): Update.
4910 (putchar_unfiltered, fputc_unfiltered): Update.
4911 (gdb_flush): Update.
4912 (emit_style_escape): Update.
4913 (flush_wrap_buffer, fputs_maybe_filtered): Update.
4914 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
4915 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
4916 (stderr_file::write): Update.
4917 (stderr_file::puts): Update.
4918 * ui-file.h (ui_file_isatty, ui_file_write)
4919 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
4920 (ui_file_puts): Don't declare.
4921
85f0dd3c
TV
49222020-02-10 Tom de Vries <tdevries@suse.de>
4923
4924 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
4925 sentinel to char *.
4926
2e927613
TV
49272020-02-09 Tom de Vries <tdevries@suse.de>
4928
4929 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
4930 filename if it matches "<artificial>".
4931
6bafc845
HD
49322020-02-09 Hannes Domani <ssbssa@yahoo.de>
4933
4934 * windows-tdep.c (struct enum_value_name): New struct.
4935 (create_enum): New function.
4936 (windows_get_siginfo_type): Create and use enum types.
4937
7928d571
HD
49382020-02-09 Hannes Domani <ssbssa@yahoo.de>
4939
4940 * NEWS: Mention $_siginfo support for Windows.
4941 * windows-nat.c (handle_exception): Set siginfo_er.
4942 (windows_nat_target::mourn_inferior): Reset siginfo_er.
4943 (windows_xfer_siginfo): New function.
4944 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
4945 * windows-tdep.c (struct windows_gdbarch_data): New struct.
4946 (init_windows_gdbarch_data): New function.
4947 (get_windows_gdbarch_data): New function.
4948 (windows_get_siginfo_type): New function.
4949 (windows_init_abi): Register windows_get_siginfo_type.
4950 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
4951
6751ebae
TT
49522020-02-08 Tom Tromey <tom@tromey.com>
4953
4954 * dwarf2/read.c (class cutu_reader) <cutu_reader,
4955 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
4956 <keep>: Declare method.
4957 <m_keep>: Remove member.
4958 <~cutu_reader>: Remove.
4959 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4960 (cutu_reader::cutu_reader): Update.
4961 (cutu_reader::keep): Rename from ~cutu_reader.
4962 (process_psymtab_comp_unit, build_type_psymtabs_1)
4963 (process_skeletonless_type_unit, load_partial_comp_unit)
4964 (load_full_comp_unit, dwarf2_read_addr_index)
4965 (read_signatured_type): Update.
4966
135f5437
TT
49672020-02-08 Tom Tromey <tom@tromey.com>
4968
4969 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
4970 "want_partial_unit" parameter.
4971 (process_psymtab_comp_unit): Change want_partial_unit to bool.
4972 Inline check for DW_TAG_partial_unit.
4973 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
4974
9f66ff1c
TT
49752020-02-08 Tom Tromey <tom@tromey.com>
4976
4977 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
4978 read.c.
4979 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
4980 read.c.
4981
c8a7a66f
TT
49822020-02-08 Tom Tromey <tom@tromey.com>
4983
4984 * dwarf2/read.c (read_address): Move to comp-unit.c.
4985 (dwarf2_rnglists_process, dwarf2_ranges_process)
4986 (read_attribute_value, dwarf_decode_lines_1)
4987 (var_decode_location, decode_locdesc): Update.
4988 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
4989 read.c. Remove "cu" parameter.
4990 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
4991 method.
4992
8266302d
TT
49932020-02-08 Tom Tromey <tom@tromey.com>
4994
4995 * dwarf2/read.c (read_attribute_value, read_indirect_string)
4996 (read_indirect_line_string): Update.
4997 * dwarf2/comp-unit.c (read_offset): Remove.
4998 (read_comp_unit_head): Update.
4999 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
5000 method.
5001 (read_offset): Don't declare.
5002
4057dfde
TT
50032020-02-08 Tom Tromey <tom@tromey.com>
5004
5005 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
5006 * dwarf2/read.c (struct comp_unit_head): Move to
5007 dwarf2/comp-unit.h.
5008 (enum class rcuh_kind): Move to comp-unit.h.
5009 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
5010 (read_comp_unit_head, error_check_comp_unit_head)
5011 (read_and_check_comp_unit_head): Move to comp-unit.c.
5012 (read_offset, dwarf_unit_type_name): Likewise.
5013 (create_debug_type_hash_table, read_cutu_die_from_dwo)
5014 (cutu_reader::cutu_reader, read_call_site_scope)
5015 (find_partial_die, follow_die_offset): Update.
5016 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
5017
24aa364d
TT
50182020-02-08 Tom Tromey <tom@tromey.com>
5019
5020 * dwarf2/read.c (read_offset_1): Move to leb.c.
5021 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
5022 (dwarf_decode_macro_bytes): Update.
5023 * dwarf2/leb.c (read_offset): Rename; move from read.c.
5024 * dwarf2/leb.h (read_offset): Declare.
5025
2c7d5afc
TT
50262020-02-08 Tom Tromey <tom@tromey.com>
5027
5028 * dwarf2/read.c (dwarf2_section_size): Remove.
5029 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
5030 Update.
5031 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
5032
4075cb26
TT
50332020-02-08 Tom Tromey <tom@tromey.com>
5034
5035 * dwarf2/read.c (read_initial_length): Move to leb.c.
5036 * dwarf2/leb.h (read_initial_length): Declare.
5037 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
5038 handle_nonstd parameter.
5039 * dwarf2/frame.c (read_initial_length): Remove.
5040 (decode_frame_entry_1): Update.
5041
09ba997f
TT
50422020-02-08 Tom Tromey <tom@tromey.com>
5043
5044 * dwarf2/loc.c (dwarf2_find_location_expression)
5045 (dwarf_evaluate_loc_desc::get_tls_address)
5046 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
5047 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
5048 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
5049 (dwarf2_compile_property_to_c)
5050 (dwarf2_loc_desc_get_symbol_read_needs)
5051 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
5052 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
5053 (loclist_describe_location, loclist_tracepoint_var_ref)
5054 (loclist_generate_c_location): Update.
5055 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
5056 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
5057 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
5058 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
5059 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
5060 (dwarf2_per_cu_data::addr_size)
5061 (dwarf2_per_cu_data::ref_addr_size)
5062 (dwarf2_per_cu_data::text_offset)
5063 (dwarf2_per_cu_data::addr_type): Now methods.
5064 (per_cu_header_read_in): Make per_cu "const".
5065 (dwarf2_version): Remove.
5066 (dwarf2_per_cu_data::int_type): Now a method.
5067 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
5068 (set_die_type, read_array_type, read_subrange_index_type)
5069 (read_tag_string_type, read_subrange_type): Update.
5070 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
5071 offset_size, ref_addr_size, text_offset, addr_type, version,
5072 objfile, int_type, addr_sized_int_type>: Declare methods.
5073
96c738c0
TT
50742020-02-08 Tom Tromey <tom@tromey.com>
5075
5076 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
5077 Move earlier.
5078
8fdd972c
TT
50792020-02-08 Tom Tromey <tom@tromey.com>
5080
5081 * dwarf2/read.h (dwarf_line_debug): Declare.
5082 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
5083 * dwarf2/read.c: Move line_header code to new files.
5084 (dwarf_line_debug): No longer static.
5085 * dwarf2/line-header.c: New file.
5086 * dwarf2/line-header.h: New file.
5087
03075812
TT
50882020-02-08 Tom Tromey <tom@tromey.com>
5089
5090 * dwarf2/read.c (struct line_header) <file_full_name,
5091 file_file_name>: Return unique_xmalloc_ptr.
5092 (line_header::file_file_name): Update.
5093 (line_header::file_full_name): Update.
5094 (dw2_get_file_names_reader): Update.
5095 (macro_start_file): Update.
5096
bb822404
TT
50972020-02-08 Tom Tromey <tom@tromey.com>
5098
5099 * dwarf2/read.c (struct line_header) <file_full_name,
5100 file_file_name>: Declare methods.
5101 (dw2_get_file_names_reader): Update.
5102 (file_file_name): Now a method.
5103 (file_full_name): Likewise.
5104 (macro_start_file): Update.
5105
009b64fc
TT
51062020-02-08 Tom Tromey <tom@tromey.com>
5107
5108 * dwarf2/read.c (dwarf_always_disassemble)
5109 (show_dwarf_always_disassemble): Move to loc.c.
5110 (_initialize_dwarf2_read): Move "always-disassemble" registration
5111 to loc.c.
5112 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
5113 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
5114 static.
5115 (show_dwarf_always_disassemble): Move from read.c.
5116 (_initialize_dwarf2loc): Move always-disassemble from read.c.
5117
5895093f
TT
51182020-02-08 Tom Tromey <tom@tromey.com>
5119
5120 * dwarf2/read.c (~dwarf2_per_objfile): Update.
5121 (create_quick_file_names_table): Return htab_up.
5122 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
5123 Update.
5124 * dwarf2/read.h (struct dwarf2_per_objfile)
5125 <quick_file_names_table>: Now htab_up.
5126
b3b32279
TT
51272020-02-08 Tom Tromey <tom@tromey.com>
5128
5129 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
5130
1d33d811
TT
51312020-02-08 Tom Tromey <tom@tromey.com>
5132
5133 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
5134 Rewrite.
5135 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
5136 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
5137 (abbrev_table::abbrev_table): No longer inline.
5138 (ABBREV_HASH_SIZE): Remove.
5139 (abbrev_table::m_abbrevs): Now an htab_up.
5140
86de1d91
TT
51412020-02-08 Tom Tromey <tom@tromey.com>
5142
5143 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
5144 (cutu_reader): Update.
5145 (build_type_psymtabs_1): Update.
5146 * dwarf2/abbrev.c (abbrev_table::read): Rename.
5147 (abbrev_table::alloc_abbrev): Update.
5148 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
5149 (abbrev_table::read): New static method, renamed from
5150 abbrev_table_read_table.
5151 (abbrev_table::alloc_abbrev)
5152 (abbrev_table::add_abbrev): Now private.
5153 (abbrev_table::abbrev_table): Now private.
5154 (abbrev_table::m_abbrev_obstack): Now private. Rename.
5155
0335378b
TT
51562020-02-08 Tom Tromey <tom@tromey.com>
5157
5158 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
5159 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
5160 htab_up.
5161
48b490f2
TT
51622020-02-08 Tom Tromey <tom@tromey.com>
5163
5164 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
5165 htab_up.
5166 (lookup_dwo_unit_in_dwp): Update.
5167 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
5168 on obstack.
5169
bc68fb19
TT
51702020-02-08 Tom Tromey <tom@tromey.com>
5171
5172 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
5173 obstack.
5174
d15acc42
TT
51752020-02-08 Tom Tromey <tom@tromey.com>
5176
5177 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
5178 line_header_hash.
5179 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
5180 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
5181 Change type to htab_up.
5182
eaa5fa8b
TT
51832020-02-08 Tom Tromey <tom@tromey.com>
5184
5185 * dwarf2/read.c (allocate_type_unit_groups_table): Return
5186 htab_up. Don't allocate on obstack.
5187 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
5188 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
5189 Change type to htab_up.
5190
b0b6a987
TT
51912020-02-08 Tom Tromey <tom@tromey.com>
5192
5193 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
5194 Change type to htab_up.
5195 * dwarf2/read.c (create_signatured_type_table_from_index)
5196 (create_signatured_type_table_from_debug_names)
5197 (create_all_type_units, add_type_unit)
5198 (lookup_dwo_signatured_type, lookup_signatured_type)
5199 (process_skeletonless_type_unit): Update.
5200 (create_debug_type_hash_table, create_debug_types_hash_table):
5201 Change type of types_htab.
5202 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
5203 htab_up. Don't allocate on obstack.
5204 (create_cus_hash_table): Change type of cus_htab parameter.
5205 (struct dwo_file) <cus, tus>: Now htab_up.
5206 (lookup_dwo_signatured_type, lookup_dwo_cutu)
5207 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
5208 (queue_and_load_all_dwo_tus): Update.
5209 * dwarf2/index-write.c (write_gdbindex): Update.
5210 (write_debug_names): Update.
5211
39856def
TT
52122020-02-08 Tom Tromey <tom@tromey.com>
5213
5214 * dwarf2/read.h (struct dwarf2_queue_item): Move from
5215 dwarf2/read.c. Remove "next" member. Add constructor ntad
5216 destructor.
5217 (struct dwarf2_per_objfile) <queue>: New member.
5218 * dwarf2/read.c (struct dwarf2_queue_item): Move to
5219 dwarf2/read.h.
5220 (dwarf2_queue, dwarf2_queue_tail): Remove.
5221 (class dwarf2_queue_guard): Add parameter to constructor. Use
5222 DISABLE_COPY_AND_ASSIGN.
5223 <m_per_objfile>: New member.
5224 <~dwarf2_queue_guard>: Rewrite.
5225 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
5226 Update.
5227 (~dwarf2_queue_item): New.
5228
3e225074
TT
52292020-02-08 Tom Tromey <tom@tromey.com>
5230
5231 * dwarf2/read.c (struct die_info) <has_children>: New member.
5232 (dw2_get_file_names_reader): Remove has_children.
5233 (dw2_get_file_names): Update.
5234 (read_cutu_die_from_dwo): Remove has_children.
5235 (cutu_reader::init_tu_and_read_dwo_dies)
5236 (cutu_reader::cutu_reader): Update.
5237 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
5238 Remove has_children.
5239 (build_type_psymtabs_1, process_skeletonless_type_unit)
5240 (load_partial_comp_unit, load_full_comp_unit): Update.
5241 (create_dwo_cu_reader): Remove has_children.
5242 (create_cus_hash_table, read_die_and_children): Update.
5243 (read_full_die_1,read_full_die): Remove has_children.
5244 (read_signatured_type): Update.
5245 (class cutu_reader) <has_children>: Remove.
5246
82ca8957
TT
52472020-02-08 Tom Tromey <tom@tromey.com>
5248
5249 * dwarf2/expr.c: Rename from dwarf2expr.c.
5250 * dwarf2/expr.h: Rename from dwarf2expr.h.
5251 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
5252 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
5253 * dwarf2/frame.c: Rename from dwarf2-frame.c.
5254 * dwarf2/frame.h: Rename from dwarf2-frame.h.
5255 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
5256 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
5257 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
5258 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
5259 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
5260 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
5261 * dwarf2/loc.c: Rename from dwarf2loc.c.
5262 * dwarf2/loc.h: Rename from dwarf2loc.h.
5263 * dwarf2/read.c: Rename from dwarf2read.c.
5264 * dwarf2/read.h: Rename from dwarf2read.h.
5265 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
5266 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
5267 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
5268 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
5269 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
5270 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
5271 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
5272 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
5273 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
5274 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
5275 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
5276 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
5277 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
5278 Update.
5279 * Makefile.in (COMMON_SFILES): Update.
5280 (HFILES_NO_SRCDIR): Update.
5281
9e35d499
TT
52822020-02-08 Tom Tromey <tom@tromey.com>
5283
5284 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
5285 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
5286
1eba2311
TT
52872020-02-08 Tom Tromey <tom@tromey.com>
5288
5289 * dwarf2read.h (struct die_info): Don't declare.
5290
e41c2da2
TT
52912020-02-08 Tom Tromey <tom@tromey.com>
5292
5293 * dwarf2read.h (die_info_ptr): Remove typedef.
5294
4fc6c0d5
TT
52952020-02-08 Tom Tromey <tom@tromey.com>
5296
5297 * dwarf2read.c (read_call_site_scope)
5298 (handle_data_member_location, dwarf2_add_member_fn)
5299 (mark_common_block_symbol_computed, read_common_block)
5300 (attr_to_dynamic_prop, partial_die_info::read)
5301 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
5302 (dwarf2_symbol_mark_computed, set_die_type): Update.
5303 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
5304 method.
5305 (attr_form_is_block): Don't declare.
5306 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
5307
cd6c91b4
TT
53082020-02-08 Tom Tromey <tom@tromey.com>
5309
5310 * dwarf2read.c (dwarf2_find_base_address, )
5311 (read_call_site_scope, rust_containing_type)
5312 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
5313 (handle_data_member_location, dwarf2_add_member_fn)
5314 (get_alignment, read_structure_type, process_structure_scope)
5315 (mark_common_block_symbol_computed, read_common_block)
5316 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
5317 (partial_die_info::read, read_attribute_value, new_symbol)
5318 (lookup_die_type, dwarf2_get_ref_die_offset)
5319 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
5320 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
5321 (dwarf2_symbol_mark_computed): Update.
5322 * dwarf2/attribute.h (struct attribute) <value_as_address,
5323 form_is_section_offset, form_is_constant, form_is_ref>: Declare
5324 methods.
5325 (value_as_address, attr_form_is_section_offset)
5326 (attr_form_is_constant, attr_form_is_ref): Don't declare.
5327 * dwarf2/attribute.c (attribute::value_as_address)
5328 (attribute::form_is_section_offset, attribute::form_is_constant)
5329 (attribute::form_is_ref): Now methods.
5330
162dce55
TT
53312020-02-08 Tom Tromey <tom@tromey.com>
5332
5333 * dwarf2read.c (struct attribute, DW_STRING)
5334 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
5335 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
5336 (attr_form_is_block, attr_form_is_section_offset)
5337 (attr_form_is_constant, attr_form_is_ref): Move.
5338 * dwarf2/attribute.h: New file.
5339 * dwarf2/attribute.c: New file, from dwarf2read.c.
5340 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
5341
3054dd54
TT
53422020-02-08 Tom Tromey <tom@tromey.com>
5343
5344 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
5345 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
5346 Move.
5347 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
5348 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
5349 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
5350 abbrev.c.
5351 * dwarf2/abbrev.h: New file.
5352 * dwarf2/abbrev.c: New file, from dwarf2read.c.
5353 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
5354
96b79293
TT
53552020-02-08 Tom Tromey <tom@tromey.com>
5356
5357 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
5358 (dwarf2_section_size, dwarf2_get_section_info)
5359 (create_signatured_type_table_from_debug_names)
5360 (create_addrmap_from_aranges, read_debug_names_from_section)
5361 (get_gdb_index_contents_from_section, read_comp_unit_head)
5362 (error_check_comp_unit_head, read_abbrev_offset)
5363 (create_debug_type_hash_table, init_cu_die_reader)
5364 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
5365 (read_comp_units_from_section, create_cus_hash_table)
5366 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5367 (create_dwp_v2_section, dwarf2_rnglists_process)
5368 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
5369 (abbrev_table_read_table, read_indirect_string_at_offset_from)
5370 (read_indirect_string_from_dwz, read_addr_index_1)
5371 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
5372 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5373 (fill_in_loclist_baton): Update.
5374 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
5375 get_containing_section, get_bfd_owner, get_bfd_section,
5376 get_file_name, get_id, get_flags, empty, read>: Declare methods.
5377 (dwarf2_read_section, get_section_name, get_section_file_name)
5378 (get_containing_section, get_section_bfd_owner)
5379 (get_section_bfd_section, get_section_name, get_section_file_name)
5380 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
5381 declare.
5382 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
5383 (dwarf2_section_info::get_bfd_owner)
5384 (dwarf2_section_info::get_bfd_section)
5385 (dwarf2_section_info::get_name)
5386 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
5387 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
5388 (dwarf2_section_info::read): Now methods.
5389 * dwarf-index-write.c (class debug_names): Update.
5390
2c86cff9
TT
53912020-02-08 Tom Tromey <tom@tromey.com>
5392
5393 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
5394 Move to dwarf2/section.h.
5395 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
5396 (get_section_bfd_section, get_section_name)
5397 (get_section_file_name, get_section_id, get_section_flags)
5398 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
5399 dwarf2/section.c.
5400 * dwarf2/section.h: New file.
5401 * dwarf2/section.c: New file, from dwarf2read.c.
5402 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
5403
f4382c45
TT
54042020-02-08 Tom Tromey <tom@tromey.com>
5405
5406 * dwarf2read.h (read_unsigned_leb128): Don't declare.
5407 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
5408 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
5409 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
5410 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
5411 * dwarf2/leb.h: New file, from dwarf2read.c.
5412 * dwarf2/leb.c: New file, from dwarf2read.c.
5413 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
5414 Remove.
5415 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
5416 (COMMON_SFILES): Add dwarf2/leb.c.
5417
01840b7a
JB
54182020-02-08 Joel Brobecker <brobecker@adacore.com>
5419
5420 GDB 9.1 released.
5421
dfcb27e4
IB
54222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
5423
5424 PR gdb/25190:
aac66a4c
SM
5425 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
5426 * gdb/remote.c (remote_console_output): Update.
5427 * gdb/ui-file.c (fputs_unfiltered): Rename to...
5428 (ui_file_puts): ...this.
5429 * gdb/ui-file.h (ui_file_puts): Add declaration.
5430 * gdb/utils.c (emit_style_escape): Update.
5431 (flush_wrap_buffer): Update.
5432 (fputs_maybe_filtered): Update.
5433 (fputs_unfiltered): Add function.
dfcb27e4 5434
faa17681
IB
54352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
5436
aac66a4c
SM
5437 * gdb/event-loop.c (gdb_wait_for_event): Update.
5438 * gdb/printcmd.c (printf_command): Update.
5439 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
5440 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
5441 (gdb_os_flush_stderr): Update.
5442 * gdb/remote.c (remote_console_output): Update.
5443 * gdb/ui-file.c (gdb_flush): Rename to...
5444 (ui_file_flush): ...this.
5445 (stderr_file::write): Update.
5446 (stderr_file::puts): Update.
5447 * gdb/ui-file.h (gdb_flush): Rename to...
5448 (ui_file_flush): ...this.
5449 * gdb/utils.c (gdb_flush): Add function.
5450 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 5451
5abbbe1d
TT
54522020-02-07 Tom Tromey <tromey@adacore.com>
5453
5454 PR breakpoints/24915:
5455 * source.c (find_and_open_source): Do not check basenames_may_differ.
5456
919adfe8
TT
54572020-02-07 Tom Tromey <tom@tromey.com>
5458
5459 * README: Update gdbserver documentation.
5460 * gdbserver: Move to top level.
5461 * configure.tgt (build_gdbserver): Remove.
5462 * configure.ac: Remove --enable-gdbserver.
5463 * configure: Rebuild.
5464 * Makefile.in (distclean): Don't mention gdbserver.
5465
1d5d29e7
SV
54662020-02-06 Shahab Vahedi <shahab@synopsys.com>
5467
5468 * source-cache.c (source_cache::ensure): Surround
5469 get_plain_source_lines with a try/catch.
5470 (source_cache::get_line_charpos): Get rid of try/catch
5471 and only check for the return value of "ensure".
5472 * tui/tui-source.c (tui_source_window::set_contents):
5473 Simplify "nlines" calculation.
5474
6eb1129c
SV
54752020-02-06 Shahab Vahedi <shahab@synopsys.com>
5476
5477 * MAINTAINERS (Write After Approval): Add myself.
5478
c6a42d11
CB
54792020-02-05 Christian Biesinger <cbiesinger@google.com>
5480
5481 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
5482 function call.
5483
c8ecdda6
CB
54842020-02-05 Christian Biesinger <cbiesinger@google.com>
5485
5486 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
5487
f6480e70
MR
54882020-02-05 Maciej W. Rozycki <macro@wdc.com>
5489
5490 * nat/riscv-linux-tdesc.h: New file.
5491 * nat/riscv-linux-tdesc.c: New file, taking code from...
5492 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
5493 ... here.
5494 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
5495 NATDEPFILES.
5496
dcc9fbc6
AB
54972020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
5500 we don't set the fake simulator ptid to the null_ptid.
5501
719546c4
SM
55022020-02-03 Simon Marchi <simon.marchi@efficios.com>
5503
5504 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
5505 * gdbthread.h (class thread_info) <resumed>: Likewise.
5506 * infrun.c (resume_1): Likewise.
5507 (proceed): Likewise.
5508 (infrun_thread_stop_requested): Likewise.
5509 (stop_all_threads): Likewise.
5510 (handle_inferior_event): Likewise.
5511 (restart_threads): Likewise.
5512 (finish_step_over): Likewise.
5513 (keep_going_stepped_thread): Likewise.
5514 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
5515 (linux_handle_extended_wait): Likewise.
5516 * record-btrace.c (get_thread_current_frame_id): Likewise.
5517 * record-full.c (record_full_wait_1): Likewise.
5518 * remote.c (remote_target::process_initial_stop_replies): Likewise.
5519 * target.c (target_resume): Likewise.
5520 * thread.c (set_running_thread): Likewise.
5521
e409c542
AKS
55222020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5523
5524 * f-valprint.c (f77_print_array_1): Changed datatype of index
5525 variable to LONGEST from int to enable it to contain bound
5526 values correctly.
5527
ee98c0da
MR
55282020-02-03 Maciej W. Rozycki <macro@wdc.com>
5529
5530 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
5531 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
5532 offsets according to FLEN determined.
5533 (riscv_linux_nat_target::read_description): Determine FLEN
5534 dynamically.
5535 (riscv_linux_nat_target::fetch_registers): Size regset buffer
5536 according to FLEN determined.
5537 (riscv_linux_nat_target::store_registers): Likewise.
5538
aa66aac4
SV
55392020-02-01 Shahab Vahedi <shahab@synopsys.com>
5540
5541 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
5542 when reg->group is empty and reggroup is not.
5543
fd9faca8
TT
55442020-01-31 Tom Tromey <tromey@adacore.com>
5545
5546 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
5547 Call beneath target's mourn_inferior after unpushing.
5548
42330a68
AB
55492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 PR tui/9765
5552 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
5553 have enough lines to fill the screen, still return the lowest
5554 address we found.
5555
7a27a45b
AB
55562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
5559 '-', '<', and '>' commands.
5560
c47f70e2
PA
55612020-01-29 Pedro Alves <palves@redhat.com>
5562 Sergio Durigan Junior <sergiodj@redhat.com>
5563
5564 * infcmd.c (construct_inferior_arguments): Assert that
5565 'argc' is greater than 0.
5566
5133a315
LM
55672020-01-29 Luis Machado <luis.machado@linaro.org>
5568
5569 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
5570 (BRK_INSN_MASK): Define to 0xd4200000.
5571 (aarch64_program_breakpoint_here_p): New function.
5572 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
5573 * arch-utils.c (default_program_breakpoint_here_p): Moved from
5574 breakpoint.c.
5575 * arch-utils.h (default_program_breakpoint_here_p): Moved from
5576 breakpoint.h
5577 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
5578 call gdbarch_program_breakpoint_here_p.
5579 (program_breakpoint_here): Moved to arch-utils.c, renamed to
5580 default_program_breakpoint_here_p, changed return type to bool and
5581 simplified.
5582 * breakpoint.h (program_breakpoint_here): Moved prototype to
5583 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
5584 return type to bool.
5585 * gdbarch.c: Regenerate.
5586 * gdbarch.h: Regenerate.
5587 * gdbarch.sh (program_breakpoint_here_p): New method.
5588 * infrun.c (handle_signal_stop): Call
5589 gdbarch_program_breakpoint_here_p.
5590
168f8c6b
TT
55912020-01-26 Tom Tromey <tom@tromey.com>
5592
5593 * ctfread.c (struct ctf_fp_info): Reindent.
5594 (_initialize_ctfread): Remove.
5595
128a391f
TT
55962020-01-26 Tom Tromey <tom@tromey.com>
5597
5598 * psymtab.c (partial_map_expand_apply)
5599 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5600 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5601 (psym_print_stats, psym_expand_symtabs_for_function)
5602 (psym_map_symbol_filenames, psym_map_matching_symbols)
5603 (psym_expand_symtabs_matching)
5604 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5605 (maintenance_check_psymtabs): Use new methods.
5606 * psympriv.h (struct partial_symtab) <readin_p,
5607 get_compunit_symtab>: New methods.
5608 <readin, compunit_symtab>: Remove members.
5609 (struct standard_psymtab): New.
5610 (struct legacy_psymtab): Derive from standard_psymtab.
5611 * dwarf2read.h (struct dwarf2_psymtab): Derive from
5612 standard_psymtab.
5613 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
5614
0494dbec
TT
56152020-01-26 Tom Tromey <tom@tromey.com>
5616
5617 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
5618 read_dependencies. Add assert.
5619 * psymtab.c (partial_symtab::read_dependencies): New method.
5620 * psympriv.h (struct partial_symtab) <read_dependencies>: New
5621 method.
5622 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
5623 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
5624 read_dependencies.
5625 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
5626 Add assert.
5627
8566b89b
TT
56282020-01-26 Tom Tromey <tom@tromey.com>
5629
5630 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
5631 Call expand_psymtab.
5632 (xcoff_read_symtab): Call expand_psymtab.
5633 (xcoff_start_psymtab, xcoff_end_psymtab): Set
5634 legacy_expand_psymtab.
5635 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
5636 method.
5637 (struct legacy_psymtab) <expand_psymtab>: Implement.
5638 <legacy_expand_psymtab>: New member.
5639 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
5640 (parse_partial_symbols): Set legacy_expand_psymtab.
5641 (psymtab_to_symtab_1): Change argument order. Call
5642 expand_psymtab.
5643 (new_psymtab): Set legacy_expand_psymtab.
5644 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
5645 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
5646 expand_psymtab.
5647 (dwarf2_psymtab::expand_psymtab): Rename from
5648 psymtab_to_symtab_1. Call expand_psymtab.
5649 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
5650 (dbx_end_psymtab): Likewise.
5651 (dbx_psymtab_to_symtab_1): Change argument order. Call
5652 expand_psymtab.
5653 (dbx_read_symtab): Call expand_psymtab.
5654 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
5655 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
5656 (ctf_psymtab::read_symtab): Call expand_psymtab.
5657
077cbab2
TT
56582020-01-26 Tom Tromey <tom@tromey.com>
5659
5660 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
5661 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
5662 messages.
5663 * mdebugread.c (mdebug_read_symtab): Remove prints.
5664 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
5665 assert.
5666 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
5667
891813be
TT
56682020-01-26 Tom Tromey <tom@tromey.com>
5669
5670 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
5671 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
5672 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
5673 legacy_symtab.
5674 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
5675 * psymtab.c (psymtab_to_symtab): Call method.
5676 (dump_psymtab): Update.
5677 * psympriv.h (struct partial_symtab): Add virtual destructor.
5678 <read_symtab>: New method.
5679 (struct legacy_symtab): New.
5680 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
5681 (struct pst_map) <pst>: Now a legacy_psymtab.
5682 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
5683 (new_psymtab): Use legacy_psymtab.
5684 * dwarf2read.h (struct dwarf2_psymtab): New.
5685 (struct dwarf2_per_cu_data) <psymtab>: Use it.
5686 * dwarf2read.c (dwarf2_create_include_psymtab)
5687 (dwarf2_build_include_psymtabs, create_type_unit_group)
5688 (create_partial_symtab, process_psymtab_comp_unit_reader)
5689 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
5690 (set_partial_user): Use dwarf2_psymtab.
5691 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
5692 (psymtab_to_symtab_1, process_full_comp_unit)
5693 (process_full_type_unit, dwarf2_ranges_read)
5694 (dwarf2_get_pc_bounds, psymtab_include_file_name)
5695 (dwarf_decode_lines): Use dwarf2_psymtab.
5696 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
5697 (add_address_entry_worker, write_one_signatured_type)
5698 (recursively_count_psymbols, recursively_write_psymbols)
5699 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
5700 (write_debug_names): Likewise.
5701 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
5702 <pst>: Now a legacy_psymtab.
5703 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
5704 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
5705 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
5706 * ctfread.c (struct ctf_psymtab): New.
5707 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
5708 ctf_psymtab.
5709 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
5710 (create_partial_symtab): Return a ctf_psymtab.
5711 (scan_partial_symbols): Update.
5712
c3693a1d
TT
57132020-01-26 Tom Tromey <tom@tromey.com>
5714
5715 * xcoffread.c (xcoff_start_psymtab): Use new.
5716 * psymtab.c (partial_symtab::partial_symtab): New constructor,
5717 renamed from start_psymtab_common.
5718 * psympriv.h (struct partial_symtab): Add new constructor.
5719 (start_psymtab_common): Don't declare.
5720 * mdebugread.c (parse_partial_symbols): Use new.
5721 * dwarf2read.c (create_partial_symtab): Use new.
5722 * dbxread.c (start_psymtab): Use new.
5723 * ctfread.c (create_partial_symtab): Use new.
5724
32caafd0
TT
57252020-01-26 Tom Tromey <tom@tromey.com>
5726
5727 * xcoffread.c (xcoff_end_psymtab): Use new.
5728 * psymtab.c (start_psymtab_common): Use new.
5729 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
5730 Update.
5731 * psympriv.h (struct partial_symtab): Add parameters to
5732 constructor. Don't inline.
5733 (allocate_psymtab): Don't declare.
5734 * mdebugread.c (new_psymtab): Use new.
5735 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
5736 * dbxread.c (dbx_end_psymtab): Use new.
5737
abaa2f23
TT
57382020-01-26 Tom Tromey <tom@tromey.com>
5739
5740 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
5741 allocate_psymtab. Update documentation.
5742 * psymtab.c (psymtab_storage::install_psymtab): Rename from
5743 allocate_psymtab. Do not use new.
5744 (allocate_psymtab): Use new. Update.
5745
6d94535f
TT
57462020-01-26 Tom Tromey <tom@tromey.com>
5747
5748 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5749 * psymtab.c (psym_print_stats): Update.
5750 * psympriv.h (struct partial_symtab) <readin,
5751 psymtabs_addrmap_supported, anonymous>: Now bool.
5752 * mdebugread.c (psymtab_to_symtab_1): Update.
5753 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
5754 (build_type_psymtabs_reader, psymtab_to_symtab_1)
5755 (process_full_comp_unit, process_full_type_unit): Update.
5756 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5757 * ctfread.c (psymtab_to_symtab): Update.
5758
6f17252b
TT
57592020-01-26 Tom Tromey <tom@tromey.com>
5760
5761 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
5762 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
5763 * psymtab.c (psymtab_storage): Delete psymtabs.
5764 (psymtab_storage::allocate_psymtab): Use new.
5765 (psymtab_storage::discard_psymtab): Use delete.
5766 * psympriv.h (struct partial_symtab): Add constructor and
5767 initializers.
5768
f6f1cebc
TT
57692020-01-26 Tom Tromey <tom@tromey.com>
5770
5771 * machoread.c: Do not include psympriv.h.
5772
e47e48f6
PW
57732020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5774
5775 * NEWS: Mention the new option and the set/show commands.
5776
a2fedca9
PW
57772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5778
5779 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
5780 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
5781 (validate_exec_file): New variables, enums, functions.
5782 (exec_file_locate_attach, print_section_info): Style the filenames.
5783 (_initialize_exec): Install show_exec_file_mismatch_command and
5784 set_exec_file_mismatch_command.
5785 * gdbcore.h (validate_exec_file): Declare.
5786 * infcmd.c (attach_command): Call validate_exec_file.
5787 * remote.c ( remote_target::remote_add_inferior): Likewise.
5788
7ffa82e1
AB
57892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5790
5791 * frame.c (find_frame_sal): Move call to get_next_frame into more
5792 inner scope.
5793 * inline-frame.c (inilne_state) <inline_state>: Update argument
5794 types.
5795 (inilne_state) <skipped_symbol>: Rename to...
5796 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
5797 (skip_inline_frames): Build vector of skipped symbols and use this
5798 to reate the inline_state.
5799 (inline_skipped_symbol): Add a comment and some assertions, fetch
5800 skipped symbol from the list.
5801
3d92a3e3
AB
58022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * buildsym.c (lte_is_less_than): Delete.
5805 (buildsym_compunit::end_symtab_with_blockvector): Create local
5806 lambda function to sort line table entries, and use
5807 std::stable_sort instead of std::sort.
5808 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
5809 markers when looking for a previous line.
5810
94a72be7
AB
58112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 * dwarf2read.c (lnp_state_machine::record_line): Include
5814 end_sequence parameter in debug print out. Record the line if we
5815 are at an end_sequence marker even if it's not the start of a
5816 statement.
5817 * symmisc.c (maintenance_print_one_line_table): Print end of
5818 sequence markers with 'END' not '0'.
5819
53af73bf
PA
58202020-01-24 Pedro Alves <palves@redhat.com>
5821
5822 PR gdb/25410
5823 * thread.c (scoped_restore_current_thread::restore): Use
5824 switch_to_inferior_no_thread.
5825 * exec.c: Include "progspace-and-thread.h".
5826 (add_target_sections, remove_target_sections):
5827 scoped_restore_current_pspace_and_thread instead of
5828 scoped_restore_current_thread.
5829 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
5830 and aspace to the inferior before calling clone_program_space.
5831 Remove stale comment.
5832
3050c6f4
CB
58332020-01-24 Christian Biesinger <cbiesinger@google.com>
5834
5835 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
5836 (arm_netbsd_nat_target::fetch_registers): ...this.
5837 (arm_nbsd_nat_target::store_registers): Rename to...
5838 (arm_netbsd_nat_target::store_registers): ...this.
5839
73685c7e
CB
58402020-01-24 Christian Biesinger <cbiesinger@google.com>
5841
5842 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5843 register_t.
5844
89203d40
CB
58452020-01-24 Christian Biesinger <cbiesinger@google.com>
5846
5847 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
5848 Update comment.
5849 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
5850 Likewise.
5851 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
5852 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
5853 the correct replacement (iterate_over_regset_sections).
5854 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
5855 Update comment.
5856
1ba1ac88
AB
58572020-01-24 Graham Markall <graham.markall@embecosm.com>
5858
5859 PR gdb/23718
5860 * gdb/python/python.c (execute_gdb_command): Call
5861 async_enable_stdin in catch block.
5862
f3364a6d
AB
58632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
5866 SWITCH_THRU_ALL_UIS.
5867
733d0a67
AB
58682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5869
5870 PR tui/9765
5871 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
5872 comment, add extra parameter, and update to store previous symbol
5873 when appropriate.
5874 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
5875 add extra parameter.
5876 * tui/tui-disasm.c (tui_disassemble): Update header comment,
5877 remove unneeded parameter, add try/catch around gdb_print_insn,
5878 rewrite to add items to asm_lines vector.
5879 (tui_find_backward_disassembly_start_address): New function.
5880 (tui_find_disassembly_address): Updated throughout.
5881 (tui_disasm_window::set_contents): Update for changes to
5882 tui_disassemble.
5883 (tui_disasm_window::do_scroll_vertical): No need to adjust the
5884 number of lines to scroll.
5885
b3b3bada
SM
58862020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
5889 (SECT_OFF_DATA): Likewise.
5890 (SECT_OFF_RODATA): Likewise.
5891 (SECT_OFF_TEXT): Likewise.
5892 (SECT_OFF_BSS): Likewise.
5893 (struct objfile) <text_section_offset, data_section_offset>: New
5894 methods.
5895 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
5896 objfile::text_section_offset.
5897 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
5898 * coffread.c (coff_symtab_read): Likewise.
5899 (enter_linenos): Likewise.
5900 (process_coff_symbol): Likewise.
5901 * ctfread.c (get_objfile_text_range): Likewise.
5902 * dtrace-probe.c (dtrace_probe::get_relocated_address):
5903 Use objfile::data_section_offset.
5904 * dwarf2-frame.c (execute_cfa_program): Use
5905 objfile::text_section_offset.
5906 (dwarf2_frame_find_fde): Likewise.
5907 * dwarf2read.c (create_addrmap_from_index): Likewise.
5908 (create_addrmap_from_aranges): Likewise.
5909 (dw2_find_pc_sect_compunit_symtab): Likewise.
5910 (process_psymtab_comp_unit_reader): Likewise.
5911 (add_partial_symbol): Likewise.
5912 (add_partial_subprogram): Likewise.
5913 (process_full_comp_unit): Likewise.
5914 (read_file_scope): Likewise.
5915 (read_func_scope): Likewise.
5916 (read_lexical_block_scope): Likewise.
5917 (read_call_site_scope): Likewise.
5918 (dwarf2_rnglists_process): Likewise.
5919 (dwarf2_ranges_process): Likewise.
5920 (dwarf2_ranges_read): Likewise.
5921 (dwarf_decode_lines_1): Likewise.
5922 (new_symbol): Likewise.
5923 (dwarf2_fetch_die_loc_sect_off): Likewise.
5924 (dwarf2_per_cu_text_offset): Likewise.
5925 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5926 * hppa-tdep.c (read_unwind_info): Likewise.
5927 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
5928 * psympriv.h (struct partial_symtab): Likewise.
5929 * psymtab.c (find_pc_sect_psymtab): Likewise.
5930 * solib-svr4.c (enable_break): Likewise.
5931 * stap-probe.c (relocate_address): Use
5932 objfile::data_section_offset.
5933 * xcoffread.c (enter_line_range): Use
5934 objfile::text_section_offset.
5935 (read_xcoff_symtab): Likewise.
5936
ab53f382
SM
59372020-01-23 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
5940 declaration to narrower scopes.
5941
e7eee665
SM
59422020-01-23 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * darwin-nat.h (struct darwin_exception_msg, enum
5945 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
5946 Move up.
5947 (class darwin_nat_target) <wait_1, check_new_threads,
5948 decode_exception_message, decode_message, stop_inferior,
5949 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
5950 * darwin-nat.c (darwin_check_new_threads): Rename to...
5951 (darwin_nat_target::check_new_threads): ... this.
5952 (darwin_suspend_inferior_it): Remove.
5953 (darwin_decode_exception_message): Rename to...
5954 (darwin_nat_target::decode_exception_message): ... this.
5955 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
5956 (darwin_decode_message): Rename to...
5957 (darwin_nat_target::decode_message): ... this.
5958 (cancel_breakpoint): Rename to...
5959 (darwin_nat_target::cancel_breakpoint): ... this.
5960 (darwin_wait): Rename to...
5961 (darwin_nat_target::wait_1): ... this. Use range-based for loop
5962 instead of iterate_over_inferiors.
5963 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
5964 (darwin_stop_inferior): Rename to...
5965 (darwin_nat_target::stop_inferior): ... this.
5966 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
5967 (darwin_init_thread_list): Rename to...
5968 (darwin_nat_target::init_thread_list): ... this.
5969 (darwin_ptrace_him): Rename to...
5970 (darwin_nat_target::ptrace_him): ... this.
5971 (darwin_nat_target::create_inferior): Pass lambda function to
5972 fork_inferior.
5973 (darwin_nat_target::detach): Call stop_inferior instead of
5974 darwin_stop_inferior.
5975 * fork-inferior.h (fork_inferior): Change init_trace_fun
5976 parameter to gdb::function_view.
5977 * fork-inferior.c (fork_inferior): Likewise.
5978
c162ed3e
HD
59792020-01-23 Hannes Domani <ssbssa@yahoo.de>
5980
5981 * i386-cygwin-tdep.c (core_process_module_section): Update.
5982 * windows-nat.c (struct lm_info_windows): Add text_offset.
5983 (windows_xfer_shared_libraries): Update.
5984 * windows-tdep.c (windows_xfer_shared_library):
5985 Add text_offset_cached argument.
5986 * windows-tdep.h (windows_xfer_shared_library): Update.
5987
a1237872
SM
59882020-01-21 Simon Marchi <simon.marchi@efficios.com>
5989
5990 * gdbarch.sh: Add declaration for _initialize_gdbarch.
5991
b3ee6dd9
SM
59922020-01-21 Simon Marchi <simon.marchi@efficios.com>
5993
5994 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
5995 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
5996 replace with range-based for.
5997 (gdbsim_interrupt_inferior): Remove.
5998 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
5999 with a range-based for. Inline code from
6000 gdbsim_interrupt_inferior.
6001
f9fac3c8
SM
60022020-01-21 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * infrun.c (proceed): Fix indentation.
6005
f6474de9
TT
60062020-01-21 Tom Tromey <tromey@adacore.com>
6007
6008 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
6009 * python/python.c (python_extension_ops): Update.
6010 (gdbpy_colorize): New function.
6011 * python/lib/gdb/__init__.py (colorize): New function.
6012 * extension.h (ext_lang_colorize): Declare.
6013 * extension.c (ext_lang_colorize): New function.
6014 * extension-priv.h (struct extension_language_ops) <colorize>: New
6015 member.
6016 * cli/cli-style.c (_initialize_cli_style): Update help text.
6017
f0c702d4
LM
60182020-01-21 Luis Machado <luis.machado@linaro.org>
6019
6020 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
6021 <cond>: Change type to bool.
6022 (aarch64_displaced_step_b_cond): Update cond to use bool type.
6023 (aarch64_displaced_step_cb): Likewise.
6024 (aarch64_displaced_step_tb): Likewise.
6025
1ab139e5
LM
60262020-01-21 Luis Machado <luis.machado@linaro.org>
6027
6028 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
6029 output.
6030
0c271889
LM
60312020-01-21 Luis Machado <luis.machado@linaro.org>
6032
6033 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
6034 <pc_adjust>: Adjust the documentation.
6035 (aarch64_displaced_step_fixup): Check if PC really moved before
6036 adjusting it.
6037
4d89c1c7
TT
60382020-01-19 Tom Tromey <tom@tromey.com>
6039
6040 * disasm.c (~gdb_disassembler): New destructor.
6041 (gdb_buffered_insn_length): Call disassemble_free_target.
6042 * disasm.h (class gdb_disassembler): Declare destructor. Use
6043 DISABLE_COPY_AND_ASSIGN.
6044
c0ab21c2
TT
60452020-01-19 Tom Tromey <tom@tromey.com>
6046
6047 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
6048 (die_reader_func_ftype): Remove.
6049 (cutu_reader): New class.
6050 (dw2_get_file_names_reader): Remove "data" parameter.
6051 (dw2_get_file_names): Use cutu_reader.
6052 (create_debug_type_hash_table): Update.
6053 (read_cutu_die_from_dwo): Update comment.
6054 (lookup_dwo_unit): Add dwo_name parameter.
6055 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
6056 die_reader_func_ftype and data parameters.
6057 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
6058 Remove die_reader_func_ftype and data parameters.
6059 (~cutu_reader): New; from init_cutu_and_read_dies.
6060 (cutu_reader::cutu_reader): Rename from
6061 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
6062 and data parameters.
6063 (init_cutu_and_read_dies_simple): Remove.
6064 (struct process_psymtab_comp_unit_data): Remove.
6065 (process_psymtab_comp_unit_reader): Remove data parameter; add
6066 want_partial_unit and pretend_language parameters.
6067 (process_psymtab_comp_unit): Use cutu_reader.
6068 (build_type_psymtabs_reader): Remove data parameter.
6069 (build_type_psymtabs_1): Use cutu_reader.
6070 (process_skeletonless_type_unit): Likewise.
6071 (load_partial_comp_unit_reader): Remove.
6072 (load_partial_comp_unit): Use cutu_reader.
6073 (load_full_comp_unit_reader): Remove.
6074 (load_full_comp_unit): Use cutu_reader.
6075 (struct create_dwo_cu_data): Remove.
6076 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
6077 dwo_unit parameters.
6078 (create_cus_hash_table): Use cutu_reader.
6079 (struct dwarf2_read_addr_index_data): Remove.
6080 (dwarf2_read_addr_index_reader): Remove.
6081 (dwarf2_read_addr_index): Use cutu_reader.
6082 (read_signatured_type_reader): Remove.
6083 (read_signatured_type): Use cutu_reader.
6084
45bbae5c
TT
60852020-01-19 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
6088 * tui/tui-wingeneral.h (class tui_suppress_output): New.
6089 (tui_wrefresh): Declare.
6090 * tui/tui-wingeneral.c (suppress_output): New global.
6091 (tui_suppress_output, ~tui_suppress_output): New constructor and
6092 destructor.
6093 (tui_wrefresh): New function.
6094 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
6095 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
6096 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
6097 method.
6098 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
6099 tui_wrefresh.
6100 (tui_data_window::no_refresh): New method.
6101 (tui_data_item_window::refresh_window): Call tui_wrefresh.
6102 (tui_reg_command): Use tui_suppress_output
6103 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
6104 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
6105 method.
6106 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
6107
4f13c1c0
TT
61082020-01-19 Tom Tromey <tom@tromey.com>
6109
6110 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6111 Handle case where symtab is null.
6112
fa47e446
SM
61132020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
6114
6115 * linux-fork.c (one_fork_p): Simplify.
6116
26f42329
SM
61172020-01-17 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * top.c (struct qt_args): Remove.
6120 (kill_or_detach): Change return type to void, replace `void *`
6121 parameter with a proper one.
6122 (print_inferior_quit_action): Likewise.
6123 (quit_confirm): Use range-based for loop to iterate over inferiors.
6124 (quit_force): Likewise.
6125
a9ac81b1
SM
61262020-01-17 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
6129 `void *` parameter with proper parameters.
6130 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
6131 (print_one_inferior): Change return type to void, replace `void *`
6132 parameter with proper parameters.
6133 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
6134 inferiors.
6135 (get_other_inferior): Remove.
6136 (mi_cmd_remove_inferior): Use range-based loop to iterate over
6137 inferiors.
6138
788eca49
SM
61392020-01-17 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * mi/mi-interp.c (report_initial_inferior): Remove.
6142 (mi_interp::init): Use range-based for to iterate over inferiors.
6143
d9bc85b6
SM
61442020-01-17 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * python/py-inferior.c (build_inferior_list): Remove.
6147 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
6148
40c94099
CB
61492020-01-16 Christian Biesinger <cbiesinger@google.com>
6150
6151 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
6152 (btrace_stitch_trace): Likewise.
6153 * charset.c (intermediate_encoding): Likewise (vaild).
6154 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
6155 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
6156 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
6157
e0cdfe3c
HD
61582020-01-16 Hannes Domani <ssbssa@yahoo.de>
6159
6160 * windows-tdep.c (windows_get_tlb_type):
6161 Add rtl_user_process_parameters type.
6162
790f1718 61632020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 6164 Norbert Lange <nolange79@gmail.com>
790f1718
PA
6165
6166 PR build/24805
6167 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
6168 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
6169 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
6170 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
6171 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
6172 (ps_plog): Redeclare exported functions with default visibility.
6173
3112ed97
NA
61742020-01-16 Nitika Achra <Nitika.Achra@amd.com>
6175
6176 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
6177 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
6178
8dc3273e
SM
61792020-01-15 Simon Marchi <simon.marchi@efficios.com>
6180
6181 * infcmd.c (post_create_inferior): Use get_thread_regcache
6182 instead of get_current_regcache.
6183
ff47f4f0
TT
61842020-01-14 Tom Tromey <tom@tromey.com>
6185
6186 PR symtab/12535:
6187 * python/python.c (gdbpy_decode_line): Treat empty string the same
6188 as no argument.
6189
975f45b7
TT
61902020-01-14 Tom Tromey <tom@tromey.com>
6191
6192 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
6193
25e57356
TT
61942020-01-14 Tom Tromey <tom@tromey.com>
6195
6196 * nat/linux-btrace.c: Don't include <config.h>.
6197 * nat/linux-ptrace.c: Don't include <config.h>.
6198 * nat/x86-linux-dregs.c: Don't include <config.h>.
6199
05ea2a05
TT
62002020-01-14 Tom Tromey <tom@tromey.com>
6201
6202 * configure: Rebuild.
6203 * configure.ac: Move many checks to ../gdbsupport/common.m4.
6204
01027315
TT
62052020-01-14 Tom Tromey <tom@tromey.com>
6206
6207 * nat/x86-linux-dregs.c: Include configh.h.
6208 * nat/linux-ptrace.c: Include configh.h.
6209 * nat/linux-btrace.c: Include configh.h.
6210 * defs.h: Include config.h, bfd.h.
6211 * configure.ac: Don't source common.host.
6212 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
6213 * configure: Rebuild.
6214 * acinclude.m4: Update path.
6215 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
6216 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
6217 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
6218 (CLIBS): Add LIBSUPPORT.
6219 (CDEPS): Likewise.
6220 (COMMON_SFILES): Remove gdbsupport files.
6221 (HFILES_NO_SRCDIR): Likewise.
6222 (stamp-version): Update path to create-version.sh.
6223 (ALLDEPFILES): Remove gdbsupport files.
6224
b2ceabe8
TT
62252020-01-14 Tom Tromey <tom@tromey.com>
6226
6227 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
6228 USE_WIN32API when needed.
6229 * configure.ac (USE_WIN32API): Don't define.
6230 (WIN32LIBS): Use WIN32APILIBS.
6231 * configure: Rebuild.
6232
25c51f71
TT
62332020-01-14 Tom Tromey <tom@tromey.com>
6234
6235 * configure: Rebuild.
6236 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
6237
717c684d
BE
62382020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6239
6240 * skip.c (skip_function_command): Make skip w/o arguments use the
6241 name of the inlined function if pc is inside any inlined function.
6242
7da6a5b9
LM
62432020-01-14 Luis Machado <luis.machado@linaro.org>
6244
6245 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
6246 * infrun.c (resume_1): Likewise.
6247 (handle_inferior_event): Remove stale comment.
6248 * linux-nat.c (linux_nat_target::resume): Update comments.
6249 (save_stop_reason): Likewise.
6250 (linux_nat_filter_event): Likewise.
6251 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
6252
44e4c775
AB
62532020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * elfread.c (record_minimal_symbol): Set section index to 0 for
6256 non-allocatable sections.
6257
18a8505e
AT
6258
62592020-01-13 Ali Tamur <tamur@google.com>
6260
6261 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
6262 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
6263 to gdb::optional. Update comments.
6264 (dwo_file): Update comments.
6265 (read_attribute): Update API to take an additional out parameter,
6266 need_reprocess. This is used to mark attributes that need other
6267 attributes (e.g. str_offsets_base) for correct computation which may not
6268 have been read yet.
6269 (read_attribute_reprocess): New function declaration.
6270 (read_addr_index): Likewise.
6271 (read_dwo_str_index): Likewise.
6272 (read_stub_str_index): Likewise.
6273 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
6274 (lookup_addr_base): New function definition.
6275 (lookup_ranges_base): Likewise.
6276 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
6277 lookup_ranges_base.
6278 (init_cutu_and_read_dies): Update comments.
6279 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
6280 unit. This is used to inherit parent's str_offsets_base and addr_base.
6281 Update comments.
6282 (init_cutu_and_read_dies_simple): Reflect API changes.
6283 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
6284 (create_cus_hash_table): Change API to take parent compile unit.
6285 Reflect API changes.
6286 (open_and_init_dwo_file): Reflect API changes.
6287 (dwarf2_get_pc_bounds): Update comments.
6288 (dwarf2_record_block_ranges): Likewise.
6289 (read_full_die_1): Change implementation to reprocess attributes that
6290 need str_offsets_base and addr_base.
6291 (partial_die_info::read): Likewise.
6292 (read_attribute_reprocess): New function definition.
6293 (read_attribute_value): Change API to take an additional out parameter,
6294 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
6295 when a non-dwo compile unit has index based attributes.
6296 (read_attribute): Reflect API changes.
6297 (read_addr_index_1): Reflect API changes. Update comments.
6298 (dwarf2_read_addr_index_data): Reflect API changes.
6299 (dwarf2_read_addr_index): Likewise.
6300 (read_str_index): Change API and implementation. This becomes a helper
6301 to be used by the new string index related methods. Update error
6302 message and comments.
6303 (read_dwo_str_index): New function definition.
6304 (read_stub_str_index): Likewise.
6305 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
6306 * symfile.h (dwarf2_debug_sections): Likewise.
6307 * xcoffread.c (dwarf2_debug_sections): Likewise.
6308
0cac9354
SM
63092020-01-13 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * gdbcore.h (struct core_fns) <core_read_registers>: Change
6312 core_reg_sect type to gdb_byte *.
6313 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
6314 * cris-tdep.c (fetch_core_registers): Likewise.
6315 * corelow.c (core_target::get_core_register_section): Change
6316 type of `contents` to gdb::byte_vector.
6317
9a6d629c
AB
63182020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6319
6320 * tui/tui-wingeneral.c (box_win): Position the title in the center
6321 of the border.
6322
d8b2f9e3
SM
63232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * corelow.c (core_target::get_core_register_section): Use
6326 std::vector instead of alloca.
6327
bb564c58
SM
63282020-01-13 Simon Marchi <simon.marchi@efficios.com>
6329
6330 * warning.m4: Add -Wmissing-declarations to build_warnings.
6331 * configure: Re-generate.
6332
6b366111
SM
63332020-01-13 Simon Marchi <simon.marchi@efficios.com>
6334
6335 * python/python.c (init__gdb_module): Add declaration.
6336
6c265988
SM
63372020-01-13 Simon Marchi <simon.marchi@efficios.com>
6338
6339 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
6340 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
6341 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
6342 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
6343 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
6344 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
6345 * ada-exp.y (_initialize_ada_exp): Add declaration.
6346 * ada-lang.c (_initialize_ada_language): Add declaration.
6347 * ada-tasks.c (_initialize_tasks): Add declaration.
6348 * agent.c (_initialize_agent): Add declaration.
6349 * aix-thread.c (_initialize_aix_thread): Add declaration.
6350 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
6351 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
6352 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
6353 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
6354 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
6355 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6356 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
6357 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
6358 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
6359 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
6360 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
6361 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
6362 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
6363 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
6364 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
6365 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
6366 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
6367 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
6368 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
6369 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
6370 * annotate.c (_initialize_annotate): Add declaration.
6371 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
6372 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
6373 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
6374 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
6375 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
6376 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
6377 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
6378 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
6379 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
6380 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
6381 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
6382 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
6383 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6384 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
6385 * auto-load.c (_initialize_auto_load): Add declaration.
6386 * auxv.c (_initialize_auxv): Add declaration.
6387 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
6388 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
6389 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
6390 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
6391 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
6392 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
6393 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
6394 * breakpoint.c (_initialize_breakpoint): Add declaration.
6395 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
6396 * btrace.c (_initialize_btrace): Add declaration.
6397 * charset.c (_initialize_charset): Add declaration.
6398 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
6399 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6400 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6401 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
6402 * cli/cli-script.c (_initialize_cli_script): Add declaration.
6403 * cli/cli-style.c (_initialize_cli_style): Add declaration.
6404 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
6405 * coffread.c (_initialize_coffread): Add declaration.
6406 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
6407 * compile/compile.c (_initialize_compile): Add declaration.
6408 * complaints.c (_initialize_complaints): Add declaration.
6409 * completer.c (_initialize_completer): Add declaration.
6410 * copying.c (_initialize_copying): Add declaration.
6411 * corefile.c (_initialize_core): Add declaration.
6412 * corelow.c (_initialize_corelow): Add declaration.
6413 * cp-abi.c (_initialize_cp_abi): Add declaration.
6414 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
6415 * cp-support.c (_initialize_cp_support): Add declaration.
6416 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
6417 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
6418 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
6419 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
6420 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
6421 * ctfread.c (_initialize_ctfread): Add declaration.
6422 * d-lang.c (_initialize_d_language): Add declaration.
6423 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
6424 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
6425 * dbxread.c (_initialize_dbxread): Add declaration.
6426 * dcache.c (_initialize_dcache): Add declaration.
6427 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
6428 * disasm.c (_initialize_disasm): Add declaration.
6429 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
6430 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
6431 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
6432 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
6433 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
6434 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
6435 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
6436 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
6437 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
6438 * elfread.c (_initialize_elfread): Add declaration.
6439 * exec.c (_initialize_exec): Add declaration.
6440 * extension.c (_initialize_extension): Add declaration.
6441 * f-lang.c (_initialize_f_language): Add declaration.
6442 * f-valprint.c (_initialize_f_valprint): Add declaration.
6443 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
6444 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
6445 * filesystem.c (_initialize_filesystem): Add declaration.
6446 * findcmd.c (_initialize_mem_search): Add declaration.
6447 * findvar.c (_initialize_findvar): Add declaration.
6448 * fork-child.c (_initialize_fork_child): Add declaration.
6449 * frame-base.c (_initialize_frame_base): Add declaration.
6450 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6451 * frame.c (_initialize_frame): Add declaration.
6452 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
6453 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
6454 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
6455 * gcore.c (_initialize_gcore): Add declaration.
6456 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
6457 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
6458 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
6459 * gdbarch.c (_initialize_gdbarch): Add declaration.
6460 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
6461 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
6462 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
6463 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
6464 * go-lang.c (_initialize_go_language): Add declaration.
6465 * go32-nat.c (_initialize_go32_nat): Add declaration.
6466 * guile/guile.c (_initialize_guile): Add declaration.
6467 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6468 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
6469 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
6470 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
6471 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
6472 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
6473 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
6474 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
6475 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
6476 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
6477 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
6478 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
6479 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
6480 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
6481 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
6482 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
6483 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
6484 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
6485 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
6486 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
6487 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
6488 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
6489 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
6490 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
6491 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
6492 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
6493 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
6494 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
6495 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
6496 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
6497 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
6498 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
6499 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
6500 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
6501 * infcall.c (_initialize_infcall): Add declaration.
6502 * infcmd.c (_initialize_infcmd): Add declaration.
6503 * inflow.c (_initialize_inflow): Add declaration.
6504 * infrun.c (_initialize_infrun): Add declaration.
6505 * interps.c (_initialize_interpreter): Add declaration.
6506 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
6507 * jit.c (_initialize_jit): Add declaration.
6508 * language.c (_initialize_language): Add declaration.
6509 * linux-fork.c (_initialize_linux_fork): Add declaration.
6510 * linux-nat.c (_initialize_linux_nat): Add declaration.
6511 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
6512 * linux-thread-db.c (_initialize_thread_db): Add declaration.
6513 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
6514 * m2-lang.c (_initialize_m2_language): Add declaration.
6515 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
6516 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
6517 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
6518 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
6519 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6520 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
6521 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
6522 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
6523 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
6524 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6525 * machoread.c (_initialize_machoread): Add declaration.
6526 * macrocmd.c (_initialize_macrocmd): Add declaration.
6527 * macroscope.c (_initialize_macroscope): Add declaration.
6528 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
6529 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
6530 * maint.c (_initialize_maint_cmds): Add declaration.
6531 * mdebugread.c (_initialize_mdebugread): Add declaration.
6532 * memattr.c (_initialize_mem): Add declaration.
6533 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
6534 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
6535 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
6536 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
6537 * mi/mi-main.c (_initialize_mi_main): Add declaration.
6538 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
6539 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
6540 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
6541 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
6542 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
6543 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
6544 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
6545 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
6546 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
6547 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6548 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
6549 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
6550 * mipsread.c (_initialize_mipsread): Add declaration.
6551 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
6552 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
6553 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
6554 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
6555 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
6556 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
6557 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
6558 * nto-procfs.c (_initialize_procfs): Add declaration.
6559 * objc-lang.c (_initialize_objc_language): Add declaration.
6560 * observable.c (_initialize_observer): Add declaration.
6561 * opencl-lang.c (_initialize_opencl_language): Add declaration.
6562 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
6563 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
6564 * osabi.c (_initialize_gdb_osabi): Add declaration.
6565 * osdata.c (_initialize_osdata): Add declaration.
6566 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6567 * parse.c (_initialize_parse): Add declaration.
6568 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
6569 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
6570 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
6571 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
6572 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
6573 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
6574 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
6575 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
6576 * printcmd.c (_initialize_printcmd): Add declaration.
6577 * probe.c (_initialize_probe): Add declaration.
6578 * proc-api.c (_initialize_proc_api): Add declaration.
6579 * proc-events.c (_initialize_proc_events): Add declaration.
6580 * proc-service.c (_initialize_proc_service): Add declaration.
6581 * procfs.c (_initialize_procfs): Add declaration.
6582 * producer.c (_initialize_producer): Add declaration.
6583 * psymtab.c (_initialize_psymtab): Add declaration.
6584 * python/python.c (_initialize_python): Add declaration.
6585 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
6586 * record-btrace.c (_initialize_record_btrace): Add declaration.
6587 * record-full.c (_initialize_record_full): Add declaration.
6588 * record.c (_initialize_record): Add declaration.
6589 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
6590 * regcache.c (_initialize_regcache): Add declaration.
6591 * reggroups.c (_initialize_reggroup): Add declaration.
6592 * remote-notif.c (_initialize_notif): Add declaration.
6593 * remote-sim.c (_initialize_remote_sim): Add declaration.
6594 * remote.c (_initialize_remote): Add declaration.
6595 * reverse.c (_initialize_reverse): Add declaration.
6596 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
6597 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
6598 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
6599 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
6600 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
6601 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
6602 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
6603 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
6604 Add declaration.
6605 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
6606 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
6607 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
6608 * rust-exp.y (_initialize_rust_exp): Add declaration.
6609 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
6610 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
6611 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
6612 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
6613 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
6614 * score-tdep.c (_initialize_score_tdep): Add declaration.
6615 * ser-go32.c (_initialize_ser_dos): Add declaration.
6616 * ser-mingw.c (_initialize_ser_windows): Add declaration.
6617 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
6618 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
6619 * ser-uds.c (_initialize_ser_socket): Add declaration.
6620 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
6621 * serial.c (_initialize_serial): Add declaration.
6622 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
6623 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
6624 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
6625 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
6626 * skip.c (_initialize_step_skip): Add declaration.
6627 * sol-thread.c (_initialize_sol_thread): Add declaration.
6628 * solib-aix.c (_initialize_solib_aix): Add declaration.
6629 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
6630 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
6631 * solib-frv.c (_initialize_frv_solib): Add declaration.
6632 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6633 * solib-target.c (_initialize_solib_target): Add declaration.
6634 * solib.c (_initialize_solib): Add declaration.
6635 * source-cache.c (_initialize_source_cache): Add declaration.
6636 * source.c (_initialize_source): Add declaration.
6637 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
6638 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
6639 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
6640 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
6641 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
6642 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
6643 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
6644 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
6645 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
6646 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
6647 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
6648 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
6649 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
6650 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
6651 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
6652 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
6653 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
6654 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
6655 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
6656 * stabsread.c (_initialize_stabsread): Add declaration.
6657 * stack.c (_initialize_stack): Add declaration.
6658 * stap-probe.c (_initialize_stap_probe): Add declaration.
6659 * std-regs.c (_initialize_frame_reg): Add declaration.
6660 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
6661 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
6662 * symfile.c (_initialize_symfile): Add declaration.
6663 * symmisc.c (_initialize_symmisc): Add declaration.
6664 * symtab.c (_initialize_symtab): Add declaration.
6665 * target.c (_initialize_target): Add declaration.
6666 * target-connection.c (_initialize_target_connection): Add
6667 declaration.
6668 * target-dcache.c (_initialize_target_dcache): Add declaration.
6669 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
6670 * thread.c (_initialize_thread): Add declaration.
6671 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
6672 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
6673 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
6674 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
6675 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
6676 * tracectf.c (_initialize_ctf): Add declaration.
6677 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
6678 * tracefile.c (_initialize_tracefile): Add declaration.
6679 * tracepoint.c (_initialize_tracepoint): Add declaration.
6680 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
6681 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
6682 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
6683 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
6684 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
6685 * tui/tui-win.c (_initialize_tui_win): Add declaration.
6686 * tui/tui.c (_initialize_tui): Add declaration.
6687 * typeprint.c (_initialize_typeprint): Add declaration.
6688 * ui-style.c (_initialize_ui_style): Add declaration.
6689 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
6690 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
6691 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
6692 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
6693 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
6694 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
6695 * unittests/filtered_iterator-selftests.c
6696 (_initialize_filtered_iterator_selftests): Add declaration.
6697 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
6698 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
6699 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
6700 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
6701 * unittests/main-thread-selftests.c
6702 (_initialize_main_thread_selftests): Add declaration.
6703 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
6704 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
6705 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
6706 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
6707 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
6708 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
6709 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
6710 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
6711 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
6712 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
6713 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
6714 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
6715 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
6716 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
6717 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
6718 declaration.
6719 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
6720 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
6721 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
6722 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
6723 * user-regs.c (_initialize_user_regs): Add declaration.
6724 * utils.c (_initialize_utils): Add declaration.
6725 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
6726 * valops.c (_initialize_valops): Add declaration.
6727 * valprint.c (_initialize_valprint): Add declaration.
6728 * value.c (_initialize_values): Add declaration.
6729 * varobj.c (_initialize_varobj): Add declaration.
6730 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
6731 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
6732 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6733 * windows-nat.c (_initialize_windows_nat): Add declaration.
6734 (_initialize_check_for_gdb_ini): Add declaration.
6735 (_initialize_loadable): Add declaration.
6736 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
6737 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
6738 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
6739 * xcoffread.c (_initialize_xcoffread): Add declaration.
6740 * xml-support.c (_initialize_xml_support): Add declaration.
6741 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
6742 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
6743 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
6744 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
6745
e2de1eec
SM
67462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6747
6748 * regformats/regdat.sh: Generate declaration for init function.
6749
e0037b4c
SM
67502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6751
6752 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
6753 up.
6754 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
6755 close_one_inferior>: New methods.
6756 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
6757 pass down target to find_inferior_pid.
6758 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
6759 Pass down target to find_inferior_ptid.
6760 (gdbsim_target::create_inferior): Pass down target to
6761 add_thread_silent.
6762 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
6763 target down to find_inferior_ptid and switch_to_thread.
6764 (gdbsim_target::close): Update to call close_one_inferior.
6765 (struct resume_data): Remove.
6766 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
6767 directly, rather than through a void pointer.
6768 (gdbsim_target::resume): Update to call resume_one_inferior.
6769
58920b5b
SM
67702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6771
6772 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
6773
4ec89149
PA
67742020-01-12 Pedro Alves <palves@redhat.com>
6775
6776 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
6777 directly for the current inferior instead of
6778 discard_all_inferiors.
6779 (discard_all_inferiors): Delete.
6780
7c392d1d
TT
67812020-01-11 Tom Tromey <tom@tromey.com>
6782
6783 * tui/tui-wingeneral.c (box_win): Check cli_styling.
6784 * tui/tui-winsource.c (tui_source_window_base::refill): Use
6785 deprecated_safe_get_selected_frame.
6786
d9ebdab7
TBA
67872020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6788
6789 * inferior.c (print_inferior): Switch inferior before printing it.
6790
f3c469b9
PA
67912020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
6792 Pedro Alves <palves@redhat.com>
6793
6794 * progspace-and-thread.c (switch_to_program_space_and_thread):
6795 Assert there's an inferior for PSPACE. Use
6796 switch_to_inferior_no_thread to switch the inferior too.
6797 * progspace.c (program_space::~program_space): Call
6798 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
6799 (program_space::free_all_objfiles): Don't call clear_symtab_users
6800 here.
6801 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
6802
65c574f6
PA
68032020-01-10 Pedro Alves <palves@redhat.com>
6804
6805 * NEWS: Mention multi-target debugging, "info connections", and
6806 "add-inferior -no-connection".
6807
2f4fcf00
PA
68082020-01-10 Pedro Alves <palves@redhat.com>
6809
6810 * infrun.c: Include "target-connection.h".
6811 (check_multi_target_resumption): New.
6812 (proceed): Call it.
6813 * target-connection.c (make_target_connection_string): Make
6814 extern.
6815 * target-connection.h (make_target_connection_string): Declare.
6816
121b3efd
PA
68172020-01-10 Pedro Alves <palves@redhat.com>
6818
6819 * Makefile.in (COMMON_SFILES): Add target-connection.c.
6820 * inferior.c (uiout_field_connection): New function.
6821 (print_inferior): Add new "connection-id" column.
6822 (add_inferior_command): Show connection number/string of added
6823 inferior.
6824 * process-stratum-target.h
6825 (process_stratum_target::connection_string): New virtual method.
6826 (process_stratum_target::connection_number): New field.
6827 * remote.c (remote_target::connection_string): New override.
6828 * target-connection.c: New file.
6829 * target-connection.h: New file.
6830 * target.c (decref_target): Remove process_stratum targets from
6831 the connection list.
6832 (target_stack::push): Add process_stratum targets to the
6833 connection list.
6834
4f837581
PA
68352020-01-10 Pedro Alves <palves@redhat.com>
6836
6837 Revert:
6838 2016-04-12 Pedro Alves <palves@redhat.com>
6839 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6840 Remove references to name.
6841 * serial.h (struct serial) <name>: Delete.
6842
f4ec508e
PA
68432020-01-10 Pedro Alves <palves@redhat.com>
6844
6845 * gdbarch-selftests.c (register_to_value_test): Remove "target
6846 already pushed" check.
6847
5b6d1e4f
PA
68482020-01-10 Pedro Alves <palves@redhat.com>
6849 John Baldwin <jhb@FreeBSD.org>
6850
6851 * aarch64-linux-nat.c
6852 (aarch64_linux_nat_target::thread_architecture): Adjust.
6853 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
6854 (task_command_1): Likewise.
6855 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
6856 (aix_thread_target::wait, aix_thread_target::fetch_registers)
6857 (aix_thread_target::store_registers)
6858 (aix_thread_target::thread_alive): Adjust.
6859 * amd64-fbsd-tdep.c: Include "inferior.h".
6860 (amd64fbsd_get_thread_local_address): Pass down target.
6861 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
6862 thread's gdbarch instead of target_gdbarch.
6863 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
6864 get_last_target_status.
6865 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6866 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
6867 inferiors.
6868 (update_inserted_breakpoint_locations): Skip if inferiors with no
6869 execution.
6870 (update_global_location_list): When handling moribund locations,
6871 find representative inferior for location's pspace, and use thread
6872 count of its process_stratum target.
6873 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
6874 * bsd-uthread.c (bsd_uthread_target::wait): Use
6875 as_process_stratum_target and adjust thread_change_ptid and
6876 add_thread calls.
6877 (bsd_uthread_target::update_thread_list): Use
6878 as_process_stratum_target and adjust find_thread_ptid,
6879 thread_change_ptid and add_thread calls.
6880 * btrace.c (maint_btrace_packet_history_cmd): Adjust
6881 find_thread_ptid call.
6882 * corelow.c (add_to_thread_list): Adjust add_thread call.
6883 (core_target_open): Adjust add_thread_silent and thread_count
6884 calls.
6885 (core_target::pid_to_str): Adjust find_inferior_ptid call.
6886 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
6887 * event-top.c (async_disconnect): Pop targets from all inferiors.
6888 * exec.c (add_target_sections): Push exec target on all inferiors
6889 sharing the program space.
6890 (remove_target_sections): Remove the exec target from all
6891 inferiors sharing the program space.
6892 (exec_on_vfork): New.
6893 * exec.h (exec_on_vfork): Declare.
6894 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
6895 Pass it down.
6896 (fbsd_nat_target::update_thread_list): Adjust.
6897 (fbsd_nat_target::resume): Adjust.
6898 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
6899 down.
6900 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
6901 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
6902 get_thread_arch_regcache call.
6903 * fork-child.c (gdb_startup_inferior): Pass target down to
6904 startup_inferior and set_executing.
6905 * gdbthread.h (struct process_stratum_target): Forward declare.
6906 (add_thread, add_thread_silent, add_thread_with_info)
6907 (in_thread_list): Add process_stratum_target parameter.
6908 (find_thread_ptid(inferior*, ptid_t)): New overload.
6909 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
6910 parameter.
6911 (all_threads()): Delete overload.
6912 (all_threads, all_non_exited_threads): Add process_stratum_target
6913 parameter.
6914 (all_threads_safe): Use brace initialization.
6915 (thread_count): Add process_stratum_target parameter.
6916 (set_resumed, set_running, set_stop_requested, set_executing)
6917 (threads_are_executing, finish_thread_state): Add
6918 process_stratum_target parameter.
6919 (switch_to_thread): Use is_current_thread.
6920 * i386-fbsd-tdep.c: Include "inferior.h".
6921 (i386fbsd_get_thread_local_address): Pass down target.
6922 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
6923 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
6924 have_inferiors check.
6925 * inf-ptrace.c (inf_ptrace_target::create_inferior)
6926 (inf_ptrace_target::attach): Adjust.
6927 * infcall.c (run_inferior_call): Adjust.
6928 * infcmd.c (run_command_1): Pass target to
6929 scoped_finish_thread_state.
6930 (proceed_thread_callback): Skip inferiors with no execution.
6931 (continue_command): Rename 'all_threads' local to avoid hiding
6932 'all_threads' function. Adjust get_last_target_status call.
6933 (prepare_one_step): Adjust set_running call.
6934 (signal_command): Use user_visible_resume_target. Compare thread
6935 pointers instead of inferior_ptid.
6936 (info_program_command): Adjust to pass down target.
6937 (attach_command): Mark target's 'thread_executing' flag.
6938 (stop_current_target_threads_ns): New, factored out from ...
6939 (interrupt_target_1): ... this. Switch inferior before making
6940 target calls.
6941 * inferior-iter.h
6942 (struct all_inferiors_iterator, struct all_inferiors_range)
6943 (struct all_inferiors_safe_range)
6944 (struct all_non_exited_inferiors_range): Filter on
6945 process_stratum_target too. Remove explicit.
6946 * inferior.c (inferior::inferior): Push dummy target on target
6947 stack.
6948 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
6949 Add process_stratum_target parameter, and pass it down.
6950 (have_live_inferiors): Adjust.
6951 (switch_to_inferior_and_push_target): New.
6952 (add_inferior_command, clone_inferior_command): Handle
6953 "-no-connection" parameter. Use
6954 switch_to_inferior_and_push_target.
6955 (_initialize_inferior): Mention "-no-connection" option in
6956 the help of "add-inferior" and "clone-inferior" commands.
6957 * inferior.h: Include "process-stratum-target.h".
6958 (interrupt_target_1): Use bool.
6959 (struct inferior) <push_target, unpush_target, target_is_pushed,
6960 find_target_beneath, top_target, process_target, target_at,
6961 m_stack>: New.
6962 (discard_all_inferiors): Delete.
6963 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
6964 (all_inferiors, all_non_exited_inferiors): Add
6965 process_stratum_target parameter.
6966 * infrun.c: Include "gdb_select.h" and <unordered_map>.
6967 (target_last_proc_target): New global.
6968 (follow_fork_inferior): Push target on new inferior. Pass target
6969 to add_thread_silent. Call exec_on_vfork. Handle target's
6970 reference count.
6971 (follow_fork): Adjust get_last_target_status call. Also consider
6972 target.
6973 (follow_exec): Push target on new inferior.
6974 (struct execution_control_state) <target>: New field.
6975 (user_visible_resume_target): New.
6976 (do_target_resume): Call target_async.
6977 (resume_1): Set target's threads_executing flag. Consider resume
6978 target.
6979 (commit_resume_all_targets): New.
6980 (proceed): Also consider resume target. Skip threads of inferiors
6981 with no execution. Commit resumtion in all targets.
6982 (start_remote): Pass current inferior to wait_for_inferior.
6983 (infrun_thread_stop_requested): Consider target as well. Pass
6984 thread_info pointer to clear_inline_frame_state instead of ptid.
6985 (infrun_thread_thread_exit): Consider target as well.
6986 (random_pending_event_thread): New inferior parameter. Use it.
6987 (do_target_wait): Rename to ...
6988 (do_target_wait_1): ... this. Add inferior parameter, and pass it
6989 down.
6990 (threads_are_resumed_pending_p, do_target_wait): New.
6991 (prepare_for_detach): Adjust calls.
6992 (wait_for_inferior): New inferior parameter. Handle it. Use
6993 do_target_wait_1 instead of do_target_wait.
6994 (fetch_inferior_event): Adjust. Switch to representative
6995 inferior. Pass target down.
6996 (set_last_target_status): Add process_stratum_target parameter.
6997 Save target in global.
6998 (get_last_target_status): Add process_stratum_target parameter and
6999 handle it.
7000 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
7001 (context_switch): Check inferior_ptid == null_ptid before calling
7002 inferior_thread().
7003 (get_inferior_stop_soon): Pass down target.
7004 (wait_one): Rename to ...
7005 (poll_one_curr_target): ... this.
7006 (struct wait_one_event): New.
7007 (wait_one): New.
7008 (stop_all_threads): Adjust.
7009 (handle_no_resumed, handle_inferior_event): Adjust to consider the
7010 event's target.
7011 (switch_back_to_stepped_thread): Also consider target.
7012 (print_stop_event): Update.
7013 (normal_stop): Update. Also consider the resume target.
7014 * infrun.h (wait_for_inferior): Remove declaration.
7015 (user_visible_resume_target): New declaration.
7016 (get_last_target_status, set_last_target_status): New
7017 process_stratum_target parameter.
7018 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
7019 process_stratum_target parameter, and use it.
7020 (clear_inline_frame_state (thread_info*)): New.
7021 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
7022 process_stratum_target parameter.
7023 (clear_inline_frame_state (thread_info*)): Declare.
7024 * linux-fork.c (delete_checkpoint_command): Pass target down to
7025 find_thread_ptid.
7026 (checkpoint_command): Adjust.
7027 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
7028 instead of just tweaking inferior_ptid.
7029 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
7030 (exit_lwp): Pass target down to find_thread_ptid.
7031 (attach_proc_task_lwp_callback): Pass target down to
7032 add_thread/set_running/set_executing.
7033 (linux_nat_target::attach): Pass target down to
7034 thread_change_ptid.
7035 (get_detach_signal): Pass target down to find_thread_ptid.
7036 Consider last target status's target.
7037 (linux_resume_one_lwp_throw, resume_lwp)
7038 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
7039 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
7040 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
7041 (linux_nat_target::async_wait_fd): New.
7042 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
7043 target down.
7044 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
7045 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
7046 * linux-thread-db.c (struct thread_db_info::process_target): New
7047 field.
7048 (add_thread_db_info): Save target.
7049 (get_thread_db_info): New process_stratum_target parameter. Also
7050 match target.
7051 (delete_thread_db_info): New process_stratum_target parameter.
7052 Also match target.
7053 (thread_from_lwp): Adjust to pass down target.
7054 (thread_db_notice_clone): Pass down target.
7055 (check_thread_db_callback): Pass down target.
7056 (try_thread_db_load_1): Always push the thread_db target.
7057 (try_thread_db_load, record_thread): Pass target down.
7058 (thread_db_target::detach): Pass target down. Always unpush the
7059 thread_db target.
7060 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
7061 target down. Always unpush the thread_db target.
7062 (find_new_threads_callback, thread_db_find_new_threads_2)
7063 (thread_db_target::update_thread_list): Pass target down.
7064 (thread_db_target::pid_to_str): Pass current inferior down.
7065 (thread_db_target::get_thread_local_address): Pass target down.
7066 (thread_db_target::resume, maintenance_check_libthread_db): Pass
7067 target down.
7068 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
7069 * procfs.c (procfs_target::procfs_init_inferior): Declare.
7070 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
7071 (procfs_init_inferior): Rename to ...
7072 (procfs_target::procfs_init_inferior): ... this and adjust.
7073 (procfs_target::create_inferior, procfs_notice_thread)
7074 (procfs_do_thread_registers): Adjust.
7075 * ppc-fbsd-tdep.c: Include "inferior.h".
7076 (ppcfbsd_get_thread_local_address): Pass down target.
7077 * proc-service.c (ps_xfer_memory): Switch current inferior and
7078 program space as well.
7079 (get_ps_regcache): Pass target down.
7080 * process-stratum-target.c
7081 (process_stratum_target::thread_address_space)
7082 (process_stratum_target::thread_architecture): Pass target down.
7083 * process-stratum-target.h
7084 (process_stratum_target::threads_executing): New field.
7085 (as_process_stratum_target): New.
7086 * ravenscar-thread.c
7087 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
7088 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
7089 down.
7090 * record-btrace.c (record_btrace_target::info_record): Adjust.
7091 (record_btrace_target::record_method)
7092 (record_btrace_target::record_is_replaying)
7093 (record_btrace_target::fetch_registers)
7094 (get_thread_current_frame_id, record_btrace_target::resume)
7095 (record_btrace_target::wait, record_btrace_target::stop): Pass
7096 target down.
7097 * record-full.c (record_full_wait_1): Switch to event thread.
7098 Pass target down.
7099 * regcache.c (regcache::regcache)
7100 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
7101 process_stratum_target parameter and handle it.
7102 (current_thread_target): New global.
7103 (get_thread_regcache): Add process_stratum_target parameter and
7104 handle it. Switch inferior before calling target method.
7105 (get_thread_regcache): Pass target down.
7106 (get_thread_regcache_for_ptid): Pass target down.
7107 (registers_changed_ptid): Add process_stratum_target parameter and
7108 handle it.
7109 (registers_changed_thread, registers_changed): Pass target down.
7110 (test_get_thread_arch_aspace_regcache): New.
7111 (current_regcache_test): Define a couple local test_target_ops
7112 instances and use them for testing.
7113 (readwrite_regcache): Pass process_stratum_target parameter.
7114 (cooked_read_test, cooked_write_test): Pass mock_target down.
7115 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
7116 (get_thread_arch_aspace_regcache): Add process_stratum_target
7117 parameter.
7118 (regcache::target): New method.
7119 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
7120 (regcache::registers_changed_ptid): Add process_stratum_target
7121 parameter.
7122 (regcache::m_target): New field.
7123 (registers_changed_ptid): Add process_stratum_target parameter.
7124 * remote.c (remote_state::supports_vCont_probed): New field.
7125 (remote_target::async_wait_fd): New method.
7126 (remote_unpush_and_throw): Add remote_target parameter.
7127 (get_current_remote_target): Adjust.
7128 (remote_target::remote_add_inferior): Push target.
7129 (remote_target::remote_add_thread)
7130 (remote_target::remote_notice_new_inferior)
7131 (get_remote_thread_info): Pass target down.
7132 (remote_target::update_thread_list): Skip threads of inferiors
7133 bound to other targets. (remote_target::close): Don't discard
7134 inferiors. (remote_target::add_current_inferior_and_thread)
7135 (remote_target::process_initial_stop_replies)
7136 (remote_target::start_remote)
7137 (remote_target::remote_serial_quit_handler): Pass down target.
7138 (remote_target::remote_unpush_target): New remote_target
7139 parameter. Unpush the target from all inferiors.
7140 (remote_target::remote_unpush_and_throw): New remote_target
7141 parameter. Pass it down.
7142 (remote_target::open_1): Check whether the current inferior has
7143 execution instead of checking whether any inferior is live. Pass
7144 target down.
7145 (remote_target::remote_detach_1): Pass down target. Use
7146 remote_unpush_target.
7147 (extended_remote_target::attach): Pass down target.
7148 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
7149 (remote_target::append_resumption): Pass down target.
7150 (remote_target::append_pending_thread_resumptions)
7151 (remote_target::remote_resume_with_hc, remote_target::resume)
7152 (remote_target::commit_resume): Pass down target.
7153 (remote_target::remote_stop_ns): Check supports_vCont_probed.
7154 (remote_target::interrupt_query)
7155 (remote_target::remove_new_fork_children)
7156 (remote_target::check_pending_events_prevent_wildcard_vcont)
7157 (remote_target::remote_parse_stop_reply)
7158 (remote_target::process_stop_reply): Pass down target.
7159 (first_remote_resumed_thread): New remote_target parameter. Pass
7160 it down.
7161 (remote_target::wait_as): Pass down target.
7162 (unpush_and_perror): New remote_target parameter. Pass it down.
7163 (remote_target::readchar, remote_target::remote_serial_write)
7164 (remote_target::getpkt_or_notif_sane_1)
7165 (remote_target::kill_new_fork_children, remote_target::kill): Pass
7166 down target.
7167 (remote_target::mourn_inferior): Pass down target. Use
7168 remote_unpush_target.
7169 (remote_target::core_of_thread)
7170 (remote_target::remote_btrace_maybe_reopen): Pass down target.
7171 (remote_target::pid_to_exec_file)
7172 (remote_target::thread_handle_to_thread_info): Pass down target.
7173 (remote_target::async_wait_fd): New.
7174 * riscv-fbsd-tdep.c: Include "inferior.h".
7175 (riscv_fbsd_get_thread_local_address): Pass down target.
7176 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
7177 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
7178 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
7179 Adjust.
7180 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
7181 * solib-svr4.c (enable_break): Pass down target.
7182 * spu-multiarch.c (parse_spufs_run): Pass down target.
7183 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
7184 * target-delegates.c: Regenerate.
7185 * target.c (g_target_stack): Delete.
7186 (current_top_target): Return the current inferior's top target.
7187 (target_has_execution_1): Refer to the passed-in inferior's top
7188 target.
7189 (target_supports_terminal_ours): Check whether the initial
7190 inferior was already created.
7191 (decref_target): New.
7192 (target_stack::push): Incref/decref the target.
7193 (push_target, push_target, unpush_target): Adjust.
7194 (target_stack::unpush): Defref target.
7195 (target_is_pushed): Return bool. Adjust to refer to the current
7196 inferior's target stack.
7197 (dispose_inferior): Delete, and inline parts ...
7198 (target_preopen): ... here. Only dispose of the current inferior.
7199 (target_detach): Hold strong target reference while detaching.
7200 Pass target down.
7201 (target_thread_name): Add assertion.
7202 (target_resume): Pass down target.
7203 (target_ops::beneath, find_target_at): Adjust to refer to the
7204 current inferior's target stack.
7205 (get_dummy_target): New.
7206 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
7207 has a thread running.
7208 (initialize_targets): Rename to ...
7209 (_initialize_target): ... this.
7210 * target.h: Include "gdbsupport/refcounted-object.h".
7211 (struct target_ops): Inherit refcounted_object.
7212 (target_ops::shortname, target_ops::longname): Make const.
7213 (target_ops::async_wait_fd): New method.
7214 (decref_target): Declare.
7215 (struct target_ops_ref_policy): New.
7216 (target_ops_ref): New typedef.
7217 (get_dummy_target): Declare function.
7218 (target_is_pushed): Return bool.
7219 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
7220 (all_matching_threads_iterator::all_matching_threads_iterator):
7221 Handle filter target.
7222 * thread-iter.h (struct all_matching_threads_iterator, struct
7223 all_matching_threads_range, class all_non_exited_threads_range):
7224 Filter by target too. Remove explicit.
7225 * thread.c (threads_executing): Delete.
7226 (inferior_thread): Pass down current inferior.
7227 (clear_thread_inferior_resources): Pass down thread pointer
7228 instead of ptid_t.
7229 (add_thread_silent, add_thread_with_info, add_thread): Add
7230 process_stratum_target parameter. Use it for thread and inferior
7231 searches.
7232 (is_current_thread): New.
7233 (thread_info::deletable): Use it.
7234 (find_thread_ptid, thread_count, in_thread_list)
7235 (thread_change_ptid, set_resumed, set_running): New
7236 process_stratum_target parameter. Pass it down.
7237 (set_executing): New process_stratum_target parameter. Pass it
7238 down. Adjust reference to 'threads_executing'.
7239 (threads_are_executing): New process_stratum_target parameter.
7240 Adjust reference to 'threads_executing'.
7241 (set_stop_requested, finish_thread_state): New
7242 process_stratum_target parameter. Pass it down.
7243 (switch_to_thread): Also match inferior.
7244 (switch_to_thread): New process_stratum_target parameter. Pass it
7245 down.
7246 (update_threads_executing): Reimplement.
7247 * top.c (quit_force): Pop targets from all inferior.
7248 (gdb_init): Don't call initialize_targets.
7249 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
7250 Declare.
7251 (windows_add_thread, windows_delete_thread): Adjust.
7252 (get_windows_debug_event): Rename to ...
7253 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
7254 * tracefile-tfile.c (tfile_target_open): Pass down target.
7255 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
7256 Forward declare.
7257 (switch_to_thread): Add process_stratum_target parameter.
7258 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
7259 parameter. Use it.
7260 (mi_on_resume): Pass target down.
7261 * nat/fork-inferior.c (startup_inferior): Add
7262 process_stratum_target parameter. Pass it down.
7263 * nat/fork-inferior.h (startup_inferior): Add
7264 process_stratum_target parameter.
7265 * python/py-threadevent.c (py_get_event_thread): Pass target down.
7266
75c6c844
PA
72672020-01-10 Pedro Alves <palves@redhat.com>
7268
7269 * remote.c (remote_target::start_remote): Don't set inferior_ptid
7270 directly. Instead find the first thread in the thread list and
7271 use switch_to_thread.
7272
78f2c40a
PA
72732020-01-10 Pedro Alves <palves@redhat.com>
7274
7275 * remote.c (remote_target::remote_add_inferior): Don't bind a
7276 process to the current inferior if the current inferior is already
7277 bound to a process.
7278
e7af6c70
TBA
72792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7280 Pedro Alves <palves@redhat.com>
7281
7282 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
7283 If no process is specified, return null_ptid instead of
7284 inferior_ptid.
7285 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
7286 TARGET_WAITKIND_SIGNALLED with no pid.
7287
31ba933e
PA
72882020-01-10 Pedro Alves <palves@redhat.com>
7289
7290 * remote.c (first_remote_resumed_thread): New.
7291 (remote_target::wait_as): Use it as default event_ptid instead of
7292 inferior_ptid.
7293
735fc2ca
PA
72942020-01-10 Pedro Alves <palves@redhat.com>
7295
7296 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
7297
c17e02e1
PA
72982020-01-10 Pedro Alves <palves@redhat.com>
7299
7300 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
7301 not -1.
7302
ab1ddbcf
PA
73032020-01-10 Pedro Alves <palves@redhat.com>
7304
7305 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
7306 ptid to get_last_target_status.
7307 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
7308 ptid to get_last_target_status.
7309 * infcmd.c (continue_command): Don't pass a target_waitstatus to
7310 get_last_target_status.
7311 (info_program_command): Don't pass a target_waitstatus to
7312 get_last_target_status.
7313 * infrun.c (init_wait_for_inferior): Use
7314 nullify_last_target_wait_ptid.
7315 (get_last_target_status): Handle nullptr arguments.
7316 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
7317 (print_stop_event): Don't pass a ptid to get_last_target_status.
7318 (normal_stop): Don't pass a ptid to get_last_target_status.
7319 * infrun.h (get_last_target_status, set_last_target_status): Move
7320 comments here and update.
7321 (nullify_last_target_wait_ptid): Declare.
7322 * linux-fork.c (fork_load_infrun_state): Remove local extern
7323 declaration of nullify_last_target_wait_ptid.
7324 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
7325 to get_last_target_status.
7326
f3f8ece4
PA
73272020-01-10 Pedro Alves <palves@redhat.com>
7328
7329 * gdbthread.h (scoped_restore_current_thread)
7330 <dont_restore, restore, m_dont_restore>: Declare.
7331 * thread.c (thread_alive): Add assertion. Return bool.
7332 (switch_to_thread_if_alive): New.
7333 (prune_threads): Switch inferior/thread.
7334 (print_thread_info_1): Switch thread before calling target methods.
7335 (scoped_restore_current_thread::restore): New, factored out from
7336 ...
7337 (scoped_restore_current_thread::~scoped_restore_current_thread):
7338 ... this.
7339 (scoped_restore_current_thread::scoped_restore_current_thread):
7340 Add assertion.
7341 (thread_apply_all_command, thread_select): Use
7342 switch_to_thread_if_alive.
7343 * infrun.c (proceed, restart_threads, handle_signal_stop)
7344 (switch_back_to_stepped_thread): Switch current thread before
7345 calling target methods.
7346
db2d40f7
PA
73472020-01-10 Pedro Alves <palves@redhat.com>
7348
7349 * inferior.c (switch_to_inferior_no_thread): New function,
7350 factored out from ...
7351 (inferior_command): ... here.
7352 * inferior.h (switch_to_inferior_no_thread): Declare.
7353 * mi/mi-main.c (run_one_inferior): Use
7354 switch_to_inferior_no_thread.
7355
bd420a2d
PA
73562020-01-10 Pedro Alves <palves@redhat.com>
7357
7358 * infcmd.c (kill_command): Remove dead code.
7359
ddf5db90
PA
73602020-01-10 Pedro Alves <palves@redhat.com>
7361
7362 * remote.c (remote_target::mourn_inferior): No longer check
7363 whether the target is running.
7364
5018ce90
PA
73652020-01-10 Pedro Alves <palves@redhat.com>
7366
7367 * corelow.c (core_target::has_execution): Change parameter type to
7368 inferior pointer.
7369 * inferior.c (number_of_live_inferiors): Use
7370 inferior::has_execution instead of target_has_execution_1.
7371 * inferior.h (inferior::has_execution): New.
7372 * linux-thread-db.c (thread_db_target::update_thread_list): Use
7373 inferior::has_execution instead of target_has_execution_1.
7374 * process-stratum-target.c
7375 (process_stratum_target::has_execution): Change parameter type to
7376 inferior pointer. Check the inferior's PID instead of
7377 inferior_ptid.
7378 * process-stratum-target.h
7379 (process_stratum_target::has_execution): Change parameter type to
7380 inferior pointer.
7381 * record-full.c (record_full_core_target::has_execution): Change
7382 parameter type to inferior pointer.
7383 * target.c (target_has_execution_1): Change parameter type to
7384 inferior pointer.
7385 (target_has_execution_current): Adjust.
7386 * target.h (target_ops::has_execution): Change parameter type to
7387 inferior pointer.
7388 (target_has_execution_1): Change parameter type to inferior
7389 pointer. Change return type to bool.
7390 * tracefile.h (tracefile_target::has_execution): Change parameter
7391 type to inferior pointer.
7392
74375d18
PA
73932020-01-10 Pedro Alves <palves@redhat.com>
7394
7395 * exceptions.c (print_flush): Remove current_top_target() check.
7396
acdf84a6
PA
73972020-01-10 Pedro Alves <palves@redhat.com>
7398
7399 * remote.c (show_remote_exec_file): Show the current inferior's
7400 exec-file instead of the command variable's value.
7401
ec506636
PA
74022020-01-10 Pedro Alves <palves@redhat.com>
7403
7404 * record-full.c (record_full_resume_ptid): New global.
7405 (record_full_target::resume): Set it.
7406 (record_full_wait_1): Use record_full_resume_ptid instead of
7407 inferior_ptid.
7408
873657b9
PA
74092020-01-10 Pedro Alves <palves@redhat.com>
7410
7411 * gdbthread.h (scoped_restore_current_thread)
7412 <dont_restore, restore, m_dont_restore>: Declare.
7413 * thread.c (thread_alive): Add assertion. Return bool.
7414 (switch_to_thread_if_alive): New.
7415 (prune_threads): Switch inferior/thread.
7416 (print_thread_info_1): Switch thread before calling target methods.
7417 (scoped_restore_current_thread::restore): New, factored out from
7418 ...
7419 (scoped_restore_current_thread::~scoped_restore_current_thread):
7420 ... this.
7421 (scoped_restore_current_thread::scoped_restore_current_thread):
7422 Add assertion.
7423 (thread_apply_all_command, thread_select): Use
7424 switch_to_thread_if_alive.
7425
7f0ae84c
GB
74262020-01-10 George Barrett <bob@bob131.so>
7427
7428 * stap-probe.c (stap_modify_semaphore): Don't check for null
7429 semaphores.
7430 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
7431 for null semaphores.
7432
f5a7c406
AB
74332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7434
7435 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
7436 all source windows, and maintain horizontal scroll status while
7437 doing so.
7438
9ae6bf64
TT
74392020-01-09 Tom Tromey <tom@tromey.com>
7440
7441 PR tui/18932:
7442 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
7443 update_source_window, not print_source_lines.
7444
b2efe70c
AB
74452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7446
7447 * tui/tui.c (tui_enable): Register tui hooks after calling
7448 tui_display_main.
7449
5f23a082
CB
74502020-01-09 Christian Biesinger <cbiesinger@google.com>
7451
7452 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
7453
3061113b
SM
74542020-01-08 Simon Marchi <simon.marchi@efficios.com>
7455
7456 * thread.c (print_thread_info_1): Fix indentation.
7457
57d75002
CB
74582020-01-09 Christian Biesinger <cbiesinger@google.com>
7459
7460 * symtab.c (general_symbol_info::compute_and_set_names): Move the
7461 unique_xmalloc_ptr outside the if to always free the demangled name.
7462
6a053cb1
TT
74632020-01-08 Tom Tromey <tromey@adacore.com>
7464
7465 * xcoffread.c (enter_line_range, read_xcoff_symtab)
7466 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
7467 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
7468 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
7469 Remove.
7470 (section_offsets): New typedef.
7471 * symtab.c (fixup_section, get_msymbol_address): Update.
7472 * symmisc.c (dump_msymbols): Update.
7473 * symfile.h (relative_addr_info_to_section_offsets)
7474 (symfile_map_offsets_to_segments): Update.
7475 * symfile.c (build_section_addr_info_from_objfile)
7476 (init_objfile_sect_indices): Update.
7477 (struct place_section_arg): Change type of "offsets".
7478 (place_section): Update.
7479 (relative_addr_info_to_section_offsets): Change type of
7480 "section_offsets". Remove "num_sections" parameter.
7481 (default_symfile_offsets, syms_from_objfile_1)
7482 (set_objfile_default_section_offset): Update.
7483 (reread_symbols): No need to preserve section offsets by hand.
7484 (symfile_map_offsets_to_segments): Change type of "offsets".
7485 * stap-probe.c (relocate_address): Update.
7486 * stabsread.h (process_one_symbol): Update.
7487 * solib-target.c (struct lm_info_target) <offsets>: Change type.
7488 (solib_target_relocate_section_addresses): Update.
7489 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
7490 Update.
7491 * solib-frv.c (frv_relocate_main_executable): Update.
7492 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7493 * solib-aix.c (solib_aix_get_section_offsets): Change return
7494 type.
7495 (solib_aix_solib_create_inferior_hook): Update.
7496 * remote.c (remote_target::get_offsets): Update.
7497 * psymtab.c (find_pc_sect_psymtab): Update.
7498 * psympriv.h (struct partial_symbol) <address, text_low,
7499 text_high>: Update.
7500 * objfiles.h (obj_section_offset): Update.
7501 (struct objfile) <section_offsets>: Change type.
7502 <num_sections>: Remove.
7503 (objfile_relocate): Update.
7504 * objfiles.c (entry_point_address_query): Update
7505 (relocate_one_symbol): Change type of "section_offsets".
7506 (objfile_relocate1, objfile_relocate1): Change type of
7507 "new_offsets".
7508 (objfile_rebase1): Update.
7509 * mipsread.c (mipscoff_symfile_read): Update.
7510 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
7511 parameter.
7512 * mdebugread.c (parse_symbol): Change type of "section_offsets".
7513 (parse_external, psymtab_to_symtab_1): Update.
7514 * machoread.c (macho_symfile_offsets): Update.
7515 * ia64-tdep.c (ia64_find_unwind_table): Update.
7516 * hppa-tdep.c (read_unwind_info): Update.
7517 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
7518 * dwarf2read.c (create_addrmap_from_index)
7519 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7520 (process_psymtab_comp_unit_reader, add_partial_symbol)
7521 (add_partial_subprogram, process_full_comp_unit)
7522 (read_file_scope, read_func_scope, read_lexical_block_scope)
7523 (read_call_site_scope, dwarf2_rnglists_process)
7524 (dwarf2_ranges_process, dwarf2_ranges_read)
7525 (dwarf_decode_lines_1, var_decode_location, new_symbol)
7526 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
7527 Update.
7528 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
7529 Update.
7530 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
7531 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
7532 (process_one_symbol): Change type of "section_offsets".
7533 * ctfread.c (get_objfile_text_range): Update.
7534 * coffread.c (coff_symtab_read, enter_linenos)
7535 (process_coff_symbol): Update.
7536 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7537 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
7538
456e800a
TT
75392020-01-08 Tom Tromey <tromey@adacore.com>
7540
7541 * dwarf2read.c (parse_macro_definition): Use std::string.
7542 (parse_macro_definition): Likewise.
7543
6dfa2fc2
TT
75442020-01-08 Tom Tromey <tromey@adacore.com>
7545
7546 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
7547 (ATTR_ALLOC_CHUNK): Remove.
7548
421d1616
TT
75492020-01-08 Tom Tromey <tromey@adacore.com>
7550
7551 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
7552
43816ebc
TT
75532020-01-08 Tom Tromey <tromey@adacore.com>
7554
7555 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
7556 (dwarf2_compute_name, open_dwo_file): Likewise.
7557 (process_enumeration_scope): Use std::vector.
7558 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
7559 (partial_die_info::fixup, dwarf2_start_subfile)
7560 (guess_full_die_structure_name, dwarf2_name): Likewise.
7561 (determine_prefix): Update.
7562 (guess_full_die_structure_name): Make return type const.
7563 (partial_die_full_name): Return unique_xmalloc_ptr.
7564 (DW_FIELD_ALLOC_CHUNK): Remove.
7565
4212d509
TT
75662020-01-07 Tom Tromey <tromey@adacore.com>
7567
7568 PR build/24937:
7569 * stap-probe.c (class stap_static_probe_ops): Add constructor.
7570
06a6207a
JT
75712020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7572
7573 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
7574
153d79c4
AB
75752020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
7576
7577 * stack.c (print_frame_info): Move disassemble_next_line code
7578 inside source_print block.
7579
66182876
EZ
75802020-01-06 Eli Zaretskii <eliz@gnu.org>
7581
7582 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
7583 gdb/signals.h, as we are now using native signal symbols.
7584
cbfa8581
SV
75852020-01-06 Shahab Vahedi <shahab@synopsys.com>
7586
7587 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
7588 overflow by an early check of content vs threshold.
aac66a4c 7589 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
7590 Likewise.
7591
3f602821
EZ
75922020-01-06 Eli Zaretskii <eliz@gnu.org>
7593
7594 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
7595
a08c904d
JT
75962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7597
7598 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
7599 export table if no section contains it's RVA.
7600
89a65580
EZ
76012020-01-06 Eli Zaretskii <eliz@gnu.org>
7602
7603 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
7604
8b7fcda2
HD
76052020-01-06 Hannes Domani <ssbssa@yahoo.de>
7606
7607 * source.c (print_source_lines_base): Set last_line_listed.
7608
a61b4f69
SV
76092020-01-06 Shahab Vahedi <shahab@synopsys.com>
7610
7611 * tui/tui-disasm.c: Remove trailing spaces.
7612
559e7e50
EZ
76132020-01-06 Eli Zaretskii <eliz@gnu.org>
7614 Pedro Alves <palves@redhat.com>
7615
7616 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
7617 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
7618 (windows_gdb_signal_to_target): New function, uses the above
7619 enumeration to convert GDB internal signal codes to equivalent
7620 Windows codes.
7621 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
7622 * windows-nat.c: Include "gdb_wait.h".
7623 (get_windows_debug_event): Extract the fatal exception from the
7624 exit status and convert to the equivalent Posix signal number.
7625 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
7626 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
7627 * gdbsupport/gdb_wait.c: New file, implements
7628 windows_status_to_termsig.
7629 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
7630 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
7631
f2302a34
AB
76322020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
7635 show_layout.
7636
6a5206eb
LM
76372020-01-05 Luis Machado <luis.machado@linaro.org>
7638
7639 * aarch64-linux-nat.c
7640 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
7641 and bfd_mach_aarch64.
7642
6ec1d75e
PW
76432020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7644
7645 * ui-file.c (stdio_file::can_emit_style_escape)
7646 (tee_file::can_emit_style_escape): Ensure style is used also on
7647 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
7648 to gdb_stdout.
7649 * main.c (set_gdb_data_directory): Use file style to output the
7650 warning that the given pathname is not a directory.
7651 * top.c (show_history_filename, gdb_safe_append_history)
7652 (show_gdb_datadir): Use file style.
7653
44f81a76
HD
76542020-01-03 Hannes Domani <ssbssa@yahoo.de>
7655
7656 * solib-target.c (struct lm_info_target):
7657 Change offsets to be a unique_xmalloc_ptr.
7658 (solib_target_relocate_section_addresses): Update.
7659
25057eb0
HD
76602020-01-03 Hannes Domani <ssbssa@yahoo.de>
7661
7662 * windows-nat.c (windows_clear_solib): Free so_list linked list.
7663
6e2118f5
BE
76642020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7665
7666 * MAINTAINERS (Write After Approval): Add myself.
7667
8133c7dc
LM
76682020-01-02 Luis Machado <luis.machado@linaro.org>
7669
7670 * proc-service.c (get_ps_regcache): Remove reference to obsolete
7671 Cell BE architecture.
7672 * target.h (struct target_ops) <thread_architecture>: Likewise.
7673
48189bec
HD
76742020-01-01 Hannes Domani <ssbssa@yahoo.de>
7675
7676 * Makefile.in: Use INSTALL_PROGRAM_ENV.
7677
ead1063b
HD
76782020-01-01 Hannes Domani <ssbssa@yahoo.de>
7679
7680 * MAINTAINERS (Write After Approval): Add myself.
7681
e5d78223
JB
76822020-01-01 Joel Brobecker <brobecker@adacore.com>
7683
7684 * gdbarch.sh: Update copyright year range of generated files.
7685
b811d2c2
JB
76862020-01-01 Joel Brobecker <brobecker@adacore.com>
7687
7688 Update copyright year range in all GDB files.
7689
5f4def5c
JB
76902020-01-01 Joel Brobecker <brobecker@adacore.com>
7691
7692 * copyright.py: Convert to Python 3.
7693
51fd4002
JB
76942020-01-01 Joel Brobecker <brobecker@adacore.com>
7695
7696 * copyright.py: Adapt after move of gnulib directory from gdb
7697 directory to toplevel directory.
7698
5fb651f2
JB
76992020-01-01 Joel Brobecker <brobecker@adacore.com>
7700
7701 * copyright.py (main): Exit if run from the wrong directory.
7702
5dd8bf88
JB
77032020-01-01 Joel Brobecker <brobecker@adacore.com>
7704
7705 * top.c (print_gdb_version): Change copyright year to 2020.
7706
9f71dacb 77072020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 7708
9f71dacb 7709 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 7710
9f71dacb 7711For older changes see ChangeLog-2019.
c906108c
SS
7712\f
7713Local Variables:
7714mode: change-log
7715left-margin: 8
7716fill-column: 74
7717version-control: never
57da7796 7718coding: utf-8
c906108c 7719End: