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