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