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