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