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