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