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