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