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