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