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