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